RTEMS 4.11
Annotated Report
Sat Oct 9 06:44:26 2010

ffc0f748 <IMFS_Set_handlers>:                                         
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
  switch( node->type ) {                                              
ffc0f748:	81 63 00 00 	lwz     r11,0(r3)                              
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
ffc0f74c:	81 23 00 10 	lwz     r9,16(r3)                              
  switch( node->type ) {                                              
ffc0f750:	81 6b 00 4c 	lwz     r11,76(r11)                            
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
ffc0f754:	81 29 00 34 	lwz     r9,52(r9)                              
  switch( node->type ) {                                              
ffc0f758:	38 0b ff ff 	addi    r0,r11,-1                              
ffc0f75c:	2b 80 00 06 	cmplwi  cr7,r0,6                               
ffc0f760:	41 9d 00 50 	bgt-    cr7,ffc0f7b0 <IMFS_Set_handlers+0x68>  <== NEVER TAKEN
ffc0f764:	3d 60 ff c2 	lis     r11,-62                                
ffc0f768:	39 6b ab f4 	addi    r11,r11,-21516                         
ffc0f76c:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc0f770:	7c 0b 00 2e 	lwzx    r0,r11,r0                              
ffc0f774:	7d 60 5a 14 	add     r11,r0,r11                             
ffc0f778:	7d 69 03 a6 	mtctr   r11                                    
ffc0f77c:	4e 80 04 20 	bctr                                           
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
ffc0f780:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc0f784:	48 00 00 28 	b       ffc0f7ac <IMFS_Set_handlers+0x64>      
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
ffc0f788:	3d 20 ff c2 	lis     r9,-62                                 
ffc0f78c:	38 09 ac 1c 	addi    r0,r9,-21476                           
ffc0f790:	48 00 00 1c 	b       ffc0f7ac <IMFS_Set_handlers+0x64>      
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
ffc0f794:	3d 20 ff c2 	lis     r9,-62                                 
ffc0f798:	38 09 ac 8c 	addi    r0,r9,-21364                           
ffc0f79c:	48 00 00 10 	b       ffc0f7ac <IMFS_Set_handlers+0x64>      
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
ffc0f7a0:	80 09 00 08 	lwz     r0,8(r9)                               
ffc0f7a4:	48 00 00 08 	b       ffc0f7ac <IMFS_Set_handlers+0x64>      
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
ffc0f7a8:	80 09 00 10 	lwz     r0,16(r9)                              
ffc0f7ac:	90 03 00 08 	stw     r0,8(r3)                               
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc0f7b0:	38 60 00 00 	li      r3,0                                   
ffc0f7b4:	4e 80 00 20 	blr                                            
                                                                      

ffc0f4b0 <IMFS_chown>: int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) {
ffc0f4b0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0f4b4:	7c 08 02 a6 	mflr    r0                                     
ffc0f4b8:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0f4bc:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc0f4c0:	7c 9e 23 78 	mr      r30,r4                                 
ffc0f4c4:	7c bd 2b 78 	mr      r29,r5                                 
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = (IMFS_jnode_t *) pathloc->node_access;                      
ffc0f4c8:	83 e3 00 00 	lwz     r31,0(r3)                              
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
ffc0f4cc:	48 00 0f 7d 	bl      ffc10448 <geteuid>                     
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
ffc0f4d0:	a0 1f 00 3c 	lhz     r0,60(r31)                             
ffc0f4d4:	7f 80 18 00 	cmpw    cr7,r0,r3                              
ffc0f4d8:	41 9e 00 20 	beq-    cr7,ffc0f4f8 <IMFS_chown+0x48>         
ffc0f4dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f4e0:	41 be 00 18 	beq+    cr7,ffc0f4f8 <IMFS_chown+0x48>         <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0f4e4:	48 00 4e 25 	bl      ffc14308 <__errno>                     
ffc0f4e8:	38 00 00 01 	li      r0,1                                   
ffc0f4ec:	90 03 00 00 	stw     r0,0(r3)                               
ffc0f4f0:	38 60 ff ff 	li      r3,-1                                  
ffc0f4f4:	48 00 00 24 	b       ffc0f518 <IMFS_chown+0x68>             
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
ffc0f4f8:	b3 df 00 3c 	sth     r30,60(r31)                            
  jnode->st_gid = group;                                              
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0f4fc:	38 61 00 08 	addi    r3,r1,8                                
ffc0f500:	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;                                              
ffc0f504:	b3 bf 00 3e 	sth     r29,62(r31)                            
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0f508:	4b ff 5d f9 	bl      ffc05300 <gettimeofday>                
ffc0f50c:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
  return 0;                                                           
ffc0f510:	38 60 00 00 	li      r3,0                                   
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
  jnode->st_gid = group;                                              
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0f514:	90 1f 00 48 	stw     r0,72(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc0f518:	39 61 00 28 	addi    r11,r1,40                              
ffc0f51c:	48 00 9b bc 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0f5a8 <IMFS_create_node>: IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL )
ffc0f5a8:	2c 03 00 00 	cmpwi   r3,0                                   
  IMFS_jnode_types_t                type,                             
  const char                       *name,                             
  mode_t                            mode,                             
  const IMFS_types_union           *info                              
)                                                                     
{                                                                     
ffc0f5ac:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0f5b0:	7c 08 02 a6 	mflr    r0                                     
ffc0f5b4:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0f5b8:	7c 9f 23 78 	mr      r31,r4                                 
ffc0f5bc:	7c fe 3b 78 	mr      r30,r7                                 
ffc0f5c0:	90 01 00 24 	stw     r0,36(r1)                              
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
ffc0f5c4:	3b 60 00 00 	li      r27,0                                  
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
ffc0f5c8:	41 82 01 24 	beq-    ffc0f6ec <IMFS_create_node+0x144>      <== NEVER TAKEN
  fs_info = parent_loc->mt_entry->fs_info;                            
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
ffc0f5cc:	2f 84 00 07 	cmpwi   cr7,r4,7                               
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
  fs_info = parent_loc->mt_entry->fs_info;                            
ffc0f5d0:	81 23 00 10 	lwz     r9,16(r3)                              
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
ffc0f5d4:	83 83 00 00 	lwz     r28,0(r3)                              
  fs_info = parent_loc->mt_entry->fs_info;                            
ffc0f5d8:	83 a9 00 34 	lwz     r29,52(r9)                             
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
ffc0f5dc:	40 9e 00 18 	bne-    cr7,ffc0f5f4 <IMFS_create_node+0x4c>   
ffc0f5e0:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc0f5e4:	3d 60 ff c2 	lis     r11,-62                                
ffc0f5e8:	38 0b ab 8c 	addi    r0,r11,-21620                          
ffc0f5ec:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc0f5f0:	41 be 00 fc 	beq+    cr7,ffc0f6ec <IMFS_create_node+0x144>  
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
ffc0f5f4:	3d 20 00 00 	lis     r9,0                                   
ffc0f5f8:	81 29 26 f4 	lwz     r9,9972(r9)                            
ffc0f5fc:	7c a4 2b 78 	mr      r4,r5                                  
ffc0f600:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f604:	80 09 00 2c 	lwz     r0,44(r9)                              
ffc0f608:	7c c5 00 78 	andc    r5,r6,r0                               
ffc0f60c:	4b ff ff 15 	bl      ffc0f520 <IMFS_allocate_node>          
  if ( !node )                                                        
ffc0f610:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0f614:	41 82 00 d8 	beq-    ffc0f6ec <IMFS_create_node+0x144>      
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  if ( type == IMFS_DIRECTORY ) {                                     
ffc0f618:	2f 9f 00 01 	cmpwi   cr7,r31,1                              
ffc0f61c:	40 be 00 1c 	bne+    cr7,ffc0f638 <IMFS_create_node+0x90>   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0f620:	38 1b 00 54 	addi    r0,r27,84                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc0f624:	90 1b 00 50 	stw     r0,80(r27)                             
  the_chain->permanent_null = NULL;                                   
ffc0f628:	38 00 00 00 	li      r0,0                                   
ffc0f62c:	90 1b 00 54 	stw     r0,84(r27)                             
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
ffc0f630:	38 1b 00 50 	addi    r0,r27,80                              
ffc0f634:	48 00 00 54 	b       ffc0f688 <IMFS_create_node+0xe0>       
  } else if ( type == IMFS_HARD_LINK ) {                              
ffc0f638:	2f 9f 00 03 	cmpwi   cr7,r31,3                              
ffc0f63c:	41 9e 00 0c 	beq-    cr7,ffc0f648 <IMFS_create_node+0xa0>   
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
ffc0f640:	2f 9f 00 04 	cmpwi   cr7,r31,4                              
ffc0f644:	40 be 00 0c 	bne+    cr7,ffc0f650 <IMFS_create_node+0xa8>   
    node->info.sym_link.name = info->sym_link.name;                   
ffc0f648:	80 1e 00 00 	lwz     r0,0(r30)                              
ffc0f64c:	48 00 00 7c 	b       ffc0f6c8 <IMFS_create_node+0x120>      
  } else if ( type == IMFS_DEVICE ) {                                 
ffc0f650:	2f 9f 00 02 	cmpwi   cr7,r31,2                              
ffc0f654:	40 be 00 18 	bne+    cr7,ffc0f66c <IMFS_create_node+0xc4>   
    node->info.device.major = info->device.major;                     
ffc0f658:	80 1e 00 00 	lwz     r0,0(r30)                              
ffc0f65c:	90 1b 00 50 	stw     r0,80(r27)                             
    node->info.device.minor = info->device.minor;                     
ffc0f660:	80 1e 00 04 	lwz     r0,4(r30)                              
ffc0f664:	90 1b 00 54 	stw     r0,84(r27)                             
ffc0f668:	48 00 00 64 	b       ffc0f6cc <IMFS_create_node+0x124>      
  } else if ( type == IMFS_LINEAR_FILE ) {                            
ffc0f66c:	2f 9f 00 06 	cmpwi   cr7,r31,6                              
ffc0f670:	40 be 00 20 	bne+    cr7,ffc0f690 <IMFS_create_node+0xe8>   
    node->info.linearfile.size      = 0;                              
ffc0f674:	39 20 00 00 	li      r9,0                                   
ffc0f678:	39 40 00 00 	li      r10,0                                  
ffc0f67c:	91 3b 00 50 	stw     r9,80(r27)                             
    node->info.linearfile.direct    = 0;                              
ffc0f680:	38 00 00 00 	li      r0,0                                   
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
    node->info.device.major = info->device.major;                     
    node->info.device.minor = info->device.minor;                     
  } else if ( type == IMFS_LINEAR_FILE ) {                            
    node->info.linearfile.size      = 0;                              
ffc0f684:	91 5b 00 54 	stw     r10,84(r27)                            
    node->info.linearfile.direct    = 0;                              
ffc0f688:	90 1b 00 58 	stw     r0,88(r27)                             
ffc0f68c:	48 00 00 40 	b       ffc0f6cc <IMFS_create_node+0x124>      
  } else if ( type == IMFS_MEMORY_FILE ) {                            
ffc0f690:	2f 9f 00 05 	cmpwi   cr7,r31,5                              
ffc0f694:	40 be 00 28 	bne+    cr7,ffc0f6bc <IMFS_create_node+0x114>  
      node->info.file.size            = 0;                            
      node->info.file.indirect        = 0;                            
ffc0f698:	38 00 00 00 	li      r0,0                                   
    node->info.device.minor = info->device.minor;                     
  } else if ( type == IMFS_LINEAR_FILE ) {                            
    node->info.linearfile.size      = 0;                              
    node->info.linearfile.direct    = 0;                              
  } else if ( type == IMFS_MEMORY_FILE ) {                            
      node->info.file.size            = 0;                            
ffc0f69c:	39 20 00 00 	li      r9,0                                   
      node->info.file.indirect        = 0;                            
ffc0f6a0:	90 1b 00 58 	stw     r0,88(r27)                             
    node->info.device.minor = info->device.minor;                     
  } else if ( type == IMFS_LINEAR_FILE ) {                            
    node->info.linearfile.size      = 0;                              
    node->info.linearfile.direct    = 0;                              
  } else if ( type == IMFS_MEMORY_FILE ) {                            
      node->info.file.size            = 0;                            
ffc0f6a4:	39 40 00 00 	li      r10,0                                  
ffc0f6a8:	91 3b 00 50 	stw     r9,80(r27)                             
ffc0f6ac:	91 5b 00 54 	stw     r10,84(r27)                            
      node->info.file.indirect        = 0;                            
      node->info.file.doubly_indirect = 0;                            
ffc0f6b0:	90 1b 00 5c 	stw     r0,92(r27)                             
      node->info.file.triply_indirect = 0;                            
ffc0f6b4:	90 1b 00 60 	stw     r0,96(r27)                             
ffc0f6b8:	48 00 00 14 	b       ffc0f6cc <IMFS_create_node+0x124>      
  } else if ( type == IMFS_FIFO ) {                                   
ffc0f6bc:	2f 9f 00 07 	cmpwi   cr7,r31,7                              
ffc0f6c0:	40 be 00 0c 	bne+    cr7,ffc0f6cc <IMFS_create_node+0x124>  <== NEVER TAKEN
    node->info.fifo.pipe = NULL;                                      
ffc0f6c4:	38 00 00 00 	li      r0,0                                   
ffc0f6c8:	90 1b 00 50 	stw     r0,80(r27)                             
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
  node->st_ino = ++fs_info->ino_count;                                
ffc0f6cc:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc0f6d0:	38 7c 00 50 	addi    r3,r28,80                              
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
ffc0f6d4:	93 9b 00 08 	stw     r28,8(r27)                             
ffc0f6d8:	7f 64 db 78 	mr      r4,r27                                 
  node->st_ino = ++fs_info->ino_count;                                
ffc0f6dc:	38 09 00 01 	addi    r0,r9,1                                
ffc0f6e0:	90 1d 00 04 	stw     r0,4(r29)                              
ffc0f6e4:	90 1b 00 38 	stw     r0,56(r27)                             
ffc0f6e8:	4b ff a1 45 	bl      ffc0982c <_Chain_Append>               
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
ffc0f6ec:	39 61 00 20 	addi    r11,r1,32                              
ffc0f6f0:	7f 63 db 78 	mr      r3,r27                                 
ffc0f6f4:	48 00 99 dc 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

ffc0f898 <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
ffc0f898:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0f89c:	7c 08 02 a6 	mflr    r0                                     
ffc0f8a0:	90 01 00 7c 	stw     r0,124(r1)                             
  char                                token[ IMFS_NAME_MAX + 1 ];     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
ffc0f8a4:	54 a0 00 39 	rlwinm. r0,r5,0,0,28                           
  const char                        *pathname,     /* IN     */       
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
ffc0f8a8:	be a1 00 4c 	stmw    r21,76(r1)                             
ffc0f8ac:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0f8b0:	7c 9e 23 78 	mr      r30,r4                                 
ffc0f8b4:	7c bc 2b 78 	mr      r28,r5                                 
ffc0f8b8:	7c df 33 78 	mr      r31,r6                                 
  char                                token[ IMFS_NAME_MAX + 1 ];     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
ffc0f8bc:	41 a2 00 10 	beq+    ffc0f8cc <IMFS_eval_path+0x34>         <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EIO );                      
ffc0f8c0:	48 00 4a 49 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc0f8c4:	38 00 00 05 	li      r0,5                                   <== NOT EXECUTED
ffc0f8c8:	48 00 01 fc 	b       ffc0fac4 <IMFS_eval_path+0x22c>        <== NOT EXECUTED
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
ffc0f8cc:	83 46 00 00 	lwz     r26,0(r6)                              
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
ffc0f8d0:	3b a0 00 00 	li      r29,0                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
ffc0f8d4:	3b 21 00 20 	addi    r25,r1,32                              
ffc0f8d8:	3a e1 00 08 	addi    r23,r1,8                               
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0f8dc:	3f 00 00 00 	lis     r24,0                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
ffc0f8e0:	7c 7b ea 14 	add     r3,r27,r29                             
ffc0f8e4:	7f c4 f3 78 	mr      r4,r30                                 
ffc0f8e8:	7f 25 cb 78 	mr      r5,r25                                 
ffc0f8ec:	7e e6 bb 78 	mr      r6,r23                                 
ffc0f8f0:	48 00 06 ed 	bl      ffc0ffdc <IMFS_get_token>              
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
ffc0f8f4:	80 1f 00 00 	lwz     r0,0(r31)                              
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
ffc0f8f8:	7c 76 1b 78 	mr      r22,r3                                 
    pathnamelen -= len;                                               
ffc0f8fc:	82 a1 00 08 	lwz     r21,8(r1)                              
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
ffc0f900:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f904:	41 9e 01 0c 	beq-    cr7,ffc0fa10 <IMFS_eval_path+0x178>    <== NEVER TAKEN
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
ffc0f908:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f90c:	41 9e 00 24 	beq-    cr7,ffc0f930 <IMFS_eval_path+0x98>     
      if ( node->type == IMFS_DIRECTORY )                             
ffc0f910:	80 1a 00 4c 	lwz     r0,76(r26)                             
ffc0f914:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0f918:	40 be 00 18 	bne+    cr7,ffc0f930 <IMFS_eval_path+0x98>     
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
ffc0f91c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f920:	38 80 00 01 	li      r4,1                                   
ffc0f924:	4b ff fe 95 	bl      ffc0f7b8 <IMFS_evaluate_permission>    
ffc0f928:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f92c:	41 9e 01 90 	beq-    cr7,ffc0fabc <IMFS_eval_path+0x224>    
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
ffc0f930:	2f 96 00 03 	cmpwi   cr7,r22,3                              
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
ffc0f934:	83 5f 00 00 	lwz     r26,0(r31)                             
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
ffc0f938:	7f d5 f0 50 	subf    r30,r21,r30                            
    i += len;                                                         
ffc0f93c:	7f bd aa 14 	add     r29,r29,r21                            
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
ffc0f940:	41 9e 00 54 	beq-    cr7,ffc0f994 <IMFS_eval_path+0xfc>     
ffc0f944:	2f 96 00 04 	cmpwi   cr7,r22,4                              
ffc0f948:	41 9e 00 dc 	beq-    cr7,ffc0fa24 <IMFS_eval_path+0x18c>    
ffc0f94c:	2f 16 00 02 	cmpwi   cr6,r22,2                              
ffc0f950:	40 ba 00 e0 	bne+    cr6,ffc0fa30 <IMFS_eval_path+0x198>    
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0f954:	81 38 26 f4 	lwz     r9,9972(r24)                           
ffc0f958:	80 09 00 18 	lwz     r0,24(r9)                              
ffc0f95c:	7f 9a 00 00 	cmpw    cr7,r26,r0                             
ffc0f960:	41 be ff 80 	beq-    cr7,ffc0f8e0 <IMFS_eval_path+0x48>     
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
ffc0f964:	80 9f 00 10 	lwz     r4,16(r31)                             
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
ffc0f968:	80 04 00 1c 	lwz     r0,28(r4)                              
ffc0f96c:	7f 9a 00 00 	cmpw    cr7,r26,r0                             
ffc0f970:	40 be 00 0c 	bne+    cr7,ffc0f97c <IMFS_eval_path+0xe4>     
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
ffc0f974:	38 84 00 08 	addi    r4,r4,8                                
ffc0f978:	48 00 00 e0 	b       ffc0fa58 <IMFS_eval_path+0x1c0>        
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
ffc0f97c:	83 5a 00 08 	lwz     r26,8(r26)                             
ffc0f980:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0f984:	40 be 00 98 	bne+    cr7,ffc0fa1c <IMFS_eval_path+0x184>    
            rtems_set_errno_and_return_minus_one( ENOENT );           
ffc0f988:	48 00 49 81 	bl      ffc14308 <__errno>                     
ffc0f98c:	92 c3 00 00 	stw     r22,0(r3)                              
ffc0f990:	48 00 01 38 	b       ffc0fac8 <IMFS_eval_path+0x230>        
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
ffc0f994:	80 1a 00 4c 	lwz     r0,76(r26)                             
ffc0f998:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc0f99c:	40 be 00 18 	bne+    cr7,ffc0f9b4 <IMFS_eval_path+0x11c>    
          IMFS_evaluate_hard_link( pathloc, 0 );                      
ffc0f9a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f9a4:	38 80 00 00 	li      r4,0                                   
ffc0f9a8:	4b ff fe 91 	bl      ffc0f838 <IMFS_evaluate_hard_link>     
          node = pathloc->node_access;                                
ffc0f9ac:	83 5f 00 00 	lwz     r26,0(r31)                             
ffc0f9b0:	48 00 00 28 	b       ffc0f9d8 <IMFS_eval_path+0x140>        
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
ffc0f9b4:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc0f9b8:	40 be 00 20 	bne+    cr7,ffc0f9d8 <IMFS_eval_path+0x140>    
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
ffc0f9bc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f9c0:	38 80 00 00 	li      r4,0                                   
ffc0f9c4:	48 00 01 15 	bl      ffc0fad8 <IMFS_evaluate_sym_link>      
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
ffc0f9c8:	83 5f 00 00 	lwz     r26,0(r31)                             
          if ( result == -1 )                                         
ffc0f9cc:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
ffc0f9d0:	7c 76 1b 78 	mr      r22,r3                                 
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
          if ( result == -1 )                                         
ffc0f9d4:	41 9e 00 f8 	beq-    cr7,ffc0facc <IMFS_eval_path+0x234>    <== NEVER TAKEN
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
ffc0f9d8:	80 1a 00 4c 	lwz     r0,76(r26)                             
ffc0f9dc:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0f9e0:	41 be 00 10 	beq+    cr7,ffc0f9f0 <IMFS_eval_path+0x158>    
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
ffc0f9e4:	48 00 49 25 	bl      ffc14308 <__errno>                     
ffc0f9e8:	38 00 00 14 	li      r0,20                                  
ffc0f9ec:	48 00 00 d8 	b       ffc0fac4 <IMFS_eval_path+0x22c>        
                                                                      
        /*                                                            
         *  If we are at a node that is a mount point. Set loc to the 
         *  new fs root node and let them finish evaluating the path. 
         */                                                           
        if ( node->info.directory.mt_fs != NULL ) {                   
ffc0f9f0:	80 9a 00 5c 	lwz     r4,92(r26)                             
ffc0f9f4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f9f8:	40 9e 00 5c 	bne-    cr7,ffc0fa54 <IMFS_eval_path+0x1bc>    
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
ffc0f9fc:	7f 43 d3 78 	mr      r3,r26                                 
ffc0fa00:	7f 24 cb 78 	mr      r4,r25                                 
ffc0fa04:	48 00 05 45 	bl      ffc0ff48 <IMFS_find_match_in_dir>      
        if ( !node )                                                  
ffc0fa08:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc0fa0c:	40 a2 00 10 	bne+    ffc0fa1c <IMFS_eval_path+0x184>        
          rtems_set_errno_and_return_minus_one( ENOENT );             
ffc0fa10:	48 00 48 f9 	bl      ffc14308 <__errno>                     
ffc0fa14:	38 00 00 02 	li      r0,2                                   
ffc0fa18:	48 00 00 ac 	b       ffc0fac4 <IMFS_eval_path+0x22c>        
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
ffc0fa1c:	93 5f 00 00 	stw     r26,0(r31)                             
ffc0fa20:	4b ff fe c0 	b       ffc0f8e0 <IMFS_eval_path+0x48>         
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
ffc0fa24:	48 00 48 e5 	bl      ffc14308 <__errno>                     
ffc0fa28:	38 00 00 5b 	li      r0,91                                  
ffc0fa2c:	48 00 00 98 	b       ffc0fac4 <IMFS_eval_path+0x22c>        
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
ffc0fa30:	2f 16 00 00 	cmpwi   cr6,r22,0                              
ffc0fa34:	41 9a 00 08 	beq-    cr6,ffc0fa3c <IMFS_eval_path+0x1a4>    
ffc0fa38:	40 9e fe a8 	bne+    cr7,ffc0f8e0 <IMFS_eval_path+0x48>     <== ALWAYS TAKEN
   *  new fs root node and let let the mounted filesystem set the handlers.
   *                                                                  
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
ffc0fa3c:	80 1a 00 4c 	lwz     r0,76(r26)                             
ffc0fa40:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0fa44:	40 9e 00 58 	bne-    cr7,ffc0fa9c <IMFS_eval_path+0x204>    
    if ( node->info.directory.mt_fs != NULL ) {                       
ffc0fa48:	80 9a 00 5c 	lwz     r4,92(r26)                             
ffc0fa4c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0fa50:	41 9e 00 4c 	beq-    cr7,ffc0fa9c <IMFS_eval_path+0x204>    
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
ffc0fa54:	38 84 00 1c 	addi    r4,r4,28                               
ffc0fa58:	39 61 00 0c 	addi    r11,r1,12                              
ffc0fa5c:	7c a4 a4 aa 	lswi    r5,r4,20                               
ffc0fa60:	7c ab a5 aa 	stswi   r5,r11,20                              
      *pathloc = newloc;                                              
ffc0fa64:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc0fa68:	7c bf a5 aa 	stswi   r5,r31,20                              
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
ffc0fa6c:	7f 85 e3 78 	mr      r5,r28                                 
ffc0fa70:	7f e6 fb 78 	mr      r6,r31                                 
ffc0fa74:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0fa78:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0fa7c:	80 09 00 00 	lwz     r0,0(r9)                               
ffc0fa80:	7c 64 e8 50 	subf    r3,r4,r29                              
ffc0fa84:	7c 7b 1a 14 	add     r3,r27,r3                              
ffc0fa88:	7c 09 03 a6 	mtctr   r0                                     
ffc0fa8c:	7c 9e 22 14 	add     r4,r30,r4                              
ffc0fa90:	4e 80 04 21 	bctrl                                          
ffc0fa94:	7c 76 1b 78 	mr      r22,r3                                 
ffc0fa98:	48 00 00 34 	b       ffc0facc <IMFS_eval_path+0x234>        
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
ffc0fa9c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0faa0:	4b ff fc a9 	bl      ffc0f748 <IMFS_Set_handlers>           
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
ffc0faa4:	7f 84 e3 78 	mr      r4,r28                                 
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
ffc0faa8:	7c 76 1b 78 	mr      r22,r3                                 
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
ffc0faac:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fab0:	4b ff fd 09 	bl      ffc0f7b8 <IMFS_evaluate_permission>    
ffc0fab4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fab8:	40 be 00 14 	bne+    cr7,ffc0facc <IMFS_eval_path+0x234>    
    rtems_set_errno_and_return_minus_one( EACCES );                   
ffc0fabc:	48 00 48 4d 	bl      ffc14308 <__errno>                     
ffc0fac0:	38 00 00 0d 	li      r0,13                                  
ffc0fac4:	90 03 00 00 	stw     r0,0(r3)                               
ffc0fac8:	3a c0 ff ff 	li      r22,-1                                 
                                                                      
  return result;                                                      
}                                                                     
ffc0facc:	39 61 00 78 	addi    r11,r1,120                             
ffc0fad0:	7e c3 b3 78 	mr      r3,r22                                 
ffc0fad4:	48 00 95 e4 	b       ffc190b8 <_restgpr_21_x>               
                                                                      

ffc0fc2c <IMFS_evaluate_for_make>: int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) {
ffc0fc2c:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0fc30:	7c 08 02 a6 	mflr    r0                                     
ffc0fc34:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0fc38:	be a1 00 4c 	stmw    r21,76(r1)                             
ffc0fc3c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0fc40:	7c 9f 23 78 	mr      r31,r4                                 
ffc0fc44:	7c bc 2b 78 	mr      r28,r5                                 
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
ffc0fc48:	83 64 00 00 	lwz     r27,0(r4)                              
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
ffc0fc4c:	48 00 58 5d 	bl      ffc154a8 <strlen>                      
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
ffc0fc50:	3b c0 00 00 	li      r30,0                                  
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
ffc0fc54:	7c 7a 1b 78 	mr      r26,r3                                 
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
ffc0fc58:	3b 21 00 20 	addi    r25,r1,32                              
ffc0fc5c:	3a e1 00 08 	addi    r23,r1,8                               
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0fc60:	3f 00 00 00 	lis     r24,0                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
ffc0fc64:	7f 44 d3 78 	mr      r4,r26                                 
ffc0fc68:	7c 7d f2 14 	add     r3,r29,r30                             
ffc0fc6c:	7f 25 cb 78 	mr      r5,r25                                 
ffc0fc70:	7e e6 bb 78 	mr      r6,r23                                 
ffc0fc74:	48 00 03 69 	bl      ffc0ffdc <IMFS_get_token>              
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
ffc0fc78:	80 1f 00 00 	lwz     r0,0(r31)                              
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
ffc0fc7c:	82 a1 00 08 	lwz     r21,8(r1)                              
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
ffc0fc80:	7c 76 1b 78 	mr      r22,r3                                 
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
ffc0fc84:	2f 80 00 00 	cmpwi   cr7,r0,0                               
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
ffc0fc88:	7f 55 d0 50 	subf    r26,r21,r26                            
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
ffc0fc8c:	41 9e 01 90 	beq-    cr7,ffc0fe1c <IMFS_evaluate_for_make+0x1f0><== NEVER TAKEN
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
ffc0fc90:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fc94:	41 9e 00 24 	beq-    cr7,ffc0fcb8 <IMFS_evaluate_for_make+0x8c>
      if ( node->type == IMFS_DIRECTORY )                             
ffc0fc98:	80 1b 00 4c 	lwz     r0,76(r27)                             
ffc0fc9c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0fca0:	40 be 00 18 	bne+    cr7,ffc0fcb8 <IMFS_evaluate_for_make+0x8c>
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
ffc0fca4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fca8:	38 80 00 01 	li      r4,1                                   
ffc0fcac:	4b ff fb 0d 	bl      ffc0f7b8 <IMFS_evaluate_permission>    
ffc0fcb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fcb4:	41 9e 01 bc 	beq-    cr7,ffc0fe70 <IMFS_evaluate_for_make+0x244>
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
ffc0fcb8:	2f 96 00 02 	cmpwi   cr7,r22,2                              
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
ffc0fcbc:	83 7f 00 00 	lwz     r27,0(r31)                             
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
ffc0fcc0:	7f de aa 14 	add     r30,r30,r21                            
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
ffc0fcc4:	41 9e 00 2c 	beq-    cr7,ffc0fcf0 <IMFS_evaluate_for_make+0xc4>
ffc0fcc8:	2b 96 00 02 	cmplwi  cr7,r22,2                              
ffc0fccc:	41 9d 00 10 	bgt-    cr7,ffc0fcdc <IMFS_evaluate_for_make+0xb0>
ffc0fcd0:	2f 96 00 00 	cmpwi   cr7,r22,0                              
ffc0fcd4:	41 9e 01 08 	beq-    cr7,ffc0fddc <IMFS_evaluate_for_make+0x1b0>
ffc0fcd8:	4b ff ff 8c 	b       ffc0fc64 <IMFS_evaluate_for_make+0x38> 
ffc0fcdc:	2f 96 00 03 	cmpwi   cr7,r22,3                              
ffc0fce0:	41 9e 00 50 	beq-    cr7,ffc0fd30 <IMFS_evaluate_for_make+0x104>
ffc0fce4:	2f 96 00 04 	cmpwi   cr7,r22,4                              
ffc0fce8:	40 9e ff 7c 	bne+    cr7,ffc0fc64 <IMFS_evaluate_for_make+0x38><== NEVER TAKEN
ffc0fcec:	48 00 00 fc 	b       ffc0fde8 <IMFS_evaluate_for_make+0x1bc>
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0fcf0:	81 38 26 f4 	lwz     r9,9972(r24)                           
ffc0fcf4:	80 09 00 18 	lwz     r0,24(r9)                              
ffc0fcf8:	7f 9b 00 00 	cmpw    cr7,r27,r0                             
ffc0fcfc:	41 be ff 68 	beq-    cr7,ffc0fc64 <IMFS_evaluate_for_make+0x38>
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
ffc0fd00:	80 9f 00 10 	lwz     r4,16(r31)                             
ffc0fd04:	80 04 00 1c 	lwz     r0,28(r4)                              
ffc0fd08:	7f 9b 00 00 	cmpw    cr7,r27,r0                             
ffc0fd0c:	40 be 00 0c 	bne+    cr7,ffc0fd18 <IMFS_evaluate_for_make+0xec>
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
ffc0fd10:	38 84 00 08 	addi    r4,r4,8                                
ffc0fd14:	48 00 00 70 	b       ffc0fd84 <IMFS_evaluate_for_make+0x158>
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
ffc0fd18:	83 7b 00 08 	lwz     r27,8(r27)                             
ffc0fd1c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0fd20:	40 be 00 b4 	bne+    cr7,ffc0fdd4 <IMFS_evaluate_for_make+0x1a8>
            rtems_set_errno_and_return_minus_one( ENOENT );           
ffc0fd24:	48 00 45 e5 	bl      ffc14308 <__errno>                     
ffc0fd28:	92 c3 00 00 	stw     r22,0(r3)                              
ffc0fd2c:	48 00 01 50 	b       ffc0fe7c <IMFS_evaluate_for_make+0x250>
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
ffc0fd30:	80 1b 00 4c 	lwz     r0,76(r27)                             
ffc0fd34:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc0fd38:	41 9e 00 0c 	beq-    cr7,ffc0fd44 <IMFS_evaluate_for_make+0x118>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
ffc0fd3c:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc0fd40:	40 be 00 1c 	bne+    cr7,ffc0fd5c <IMFS_evaluate_for_make+0x130>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
ffc0fd44:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fd48:	38 80 00 00 	li      r4,0                                   
ffc0fd4c:	4b ff fe 25 	bl      ffc0fb70 <IMFS_evaluate_link>          
                                                                      
          if ( result == -1 )                                         
ffc0fd50:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
ffc0fd54:	7c 7b 1b 78 	mr      r27,r3                                 
                                                                      
          if ( result == -1 )                                         
ffc0fd58:	41 9e 01 28 	beq-    cr7,ffc0fe80 <IMFS_evaluate_for_make+0x254><== NEVER TAKEN
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
ffc0fd5c:	80 7f 00 00 	lwz     r3,0(r31)                              
        if ( !node )                                                  
ffc0fd60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fd64:	41 9e 00 ec 	beq-    cr7,ffc0fe50 <IMFS_evaluate_for_make+0x224><== NEVER TAKEN
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
ffc0fd68:	80 03 00 4c 	lwz     r0,76(r3)                              
ffc0fd6c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0fd70:	40 9e 00 e0 	bne-    cr7,ffc0fe50 <IMFS_evaluate_for_make+0x224>
	/*                                                                   
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
ffc0fd74:	80 83 00 5c 	lwz     r4,92(r3)                              
ffc0fd78:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0fd7c:	41 be 00 48 	beq+    cr7,ffc0fdc4 <IMFS_evaluate_for_make+0x198>
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
ffc0fd80:	38 84 00 1c 	addi    r4,r4,28                               
ffc0fd84:	39 61 00 0c 	addi    r11,r1,12                              
          *pathloc = newloc;                                          
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
ffc0fd88:	80 01 00 08 	lwz     r0,8(r1)                               
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
ffc0fd8c:	7c a4 a4 aa 	lswi    r5,r4,20                               
ffc0fd90:	7c ab a5 aa 	stswi   r5,r11,20                              
          *pathloc = newloc;                                          
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
ffc0fd94:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fd98:	7f c0 f0 50 	subf    r30,r0,r30                             
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
          *pathloc = newloc;                                          
ffc0fd9c:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc0fda0:	7c bf a5 aa 	stswi   r5,r31,20                              
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
ffc0fda4:	7c 7d f2 14 	add     r3,r29,r30                             
ffc0fda8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0fdac:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0fdb0:	80 09 00 04 	lwz     r0,4(r9)                               
ffc0fdb4:	7c 09 03 a6 	mtctr   r0                                     
ffc0fdb8:	4e 80 04 21 	bctrl                                          
ffc0fdbc:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0fdc0:	48 00 00 c0 	b       ffc0fe80 <IMFS_evaluate_for_make+0x254>
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
ffc0fdc4:	7f 24 cb 78 	mr      r4,r25                                 
ffc0fdc8:	48 00 01 81 	bl      ffc0ff48 <IMFS_find_match_in_dir>      
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
ffc0fdcc:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0fdd0:	41 82 00 24 	beq-    ffc0fdf4 <IMFS_evaluate_for_make+0x1c8>
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
ffc0fdd4:	93 7f 00 00 	stw     r27,0(r31)                             
ffc0fdd8:	4b ff fe 8c 	b       ffc0fc64 <IMFS_evaluate_for_make+0x38> 
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
ffc0fddc:	48 00 45 2d 	bl      ffc14308 <__errno>                     
ffc0fde0:	38 00 00 11 	li      r0,17                                  
ffc0fde4:	48 00 00 94 	b       ffc0fe78 <IMFS_evaluate_for_make+0x24c>
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
ffc0fde8:	48 00 45 21 	bl      ffc14308 <__errno>                     
ffc0fdec:	38 00 00 5b 	li      r0,91                                  
ffc0fdf0:	48 00 00 88 	b       ffc0fe78 <IMFS_evaluate_for_make+0x24c>
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
ffc0fdf4:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0fdf8:	7c 00 f0 50 	subf    r0,r0,r30                              
ffc0fdfc:	7c 1d 02 14 	add     r0,r29,r0                              
 *  pathloc is returned with a pointer to the parent of the new node. 
 *  name is returned with a pointer to the first character in the     
 *  new node name.  The parent node is verified to be a directory.    
 */                                                                   
                                                                      
int IMFS_evaluate_for_make(                                           
ffc0fe00:	3b de ff ff 	addi    r30,r30,-1                             
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
ffc0fe04:	90 1c 00 00 	stw     r0,0(r28)                              
 *  pathloc is returned with a pointer to the parent of the new node. 
 *  name is returned with a pointer to the first character in the     
 *  new node name.  The parent node is verified to be a directory.    
 */                                                                   
                                                                      
int IMFS_evaluate_for_make(                                           
ffc0fe08:	7f bd f2 14 	add     r29,r29,r30                            
  /*                                                                  
   * We have evaluated the path as far as we can.                     
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
ffc0fe0c:	48 00 00 1c 	b       ffc0fe28 <IMFS_evaluate_for_make+0x1fc>
    if ( !IMFS_is_separator( path[ i ] ) )                            
ffc0fe10:	4b ff 64 dd 	bl      ffc062ec <rtems_filesystem_is_separator>
ffc0fe14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fe18:	40 be 00 10 	bne+    cr7,ffc0fe28 <IMFS_evaluate_for_make+0x1fc>
      rtems_set_errno_and_return_minus_one( ENOENT );                 
ffc0fe1c:	48 00 44 ed 	bl      ffc14308 <__errno>                     
ffc0fe20:	38 00 00 02 	li      r0,2                                   
ffc0fe24:	48 00 00 54 	b       ffc0fe78 <IMFS_evaluate_for_make+0x24c>
  /*                                                                  
   * We have evaluated the path as far as we can.                     
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
ffc0fe28:	8c 7d 00 01 	lbzu    r3,1(r29)                              
ffc0fe2c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fe30:	40 9e ff e0 	bne+    cr7,ffc0fe10 <IMFS_evaluate_for_make+0x1e4>
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
ffc0fe34:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fe38:	4b ff f9 11 	bl      ffc0f748 <IMFS_Set_handlers>           
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
ffc0fe3c:	81 3f 00 00 	lwz     r9,0(r31)                              
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
ffc0fe40:	7c 7b 1b 78 	mr      r27,r3                                 
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
ffc0fe44:	80 09 00 4c 	lwz     r0,76(r9)                              
ffc0fe48:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0fe4c:	41 be 00 10 	beq+    cr7,ffc0fe5c <IMFS_evaluate_for_make+0x230><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc0fe50:	48 00 44 b9 	bl      ffc14308 <__errno>                     
ffc0fe54:	38 00 00 14 	li      r0,20                                  
ffc0fe58:	48 00 00 20 	b       ffc0fe78 <IMFS_evaluate_for_make+0x24c>
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
ffc0fe5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fe60:	38 80 00 03 	li      r4,3                                   
ffc0fe64:	4b ff f9 55 	bl      ffc0f7b8 <IMFS_evaluate_permission>    
ffc0fe68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fe6c:	40 be 00 14 	bne+    cr7,ffc0fe80 <IMFS_evaluate_for_make+0x254>
    rtems_set_errno_and_return_minus_one( EACCES );                   
ffc0fe70:	48 00 44 99 	bl      ffc14308 <__errno>                     
ffc0fe74:	38 00 00 0d 	li      r0,13                                  
ffc0fe78:	90 03 00 00 	stw     r0,0(r3)                               
ffc0fe7c:	3b 60 ff ff 	li      r27,-1                                 
                                                                      
  return result;                                                      
}                                                                     
ffc0fe80:	39 61 00 78 	addi    r11,r1,120                             
ffc0fe84:	7f 63 db 78 	mr      r3,r27                                 
ffc0fe88:	48 00 92 30 	b       ffc190b8 <_restgpr_21_x>               
                                                                      

ffc0f7b8 <IMFS_evaluate_permission>: */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
ffc0f7b8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f7bc:	7c 08 02 a6 	mflr    r0                                     
ffc0f7c0:	90 01 00 1c 	stw     r0,28(r1)                              
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
ffc0f7c4:	54 80 00 39 	rlwinm. r0,r4,0,0,28                           
 */                                                                   
int IMFS_evaluate_permission(                                         
  rtems_filesystem_location_info_t  *node,                            
  int                                flags                            
)                                                                     
{                                                                     
ffc0f7c8:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0f7cc:	7c 9e 23 78 	mr      r30,r4                                 
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
ffc0f7d0:	41 a2 00 18 	beq+    ffc0f7e8 <IMFS_evaluate_permission+0x30><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0f7d4:	48 00 4b 35 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc0f7d8:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0f7dc:	90 03 00 00 	stw     r0,0(r3)                               <== NOT EXECUTED
ffc0f7e0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0f7e4:	48 00 00 4c 	b       ffc0f830 <IMFS_evaluate_permission+0x78><== NOT EXECUTED
                                                                      
  jnode = node->node_access;                                          
ffc0f7e8:	83 e3 00 00 	lwz     r31,0(r3)                              
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
ffc0f7ec:	48 00 0c 5d 	bl      ffc10448 <geteuid>                     
ffc0f7f0:	7c 7d 1b 78 	mr      r29,r3                                 
  st_gid = getegid();                                                 
ffc0f7f4:	48 00 0c 45 	bl      ffc10438 <getegid>                     
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
ffc0f7f8:	a0 1f 00 3c 	lhz     r0,60(r31)                             
ffc0f7fc:	7f 80 e8 00 	cmpw    cr7,r0,r29                             
ffc0f800:	40 be 00 0c 	bne+    cr7,ffc0f80c <IMFS_evaluate_permission+0x54>
    flags_to_test <<= 6;                                              
ffc0f804:	57 de 30 32 	rlwinm  r30,r30,6,0,25                         
ffc0f808:	48 00 00 14 	b       ffc0f81c <IMFS_evaluate_permission+0x64>
  else if ( st_gid == jnode->st_gid )                                 
ffc0f80c:	a0 1f 00 3e 	lhz     r0,62(r31)                             
ffc0f810:	7f 80 18 00 	cmpw    cr7,r0,r3                              
ffc0f814:	40 be 00 08 	bne+    cr7,ffc0f81c <IMFS_evaluate_permission+0x64><== NEVER TAKEN
    flags_to_test <<= 3;                                              
ffc0f818:	57 de 18 38 	rlwinm  r30,r30,3,0,28                         
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
ffc0f81c:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0f820:	7f c3 18 38 	and     r3,r30,r3                              
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0f824:	7c 63 f2 78 	xor     r3,r3,r30                              
ffc0f828:	7c 63 00 34 	cntlzw  r3,r3                                  
ffc0f82c:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
ffc0f830:	39 61 00 18 	addi    r11,r1,24                              
ffc0f834:	48 00 98 a4 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc139d8 <IMFS_fchmod>: int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) {
ffc139d8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc139dc:	7c 08 02 a6 	mflr    r0                                     
ffc139e0:	90 01 00 24 	stw     r0,36(r1)                              
ffc139e4:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc139e8:	7c 9e 23 78 	mr      r30,r4                                 
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = loc->node_access;                                           
ffc139ec:	83 e3 00 00 	lwz     r31,0(r3)                              
                                                                      
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
ffc139f0:	4b ff ca 59 	bl      ffc10448 <geteuid>                     
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
ffc139f4:	a0 1f 00 3c 	lhz     r0,60(r31)                             
ffc139f8:	7f 80 18 00 	cmpw    cr7,r0,r3                              
ffc139fc:	41 9e 00 20 	beq-    cr7,ffc13a1c <IMFS_fchmod+0x44>        
ffc13a00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13a04:	41 be 00 18 	beq+    cr7,ffc13a1c <IMFS_fchmod+0x44>        <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc13a08:	48 00 09 01 	bl      ffc14308 <__errno>                     
ffc13a0c:	38 00 00 01 	li      r0,1                                   
ffc13a10:	90 03 00 00 	stw     r0,0(r3)                               
ffc13a14:	38 60 ff ff 	li      r3,-1                                  
ffc13a18:	48 00 00 30 	b       ffc13a48 <IMFS_fchmod+0x70>            
                                                                      
  /*                                                                  
   * 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);
ffc13a1c:	80 1f 00 30 	lwz     r0,48(r31)                             
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc13a20:	57 de 05 3e 	clrlwi  r30,r30,20                             
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc13a24:	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);
ffc13a28:	54 00 00 26 	rlwinm  r0,r0,0,0,19                           
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc13a2c:	7f de 03 78 	or      r30,r30,r0                             
ffc13a30:	93 df 00 30 	stw     r30,48(r31)                            
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc13a34:	38 80 00 00 	li      r4,0                                   
ffc13a38:	4b ff 18 c9 	bl      ffc05300 <gettimeofday>                
ffc13a3c:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
  return 0;                                                           
ffc13a40:	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 );                                         
ffc13a44:	90 1f 00 48 	stw     r0,72(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc13a48:	39 61 00 20 	addi    r11,r1,32                              
ffc13a4c:	48 00 56 90 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc04e40 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
ffc04e40:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04e44:	7c 08 02 a6 	mflr    r0                                     
ffc04e48:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04e4c:	7c 68 1b 78 	mr      r8,r3                                  
ffc04e50:	90 01 00 14 	stw     r0,20(r1)                              
ffc04e54:	48 01 b9 11 	bl      ffc20764 <_savegpr_31>                 
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
ffc04e58:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc04e5c:	80 69 00 50 	lwz     r3,80(r9)                              
ffc04e60:	48 00 a3 19 	bl      ffc0f178 <pipe_lseek>                  
ffc04e64:	7c 69 fe 70 	srawi   r9,r3,31                               
  IMFS_FIFO_RETURN(err);                                              
ffc04e68:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  rtems_libio_t *iop,                                                 
  rtems_off64_t  offset,                                              
  int            whence                                               
)                                                                     
{                                                                     
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
ffc04e6c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04e70:	7c 6a 1b 78 	mr      r10,r3                                 
  IMFS_FIFO_RETURN(err);                                              
ffc04e74:	40 bc 00 18 	bge+    cr7,ffc04e8c <IMFS_fifo_lseek+0x4c>    <== NEVER TAKEN
ffc04e78:	48 00 d9 31 	bl      ffc127a8 <__errno>                     
ffc04e7c:	7f ff 00 d0 	neg     r31,r31                                
ffc04e80:	93 e3 00 00 	stw     r31,0(r3)                              
ffc04e84:	39 20 ff ff 	li      r9,-1                                  
ffc04e88:	39 40 ff ff 	li      r10,-1                                 
}                                                                     
ffc04e8c:	39 61 00 10 	addi    r11,r1,16                              
ffc04e90:	7d 23 4b 78 	mr      r3,r9                                  
ffc04e94:	7d 44 53 78 	mr      r4,r10                                 
ffc04e98:	48 01 b9 18 	b       ffc207b0 <_restgpr_31_x>               
                                                                      

ffc04f28 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
ffc04f28:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04f2c:	7c 08 02 a6 	mflr    r0                                     
ffc04f30:	7c 66 1b 78 	mr      r6,r3                                  
ffc04f34:	90 01 00 24 	stw     r0,36(r1)                              
ffc04f38:	bf c1 00 18 	stmw    r30,24(r1)                             
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
ffc04f3c:	83 e3 00 1c 	lwz     r31,28(r3)                             
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
ffc04f40:	80 7f 00 50 	lwz     r3,80(r31)                             
ffc04f44:	48 00 9f d9 	bl      ffc0ef1c <pipe_write>                  
  if (err > 0) {                                                      
ffc04f48:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04f4c:	40 81 00 20 	ble-    ffc04f6c <IMFS_fifo_write+0x44>        
    IMFS_mtime_ctime_update(jnode);                                   
ffc04f50:	38 61 00 08 	addi    r3,r1,8                                
ffc04f54:	38 80 00 00 	li      r4,0                                   
ffc04f58:	48 00 11 e1 	bl      ffc06138 <gettimeofday>                
ffc04f5c:	80 01 00 08 	lwz     r0,8(r1)                               
ffc04f60:	90 1f 00 44 	stw     r0,68(r31)                             
ffc04f64:	90 1f 00 48 	stw     r0,72(r31)                             
ffc04f68:	48 00 00 18 	b       ffc04f80 <IMFS_fifo_write+0x58>        
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
ffc04f6c:	41 a2 00 14 	beq+    ffc04f80 <IMFS_fifo_write+0x58>        <== NEVER TAKEN
ffc04f70:	7f de 00 d0 	neg     r30,r30                                
ffc04f74:	48 00 d8 35 	bl      ffc127a8 <__errno>                     
ffc04f78:	93 c3 00 00 	stw     r30,0(r3)                              
ffc04f7c:	3b c0 ff ff 	li      r30,-1                                 
}                                                                     
ffc04f80:	39 61 00 20 	addi    r11,r1,32                              
ffc04f84:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f88:	48 01 b8 24 	b       ffc207ac <_restgpr_30_x>               
                                                                      

ffc0ff48 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
ffc0ff48:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ff4c:	7c 08 02 a6 	mflr    r0                                     
ffc0ff50:	bf a1 00 0c 	stmw    r29,12(r1)                             
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
ffc0ff54:	3f c0 ff c2 	lis     r30,-62                                
ffc0ff58:	3b de ac 10 	addi    r30,r30,-21488                         
                                                                      
IMFS_jnode_t *IMFS_find_match_in_dir(                                 
  IMFS_jnode_t *directory,                                            
  char         *name                                                  
)                                                                     
{                                                                     
ffc0ff5c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ff60:	90 01 00 1c 	stw     r0,28(r1)                              
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
ffc0ff64:	7c 83 23 78 	mr      r3,r4                                  
                                                                      
IMFS_jnode_t *IMFS_find_match_in_dir(                                 
  IMFS_jnode_t *directory,                                            
  char         *name                                                  
)                                                                     
{                                                                     
ffc0ff68:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
ffc0ff6c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ff70:	48 00 53 75 	bl      ffc152e4 <strcmp>                      
ffc0ff74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ff78:	41 9e 00 58 	beq-    cr7,ffc0ffd0 <IMFS_find_match_in_dir+0x88><== NEVER TAKEN
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
ffc0ff7c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ff80:	38 9e 00 04 	addi    r4,r30,4                               
ffc0ff84:	48 00 53 61 	bl      ffc152e4 <strcmp>                      
ffc0ff88:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ff8c:	40 9e 00 0c 	bne-    cr7,ffc0ff98 <IMFS_find_match_in_dir+0x50><== ALWAYS TAKEN
    return directory->Parent;                                         
ffc0ff90:	83 ff 00 08 	lwz     r31,8(r31)                             <== NOT EXECUTED
ffc0ff94:	48 00 00 3c 	b       ffc0ffd0 <IMFS_find_match_in_dir+0x88> <== NOT EXECUTED
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
ffc0ff98:	83 df 00 50 	lwz     r30,80(r31)                            
ffc0ff9c:	3b ff 00 54 	addi    r31,r31,84                             
ffc0ffa0:	48 00 00 1c 	b       ffc0ffbc <IMFS_find_match_in_dir+0x74> 
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
ffc0ffa4:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ffa8:	38 9e 00 0c 	addi    r4,r30,12                              
ffc0ffac:	48 00 53 39 	bl      ffc152e4 <strcmp>                      
ffc0ffb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ffb4:	41 9e 00 18 	beq-    cr7,ffc0ffcc <IMFS_find_match_in_dir+0x84>
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
ffc0ffb8:	83 de 00 00 	lwz     r30,0(r30)                             
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
ffc0ffbc:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc0ffc0:	40 9e ff e4 	bne+    cr7,ffc0ffa4 <IMFS_find_match_in_dir+0x5c>
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
ffc0ffc4:	3b e0 00 00 	li      r31,0                                  
ffc0ffc8:	48 00 00 08 	b       ffc0ffd0 <IMFS_find_match_in_dir+0x88> 
                                                                      
  for ( the_node = the_chain->first;                                  
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
ffc0ffcc:	7f df f3 78 	mr      r31,r30                                
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc0ffd0:	39 61 00 18 	addi    r11,r1,24                              
ffc0ffd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ffd8:	48 00 91 00 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0fe8c <IMFS_fsunmount>: ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) {
ffc0fe8c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0fe90:	7c 08 02 a6 	mflr    r0                                     
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
ffc0fe94:	7c 6b 1b 78 	mr      r11,r3                                 
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
int IMFS_fsunmount(                                                   
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
ffc0fe98:	90 01 00 3c 	stw     r0,60(r1)                              
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
   loc = temp_mt_entry->mt_fs_root;                                   
ffc0fe9c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
ffc0fea0:	38 00 00 00 	li      r0,0                                   
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
int IMFS_fsunmount(                                                   
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
ffc0fea4:	bf a1 00 2c 	stmw    r29,44(r1)                             
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
ffc0fea8:	7c 9e 23 78 	mr      r30,r4                                 
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
ffc0feac:	87 eb 00 1c 	lwzu    r31,28(r11)                            
   loc = temp_mt_entry->mt_fs_root;                                   
ffc0feb0:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc0feb4:	7c a4 a5 aa 	stswi   r5,r4,20                               
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
ffc0feb8:	90 03 00 1c 	stw     r0,28(r3)                              
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
ffc0febc:	7f c3 f3 78 	mr      r3,r30                                 
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
ffc0fec0:	83 bf 00 08 	lwz     r29,8(r31)                             
     loc.node_access = (void *)jnode;                                 
ffc0fec4:	93 e1 00 08 	stw     r31,8(r1)                              
     IMFS_Set_handlers( &loc );                                       
ffc0fec8:	4b ff f8 81 	bl      ffc0f748 <IMFS_Set_handlers>           
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
ffc0fecc:	80 1f 00 4c 	lwz     r0,76(r31)                             
ffc0fed0:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0fed4:	40 9e 00 14 	bne-    cr7,ffc0fee8 <IMFS_fsunmount+0x5c>     
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
ffc0fed8:	81 3f 00 50 	lwz     r9,80(r31)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0fedc:	38 1f 00 54 	addi    r0,r31,84                              
ffc0fee0:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc0fee4:	40 be 00 1c 	bne+    cr7,ffc0ff00 <IMFS_fsunmount+0x74>     
        result = IMFS_unlink( NULL, &loc );                           
ffc0fee8:	38 60 00 00 	li      r3,0                                   
ffc0feec:	7f c4 f3 78 	mr      r4,r30                                 
ffc0fef0:	4b ff 4d 99 	bl      ffc04c88 <IMFS_unlink>                 
        if (result != 0)                                              
ffc0fef4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fef8:	40 9e 00 3c 	bne-    cr7,ffc0ff34 <IMFS_fsunmount+0xa8>     <== NEVER TAKEN
          return -1;                                                  
        jnode = next;                                                 
ffc0fefc:	7f bf eb 78 	mr      r31,r29                                
     }                                                                
     if ( jnode != NULL ) {                                           
ffc0ff00:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ff04:	41 9e 00 38 	beq-    cr7,ffc0ff3c <IMFS_fsunmount+0xb0>     
       if ( jnode->type == IMFS_DIRECTORY ) {                         
ffc0ff08:	80 1f 00 4c 	lwz     r0,76(r31)                             
ffc0ff0c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0ff10:	40 9e ff ac 	bne+    cr7,ffc0febc <IMFS_fsunmount+0x30>     <== NEVER TAKEN
         if ( jnode_has_children( jnode ) )                           
ffc0ff14:	80 1f 00 50 	lwz     r0,80(r31)                             
ffc0ff18:	39 3f 00 54 	addi    r9,r31,84                              
ffc0ff1c:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc0ff20:	41 be ff 9c 	beq-    cr7,ffc0febc <IMFS_fsunmount+0x30>     
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
ffc0ff24:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ff28:	7c 1f 03 78 	mr      r31,r0                                 
ffc0ff2c:	40 9e ff 90 	bne+    cr7,ffc0febc <IMFS_fsunmount+0x30>     <== ALWAYS TAKEN
ffc0ff30:	48 00 00 0c 	b       ffc0ff3c <IMFS_fsunmount+0xb0>         <== NOT EXECUTED
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
ffc0ff34:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0ff38:	48 00 00 08 	b       ffc0ff40 <IMFS_fsunmount+0xb4>         <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
ffc0ff3c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0ff40:	39 61 00 38 	addi    r11,r1,56                              
ffc0ff44:	48 00 91 94 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0ffdc <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
ffc0ffdc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ffe0:	7c 08 02 a6 	mflr    r0                                     
ffc0ffe4:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc0ffe8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ffec:	7c 9d 23 78 	mr      r29,r4                                 
ffc0fff0:	90 01 00 24 	stw     r0,36(r1)                              
ffc0fff4:	7c be 2b 78 	mr      r30,r5                                 
ffc0fff8:	7c da 33 78 	mr      r26,r6                                 
  register char c;                                                    
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
ffc0fffc:	8b 63 00 00 	lbz     r27,0(r3)                              
  int               pathlen,                                          
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
  register int i = 0;                                                 
ffc10000:	3b 80 00 00 	li      r28,0                                  
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
ffc10004:	48 00 00 18 	b       ffc1001c <IMFS_get_token+0x40>         
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
ffc10008:	2f 9c 00 20 	cmpwi   cr7,r28,32                             
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
ffc1000c:	7f 7e e1 ae 	stbx    r27,r30,r28                            
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
ffc10010:	41 9e 00 b4 	beq-    cr7,ffc100c4 <IMFS_get_token+0xe8>     
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
ffc10014:	3b 9c 00 01 	addi    r28,r28,1                              
ffc10018:	7f 7f e0 ae 	lbzx    r27,r31,r28                            
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
ffc1001c:	7f 63 db 78 	mr      r3,r27                                 
ffc10020:	4b ff 62 cd 	bl      ffc062ec <rtems_filesystem_is_separator>
ffc10024:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10028:	40 9e 00 0c 	bne-    cr7,ffc10034 <IMFS_get_token+0x58>     
ffc1002c:	7f 9c e8 00 	cmpw    cr7,r28,r29                            
ffc10030:	41 9c ff d8 	blt+    cr7,ffc10008 <IMFS_get_token+0x2c>     
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
ffc10034:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc10038:	40 9e 00 24 	bne-    cr7,ffc1005c <IMFS_get_token+0x80>     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
ffc1003c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
ffc10040:	9b 7e 00 00 	stb     r27,0(r30)                             
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
ffc10044:	3b e0 00 00 	li      r31,0                                  
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
ffc10048:	41 9e 00 3c 	beq-    cr7,ffc10084 <IMFS_get_token+0xa8>     
ffc1004c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
ffc10050:	7f 9f e3 78 	mr      r31,r28                                
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
ffc10054:	41 9e 00 30 	beq-    cr7,ffc10084 <IMFS_get_token+0xa8>     
ffc10058:	48 00 00 24 	b       ffc1007c <IMFS_get_token+0xa0>         
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
ffc1005c:	7d 3e e2 14 	add     r9,r30,r28                             
ffc10060:	88 09 ff ff 	lbz     r0,-1(r9)                              
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
  register int i = 0;                                                 
  IMFS_token_types  type = IMFS_NAME;                                 
ffc10064:	3b e0 00 03 	li      r31,3                                  
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
ffc10068:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc1006c:	41 9e 00 18 	beq-    cr7,ffc10084 <IMFS_get_token+0xa8>     <== NEVER TAKEN
    token[i] = '\0';                                                  
ffc10070:	38 00 00 00 	li      r0,0                                   
ffc10074:	7c 1e e1 ae 	stbx    r0,r30,r28                             
ffc10078:	48 00 00 0c 	b       ffc10084 <IMFS_get_token+0xa8>         
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
ffc1007c:	3b e0 00 01 	li      r31,1                                  
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
ffc10080:	3b 80 00 01 	li      r28,1                                  
  /*                                                                  
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
ffc10084:	2f 9f 00 03 	cmpwi   cr7,r31,3                              
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
ffc10088:	93 9a 00 00 	stw     r28,0(r26)                             
  /*                                                                  
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
ffc1008c:	40 be 00 4c 	bne+    cr7,ffc100d8 <IMFS_get_token+0xfc>     
    if ( strcmp( token, "..") == 0 )                                  
ffc10090:	3c 80 ff c2 	lis     r4,-62                                 
ffc10094:	7f c3 f3 78 	mr      r3,r30                                 
ffc10098:	38 84 ac 17 	addi    r4,r4,-21481                           
ffc1009c:	48 00 52 49 	bl      ffc152e4 <strcmp>                      
ffc100a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc100a4:	41 9e 00 28 	beq-    cr7,ffc100cc <IMFS_get_token+0xf0>     
      type = IMFS_UP_DIR;                                             
    else if ( strcmp( token, "." ) == 0 )                             
ffc100a8:	3c 80 ff c2 	lis     r4,-62                                 
ffc100ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc100b0:	38 84 ac 18 	addi    r4,r4,-21480                           
ffc100b4:	48 00 52 31 	bl      ffc152e4 <strcmp>                      
ffc100b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc100bc:	41 9e 00 18 	beq-    cr7,ffc100d4 <IMFS_get_token+0xf8>     
ffc100c0:	48 00 00 18 	b       ffc100d8 <IMFS_get_token+0xfc>         
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
       return IMFS_INVALID_TOKEN;                                     
ffc100c4:	3b e0 00 04 	li      r31,4                                  
ffc100c8:	48 00 00 10 	b       ffc100d8 <IMFS_get_token+0xfc>         
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
      type = IMFS_UP_DIR;                                             
ffc100cc:	3b e0 00 02 	li      r31,2                                  
ffc100d0:	48 00 00 08 	b       ffc100d8 <IMFS_get_token+0xfc>         
    else if ( strcmp( token, "." ) == 0 )                             
      type = IMFS_CURRENT_DIR;                                        
ffc100d4:	3b e0 00 01 	li      r31,1                                  
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc100d8:	39 61 00 20 	addi    r11,r1,32                              
ffc100dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc100e0:	48 00 8f ec 	b       ffc190cc <_restgpr_26_x>               
                                                                      

ffc12f3c <IMFS_memfile_extend>: */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
ffc12f3c:	94 21 ff d8 	stwu    r1,-40(r1)                             
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc12f40:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc12f44:	7c 08 02 a6 	mflr    r0                                     
ffc12f48:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc12f4c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc12f50:	7c bc 2b 78 	mr      r28,r5                                 
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc12f54:	83 c9 27 68 	lwz     r30,10088(r9)                          
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc12f58:	7c dd 33 78 	mr      r29,r6                                 
ffc12f5c:	90 01 00 2c 	stw     r0,44(r1)                              
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc12f60:	57 c9 f0 be 	rlwinm  r9,r30,30,2,31                         
ffc12f64:	39 69 00 01 	addi    r11,r9,1                               
ffc12f68:	7d 6b 49 d6 	mullw   r11,r11,r9                             
ffc12f6c:	38 0b 00 01 	addi    r0,r11,1                               
ffc12f70:	7d 20 49 d6 	mullw   r9,r0,r9                               
ffc12f74:	38 00 00 00 	li      r0,0                                   
ffc12f78:	7f 80 28 00 	cmpw    cr7,r0,r5                              
ffc12f7c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc12f80:	7d 29 f1 d6 	mullw   r9,r9,r30                              
ffc12f84:	41 bd 00 1c 	bgt+    cr7,ffc12fa0 <IMFS_memfile_extend+0x64><== NEVER TAKEN
ffc12f88:	40 9e 00 0c 	bne-    cr7,ffc12f94 <IMFS_memfile_extend+0x58><== NEVER TAKEN
ffc12f8c:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc12f90:	41 bd 00 10 	bgt+    cr7,ffc12fa0 <IMFS_memfile_extend+0x64>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc12f94:	48 00 13 75 	bl      ffc14308 <__errno>                     
ffc12f98:	38 00 00 16 	li      r0,22                                  
ffc12f9c:	48 00 00 94 	b       ffc13030 <IMFS_memfile_extend+0xf4>    
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
ffc12fa0:	83 3f 00 50 	lwz     r25,80(r31)                            
ffc12fa4:	83 5f 00 54 	lwz     r26,84(r31)                            
ffc12fa8:	7f 9c c8 00 	cmpw    cr7,r28,r25                            
ffc12fac:	41 bd 00 10 	bgt+    cr7,ffc12fbc <IMFS_memfile_extend+0x80><== NEVER TAKEN
ffc12fb0:	40 9e 00 a0 	bne-    cr7,ffc13050 <IMFS_memfile_extend+0x114><== NEVER TAKEN
ffc12fb4:	7f 9d d0 40 	cmplw   cr7,r29,r26                            
ffc12fb8:	40 9d 00 98 	ble-    cr7,ffc13050 <IMFS_memfile_extend+0x114>
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc12fbc:	7f db fe 70 	srawi   r27,r30,31                             
ffc12fc0:	7f 65 db 78 	mr      r5,r27                                 
ffc12fc4:	7f c6 f3 78 	mr      r6,r30                                 
ffc12fc8:	7f 83 e3 78 	mr      r3,r28                                 
ffc12fcc:	7f a4 eb 78 	mr      r4,r29                                 
ffc12fd0:	48 00 50 fd 	bl      ffc180cc <__divdi3>                    
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc12fd4:	7f 65 db 78 	mr      r5,r27                                 
ffc12fd8:	7f c6 f3 78 	mr      r6,r30                                 
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc12fdc:	7c 98 23 78 	mr      r24,r4                                 
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc12fe0:	7f 23 cb 78 	mr      r3,r25                                 
ffc12fe4:	7f 44 d3 78 	mr      r4,r26                                 
ffc12fe8:	48 00 50 e5 	bl      ffc180cc <__divdi3>                    
ffc12fec:	7c 9b 23 78 	mr      r27,r4                                 
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
ffc12ff0:	7c 9e 23 78 	mr      r30,r4                                 
ffc12ff4:	48 00 00 4c 	b       ffc13040 <IMFS_memfile_extend+0x104>   
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
ffc12ff8:	7f e3 fb 78 	mr      r3,r31                                 
ffc12ffc:	7f c4 f3 78 	mr      r4,r30                                 
ffc13000:	4b ff fc e9 	bl      ffc12ce8 <IMFS_memfile_addblock>       
ffc13004:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13008:	41 be 00 34 	beq+    cr7,ffc1303c <IMFS_memfile_extend+0x100>
ffc1300c:	48 00 00 14 	b       ffc13020 <IMFS_memfile_extend+0xe4>    
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
ffc13010:	7f c4 f3 78 	mr      r4,r30                                 
ffc13014:	7f e3 fb 78 	mr      r3,r31                                 
ffc13018:	4b ff fe e9 	bl      ffc12f00 <IMFS_memfile_remove_block>   
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
       for ( ; block>=old_blocks ; block-- ) {                        
ffc1301c:	3b de ff ff 	addi    r30,r30,-1                             
ffc13020:	7f 9e d8 40 	cmplw   cr7,r30,r27                            
ffc13024:	40 9c ff ec 	bge+    cr7,ffc13010 <IMFS_memfile_extend+0xd4>
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc13028:	48 00 12 e1 	bl      ffc14308 <__errno>                     
ffc1302c:	38 00 00 1c 	li      r0,28                                  
ffc13030:	90 03 00 00 	stw     r0,0(r3)                               
ffc13034:	38 60 ff ff 	li      r3,-1                                  
ffc13038:	48 00 00 1c 	b       ffc13054 <IMFS_memfile_extend+0x118>   
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
ffc1303c:	3b de 00 01 	addi    r30,r30,1                              
ffc13040:	7f 9e c0 40 	cmplw   cr7,r30,r24                            
ffc13044:	40 9d ff b4 	ble+    cr7,ffc12ff8 <IMFS_memfile_extend+0xbc>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
ffc13048:	93 9f 00 50 	stw     r28,80(r31)                            
ffc1304c:	93 bf 00 54 	stw     r29,84(r31)                            
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
    return 0;                                                         
ffc13050:	38 60 00 00 	li      r3,0                                   
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
ffc13054:	39 61 00 28 	addi    r11,r1,40                              
ffc13058:	48 00 60 6c 	b       ffc190c4 <_restgpr_24_x>               
                                                                      

ffc128fc <IMFS_memfile_get_block_pointer>: my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
ffc128fc:	3d 20 00 00 	lis     r9,0                                   
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc12900:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc12904:	7c 08 02 a6 	mflr    r0                                     
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc12908:	81 29 27 68 	lwz     r9,10088(r9)                           
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc1290c:	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 ) {                                  
ffc12910:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc12914:	38 09 ff ff 	addi    r0,r9,-1                               
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc12918:	bf 61 00 0c 	stmw    r27,12(r1)                             
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc1291c:	7f 84 00 40 	cmplw   cr7,r4,r0                              
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc12920:	7c 7f 1b 78 	mr      r31,r3                                 
ffc12924:	7c 9e 23 78 	mr      r30,r4                                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc12928:	41 9d 00 44 	bgt-    cr7,ffc1296c <IMFS_memfile_get_block_pointer+0x70>
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
ffc1292c:	2f 05 00 00 	cmpwi   cr6,r5,0                               
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
ffc12930:	80 03 00 58 	lwz     r0,88(r3)                              
ffc12934:	2f 80 00 00 	cmpwi   cr7,r0,0                               
                                                                      
    if ( malloc_it ) {                                                
ffc12938:	41 9a 00 2c 	beq-    cr6,ffc12964 <IMFS_memfile_get_block_pointer+0x68>
                                                                      
      if ( !p ) {                                                     
ffc1293c:	40 be 00 18 	bne+    cr7,ffc12954 <IMFS_memfile_get_block_pointer+0x58>
        p = memfile_alloc_block();                                    
ffc12940:	4b ff ff 79 	bl      ffc128b8 <memfile_alloc_block>         
        if ( !p )                                                     
           return 0;                                                  
ffc12944:	3b a0 00 00 	li      r29,0                                  
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
ffc12948:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1294c:	41 82 01 78 	beq-    ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
           return 0;                                                  
        info->indirect = p;                                           
ffc12950:	90 7f 00 58 	stw     r3,88(r31)                             
      }                                                               
      return &info->indirect[ my_block ];                             
ffc12954:	83 bf 00 58 	lwz     r29,88(r31)                            
ffc12958:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc1295c:	7f bd f2 14 	add     r29,r29,r30                            
ffc12960:	48 00 01 64 	b       ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8>
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc12964:	40 be 01 50 	bne+    cr7,ffc12ab4 <IMFS_memfile_get_block_pointer+0x1b8><== ALWAYS TAKEN
ffc12968:	48 00 01 58 	b       ffc12ac0 <IMFS_memfile_get_block_pointer+0x1c4><== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
ffc1296c:	39 69 00 01 	addi    r11,r9,1                               
ffc12970:	7d 6b 49 d6 	mullw   r11,r11,r9                             
ffc12974:	38 0b ff ff 	addi    r0,r11,-1                              
ffc12978:	7f 84 00 40 	cmplw   cr7,r4,r0                              
ffc1297c:	41 9d 00 60 	bgt-    cr7,ffc129dc <IMFS_memfile_get_block_pointer+0xe0>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
ffc12980:	7f c9 20 50 	subf    r30,r9,r4                              
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
ffc12984:	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;                     
ffc12988:	7f 9e 4b 96 	divwu   r28,r30,r9                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc1298c:	2f 05 00 00 	cmpwi   cr6,r5,0                               
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc12990:	7d 3c 49 d6 	mullw   r9,r28,r9                              
ffc12994:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12998:	7f c9 f0 50 	subf    r30,r9,r30                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc1299c:	41 9a 00 2c 	beq-    cr6,ffc129c8 <IMFS_memfile_get_block_pointer+0xcc>
                                                                      
      if ( !p ) {                                                     
ffc129a0:	40 be 00 18 	bne+    cr7,ffc129b8 <IMFS_memfile_get_block_pointer+0xbc>
        p = memfile_alloc_block();                                    
ffc129a4:	4b ff ff 15 	bl      ffc128b8 <memfile_alloc_block>         
        if ( !p )                                                     
           return 0;                                                  
ffc129a8:	3b a0 00 00 	li      r29,0                                  
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
ffc129ac:	2c 03 00 00 	cmpwi   r3,0                                   
ffc129b0:	41 82 01 14 	beq-    ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
ffc129b4:	90 7f 00 5c 	stw     r3,92(r31)                             
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
ffc129b8:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc129bc:	7f e3 e2 14 	add     r31,r3,r28                             
ffc129c0:	7c 63 e0 2e 	lwzx    r3,r3,r28                              
ffc129c4:	48 00 00 a4 	b       ffc12a68 <IMFS_memfile_get_block_pointer+0x16c>
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc129c8:	41 be 00 f8 	beq+    cr7,ffc12ac0 <IMFS_memfile_get_block_pointer+0x1c4><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
ffc129cc:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc129d0:	7c 03 e0 2e 	lwzx    r0,r3,r28                              
    if ( !p )                                                         
      return 0;                                                       
ffc129d4:	3b a0 00 00 	li      r29,0                                  
ffc129d8:	48 00 00 d4 	b       ffc12aac <IMFS_memfile_get_block_pointer+0x1b0>
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
ffc129dc:	39 4b 00 01 	addi    r10,r11,1                              
ffc129e0:	7d 4a 49 d6 	mullw   r10,r10,r9                             
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
ffc129e4:	3b a0 00 00 	li      r29,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
ffc129e8:	38 0a ff ff 	addi    r0,r10,-1                              
ffc129ec:	7f 84 00 40 	cmplw   cr7,r4,r0                              
ffc129f0:	41 9d 00 d4 	bgt-    cr7,ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
ffc129f4:	7f cb 20 50 	subf    r30,r11,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;                                        
ffc129f8:	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;                     
ffc129fc:	7c 1e 4b 96 	divwu   r0,r30,r9                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
ffc12a00:	7f 80 4b 96 	divwu   r28,r0,r9                              
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc12a04:	2f 05 00 00 	cmpwi   cr6,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;                     
ffc12a08:	7d 60 49 d6 	mullw   r11,r0,r9                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc12a0c:	7f 7c 49 d6 	mullw   r27,r28,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;                     
ffc12a10:	7f cb f0 50 	subf    r30,r11,r30                            
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc12a14:	7f 7b 00 50 	subf    r27,r27,r0                             
ffc12a18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc12a1c:	41 9a 00 74 	beq-    cr6,ffc12a90 <IMFS_memfile_get_block_pointer+0x194>
      if ( !p ) {                                                     
ffc12a20:	40 be 00 14 	bne+    cr7,ffc12a34 <IMFS_memfile_get_block_pointer+0x138>
        p = memfile_alloc_block();                                    
ffc12a24:	4b ff fe 95 	bl      ffc128b8 <memfile_alloc_block>         
        if ( !p )                                                     
ffc12a28:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12a2c:	41 82 00 98 	beq-    ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
ffc12a30:	90 7f 00 60 	stw     r3,96(r31)                             
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
ffc12a34:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc12a38:	7f e3 e2 14 	add     r31,r3,r28                             
ffc12a3c:	7c 63 e0 2e 	lwzx    r3,r3,r28                              
      if ( !p1 ) {                                                    
ffc12a40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12a44:	40 be 00 18 	bne+    cr7,ffc12a5c <IMFS_memfile_get_block_pointer+0x160>
        p1 = memfile_alloc_block();                                   
ffc12a48:	4b ff fe 71 	bl      ffc128b8 <memfile_alloc_block>         
        if ( !p1 )                                                    
           return 0;                                                  
ffc12a4c:	3b a0 00 00 	li      r29,0                                  
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
ffc12a50:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12a54:	41 82 00 70 	beq-    ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
ffc12a58:	90 7f 00 00 	stw     r3,0(r31)                              
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
ffc12a5c:	57 7b 10 3a 	rlwinm  r27,r27,2,0,29                         
ffc12a60:	7f e3 da 14 	add     r31,r3,r27                             
ffc12a64:	7c 63 d8 2e 	lwzx    r3,r3,r27                              
      if ( !p2 ) {                                                    
ffc12a68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12a6c:	40 be 00 18 	bne+    cr7,ffc12a84 <IMFS_memfile_get_block_pointer+0x188>
        p2 = memfile_alloc_block();                                   
ffc12a70:	4b ff fe 49 	bl      ffc128b8 <memfile_alloc_block>         
        if ( !p2 )                                                    
           return 0;                                                  
ffc12a74:	3b a0 00 00 	li      r29,0                                  
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
ffc12a78:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12a7c:	41 82 00 48 	beq-    ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
ffc12a80:	90 7f 00 00 	stw     r3,0(r31)                              
      }                                                               
      return (block_p *)&p2[ singly ];                                
ffc12a84:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc12a88:	7f a3 f2 14 	add     r29,r3,r30                             
ffc12a8c:	48 00 00 38 	b       ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8>
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc12a90:	41 be 00 34 	beq+    cr7,ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
ffc12a94:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc12a98:	7d 23 e0 2e 	lwzx    r9,r3,r28                              
    if ( !p1 )                                                        
ffc12a9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12aa0:	41 be 00 24 	beq+    cr7,ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
ffc12aa4:	57 7b 10 3a 	rlwinm  r27,r27,2,0,29                         
ffc12aa8:	7c 09 d8 2e 	lwzx    r0,r9,r27                              
    if ( !p2 )                                                        
ffc12aac:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc12ab0:	41 9e 00 14 	beq-    cr7,ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
ffc12ab4:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc12ab8:	7f a0 f2 14 	add     r29,r0,r30                             
ffc12abc:	48 00 00 08 	b       ffc12ac4 <IMFS_memfile_get_block_pointer+0x1c8>
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
ffc12ac0:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc12ac4:	39 61 00 20 	addi    r11,r1,32                              
ffc12ac8:	7f a3 eb 78 	mr      r3,r29                                 
ffc12acc:	48 00 66 04 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

ffc12ad0 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
ffc12ad0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc12ad4:	7c 08 02 a6 	mflr    r0                                     
ffc12ad8:	90 01 00 3c 	stw     r0,60(r1)                              
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
ffc12adc:	80 03 00 4c 	lwz     r0,76(r3)                              
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
ffc12ae0:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc12ae4:	7c 7d 1b 78 	mr      r29,r3                                 
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
ffc12ae8:	2f 80 00 06 	cmpwi   cr7,r0,6                               
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
ffc12aec:	7c df 33 78 	mr      r31,r6                                 
ffc12af0:	7c be 2b 78 	mr      r30,r5                                 
ffc12af4:	7c fc 3b 78 	mr      r28,r7                                 
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
ffc12af8:	40 be 00 68 	bne+    cr7,ffc12b60 <IMFS_memfile_read+0x90>  
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc12afc:	81 23 00 50 	lwz     r9,80(r3)                              
ffc12b00:	38 00 00 00 	li      r0,0                                   
ffc12b04:	81 43 00 54 	lwz     r10,84(r3)                             
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
ffc12b08:	80 83 00 58 	lwz     r4,88(r3)                              
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc12b0c:	7d 9f 50 10 	subfc   r12,r31,r10                            
ffc12b10:	7d 7e 49 10 	subfe   r11,r30,r9                             
ffc12b14:	7f 80 58 00 	cmpw    cr7,r0,r11                             
ffc12b18:	41 bd 00 10 	bgt+    cr7,ffc12b28 <IMFS_memfile_read+0x58>  <== NEVER TAKEN
ffc12b1c:	40 9e 00 14 	bne-    cr7,ffc12b30 <IMFS_memfile_read+0x60>  <== NEVER TAKEN
ffc12b20:	7f 88 60 40 	cmplw   cr7,r8,r12                             
ffc12b24:	40 9d 00 0c 	ble-    cr7,ffc12b30 <IMFS_memfile_read+0x60>  <== NEVER TAKEN
      my_length = the_jnode->info.linearfile.size - start;            
ffc12b28:	7f 7f 50 50 	subf    r27,r31,r10                            
ffc12b2c:	48 00 00 08 	b       ffc12b34 <IMFS_memfile_read+0x64>      
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc12b30:	7d 1b 43 78 	mr      r27,r8                                 <== NOT EXECUTED
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
ffc12b34:	7c 84 fa 14 	add     r4,r4,r31                              
ffc12b38:	7f 65 db 78 	mr      r5,r27                                 
ffc12b3c:	7f 83 e3 78 	mr      r3,r28                                 
ffc12b40:	48 00 24 29 	bl      ffc14f68 <memcpy>                      
                                                                      
    IMFS_update_atime( the_jnode );                                   
ffc12b44:	38 61 00 08 	addi    r3,r1,8                                
ffc12b48:	38 80 00 00 	li      r4,0                                   
ffc12b4c:	4b ff 27 b5 	bl      ffc05300 <gettimeofday>                
ffc12b50:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
    return my_length;                                                 
ffc12b54:	7f 7e db 78 	mr      r30,r27                                
    if (my_length > (the_jnode->info.linearfile.size - start))        
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
                                                                      
    IMFS_update_atime( the_jnode );                                   
ffc12b58:	90 1d 00 40 	stw     r0,64(r29)                             
                                                                      
    return my_length;                                                 
ffc12b5c:	48 00 01 64 	b       ffc12cc0 <IMFS_memfile_read+0x1f0>     
  /*                                                                  
   *  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 )                        
ffc12b60:	81 63 00 50 	lwz     r11,80(r3)                             
ffc12b64:	39 40 00 00 	li      r10,0                                  
                                                                      
  /*                                                                  
   *  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;                                         
ffc12b68:	7c c0 33 78 	mr      r0,r6                                  
  if ( last_byte > the_jnode->info.file.size )                        
ffc12b6c:	83 63 00 54 	lwz     r27,84(r3)                             
ffc12b70:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
                                                                      
  /*                                                                  
   *  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;                                         
ffc12b74:	7d 28 32 14 	add     r9,r8,r6                               
  if ( last_byte > the_jnode->info.file.size )                        
ffc12b78:	41 9d 00 10 	bgt-    cr7,ffc12b88 <IMFS_memfile_read+0xb8>  <== NEVER TAKEN
ffc12b7c:	40 9e 00 14 	bne-    cr7,ffc12b90 <IMFS_memfile_read+0xc0>  <== NEVER TAKEN
ffc12b80:	7f 89 d8 40 	cmplw   cr7,r9,r27                             
ffc12b84:	40 9d 00 0c 	ble-    cr7,ffc12b90 <IMFS_memfile_read+0xc0>  
    my_length = the_jnode->info.file.size - start;                    
ffc12b88:	7f 60 d8 50 	subf    r27,r0,r27                             
ffc12b8c:	48 00 00 08 	b       ffc12b94 <IMFS_memfile_read+0xc4>      
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc12b90:	7d 1b 43 78 	mr      r27,r8                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc12b94:	3d 20 00 00 	lis     r9,0                                   
ffc12b98:	83 49 27 68 	lwz     r26,10088(r9)                          
ffc12b9c:	7f c3 f3 78 	mr      r3,r30                                 
ffc12ba0:	7f e4 fb 78 	mr      r4,r31                                 
ffc12ba4:	7f 58 fe 70 	srawi   r24,r26,31                             
ffc12ba8:	7f 05 c3 78 	mr      r5,r24                                 
ffc12bac:	7f 46 d3 78 	mr      r6,r26                                 
ffc12bb0:	48 00 59 35 	bl      ffc184e4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc12bb4:	7f c3 f3 78 	mr      r3,r30                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc12bb8:	7c 99 23 78 	mr      r25,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc12bbc:	7f 05 c3 78 	mr      r5,r24                                 
ffc12bc0:	7f e4 fb 78 	mr      r4,r31                                 
ffc12bc4:	7f 46 d3 78 	mr      r6,r26                                 
ffc12bc8:	48 00 55 05 	bl      ffc180cc <__divdi3>                    
  if ( start_offset )  {                                              
ffc12bcc:	2f 99 00 00 	cmpwi   cr7,r25,0                              
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc12bd0:	7c 98 23 78 	mr      r24,r4                                 
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
ffc12bd4:	7f 9f e3 78 	mr      r31,r28                                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    my_length = the_jnode->info.file.size - start;                    
                                                                      
  copied = 0;                                                         
ffc12bd8:	3b c0 00 00 	li      r30,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 )  {                                              
ffc12bdc:	41 9e 00 4c 	beq-    cr7,ffc12c28 <IMFS_memfile_read+0x158> 
    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 );
ffc12be0:	7f a3 eb 78 	mr      r3,r29                                 
ffc12be4:	38 a0 00 00 	li      r5,0                                   
ffc12be8:	4b ff fd 15 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc12bec:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12bf0:	41 82 00 d0 	beq-    ffc12cc0 <IMFS_memfile_read+0x1f0>     <== NEVER TAKEN
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
ffc12bf4:	7f 59 d0 50 	subf    r26,r25,r26                            
ffc12bf8:	7f 9b d0 40 	cmplw   cr7,r27,r26                            
ffc12bfc:	7f 7e db 78 	mr      r30,r27                                
ffc12c00:	40 9d 00 08 	ble-    cr7,ffc12c08 <IMFS_memfile_read+0x138> 
ffc12c04:	7f 5e d3 78 	mr      r30,r26                                
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
ffc12c08:	80 83 00 00 	lwz     r4,0(r3)                               
ffc12c0c:	7f c5 f3 78 	mr      r5,r30                                 
ffc12c10:	7f 83 e3 78 	mr      r3,r28                                 
ffc12c14:	7c 84 ca 14 	add     r4,r4,r25                              
ffc12c18:	48 00 23 51 	bl      ffc14f68 <memcpy>                      
    dest += to_copy;                                                  
ffc12c1c:	7f fc f2 14 	add     r31,r28,r30                            
    block++;                                                          
ffc12c20:	3b 18 00 01 	addi    r24,r24,1                              
    my_length -= to_copy;                                             
ffc12c24:	7f 7e d8 50 	subf    r27,r30,r27                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
ffc12c28:	3f 40 00 00 	lis     r26,0                                  
ffc12c2c:	83 9a 27 68 	lwz     r28,10088(r26)                         
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc12c30:	48 00 00 3c 	b       ffc12c6c <IMFS_memfile_read+0x19c>     
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc12c34:	7f a3 eb 78 	mr      r3,r29                                 
ffc12c38:	7f 04 c3 78 	mr      r4,r24                                 
ffc12c3c:	38 a0 00 00 	li      r5,0                                   
ffc12c40:	4b ff fc bd 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc12c44:	7c 69 1b 79 	mr.     r9,r3                                  
ffc12c48:	41 82 00 78 	beq-    ffc12cc0 <IMFS_memfile_read+0x1f0>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
ffc12c4c:	80 89 00 00 	lwz     r4,0(r9)                               
ffc12c50:	7f e3 fb 78 	mr      r3,r31                                 
ffc12c54:	7f 85 e3 78 	mr      r5,r28                                 
ffc12c58:	48 00 23 11 	bl      ffc14f68 <memcpy>                      
    dest += to_copy;                                                  
ffc12c5c:	7f ff e2 14 	add     r31,r31,r28                            
    block++;                                                          
ffc12c60:	3b 18 00 01 	addi    r24,r24,1                              
    my_length -= to_copy;                                             
ffc12c64:	7f 7c d8 50 	subf    r27,r28,r27                            
    copied += to_copy;                                                
ffc12c68:	7f de e2 14 	add     r30,r30,r28                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc12c6c:	80 1a 27 68 	lwz     r0,10088(r26)                          
ffc12c70:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc12c74:	40 9c ff c0 	bge+    cr7,ffc12c34 <IMFS_memfile_read+0x164> 
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
ffc12c78:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc12c7c:	41 9e 00 30 	beq-    cr7,ffc12cac <IMFS_memfile_read+0x1dc> 
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc12c80:	7f a3 eb 78 	mr      r3,r29                                 
ffc12c84:	7f 04 c3 78 	mr      r4,r24                                 
ffc12c88:	38 a0 00 00 	li      r5,0                                   
ffc12c8c:	4b ff fc 71 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc12c90:	7c 69 1b 79 	mr.     r9,r3                                  
ffc12c94:	41 82 00 2c 	beq-    ffc12cc0 <IMFS_memfile_read+0x1f0>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
ffc12c98:	80 89 00 00 	lwz     r4,0(r9)                               
ffc12c9c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12ca0:	7f 65 db 78 	mr      r5,r27                                 
ffc12ca4:	48 00 22 c5 	bl      ffc14f68 <memcpy>                      
    copied += my_length;                                              
ffc12ca8:	7f db f2 14 	add     r30,r27,r30                            
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc12cac:	38 61 00 08 	addi    r3,r1,8                                
ffc12cb0:	38 80 00 00 	li      r4,0                                   
ffc12cb4:	4b ff 26 4d 	bl      ffc05300 <gettimeofday>                
ffc12cb8:	80 01 00 08 	lwz     r0,8(r1)                               
ffc12cbc:	90 1d 00 40 	stw     r0,64(r29)                             
                                                                      
  return copied;                                                      
}                                                                     
ffc12cc0:	39 61 00 38 	addi    r11,r1,56                              
ffc12cc4:	7f c3 f3 78 	mr      r3,r30                                 
ffc12cc8:	48 00 63 fc 	b       ffc190c4 <_restgpr_24_x>               
                                                                      

ffc12dd0 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
ffc12dd0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc12dd4:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
ffc12dd8:	3d 20 00 00 	lis     r9,0                                   
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
int IMFS_memfile_remove(                                              
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc12ddc:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc12de0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc12de4:	90 01 00 2c 	stw     r0,44(r1)                              
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc12de8:	80 03 00 58 	lwz     r0,88(r3)                              
                                                                      
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
ffc12dec:	83 c9 27 68 	lwz     r30,10088(r9)                          
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc12df0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
                                                                      
  /*                                                                  
   *  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;                                 
ffc12df4:	57 de f0 be 	rlwinm  r30,r30,30,2,31                        
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc12df8:	41 9e 00 10 	beq-    cr7,ffc12e08 <IMFS_memfile_remove+0x38>
    memfile_free_blocks_in_table( &info->indirect, to_free );         
ffc12dfc:	38 63 00 58 	addi    r3,r3,88                               
ffc12e00:	7f c4 f3 78 	mr      r4,r30                                 
ffc12e04:	4b ff ff 69 	bl      ffc12d6c <memfile_free_blocks_in_table>
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
ffc12e08:	80 1f 00 5c 	lwz     r0,92(r31)                             
ffc12e0c:	3b a0 00 00 	li      r29,0                                  
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc12e10:	3f 80 00 00 	lis     r28,0                                  
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
ffc12e14:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc12e18:	40 be 00 2c 	bne+    cr7,ffc12e44 <IMFS_memfile_remove+0x74>
ffc12e1c:	48 00 00 44 	b       ffc12e60 <IMFS_memfile_remove+0x90>    
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      if ( info->doubly_indirect[i] ) {                               
ffc12e20:	80 7f 00 5c 	lwz     r3,92(r31)                             
ffc12e24:	57 a0 10 3a 	rlwinm  r0,r29,2,0,29                          
ffc12e28:	7d 23 00 2e 	lwzx    r9,r3,r0                               
ffc12e2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12e30:	41 9e 00 10 	beq-    cr7,ffc12e40 <IMFS_memfile_remove+0x70><== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
ffc12e34:	7c 63 02 14 	add     r3,r3,r0                               
ffc12e38:	7f c4 f3 78 	mr      r4,r30                                 
ffc12e3c:	4b ff ff 31 	bl      ffc12d6c <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++ ) {                  
ffc12e40:	3b bd 00 01 	addi    r29,r29,1                              
ffc12e44:	80 1c 27 68 	lwz     r0,10088(r28)                          
ffc12e48:	54 00 f0 be 	rlwinm  r0,r0,30,2,31                          
ffc12e4c:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc12e50:	41 9c ff d0 	blt+    cr7,ffc12e20 <IMFS_memfile_remove+0x50>
      if ( info->doubly_indirect[i] ) {                               
        memfile_free_blocks_in_table(                                 
         (block_p **)&info->doubly_indirect[i], to_free );            
      }                                                               
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
ffc12e54:	38 7f 00 5c 	addi    r3,r31,92                              
ffc12e58:	7f c4 f3 78 	mr      r4,r30                                 
ffc12e5c:	4b ff ff 11 	bl      ffc12d6c <memfile_free_blocks_in_table>
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc12e60:	80 1f 00 60 	lwz     r0,96(r31)                             
ffc12e64:	3b a0 00 00 	li      r29,0                                  
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc12e68:	3f 40 00 00 	lis     r26,0                                  
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc12e6c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc12e70:	40 be 00 68 	bne+    cr7,ffc12ed8 <IMFS_memfile_remove+0x108>
ffc12e74:	48 00 00 80 	b       ffc12ef4 <IMFS_memfile_remove+0x124>   
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc12e78:	81 3f 00 60 	lwz     r9,96(r31)                             
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc12e7c:	57 b9 10 3a 	rlwinm  r25,r29,2,0,29                         
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc12e80:	7f 69 c8 2e 	lwzx    r27,r9,r25                             
      if ( !p )  /* ensure we have a valid pointer */                 
ffc12e84:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc12e88:	41 9e 00 60 	beq-    cr7,ffc12ee8 <IMFS_memfile_remove+0x118><== NEVER TAKEN
 *         a significant difference in the performance of this routine.
 *                                                                    
 *         Regardless until the IMFS implementation is proven, it     
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
int IMFS_memfile_remove(                                              
ffc12e8c:	3b 7b ff fc 	addi    r27,r27,-4                             
ffc12e90:	3b 80 00 00 	li      r28,0                                  
ffc12e94:	48 00 00 20 	b       ffc12eb4 <IMFS_memfile_remove+0xe4>    
    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] ) {                                                 
ffc12e98:	84 1b 00 04 	lwzu    r0,4(r27)                              
ffc12e9c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc12ea0:	41 9e 00 10 	beq-    cr7,ffc12eb0 <IMFS_memfile_remove+0xe0><== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
ffc12ea4:	7f 63 db 78 	mr      r3,r27                                 
ffc12ea8:	7f c4 f3 78 	mr      r4,r30                                 
ffc12eac:	4b ff fe c1 	bl      ffc12d6c <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++ ) {                
ffc12eb0:	3b 9c 00 01 	addi    r28,r28,1                              
ffc12eb4:	80 1a 27 68 	lwz     r0,10088(r26)                          
ffc12eb8:	54 00 f0 be 	rlwinm  r0,r0,30,2,31                          
ffc12ebc:	7f 9c 00 40 	cmplw   cr7,r28,r0                             
ffc12ec0:	41 9c ff d8 	blt+    cr7,ffc12e98 <IMFS_memfile_remove+0xc8>
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
ffc12ec4:	80 7f 00 60 	lwz     r3,96(r31)                             
ffc12ec8:	7f c4 f3 78 	mr      r4,r30                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc12ecc:	3b bd 00 01 	addi    r29,r29,1                              
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
ffc12ed0:	7c 63 ca 14 	add     r3,r3,r25                              
ffc12ed4:	4b ff fe 99 	bl      ffc12d6c <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++ ) {                  
ffc12ed8:	80 1a 27 68 	lwz     r0,10088(r26)                          
ffc12edc:	54 00 f0 be 	rlwinm  r0,r0,30,2,31                          
ffc12ee0:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc12ee4:	41 9c ff 94 	blt+    cr7,ffc12e78 <IMFS_memfile_remove+0xa8>
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
ffc12ee8:	38 7f 00 60 	addi    r3,r31,96                              
ffc12eec:	7f c4 f3 78 	mr      r4,r30                                 
ffc12ef0:	4b ff fe 7d 	bl      ffc12d6c <memfile_free_blocks_in_table>
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc12ef4:	39 61 00 28 	addi    r11,r1,40                              
ffc12ef8:	38 60 00 00 	li      r3,0                                   
ffc12efc:	48 00 61 cc 	b       ffc190c8 <_restgpr_25_x>               
                                                                      

ffc1305c <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
ffc1305c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc13060:	7c 08 02 a6 	mflr    r0                                     
ffc13064:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc13068:	7c de 33 78 	mr      r30,r6                                 
ffc1306c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc13070:	90 01 00 3c 	stw     r0,60(r1)                              
ffc13074:	7c bd 2b 78 	mr      r29,r5                                 
ffc13078:	7c fc 3b 78 	mr      r28,r7                                 
   *  If the last byte we are supposed to write is past the end of this
   *  in memory file, then extend the length.                         
   */                                                                 
                                                                      
  last_byte = start + my_length;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
ffc1307c:	80 03 00 50 	lwz     r0,80(r3)                              
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
ffc13080:	7d 1b 43 78 	mr      r27,r8                                 
  /*                                                                  
   *  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;                                      
ffc13084:	7c c8 32 14 	add     r6,r8,r6                               
  if ( last_byte > the_jnode->info.file.size ) {                      
ffc13088:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc1308c:	41 9c 00 14 	blt-    cr7,ffc130a0 <IMFS_memfile_write+0x44> <== NEVER TAKEN
ffc13090:	40 be 00 38 	bne+    cr7,ffc130c8 <IMFS_memfile_write+0x6c> <== NEVER TAKEN
ffc13094:	80 03 00 54 	lwz     r0,84(r3)                              
ffc13098:	7f 80 30 40 	cmplw   cr7,r0,r6                              
ffc1309c:	40 bc 00 2c 	bge+    cr7,ffc130c8 <IMFS_memfile_write+0x6c> <== NEVER TAKEN
    status = IMFS_memfile_extend( the_jnode, last_byte );             
ffc130a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc130a4:	38 a0 00 00 	li      r5,0                                   
ffc130a8:	4b ff fe 95 	bl      ffc12f3c <IMFS_memfile_extend>         
    if ( status )                                                     
ffc130ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc130b0:	41 be 00 18 	beq+    cr7,ffc130c8 <IMFS_memfile_write+0x6c> 
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
ffc130b4:	48 00 12 55 	bl      ffc14308 <__errno>                     
ffc130b8:	38 00 00 1c 	li      r0,28                                  
ffc130bc:	90 03 00 00 	stw     r0,0(r3)                               
ffc130c0:	3b c0 ff ff 	li      r30,-1                                 
ffc130c4:	48 00 01 30 	b       ffc131f4 <IMFS_memfile_write+0x198>    
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc130c8:	3d 20 00 00 	lis     r9,0                                   
ffc130cc:	83 49 27 68 	lwz     r26,10088(r9)                          
ffc130d0:	7f a3 eb 78 	mr      r3,r29                                 
ffc130d4:	7f c4 f3 78 	mr      r4,r30                                 
ffc130d8:	7f 58 fe 70 	srawi   r24,r26,31                             
ffc130dc:	7f 05 c3 78 	mr      r5,r24                                 
ffc130e0:	7f 46 d3 78 	mr      r6,r26                                 
ffc130e4:	48 00 54 01 	bl      ffc184e4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc130e8:	7f a3 eb 78 	mr      r3,r29                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc130ec:	7c 99 23 78 	mr      r25,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc130f0:	7f 05 c3 78 	mr      r5,r24                                 
ffc130f4:	7f c4 f3 78 	mr      r4,r30                                 
ffc130f8:	7f 46 d3 78 	mr      r6,r26                                 
ffc130fc:	48 00 4f d1 	bl      ffc180cc <__divdi3>                    
  if ( start_offset )  {                                              
ffc13100:	2f 99 00 00 	cmpwi   cr7,r25,0                              
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc13104:	7c 9d 23 78 	mr      r29,r4                                 
    status = IMFS_memfile_extend( the_jnode, last_byte );             
    if ( status )                                                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  }                                                                   
                                                                      
  copied = 0;                                                         
ffc13108:	3b c0 00 00 	li      r30,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 )  {                                              
ffc1310c:	41 9e 00 4c 	beq-    cr7,ffc13158 <IMFS_memfile_write+0xfc> 
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc13110:	7f e3 fb 78 	mr      r3,r31                                 
ffc13114:	38 a0 00 00 	li      r5,0                                   
ffc13118:	4b ff f7 e5 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
      return copied;                                                  
ffc1311c:	3b c0 00 00 	li      r30,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 )                                                 
ffc13120:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13124:	41 82 00 d0 	beq-    ffc131f4 <IMFS_memfile_write+0x198>    <== NEVER TAKEN
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
ffc13128:	7f d9 d0 50 	subf    r30,r25,r26                            
ffc1312c:	7f 9e d8 40 	cmplw   cr7,r30,r27                            
ffc13130:	40 9d 00 08 	ble-    cr7,ffc13138 <IMFS_memfile_write+0xdc> 
ffc13134:	7f 7e db 78 	mr      r30,r27                                
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
ffc13138:	80 63 00 00 	lwz     r3,0(r3)                               
ffc1313c:	7f 84 e3 78 	mr      r4,r28                                 
ffc13140:	7f c5 f3 78 	mr      r5,r30                                 
ffc13144:	7c 63 ca 14 	add     r3,r3,r25                              
ffc13148:	48 00 1e 21 	bl      ffc14f68 <memcpy>                      
    src += to_copy;                                                   
ffc1314c:	7f 9c f2 14 	add     r28,r28,r30                            
    block++;                                                          
ffc13150:	3b bd 00 01 	addi    r29,r29,1                              
    my_length -= to_copy;                                             
ffc13154:	7f 7e d8 50 	subf    r27,r30,r27                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
ffc13158:	3f 20 00 00 	lis     r25,0                                  
ffc1315c:	83 59 27 68 	lwz     r26,10088(r25)                         
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc13160:	48 00 00 3c 	b       ffc1319c <IMFS_memfile_write+0x140>    
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc13164:	7f e3 fb 78 	mr      r3,r31                                 
ffc13168:	7f a4 eb 78 	mr      r4,r29                                 
ffc1316c:	38 a0 00 00 	li      r5,0                                   
ffc13170:	4b ff f7 8d 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc13174:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13178:	41 82 00 7c 	beq-    ffc131f4 <IMFS_memfile_write+0x198>    <== NEVER TAKEN
      return copied;                                                  
    #if 0                                                             
      fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
ffc1317c:	80 63 00 00 	lwz     r3,0(r3)                               
ffc13180:	7f 84 e3 78 	mr      r4,r28                                 
ffc13184:	7f 45 d3 78 	mr      r5,r26                                 
ffc13188:	48 00 1d e1 	bl      ffc14f68 <memcpy>                      
    src += to_copy;                                                   
ffc1318c:	7f 9c d2 14 	add     r28,r28,r26                            
    block++;                                                          
ffc13190:	3b bd 00 01 	addi    r29,r29,1                              
    my_length -= to_copy;                                             
ffc13194:	7f 7a d8 50 	subf    r27,r26,r27                            
 *  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(                            
ffc13198:	7f de d2 14 	add     r30,r30,r26                            
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc1319c:	80 19 27 68 	lwz     r0,10088(r25)                          
ffc131a0:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc131a4:	40 9c ff c0 	bge+    cr7,ffc13164 <IMFS_memfile_write+0x108>
   *  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 ) {                                                  
ffc131a8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc131ac:	41 9e 00 30 	beq-    cr7,ffc131dc <IMFS_memfile_write+0x180>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc131b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc131b4:	7f a4 eb 78 	mr      r4,r29                                 
ffc131b8:	38 a0 00 00 	li      r5,0                                   
ffc131bc:	4b ff f7 41 	bl      ffc128fc <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc131c0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc131c4:	41 82 00 30 	beq-    ffc131f4 <IMFS_memfile_write+0x198>    <== 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 );                     
ffc131c8:	80 63 00 00 	lwz     r3,0(r3)                               
ffc131cc:	7f 84 e3 78 	mr      r4,r28                                 
ffc131d0:	7f 65 db 78 	mr      r5,r27                                 
ffc131d4:	48 00 1d 95 	bl      ffc14f68 <memcpy>                      
    my_length = 0;                                                    
    copied += to_copy;                                                
ffc131d8:	7f de da 14 	add     r30,r30,r27                            
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
ffc131dc:	38 61 00 08 	addi    r3,r1,8                                
ffc131e0:	38 80 00 00 	li      r4,0                                   
ffc131e4:	4b ff 21 1d 	bl      ffc05300 <gettimeofday>                
ffc131e8:	80 01 00 08 	lwz     r0,8(r1)                               
ffc131ec:	90 1f 00 44 	stw     r0,68(r31)                             
ffc131f0:	90 1f 00 48 	stw     r0,72(r31)                             
                                                                      
  return copied;                                                      
}                                                                     
ffc131f4:	39 61 00 38 	addi    r11,r1,56                              
ffc131f8:	7f c3 f3 78 	mr      r3,r30                                 
ffc131fc:	48 00 5e c8 	b       ffc190c4 <_restgpr_24_x>               
                                                                      

ffc04ae8 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc04ae8:	7c 08 02 a6 	mflr    r0                                     
ffc04aec:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04af0:	90 01 00 0c 	stw     r0,12(r1)                              
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
ffc04af4:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
ffc04af8:	80 09 00 4c 	lwz     r0,76(r9)                              
ffc04afc:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc04b00:	41 be 00 18 	beq+    cr7,ffc04b18 <IMFS_mount+0x30>         <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc04b04:	48 00 f8 05 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc04b08:	38 00 00 14 	li      r0,20                                  <== NOT EXECUTED
ffc04b0c:	90 03 00 00 	stw     r0,0(r3)                               <== NOT EXECUTED
ffc04b10:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04b14:	48 00 00 0c 	b       ffc04b20 <IMFS_mount+0x38>             <== NOT EXECUTED
  /*                                                                  
   *  Set mt_fs pointer to point to the mount table entry for         
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
ffc04b18:	90 69 00 5c 	stw     r3,92(r9)                              
  return 0;                                                           
ffc04b1c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc04b20:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04b24:	38 21 00 08 	addi    r1,r1,8                                
ffc04b28:	7c 08 03 a6 	mtlr    r0                                     
ffc04b2c:	4e 80 00 20 	blr                                            
                                                                      

ffc06bec <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
ffc06bec:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06bf0:	7c 08 02 a6 	mflr    r0                                     
ffc06bf4:	bf c1 00 08 	stmw    r30,8(r1)                              
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
ffc06bf8:	3f c0 00 00 	lis     r30,0                                  
 *  This routine prints the contents of the specified jnode.          
 */                                                                   
void IMFS_print_jnode(                                                
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
ffc06bfc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06c00:	90 01 00 14 	stw     r0,20(r1)                              
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
ffc06c04:	38 63 00 0c 	addi    r3,r3,12                               
ffc06c08:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06c0c:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06c10:	48 00 ea c1 	bl      ffc156d0 <fputs>                       
  switch( the_jnode->type ) {                                         
ffc06c14:	80 bf 00 4c 	lwz     r5,76(r31)                             
ffc06c18:	38 05 ff ff 	addi    r0,r5,-1                               
ffc06c1c:	2b 80 00 06 	cmplwi  cr7,r0,6                               
ffc06c20:	41 9d 00 bc 	bgt-    cr7,ffc06cdc <IMFS_print_jnode+0xf0>   <== NEVER TAKEN
ffc06c24:	3d 20 ff c2 	lis     r9,-62                                 
ffc06c28:	39 29 66 f0 	addi    r9,r9,26352                            
ffc06c2c:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc06c30:	7c 09 00 2e 	lwzx    r0,r9,r0                               
ffc06c34:	7d 20 4a 14 	add     r9,r0,r9                               
ffc06c38:	7d 29 03 a6 	mtctr   r9                                     
ffc06c3c:	4e 80 04 20 	bctr                                           
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
ffc06c40:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06c44:	38 60 00 2f 	li      r3,47                                  
ffc06c48:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06c4c:	48 00 e9 69 	bl      ffc155b4 <fputc>                       
      break;                                                          
ffc06c50:	48 00 00 a8 	b       ffc06cf8 <IMFS_print_jnode+0x10c>      
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
ffc06c54:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06c58:	3c 80 ff c2 	lis     r4,-62                                 
ffc06c5c:	38 84 67 0c 	addi    r4,r4,26380                            
ffc06c60:	80 bf 00 50 	lwz     r5,80(r31)                             
ffc06c64:	80 69 00 08 	lwz     r3,8(r9)                               
ffc06c68:	80 df 00 54 	lwz     r6,84(r31)                             
ffc06c6c:	48 00 00 1c 	b       ffc06c88 <IMFS_print_jnode+0x9c>       
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
ffc06c70:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06c74:	3c 80 ff c2 	lis     r4,-62                                 
ffc06c78:	80 bf 00 54 	lwz     r5,84(r31)                             
ffc06c7c:	38 84 67 1f 	addi    r4,r4,26399                            
ffc06c80:	80 69 00 08 	lwz     r3,8(r9)                               
ffc06c84:	80 df 00 58 	lwz     r6,88(r31)                             
ffc06c88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06c8c:	48 00 e8 41 	bl      ffc154cc <fprintf>                     
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
ffc06c90:	48 00 00 68 	b       ffc06cf8 <IMFS_print_jnode+0x10c>      
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
ffc06c94:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06c98:	3c 80 ff c2 	lis     r4,-62                                 
ffc06c9c:	80 bf 00 54 	lwz     r5,84(r31)                             
ffc06ca0:	38 84 67 2e 	addi    r4,r4,26414                            
ffc06ca4:	80 69 00 08 	lwz     r3,8(r9)                               
ffc06ca8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06cac:	48 00 e8 21 	bl      ffc154cc <fprintf>                     
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
ffc06cb0:	48 00 00 48 	b       ffc06cf8 <IMFS_print_jnode+0x10c>      
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc06cb4:	3c 60 ff c2 	lis     r3,-62                                 
ffc06cb8:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06cbc:	38 63 67 3a 	addi    r3,r3,26426                            
ffc06cc0:	48 00 00 10 	b       ffc06cd0 <IMFS_print_jnode+0xe4>       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc06cc4:	3c 60 ff c2 	lis     r3,-62                                 
ffc06cc8:	81 3e 27 2c 	lwz     r9,10028(r30)                          
ffc06ccc:	38 63 67 4e 	addi    r3,r3,26446                            
ffc06cd0:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06cd4:	48 00 e9 fd 	bl      ffc156d0 <fputs>                       
      return;                                                         
ffc06cd8:	48 00 00 2c 	b       ffc06d04 <IMFS_print_jnode+0x118>      
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
ffc06cdc:	81 3e 27 2c 	lwz     r9,10028(r30)                          <== NOT EXECUTED
ffc06ce0:	3c 80 ff c2 	lis     r4,-62                                 <== NOT EXECUTED
ffc06ce4:	38 84 67 61 	addi    r4,r4,26465                            <== NOT EXECUTED
ffc06ce8:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06cec:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06cf0:	48 00 e7 dd 	bl      ffc154cc <fprintf>                     <== NOT EXECUTED
      return;                                                         
ffc06cf4:	48 00 00 10 	b       ffc06d04 <IMFS_print_jnode+0x118>      <== NOT EXECUTED
  }                                                                   
  puts("");                                                           
ffc06cf8:	3c 60 ff c2 	lis     r3,-62                                 
ffc06cfc:	38 63 69 87 	addi    r3,r3,27015                            
ffc06d00:	48 01 09 9d 	bl      ffc1769c <puts>                        
}                                                                     
ffc06d04:	39 61 00 10 	addi    r11,r1,16                              
ffc06d08:	4b ff c8 68 	b       ffc03570 <_restgpr_30_x>               
                                                                      

ffc04b3c <IMFS_readlink>: int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) {
ffc04b3c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
  IMFS_jnode_t      *node;                                            
  int                i;                                               
                                                                      
  node = loc->node_access;                                            
ffc04b40:	81 63 00 00 	lwz     r11,0(r3)                              
                                                                      
  IMFS_assert( node->type == IMFS_SYM_LINK );                         
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc04b44:	38 05 00 01 	addi    r0,r5,1                                
ffc04b48:	38 60 00 00 	li      r3,0                                   
ffc04b4c:	40 be 00 14 	bne+    cr7,ffc04b60 <IMFS_readlink+0x24>      <== ALWAYS TAKEN
ffc04b50:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc04b54:	48 00 00 0c 	b       ffc04b60 <IMFS_readlink+0x24>          <== NOT EXECUTED
    buf[i] = node->info.sym_link.name[i];                             
ffc04b58:	7d 24 19 ae 	stbx    r9,r4,r3                               
                                                                      
  node = loc->node_access;                                            
                                                                      
  IMFS_assert( node->type == IMFS_SYM_LINK );                         
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc04b5c:	38 63 00 01 	addi    r3,r3,1                                
ffc04b60:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc04b64:	4d 82 00 20 	beqlr                                          
ffc04b68:	81 2b 00 50 	lwz     r9,80(r11)                             
ffc04b6c:	7d 29 18 ae 	lbzx    r9,r9,r3                               
ffc04b70:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04b74:	40 9e ff e4 	bne+    cr7,ffc04b58 <IMFS_readlink+0x1c>      
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
ffc04b78:	4e 80 00 20 	blr                                            
                                                                      

ffc04b7c <IMFS_rename>: rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) {
ffc04b7c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04b80:	7c 08 02 a6 	mflr    r0                                     
ffc04b84:	90 01 00 24 	stw     r0,36(r1)                              
ffc04b88:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc04b8c:	7c be 2b 78 	mr      r30,r5                                 
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
ffc04b90:	38 a0 00 20 	li      r5,32                                  
)                                                                     
{                                                                     
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
ffc04b94:	83 e4 00 00 	lwz     r31,0(r4)                              
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
ffc04b98:	7c c4 33 78 	mr      r4,r6                                  
ffc04b9c:	38 7f 00 0c 	addi    r3,r31,12                              
ffc04ba0:	48 01 09 ad 	bl      ffc1554c <strncpy>                     
                                                                      
  if ( the_jnode->Parent != NULL )                                    
ffc04ba4:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc04ba8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04bac:	41 9e 00 0c 	beq-    cr7,ffc04bb8 <IMFS_rename+0x3c>        <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc04bb0:	7f e3 fb 78 	mr      r3,r31                                 
ffc04bb4:	48 00 4c a9 	bl      ffc0985c <_Chain_Extract>              
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
ffc04bb8:	80 7e 00 00 	lwz     r3,0(r30)                              
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc04bbc:	7f e4 fb 78 	mr      r4,r31                                 
  the_jnode->Parent = new_parent;                                     
ffc04bc0:	90 7f 00 08 	stw     r3,8(r31)                              
ffc04bc4:	38 63 00 50 	addi    r3,r3,80                               
ffc04bc8:	48 00 4c 65 	bl      ffc0982c <_Chain_Append>               
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
ffc04bcc:	38 61 00 08 	addi    r3,r1,8                                
ffc04bd0:	38 80 00 00 	li      r4,0                                   
ffc04bd4:	48 00 07 2d 	bl      ffc05300 <gettimeofday>                
ffc04bd8:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
  return 0;                                                           
}                                                                     
ffc04bdc:	39 61 00 20 	addi    r11,r1,32                              
ffc04be0:	38 60 00 00 	li      r3,0                                   
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
ffc04be4:	90 1f 00 48 	stw     r0,72(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc04be8:	48 01 44 f4 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc101f0 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
ffc101f0:	7c 08 02 a6 	mflr    r0                                     
ffc101f4:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc101f8:	90 01 00 0c 	stw     r0,12(r1)                              
  IMFS_fs_info_t *fs_info;                                            
  IMFS_jnode_t   *the_jnode;                                          
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
ffc101fc:	81 63 00 00 	lwz     r11,0(r3)                              
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
ffc10200:	81 2b 00 4c 	lwz     r9,76(r11)                             
ffc10204:	38 09 ff fe 	addi    r0,r9,-2                               
ffc10208:	2b 80 00 05 	cmplwi  cr7,r0,5                               
ffc1020c:	41 9d 00 54 	bgt-    cr7,ffc10260 <IMFS_stat+0x70>          <== NEVER TAKEN
ffc10210:	3d 20 ff c2 	lis     r9,-62                                 
ffc10214:	39 29 ac fc 	addi    r9,r9,-21252                           
ffc10218:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc1021c:	7c 09 00 2e 	lwzx    r0,r9,r0                               
ffc10220:	7d 20 4a 14 	add     r9,r0,r9                               
ffc10224:	7d 29 03 a6 	mtctr   r9                                     
ffc10228:	4e 80 04 20 	bctr                                           
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
ffc1022c:	80 0b 00 54 	lwz     r0,84(r11)                             
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
ffc10230:	81 2b 00 50 	lwz     r9,80(r11)                             
ffc10234:	90 04 00 1c 	stw     r0,28(r4)                              
ffc10238:	91 24 00 18 	stw     r9,24(r4)                              
      break;                                                          
ffc1023c:	48 00 00 38 	b       ffc10274 <IMFS_stat+0x84>              
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
ffc10240:	81 2b 00 50 	lwz     r9,80(r11)                             
ffc10244:	81 4b 00 54 	lwz     r10,84(r11)                            
ffc10248:	48 00 00 0c 	b       ffc10254 <IMFS_stat+0x64>              
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
ffc1024c:	39 20 00 00 	li      r9,0                                   
ffc10250:	39 40 00 00 	li      r10,0                                  
ffc10254:	91 24 00 20 	stw     r9,32(r4)                              
ffc10258:	91 44 00 24 	stw     r10,36(r4)                             
      break;                                                          
ffc1025c:	48 00 00 18 	b       ffc10274 <IMFS_stat+0x84>              
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
ffc10260:	48 00 40 a9 	bl      ffc14308 <__errno>                     
ffc10264:	38 00 00 86 	li      r0,134                                 
ffc10268:	90 03 00 00 	stw     r0,0(r3)                               
ffc1026c:	38 60 ff ff 	li      r3,-1                                  
ffc10270:	48 00 00 64 	b       ffc102d4 <IMFS_stat+0xe4>              
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
ffc10274:	81 23 00 10 	lwz     r9,16(r3)                              
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
                                                                      
  return 0;                                                           
ffc10278:	38 60 00 00 	li      r3,0                                   
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
ffc1027c:	81 29 00 34 	lwz     r9,52(r9)                              
ffc10280:	80 09 00 00 	lwz     r0,0(r9)                               
ffc10284:	39 20 00 00 	li      r9,0                                   
ffc10288:	61 29 ff fe 	ori     r9,r9,65534                            
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
ffc1028c:	90 04 00 04 	stw     r0,4(r4)                               
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
ffc10290:	80 0b 00 30 	lwz     r0,48(r11)                             
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
ffc10294:	91 24 00 00 	stw     r9,0(r4)                               
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
ffc10298:	90 04 00 0c 	stw     r0,12(r4)                              
  buf->st_nlink = the_jnode->st_nlink;                                
ffc1029c:	a0 0b 00 34 	lhz     r0,52(r11)                             
ffc102a0:	b0 04 00 10 	sth     r0,16(r4)                              
  buf->st_ino   = the_jnode->st_ino;                                  
ffc102a4:	80 0b 00 38 	lwz     r0,56(r11)                             
ffc102a8:	90 04 00 08 	stw     r0,8(r4)                               
  buf->st_uid   = the_jnode->st_uid;                                  
ffc102ac:	a0 0b 00 3c 	lhz     r0,60(r11)                             
ffc102b0:	b0 04 00 12 	sth     r0,18(r4)                              
  buf->st_gid   = the_jnode->st_gid;                                  
ffc102b4:	a0 0b 00 3e 	lhz     r0,62(r11)                             
ffc102b8:	b0 04 00 14 	sth     r0,20(r4)                              
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
ffc102bc:	80 0b 00 40 	lwz     r0,64(r11)                             
ffc102c0:	90 04 00 28 	stw     r0,40(r4)                              
  buf->st_mtime = the_jnode->stat_mtime;                              
ffc102c4:	80 0b 00 44 	lwz     r0,68(r11)                             
ffc102c8:	90 04 00 30 	stw     r0,48(r4)                              
  buf->st_ctime = the_jnode->stat_ctime;                              
ffc102cc:	80 0b 00 48 	lwz     r0,72(r11)                             
ffc102d0:	90 04 00 38 	stw     r0,56(r4)                              
                                                                      
  return 0;                                                           
}                                                                     
ffc102d4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc102d8:	38 21 00 08 	addi    r1,r1,8                                
ffc102dc:	7c 08 03 a6 	mtlr    r0                                     
ffc102e0:	4e 80 00 20 	blr                                            
                                                                      

ffc04c88 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
ffc04c88:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04c8c:	7c 08 02 a6 	mflr    r0                                     
ffc04c90:	90 01 00 3c 	stw     r0,60(r1)                              
ffc04c94:	bf 81 00 28 	stmw    r28,40(r1)                             
ffc04c98:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04c9c:	7c 9f 23 78 	mr      r31,r4                                 
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
ffc04ca0:	83 c4 00 00 	lwz     r30,0(r4)                              
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
ffc04ca4:	80 1e 00 4c 	lwz     r0,76(r30)                             
ffc04ca8:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc04cac:	40 9e 00 94 	bne-    cr7,ffc04d40 <IMFS_unlink+0xb8>        
                                                                      
    if ( !node->info.hard_link.link_node )                            
ffc04cb0:	80 1e 00 50 	lwz     r0,80(r30)                             
ffc04cb4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04cb8:	40 be 00 18 	bne+    cr7,ffc04cd0 <IMFS_unlink+0x48>        <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc04cbc:	48 00 f6 4d 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc04cc0:	38 00 00 16 	li      r0,22                                  <== NOT EXECUTED
ffc04cc4:	90 03 00 00 	stw     r0,0(r3)                               <== NOT EXECUTED
ffc04cc8:	38 00 ff ff 	li      r0,-1                                  <== NOT EXECUTED
ffc04ccc:	48 00 00 90 	b       ffc04d5c <IMFS_unlink+0xd4>            <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
ffc04cd0:	3b 81 00 10 	addi    r28,r1,16                              
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
ffc04cd4:	7f 83 e3 78 	mr      r3,r28                                 
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
ffc04cd8:	7c a4 a4 aa 	lswi    r5,r4,20                               
ffc04cdc:	7c bc a5 aa 	stswi   r5,r28,20                              
    the_link.node_access = node->info.hard_link.link_node;            
ffc04ce0:	90 01 00 10 	stw     r0,16(r1)                              
    IMFS_Set_handlers( &the_link );                                   
ffc04ce4:	48 00 aa 65 	bl      ffc0f748 <IMFS_Set_handlers>           
    /*                                                                
     *  If removing the last hard link to a node, then we need        
     *  to remove the node that is a link and the node itself.        
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
ffc04ce8:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc04cec:	a1 69 00 34 	lhz     r11,52(r9)                             
ffc04cf0:	2f 8b 00 01 	cmpwi   cr7,r11,1                              
ffc04cf4:	40 be 00 2c 	bne+    cr7,ffc04d20 <IMFS_unlink+0x98>        
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
ffc04cf8:	81 21 00 18 	lwz     r9,24(r1)                              
ffc04cfc:	7f a3 eb 78 	mr      r3,r29                                 
ffc04d00:	7f 84 e3 78 	mr      r4,r28                                 
ffc04d04:	80 09 00 34 	lwz     r0,52(r9)                              
ffc04d08:	7c 09 03 a6 	mtctr   r0                                     
ffc04d0c:	4e 80 04 21 	bctrl                                          
        if ( result != 0 )                                            
            return -1;                                                
ffc04d10:	38 00 ff ff 	li      r0,-1                                  
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
        if ( result != 0 )                                            
ffc04d14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d18:	41 be 00 28 	beq+    cr7,ffc04d40 <IMFS_unlink+0xb8>        
ffc04d1c:	48 00 00 40 	b       ffc04d5c <IMFS_unlink+0xd4>            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
ffc04d20:	39 6b ff ff 	addi    r11,r11,-1                             
ffc04d24:	b1 69 00 34 	sth     r11,52(r9)                             
        IMFS_update_ctime( node->info.hard_link.link_node );          
ffc04d28:	38 61 00 08 	addi    r3,r1,8                                
ffc04d2c:	38 80 00 00 	li      r4,0                                   
ffc04d30:	48 00 05 d1 	bl      ffc05300 <gettimeofday>                
ffc04d34:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc04d38:	80 01 00 08 	lwz     r0,8(r1)                               
ffc04d3c:	90 09 00 48 	stw     r0,72(r9)                              
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
ffc04d40:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc04d44:	7f a3 eb 78 	mr      r3,r29                                 
ffc04d48:	7f e4 fb 78 	mr      r4,r31                                 
ffc04d4c:	80 09 00 34 	lwz     r0,52(r9)                              
ffc04d50:	7c 09 03 a6 	mtctr   r0                                     
ffc04d54:	4e 80 04 21 	bctrl                                          
ffc04d58:	7c 60 1b 78 	mr      r0,r3                                  
                                                                      
  return result;                                                      
}                                                                     
ffc04d5c:	39 61 00 38 	addi    r11,r1,56                              
ffc04d60:	7c 03 03 78 	mr      r3,r0                                  
ffc04d64:	48 01 43 70 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc04d68 <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc04d68:	7c 08 02 a6 	mflr    r0                                     
ffc04d6c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04d70:	90 01 00 0c 	stw     r0,12(r1)                              
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
ffc04d74:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
ffc04d78:	80 09 00 4c 	lwz     r0,76(r9)                              
ffc04d7c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc04d80:	41 be 00 10 	beq+    cr7,ffc04d90 <IMFS_unmount+0x28>       <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc04d84:	48 00 f5 85 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc04d88:	38 00 00 14 	li      r0,20                                  <== NOT EXECUTED
ffc04d8c:	48 00 00 18 	b       ffc04da4 <IMFS_unmount+0x3c>           <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
ffc04d90:	80 09 00 5c 	lwz     r0,92(r9)                              
ffc04d94:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04d98:	40 be 00 18 	bne+    cr7,ffc04db0 <IMFS_unmount+0x48>       <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
ffc04d9c:	48 00 f5 6d 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc04da0:	38 00 00 16 	li      r0,22                                  <== NOT EXECUTED
ffc04da4:	90 03 00 00 	stw     r0,0(r3)                               <== NOT EXECUTED
ffc04da8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04dac:	48 00 00 10 	b       ffc04dbc <IMFS_unmount+0x54>           <== NOT EXECUTED
  /*                                                                  
   * Set the mt_fs pointer to indicate that there is no longer        
   * a file system mounted to this point.                             
   */                                                                 
                                                                      
  node->info.directory.mt_fs = NULL;                                  
ffc04db0:	38 00 00 00 	li      r0,0                                   
ffc04db4:	90 09 00 5c 	stw     r0,92(r9)                              
                                                                      
  return 0;                                                           
ffc04db8:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc04dbc:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04dc0:	38 21 00 08 	addi    r1,r1,8                                
ffc04dc4:	7c 08 03 a6 	mtlr    r0                                     
ffc04dc8:	4e 80 00 20 	blr                                            
                                                                      

ffc03e2c <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
ffc03e2c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc03e30:	7c 08 02 a6 	mflr    r0                                     
ffc03e34:	90 01 00 44 	stw     r0,68(r1)                              
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
ffc03e38:	3c 00 a5 a5 	lis     r0,-23131                              
ffc03e3c:	60 00 a5 a5 	ori     r0,r0,42405                            
static rtems_printk_plugin_t   print_handler;                         
                                                                      
void Stack_check_Dump_threads_usage(                                  
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc03e40:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc03e44:	7c 7b 1b 78 	mr      r27,r3                                 
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc03e48:	81 63 00 d0 	lwz     r11,208(r3)                            
  size = Stack_check_usable_stack_size(stack);                        
ffc03e4c:	83 83 00 cc 	lwz     r28,204(r3)                            
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc03e50:	39 6b 00 80 	addi    r11,r11,128                            
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc03e54:	83 43 00 dc 	lwz     r26,220(r3)                            
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
ffc03e58:	3b 9c ff 80 	addi    r28,r28,-128                           
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
ffc03e5c:	39 2b 00 80 	addi    r9,r11,128                             
    for (ebase = base + length; base < ebase; base++)                 
ffc03e60:	57 8a 00 3a 	rlwinm  r10,r28,0,0,29                         
ffc03e64:	7d 49 52 14 	add     r10,r9,r10                             
ffc03e68:	48 00 00 14 	b       ffc03e7c <Stack_check_Dump_threads_usage+0x50>
      if (*base != U32_PATTERN)                                       
ffc03e6c:	81 09 00 00 	lwz     r8,0(r9)                               
ffc03e70:	7f 88 00 00 	cmpw    cr7,r8,r0                              
ffc03e74:	40 9e 00 18 	bne-    cr7,ffc03e8c <Stack_check_Dump_threads_usage+0x60>
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc03e78:	39 29 00 04 	addi    r9,r9,4                                
ffc03e7c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc03e80:	41 9c ff ec 	blt+    cr7,ffc03e6c <Stack_check_Dump_threads_usage+0x40><== 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;                                                         
ffc03e84:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc03e88:	48 00 00 18 	b       ffc03ea0 <Stack_check_Dump_threads_usage+0x74><== NOT EXECUTED
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
ffc03e8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
  else                                                                
    used = 0;                                                         
ffc03e90:	3b a0 00 00 	li      r29,0                                  
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
ffc03e94:	41 9e 00 0c 	beq-    cr7,ffc03ea0 <Stack_check_Dump_threads_usage+0x74><== NEVER TAKEN
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
ffc03e98:	7f ab e2 14 	add     r29,r11,r28                            
ffc03e9c:	7f a9 e8 50 	subf    r29,r9,r29                             
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
ffc03ea0:	3f c0 00 00 	lis     r30,0                                  
ffc03ea4:	83 1b 00 08 	lwz     r24,8(r27)                             
ffc03ea8:	3b fe 28 b0 	addi    r31,r30,10416                          
ffc03eac:	83 3e 28 b0 	lwz     r25,10416(r30)                         
ffc03eb0:	82 ff 00 04 	lwz     r23,4(r31)                             
ffc03eb4:	38 80 00 05 	li      r4,5                                   
ffc03eb8:	38 a1 00 08 	addi    r5,r1,8                                
ffc03ebc:	7f 03 c3 78 	mr      r3,r24                                 
ffc03ec0:	48 00 5f a5 	bl      ffc09e64 <rtems_object_get_name>       
ffc03ec4:	3c 80 ff c2 	lis     r4,-62                                 
ffc03ec8:	7c 66 1b 78 	mr      r6,r3                                  
ffc03ecc:	7f 29 03 a6 	mtctr   r25                                    
ffc03ed0:	38 84 99 2c 	addi    r4,r4,-26324                           
ffc03ed4:	7f 05 c3 78 	mr      r5,r24                                 
ffc03ed8:	7e e3 bb 78 	mr      r3,r23                                 
ffc03edc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03ee0:	4e 80 04 21 	bctrl                                          
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc03ee4:	80 db 00 cc 	lwz     r6,204(r27)                            
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc03ee8:	80 1e 28 b0 	lwz     r0,10416(r30)                          
ffc03eec:	3c 80 ff c2 	lis     r4,-62                                 
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc03ef0:	80 bb 00 d0 	lwz     r5,208(r27)                            
ffc03ef4:	38 c6 ff ff 	addi    r6,r6,-1                               
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc03ef8:	7c 09 03 a6 	mtctr   r0                                     
ffc03efc:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc03f00:	38 84 99 39 	addi    r4,r4,-26311                           
ffc03f04:	7c c5 32 14 	add     r6,r5,r6                               
ffc03f08:	7f 47 d3 78 	mr      r7,r26                                 
ffc03f0c:	7f 88 e3 78 	mr      r8,r28                                 
ffc03f10:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03f14:	4e 80 04 21 	bctrl                                          
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc03f18:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc03f1c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc03f20:	40 be 00 24 	bne+    cr7,ffc03f44 <Stack_check_Dump_threads_usage+0x118><== ALWAYS TAKEN
    (*print_handler)( print_context, "Unavailable\n" );               
ffc03f24:	80 1e 28 b0 	lwz     r0,10416(r30)                          <== NOT EXECUTED
ffc03f28:	3c 80 ff c2 	lis     r4,-62                                 <== NOT EXECUTED
ffc03f2c:	80 7f 00 04 	lwz     r3,4(r31)                              <== NOT EXECUTED
ffc03f30:	38 84 99 57 	addi    r4,r4,-26281                           <== NOT EXECUTED
ffc03f34:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc03f38:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc03f3c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc03f40:	48 00 00 24 	b       ffc03f64 <Stack_check_Dump_threads_usage+0x138><== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
ffc03f44:	80 1e 28 b0 	lwz     r0,10416(r30)                          
ffc03f48:	3c 80 ff c2 	lis     r4,-62                                 
ffc03f4c:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc03f50:	38 84 99 64 	addi    r4,r4,-26268                           
ffc03f54:	7f a5 eb 78 	mr      r5,r29                                 
ffc03f58:	7c 09 03 a6 	mtctr   r0                                     
ffc03f5c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03f60:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
                                                                      
}                                                                     
ffc03f64:	39 61 00 40 	addi    r11,r1,64                              
ffc03f68:	4b ff c8 2c 	b       ffc00794 <_restgpr_23_x>               
                                                                      

ffc0403c <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) {
ffc0403c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04040:	7c 08 02 a6 	mflr    r0                                     
ffc04044:	90 01 00 3c 	stw     r0,60(r1)                              
ffc04048:	bf a1 00 2c 	stmw    r29,44(r1)                             
ffc0404c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04050:	7c 9e 23 78 	mr      r30,r4                                 
  Stack_Control *stack = &running->Start.Initial_stack;               
  void *pattern_area = Stack_check_Get_pattern_area(stack);           
ffc04054:	83 e3 00 d0 	lwz     r31,208(r3)                            
  char name [32];                                                     
                                                                      
  printk("BLOWN STACK!!!\n");                                         
ffc04058:	3c 60 ff c2 	lis     r3,-62                                 
ffc0405c:	38 63 99 6a 	addi    r3,r3,-26262                           
ffc04060:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04064:	48 00 1c f5 	bl      ffc05d58 <printk>                      
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
ffc04068:	3c 60 ff c2 	lis     r3,-62                                 
ffc0406c:	38 63 99 7a 	addi    r3,r3,-26246                           
ffc04070:	7f a4 eb 78 	mr      r4,r29                                 
ffc04074:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04078:	48 00 1c e1 	bl      ffc05d58 <printk>                      
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
ffc0407c:	80 9d 00 08 	lwz     r4,8(r29)                              
ffc04080:	3c 60 ff c2 	lis     r3,-62                                 
ffc04084:	38 63 99 97 	addi    r3,r3,-26217                           
ffc04088:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0408c:	48 00 1c cd 	bl      ffc05d58 <printk>                      
  printk(                                                             
ffc04090:	80 9d 00 0c 	lwz     r4,12(r29)                             
ffc04094:	3c 60 ff c2 	lis     r3,-62                                 
ffc04098:	38 63 99 a9 	addi    r3,r3,-26199                           
ffc0409c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc040a0:	48 00 1c b9 	bl      ffc05d58 <printk>                      
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
ffc040a4:	80 7d 00 08 	lwz     r3,8(r29)                              
ffc040a8:	38 a1 00 08 	addi    r5,r1,8                                
ffc040ac:	38 80 00 20 	li      r4,32                                  
ffc040b0:	48 00 5d b5 	bl      ffc09e64 <rtems_object_get_name>       
ffc040b4:	7c 64 1b 78 	mr      r4,r3                                  
ffc040b8:	3c 60 ff c2 	lis     r3,-62                                 
ffc040bc:	38 63 99 bd 	addi    r3,r3,-26179                           
ffc040c0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc040c4:	48 00 1c 95 	bl      ffc05d58 <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)                              
ffc040c8:	80 bd 00 d0 	lwz     r5,208(r29)                            
ffc040cc:	80 9d 00 cc 	lwz     r4,204(r29)                            
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
ffc040d0:	3c 60 ff c2 	lis     r3,-62                                 
ffc040d4:	38 63 99 d3 	addi    r3,r3,-26157                           
ffc040d8:	7c c5 22 14 	add     r6,r5,r4                               
ffc040dc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc040e0:	48 00 1c 79 	bl      ffc05d58 <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) {                                                  
ffc040e4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc040e8:	40 be 00 20 	bne+    cr7,ffc04108 <Stack_check_report_blown_task+0xcc><== NEVER TAKEN
    printk(                                                           
ffc040ec:	3c 60 ff c2 	lis     r3,-62                                 
ffc040f0:	38 63 9a 04 	addi    r3,r3,-26108                           
ffc040f4:	38 80 00 80 	li      r4,128                                 
ffc040f8:	38 bf 00 08 	addi    r5,r31,8                               
ffc040fc:	38 df 00 88 	addi    r6,r31,136                             
ffc04100:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04104:	48 00 1c 55 	bl      ffc05d58 <printk>                      
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal_error_occurred(0x81);                                   
ffc04108:	38 60 00 81 	li      r3,129                                 
ffc0410c:	48 00 66 d1 	bl      ffc0a7dc <rtems_fatal_error_occurred>  
                                                                      

ffc0ae80 <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) {
ffc0ae80:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ae84:	7c 08 02 a6 	mflr    r0                                     
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0ae88:	3d 20 00 00 	lis     r9,0                                   
  Objects_Id                           id,                            
  bool                                 wait,                          
  Watchdog_Interval                    timeout,                       
  CORE_RWLock_API_mp_support_callout   api_rwlock_mp_support          
)                                                                     
{                                                                     
ffc0ae8c:	90 01 00 24 	stw     r0,36(r1)                              
ffc0ae90:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc0ae94:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ae98:	7c 9e 23 78 	mr      r30,r4                                 
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0ae9c:	83 89 31 1c 	lwz     r28,12572(r9)                          
  Objects_Id                           id,                            
  bool                                 wait,                          
  Watchdog_Interval                    timeout,                       
  CORE_RWLock_API_mp_support_callout   api_rwlock_mp_support          
)                                                                     
{                                                                     
ffc0aea0:	7c bd 2b 78 	mr      r29,r5                                 
ffc0aea4:	7c da 33 78 	mr      r26,r6                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0aea8:	7f 60 00 a6 	mfmsr   r27                                    
ffc0aeac:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc0aeb0:	7f 60 00 78 	andc    r0,r27,r0                              
ffc0aeb4:	7c 00 01 24 	mtmsr   r0                                     
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    switch ( the_rwlock->current_state ) {                            
ffc0aeb8:	80 03 00 44 	lwz     r0,68(r3)                              
ffc0aebc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0aec0:	41 9e 00 10 	beq-    cr7,ffc0aed0 <_CORE_RWLock_Obtain_for_reading+0x50>
ffc0aec4:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0aec8:	40 be 00 44 	bne+    cr7,ffc0af0c <_CORE_RWLock_Obtain_for_reading+0x8c>
ffc0aecc:	48 00 00 1c 	b       ffc0aee8 <_CORE_RWLock_Obtain_for_reading+0x68>
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
	the_rwlock->number_of_readers += 1;                                  
ffc0aed0:	81 23 00 48 	lwz     r9,72(r3)                              
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    switch ( the_rwlock->current_state ) {                            
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
ffc0aed4:	38 00 00 01 	li      r0,1                                   
ffc0aed8:	90 03 00 44 	stw     r0,68(r3)                              
	the_rwlock->number_of_readers += 1;                                  
ffc0aedc:	38 09 00 01 	addi    r0,r9,1                                
ffc0aee0:	90 03 00 48 	stw     r0,72(r3)                              
	_ISR_Enable( level );                                                
ffc0aee4:	48 00 00 1c 	b       ffc0af00 <_CORE_RWLock_Obtain_for_reading+0x80>
	executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;                
	return;                                                              
                                                                      
      case CORE_RWLOCK_LOCKED_FOR_READING: {                          
        Thread_Control *waiter;                                       
        waiter = _Thread_queue_First( &the_rwlock->Wait_queue );      
ffc0aee8:	48 00 20 ed 	bl      ffc0cfd4 <_Thread_queue_First>         
        if ( !waiter ) {                                              
ffc0aeec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0aef0:	40 be 00 1c 	bne+    cr7,ffc0af0c <_CORE_RWLock_Obtain_for_reading+0x8c><== NEVER TAKEN
	  the_rwlock->number_of_readers += 1;                                
ffc0aef4:	81 3f 00 48 	lwz     r9,72(r31)                             
ffc0aef8:	38 09 00 01 	addi    r0,r9,1                                
ffc0aefc:	90 1f 00 48 	stw     r0,72(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0af00:	7f 60 01 24 	mtmsr   r27                                    
	  _ISR_Enable( level );                                              
	  executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;              
ffc0af04:	38 00 00 00 	li      r0,0                                   
ffc0af08:	48 00 00 14 	b       ffc0af1c <_CORE_RWLock_Obtain_for_reading+0x9c>
                                                                      
    /*                                                                
     *  If the thread is not willing to wait, then return immediately.
     */                                                               
                                                                      
    if ( !wait ) {                                                    
ffc0af0c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0af10:	40 9e 00 14 	bne-    cr7,ffc0af24 <_CORE_RWLock_Obtain_for_reading+0xa4>
ffc0af14:	7f 60 01 24 	mtmsr   r27                                    
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
ffc0af18:	38 00 00 02 	li      r0,2                                   
ffc0af1c:	90 1c 00 34 	stw     r0,52(r28)                             
      return;                                                         
ffc0af20:	48 00 00 38 	b       ffc0af58 <_CORE_RWLock_Obtain_for_reading+0xd8>
ffc0af24:	38 00 00 01 	li      r0,1                                   
ffc0af28:	90 1f 00 30 	stw     r0,48(r31)                             
     */                                                               
                                                                      
    _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );  
    executing->Wait.queue       = &the_rwlock->Wait_queue;            
    executing->Wait.id          = id;                                 
    executing->Wait.option      = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
ffc0af2c:	38 00 00 00 	li      r0,0                                   
    /*                                                                
     *  We need to wait to enter this critical section                
     */                                                               
                                                                      
    _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );  
    executing->Wait.queue       = &the_rwlock->Wait_queue;            
ffc0af30:	93 fc 00 44 	stw     r31,68(r28)                            
    executing->Wait.id          = id;                                 
ffc0af34:	93 dc 00 20 	stw     r30,32(r28)                            
    executing->Wait.option      = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
ffc0af38:	90 1c 00 30 	stw     r0,48(r28)                             
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
ffc0af3c:	90 1c 00 34 	stw     r0,52(r28)                             
ffc0af40:	7f 60 01 24 	mtmsr   r27                                    
    _ISR_Enable( level );                                             
                                                                      
    _Thread_queue_Enqueue_with_handler(                               
ffc0af44:	3c a0 ff c1 	lis     r5,-63                                 
ffc0af48:	7f e3 fb 78 	mr      r3,r31                                 
ffc0af4c:	7f 44 d3 78 	mr      r4,r26                                 
ffc0af50:	38 a5 b0 f8 	addi    r5,r5,-20232                           
ffc0af54:	48 00 1c b9 	bl      ffc0cc0c <_Thread_queue_Enqueue_with_handler>
       timeout,                                                       
       _CORE_RWLock_Timeout                                           
    );                                                                
                                                                      
    /* return to API level so it can dispatch and we block */         
}                                                                     
ffc0af58:	39 61 00 20 	addi    r11,r1,32                              
ffc0af5c:	4b ff 6c a0 	b       ffc01bfc <_restgpr_26_x>               
                                                                      

ffc0affc <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) {
ffc0affc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0b000:	7c 08 02 a6 	mflr    r0                                     
ffc0b004:	94 21 ff f0 	stwu    r1,-16(r1)                             
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0b008:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
                                                                      
CORE_RWLock_Status _CORE_RWLock_Release(                              
  CORE_RWLock_Control  *the_rwlock                                    
)                                                                     
{                                                                     
ffc0b00c:	90 01 00 14 	stw     r0,20(r1)                              
ffc0b010:	48 00 c7 99 	bl      ffc177a8 <_savegpr_31>                 
ffc0b014:	7c 7f 1b 78 	mr      r31,r3                                 
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0b018:	81 69 31 1c 	lwz     r11,12572(r9)                          
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0b01c:	7c 00 00 a6 	mfmsr   r0                                     
ffc0b020:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0b024:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0b028:	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){          
ffc0b02c:	81 23 00 44 	lwz     r9,68(r3)                              
ffc0b030:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b034:	40 be 00 14 	bne+    cr7,ffc0b048 <_CORE_RWLock_Release+0x4c>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0b038:	7c 00 01 24 	mtmsr   r0                                     
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
ffc0b03c:	38 00 00 02 	li      r0,2                                   
ffc0b040:	90 0b 00 34 	stw     r0,52(r11)                             
      return CORE_RWLOCK_SUCCESSFUL;                                  
ffc0b044:	48 00 00 a8 	b       ffc0b0ec <_CORE_RWLock_Release+0xf0>   
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
ffc0b048:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0b04c:	40 9e 00 20 	bne-    cr7,ffc0b06c <_CORE_RWLock_Release+0x70>
	the_rwlock->number_of_readers -= 1;                                  
ffc0b050:	81 23 00 48 	lwz     r9,72(r3)                              
ffc0b054:	39 29 ff ff 	addi    r9,r9,-1                               
	if ( the_rwlock->number_of_readers != 0 ) {                          
ffc0b058:	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;                                  
ffc0b05c:	91 23 00 48 	stw     r9,72(r3)                              
	if ( the_rwlock->number_of_readers != 0 ) {                          
ffc0b060:	41 be 00 0c 	beq+    cr7,ffc0b06c <_CORE_RWLock_Release+0x70>
ffc0b064:	7c 00 01 24 	mtmsr   r0                                     
          /* must be unlocked again */                                
	  _ISR_Enable( level );                                              
          return CORE_RWLOCK_SUCCESSFUL;                              
ffc0b068:	48 00 00 84 	b       ffc0b0ec <_CORE_RWLock_Release+0xf0>   
        }                                                             
    }                                                                 
                                                                      
    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */      
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
ffc0b06c:	39 20 00 00 	li      r9,0                                   
ffc0b070:	91 2b 00 34 	stw     r9,52(r11)                             
                                                                      
    /*                                                                
     * Implicitly transition to "unlocked" and find another thread interested
     * in obtaining this rwlock.                                      
     */                                                               
    the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;                 
ffc0b074:	91 3f 00 44 	stw     r9,68(r31)                             
ffc0b078:	7c 00 01 24 	mtmsr   r0                                     
  _ISR_Enable( level );                                               
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
ffc0b07c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b080:	48 00 19 fd 	bl      ffc0ca7c <_Thread_queue_Dequeue>       
                                                                      
  if ( next ) {                                                       
ffc0b084:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b088:	41 82 00 64 	beq-    ffc0b0ec <_CORE_RWLock_Release+0xf0>   
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
ffc0b08c:	80 03 00 30 	lwz     r0,48(r3)                              
ffc0b090:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0b094:	40 be 00 10 	bne+    cr7,ffc0b0a4 <_CORE_RWLock_Release+0xa8>
      the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;     
ffc0b098:	38 00 00 02 	li      r0,2                                   
ffc0b09c:	90 1f 00 44 	stw     r0,68(r31)                             
      return CORE_RWLOCK_SUCCESSFUL;                                  
ffc0b0a0:	48 00 00 4c 	b       ffc0b0ec <_CORE_RWLock_Release+0xf0>   
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
ffc0b0a4:	81 3f 00 48 	lwz     r9,72(r31)                             
ffc0b0a8:	38 09 00 01 	addi    r0,r9,1                                
ffc0b0ac:	90 1f 00 48 	stw     r0,72(r31)                             
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
ffc0b0b0:	38 00 00 01 	li      r0,1                                   
ffc0b0b4:	90 1f 00 44 	stw     r0,68(r31)                             
                                                                      
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
ffc0b0b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b0bc:	48 00 1f 19 	bl      ffc0cfd4 <_Thread_queue_First>         
      if ( !next ||                                                   
ffc0b0c0:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0b0c4:	41 82 00 28 	beq-    ffc0b0ec <_CORE_RWLock_Release+0xf0>   
ffc0b0c8:	80 04 00 30 	lwz     r0,48(r4)                              
ffc0b0cc:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0b0d0:	41 9e 00 1c 	beq-    cr7,ffc0b0ec <_CORE_RWLock_Release+0xf0><== NEVER TAKEN
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
ffc0b0d4:	81 3f 00 48 	lwz     r9,72(r31)                             
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
ffc0b0d8:	7f e3 fb 78 	mr      r3,r31                                 
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
ffc0b0dc:	38 09 00 01 	addi    r0,r9,1                                
ffc0b0e0:	90 1f 00 48 	stw     r0,72(r31)                             
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
ffc0b0e4:	48 00 1d 89 	bl      ffc0ce6c <_Thread_queue_Extract>       
    }                                                                 
ffc0b0e8:	4b ff ff d0 	b       ffc0b0b8 <_CORE_RWLock_Release+0xbc>   
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
ffc0b0ec:	39 61 00 10 	addi    r11,r1,16                              
ffc0b0f0:	38 60 00 00 	li      r3,0                                   
ffc0b0f4:	4b ff 6b 1c 	b       ffc01c10 <_restgpr_31_x>               
                                                                      

ffc0b0f8 <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) {
ffc0b0f8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0b0fc:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0b100:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _CORE_RWLock_Timeout(                                            
  Objects_Id  id,                                                     
  void       *ignored                                                 
)                                                                     
{                                                                     
ffc0b104:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0b108:	48 00 15 c1 	bl      ffc0c6c8 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0b10c:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0b110:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0b114:	40 9e 00 18 	bne-    cr7,ffc0b12c <_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 );                    
ffc0b118:	48 00 1f dd 	bl      ffc0d0f4 <_Thread_queue_Process_timeout>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc0b11c:	3d 20 00 00 	lis     r9,0                                   
ffc0b120:	81 69 27 bc 	lwz     r11,10172(r9)                          
ffc0b124:	38 0b ff ff 	addi    r0,r11,-1                              
ffc0b128:	90 09 27 bc 	stw     r0,10172(r9)                           
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0b12c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0b130:	38 21 00 18 	addi    r1,r1,24                               
ffc0b134:	7c 08 03 a6 	mtlr    r0                                     
ffc0b138:	4e 80 00 20 	blr                                            
                                                                      

ffc19cbc <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) {
ffc19cbc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc19cc0:	7c 08 02 a6 	mflr    r0                                     
ffc19cc4:	90 01 00 24 	stw     r0,36(r1)                              
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
ffc19cc8:	80 03 00 4c 	lwz     r0,76(r3)                              
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
ffc19ccc:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc19cd0:	7c 7f 1b 78 	mr      r31,r3                                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
ffc19cd4:	7f 85 00 40 	cmplw   cr7,r5,r0                              
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
ffc19cd8:	7c 9d 23 78 	mr      r29,r4                                 
ffc19cdc:	7c be 2b 78 	mr      r30,r5                                 
ffc19ce0:	7d 1b 43 78 	mr      r27,r8                                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;                    
ffc19ce4:	38 60 00 01 	li      r3,1                                   
{                                                                     
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
ffc19ce8:	41 9d 00 54 	bgt-    cr7,ffc19d3c <_CORE_message_queue_Broadcast+0x80><== NEVER TAKEN
   *  NOTE: This check is critical because threads can block on       
   *        send and receive and this ensures that we are broadcasting
   *        the message to threads waiting to receive -- not to send. 
   */                                                                 
                                                                      
  if ( the_message_queue->number_of_pending_messages != 0 ) {         
ffc19cec:	80 1f 00 48 	lwz     r0,72(r31)                             
ffc19cf0:	3b 80 00 00 	li      r28,0                                  
ffc19cf4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc19cf8:	41 be 00 30 	beq+    cr7,ffc19d28 <_CORE_message_queue_Broadcast+0x6c>
    *count = 0;                                                       
ffc19cfc:	38 00 00 00 	li      r0,0                                   
ffc19d00:	90 08 00 00 	stw     r0,0(r8)                               
    return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                      
ffc19d04:	38 60 00 00 	li      r3,0                                   
ffc19d08:	48 00 00 34 	b       ffc19d3c <_CORE_message_queue_Broadcast+0x80>
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
ffc19d0c:	80 7a 00 2c 	lwz     r3,44(r26)                             
ffc19d10:	7f a4 eb 78 	mr      r4,r29                                 
ffc19d14:	7f c5 f3 78 	mr      r5,r30                                 
ffc19d18:	48 00 98 2d 	bl      ffc23544 <memcpy>                      
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
ffc19d1c:	81 3a 00 28 	lwz     r9,40(r26)                             
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
ffc19d20:	3b 9c 00 01 	addi    r28,r28,1                              
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
ffc19d24:	93 c9 00 00 	stw     r30,0(r9)                              
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
ffc19d28:	7f e3 fb 78 	mr      r3,r31                                 
ffc19d2c:	48 00 2b 69 	bl      ffc1c894 <_Thread_queue_Dequeue>       
ffc19d30:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc19d34:	40 82 ff d8 	bne+    ffc19d0c <_CORE_message_queue_Broadcast+0x50>
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
ffc19d38:	93 9b 00 00 	stw     r28,0(r27)                             
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
ffc19d3c:	39 61 00 20 	addi    r11,r1,32                              
ffc19d40:	4b ff 45 68 	b       ffc0e2a8 <_restgpr_26_x>               
                                                                      

ffc11ab0 <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) {
ffc11ab0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc11ab4:	7c 08 02 a6 	mflr    r0                                     
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
ffc11ab8:	7c c9 33 78 	mr      r9,r6                                  
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
ffc11abc:	90 01 00 24 	stw     r0,36(r1)                              
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
ffc11ac0:	38 00 00 00 	li      r0,0                                   
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
ffc11ac4:	bf 81 00 10 	stmw    r28,16(r1)                             
ffc11ac8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc11acc:	7c 9d 23 78 	mr      r29,r4                                 
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
ffc11ad0:	90 03 00 48 	stw     r0,72(r3)                              
    CORE_message_queue_Control        *the_message_queue,             
    CORE_message_queue_Notify_Handler  the_handler,                   
    void                              *the_argument                   
  )                                                                   
  {                                                                   
    the_message_queue->notify_handler  = the_handler;                 
ffc11ad4:	90 03 00 60 	stw     r0,96(r3)                              
    the_message_queue->notify_argument = the_argument;                
ffc11ad8:	90 03 00 64 	stw     r0,100(r3)                             
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
ffc11adc:	70 c0 00 03 	andi.   r0,r6,3                                
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
ffc11ae0:	90 a3 00 44 	stw     r5,68(r3)                              
  the_message_queue->number_of_pending_messages = 0;                  
  the_message_queue->maximum_message_size       = maximum_message_size;
ffc11ae4:	90 c3 00 4c 	stw     r6,76(r3)                              
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
ffc11ae8:	41 82 00 18 	beq-    ffc11b00 <_CORE_message_queue_Initialize+0x50>
    allocated_message_size += sizeof(uint32_t);                       
ffc11aec:	39 26 00 04 	addi    r9,r6,4                                
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
ffc11af0:	55 29 00 3a 	rlwinm  r9,r9,0,0,29                           
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
ffc11af4:	7f 89 30 40 	cmplw   cr7,r9,r6                              
    return false;                                                     
ffc11af8:	3b c0 00 00 	li      r30,0                                  
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
    allocated_message_size += sizeof(uint32_t);                       
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
ffc11afc:	41 bc 00 78 	blt+    cr7,ffc11b74 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
ffc11b00:	3b 89 00 14 	addi    r28,r9,20                              
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
ffc11b04:	7c 7c 29 d6 	mullw   r3,r28,r5                              
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
ffc11b08:	3b c0 00 00 	li      r30,0                                  
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
ffc11b0c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc11b10:	41 bc 00 64 	blt+    cr7,ffc11b74 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
ffc11b14:	90 a1 00 08 	stw     r5,8(r1)                               
ffc11b18:	48 00 32 75 	bl      ffc14d8c <_Workspace_Allocate>         
                                                                      
  if (the_message_queue->message_buffers == 0)                        
ffc11b1c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
ffc11b20:	7c 64 1b 78 	mr      r4,r3                                  
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
ffc11b24:	90 7f 00 5c 	stw     r3,92(r31)                             
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
ffc11b28:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc11b2c:	41 9e 00 48 	beq-    cr7,ffc11b74 <_CORE_message_queue_Initialize+0xc4>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
ffc11b30:	38 7f 00 68 	addi    r3,r31,104                             
ffc11b34:	7f 86 e3 78 	mr      r6,r28                                 
ffc11b38:	48 00 59 21 	bl      ffc17458 <_Chain_Initialize>           
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
ffc11b3c:	80 9d 00 00 	lwz     r4,0(r29)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc11b40:	38 1f 00 54 	addi    r0,r31,84                              
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
ffc11b44:	93 df 00 54 	stw     r30,84(r31)                            
ffc11b48:	68 84 00 01 	xori    r4,r4,1                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc11b4c:	90 1f 00 50 	stw     r0,80(r31)                             
    the_message_queue->message_buffers,                               
    (size_t) maximum_pending_messages,                                
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
ffc11b50:	38 1f 00 50 	addi    r0,r31,80                              
                                                                      
  _Thread_queue_Initialize(                                           
ffc11b54:	7c 84 00 34 	cntlzw  r4,r4                                  
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
ffc11b58:	90 1f 00 58 	stw     r0,88(r31)                             
ffc11b5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc11b60:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
ffc11b64:	38 a0 00 80 	li      r5,128                                 
ffc11b68:	38 c0 00 06 	li      r6,6                                   
ffc11b6c:	48 00 24 11 	bl      ffc13f7c <_Thread_queue_Initialize>    
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
ffc11b70:	3b c0 00 01 	li      r30,1                                  
}                                                                     
ffc11b74:	39 61 00 20 	addi    r11,r1,32                              
ffc11b78:	7f c3 f3 78 	mr      r3,r30                                 
ffc11b7c:	4b ff 3e 54 	b       ffc059d0 <_restgpr_28_x>               
                                                                      

ffc11b80 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
ffc11b80:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc11b84:	7c 08 02 a6 	mflr    r0                                     
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
ffc11b88:	3d 60 00 00 	lis     r11,0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
ffc11b8c:	90 01 00 1c 	stw     r0,28(r1)                              
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
ffc11b90:	39 40 00 00 	li      r10,0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
ffc11b94:	7c 80 23 78 	mr      r0,r4                                  
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
ffc11b98:	81 6b 32 dc 	lwz     r11,13020(r11)                         
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
ffc11b9c:	7c a9 2b 78 	mr      r9,r5                                  
ffc11ba0:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc11ba4:	7c 7f 1b 78 	mr      r31,r3                                 
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
ffc11ba8:	91 4b 00 34 	stw     r10,52(r11)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc11bac:	7d 40 00 a6 	mfmsr   r10                                    
ffc11bb0:	7c b0 42 a6 	mfsprg  r5,0                                   
ffc11bb4:	7d 45 28 78 	andc    r5,r10,r5                              
ffc11bb8:	7c a0 01 24 	mtmsr   r5                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc11bbc:	83 c3 00 50 	lwz     r30,80(r3)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc11bc0:	38 a3 00 54 	addi    r5,r3,84                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc11bc4:	7f 9e 28 00 	cmpw    cr7,r30,r5                             
ffc11bc8:	41 9e 00 a4 	beq-    cr7,ffc11c6c <_CORE_message_queue_Seize+0xec>
  _ISR_Disable( level );                                              
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
ffc11bcc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
ffc11bd0:	80 9e 00 00 	lwz     r4,0(r30)                              
  the_chain->first    = new_first;                                    
ffc11bd4:	7c 65 1b 78 	mr      r5,r3                                  
ffc11bd8:	94 85 00 50 	stwu    r4,80(r5)                              
  new_first->previous = _Chain_Head(the_chain);                       
ffc11bdc:	90 a4 00 04 	stw     r5,4(r4)                               
ffc11be0:	41 9e 00 8c 	beq-    cr7,ffc11c6c <_CORE_message_queue_Seize+0xec><== NEVER TAKEN
    the_message_queue->number_of_pending_messages -= 1;               
ffc11be4:	81 63 00 48 	lwz     r11,72(r3)                             
ffc11be8:	38 0b ff ff 	addi    r0,r11,-1                              
ffc11bec:	90 03 00 48 	stw     r0,72(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc11bf0:	7d 40 01 24 	mtmsr   r10                                    
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
ffc11bf4:	80 be 00 0c 	lwz     r5,12(r30)                             
    _Thread_Executing->Wait.count =                                   
ffc11bf8:	3d 60 00 00 	lis     r11,0                                  
ffc11bfc:	81 6b 32 dc 	lwz     r11,13020(r11)                         
      _CORE_message_queue_Get_message_priority( the_message );        
    _CORE_message_queue_Copy_buffer(                                  
      the_message->Contents.buffer,                                   
ffc11c00:	3b be 00 10 	addi    r29,r30,16                             
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
ffc11c04:	90 a6 00 00 	stw     r5,0(r6)                               
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
ffc11c08:	7d 23 4b 78 	mr      r3,r9                                  
ffc11c0c:	7f a4 eb 78 	mr      r4,r29                                 
    _Thread_Executing->Wait.count =                                   
ffc11c10:	80 1e 00 08 	lwz     r0,8(r30)                              
ffc11c14:	90 0b 00 24 	stw     r0,36(r11)                             
ffc11c18:	48 00 8b 51 	bl      ffc1a768 <memcpy>                      
       *  is not, then we can go ahead and free the buffer.           
       *                                                              
       *  NOTE: If we note that the queue was not full before this receive,
       *  then we can avoid this dequeue.                             
       */                                                             
      the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
ffc11c1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc11c20:	48 00 1e f1 	bl      ffc13b10 <_Thread_queue_Dequeue>       
      if ( !the_thread ) {                                            
ffc11c24:	7c 69 1b 79 	mr.     r9,r3                                  
ffc11c28:	40 a2 00 14 	bne+    ffc11c3c <_CORE_message_queue_Seize+0xbc>
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (   
  CORE_message_queue_Control        *the_message_queue,               
  CORE_message_queue_Buffer_control *the_message                      
)                                                                     
{                                                                     
  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
ffc11c2c:	38 7f 00 68 	addi    r3,r31,104                             
ffc11c30:	7f c4 f3 78 	mr      r4,r30                                 
ffc11c34:	4b ff fd b9 	bl      ffc119ec <_Chain_Append>               
        _CORE_message_queue_Free_message_buffer(                      
          the_message_queue,                                          
          the_message                                                 
        );                                                            
        return;                                                       
ffc11c38:	48 00 00 7c 	b       ffc11cb4 <_CORE_message_queue_Seize+0x134>
  CORE_message_queue_Buffer_control *the_message,                     
  int                                priority                         
)                                                                     
{                                                                     
  #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)            
    the_message->priority = priority;                                 
ffc11c3c:	80 09 00 24 	lwz     r0,36(r9)                              
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
ffc11c40:	7f a3 eb 78 	mr      r3,r29                                 
       */                                                             
      _CORE_message_queue_Set_message_priority(                       
        the_message,                                                  
        the_thread->Wait.count                                        
      );                                                              
      the_message->Contents.size = (size_t) the_thread->Wait.option;  
ffc11c44:	80 a9 00 30 	lwz     r5,48(r9)                              
ffc11c48:	80 89 00 2c 	lwz     r4,44(r9)                              
ffc11c4c:	90 be 00 0c 	stw     r5,12(r30)                             
  CORE_message_queue_Buffer_control *the_message,                     
  int                                priority                         
)                                                                     
{                                                                     
  #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)            
    the_message->priority = priority;                                 
ffc11c50:	90 1e 00 08 	stw     r0,8(r30)                              
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
ffc11c54:	48 00 8b 15 	bl      ffc1a768 <memcpy>                      
        the_thread->Wait.return_argument_second.immutable_object,     
        the_message->Contents.buffer,                                 
        the_message->Contents.size                                    
      );                                                              
                                                                      
      _CORE_message_queue_Insert_message(                             
ffc11c58:	80 be 00 08 	lwz     r5,8(r30)                              
ffc11c5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc11c60:	7f c4 f3 78 	mr      r4,r30                                 
ffc11c64:	48 00 58 45 	bl      ffc174a8 <_CORE_message_queue_Insert_message>
         the_message_queue,                                           
         the_message,                                                 
         _CORE_message_queue_Get_message_priority( the_message )      
      );                                                              
      return;                                                         
ffc11c68:	48 00 00 4c 	b       ffc11cb4 <_CORE_message_queue_Seize+0x134>
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
ffc11c6c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc11c70:	40 9e 00 14 	bne-    cr7,ffc11c84 <_CORE_message_queue_Seize+0x104>
ffc11c74:	7d 40 01 24 	mtmsr   r10                                    
    _ISR_Enable( level );                                             
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
ffc11c78:	38 00 00 04 	li      r0,4                                   
ffc11c7c:	90 0b 00 34 	stw     r0,52(r11)                             
    return;                                                           
ffc11c80:	48 00 00 34 	b       ffc11cb4 <_CORE_message_queue_Seize+0x134>
                                                                      
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;
ffc11c84:	38 e0 00 01 	li      r7,1                                   
ffc11c88:	90 ff 00 30 	stw     r7,48(r31)                             
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
ffc11c8c:	93 eb 00 44 	stw     r31,68(r11)                            
  executing->Wait.id = id;                                            
ffc11c90:	90 0b 00 20 	stw     r0,32(r11)                             
  executing->Wait.return_argument_second.mutable_object = buffer;     
ffc11c94:	91 2b 00 2c 	stw     r9,44(r11)                             
  executing->Wait.return_argument = size_p;                           
ffc11c98:	90 cb 00 28 	stw     r6,40(r11)                             
ffc11c9c:	7d 40 01 24 	mtmsr   r10                                    
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
ffc11ca0:	3c a0 ff c1 	lis     r5,-63                                 
ffc11ca4:	7f e3 fb 78 	mr      r3,r31                                 
ffc11ca8:	7d 04 43 78 	mr      r4,r8                                  
ffc11cac:	38 a5 40 58 	addi    r5,r5,16472                            
ffc11cb0:	48 00 1f f1 	bl      ffc13ca0 <_Thread_queue_Enqueue_with_handler>
}                                                                     
ffc11cb4:	39 61 00 18 	addi    r11,r1,24                              
ffc11cb8:	4b ff 3d 1c 	b       ffc059d4 <_restgpr_29_x>               
                                                                      

ffc09a1c <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
ffc09a1c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09a20:	7c 08 02 a6 	mflr    r0                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc09a24:	3d 20 00 00 	lis     r9,0                                   
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
ffc09a28:	90 01 00 24 	stw     r0,36(r1)                              
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc09a2c:	80 09 27 8c 	lwz     r0,10124(r9)                           
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
ffc09a30:	bf 81 00 10 	stmw    r28,16(r1)                             
ffc09a34:	7c 7f 1b 78 	mr      r31,r3                                 
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc09a38:	2f 80 00 00 	cmpwi   cr7,r0,0                               
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
ffc09a3c:	7c 9e 23 78 	mr      r30,r4                                 
ffc09a40:	90 e1 00 08 	stw     r7,8(r1)                               
ffc09a44:	7c bd 2b 78 	mr      r29,r5                                 
ffc09a48:	7c dc 33 78 	mr      r28,r6                                 
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc09a4c:	41 9e 00 2c 	beq-    cr7,ffc09a78 <_CORE_mutex_Seize+0x5c>  
ffc09a50:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc09a54:	41 9e 00 24 	beq-    cr7,ffc09a78 <_CORE_mutex_Seize+0x5c>  <== NEVER TAKEN
ffc09a58:	3d 20 00 00 	lis     r9,0                                   
ffc09a5c:	80 09 27 d4 	lwz     r0,10196(r9)                           
ffc09a60:	2b 80 00 01 	cmplwi  cr7,r0,1                               
ffc09a64:	40 bd 00 14 	ble+    cr7,ffc09a78 <_CORE_mutex_Seize+0x5c>  
ffc09a68:	38 60 00 00 	li      r3,0                                   
ffc09a6c:	38 80 00 00 	li      r4,0                                   
ffc09a70:	38 a0 00 12 	li      r5,18                                  
ffc09a74:	48 00 07 25 	bl      ffc0a198 <_Internal_error_Occurred>    
ffc09a78:	7f e3 fb 78 	mr      r3,r31                                 
ffc09a7c:	38 81 00 08 	addi    r4,r1,8                                
ffc09a80:	48 00 82 35 	bl      ffc11cb4 <_CORE_mutex_Seize_interrupt_trylock>
ffc09a84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09a88:	41 9e 00 64 	beq-    cr7,ffc09aec <_CORE_mutex_Seize+0xd0>  
ffc09a8c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc09a90:	3d 20 00 00 	lis     r9,0                                   
ffc09a94:	39 29 31 b0 	addi    r9,r9,12720                            
ffc09a98:	40 9e 00 1c 	bne-    cr7,ffc09ab4 <_CORE_mutex_Seize+0x98>  
ffc09a9c:	80 01 00 08 	lwz     r0,8(r1)                               
ffc09aa0:	7c 00 01 24 	mtmsr   r0                                     
ffc09aa4:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc09aa8:	38 00 00 01 	li      r0,1                                   
ffc09aac:	90 09 00 34 	stw     r0,52(r9)                              
ffc09ab0:	48 00 00 3c 	b       ffc09aec <_CORE_mutex_Seize+0xd0>      
ffc09ab4:	81 29 00 0c 	lwz     r9,12(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;
ffc09ab8:	38 00 00 01 	li      r0,1                                   
ffc09abc:	90 1f 00 30 	stw     r0,48(r31)                             
ffc09ac0:	93 e9 00 44 	stw     r31,68(r9)                             
ffc09ac4:	93 c9 00 20 	stw     r30,32(r9)                             
ffc09ac8:	3d 20 00 00 	lis     r9,0                                   
ffc09acc:	81 69 27 8c 	lwz     r11,10124(r9)                          
ffc09ad0:	38 0b 00 01 	addi    r0,r11,1                               
ffc09ad4:	90 09 27 8c 	stw     r0,10124(r9)                           
ffc09ad8:	80 01 00 08 	lwz     r0,8(r1)                               
ffc09adc:	7c 00 01 24 	mtmsr   r0                                     
ffc09ae0:	7f e3 fb 78 	mr      r3,r31                                 
ffc09ae4:	7f 84 e3 78 	mr      r4,r28                                 
ffc09ae8:	4b ff fe c1 	bl      ffc099a8 <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
ffc09aec:	39 61 00 20 	addi    r11,r1,32                              
ffc09af0:	48 00 f5 e4 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc09c94 <_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 ) {
ffc09c94:	7c 08 02 a6 	mflr    r0                                     
ffc09c98:	7c 2b 0b 78 	mr      r11,r1                                 
ffc09c9c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09ca0:	90 01 00 14 	stw     r0,20(r1)                              
ffc09ca4:	48 00 f3 f1 	bl      ffc19094 <_savegpr_31>                 
ffc09ca8:	7c 7f 1b 78 	mr      r31,r3                                 
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc09cac:	48 00 18 a9 	bl      ffc0b554 <_Thread_queue_Dequeue>       
ffc09cb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
ffc09cb4:	38 00 00 00 	li      r0,0                                   
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc09cb8:	40 be 00 38 	bne+    cr7,ffc09cf0 <_CORE_semaphore_Surrender+0x5c>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc09cbc:	7d 60 00 a6 	mfmsr   r11                                    
ffc09cc0:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc09cc4:	7d 60 00 78 	andc    r0,r11,r0                              
ffc09cc8:	7c 00 01 24 	mtmsr   r0                                     
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09ccc:	81 3f 00 48 	lwz     r9,72(r31)                             
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
ffc09cd0:	38 00 00 04 	li      r0,4                                   
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09cd4:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc09cd8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc09cdc:	40 9c 00 10 	bge-    cr7,ffc09cec <_CORE_semaphore_Surrender+0x58><== NEVER TAKEN
        the_semaphore->count += 1;                                    
ffc09ce0:	39 29 00 01 	addi    r9,r9,1                                
ffc09ce4:	91 3f 00 48 	stw     r9,72(r31)                             
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
ffc09ce8:	38 00 00 00 	li      r0,0                                   
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc09cec:	7d 60 01 24 	mtmsr   r11                                    
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc09cf0:	39 61 00 10 	addi    r11,r1,16                              
ffc09cf4:	7c 03 03 78 	mr      r3,r0                                  
ffc09cf8:	48 00 f3 e8 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc08d18 <_Chain_Get_with_empty_check>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile (
ffc08d18:	7d 40 00 a6 	mfmsr   r10                                    
ffc08d1c:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc08d20:	7d 40 00 78 	andc    r0,r10,r0                              
ffc08d24:	7c 00 01 24 	mtmsr   r0                                     
  Chain_Control *the_chain,                                           
  Chain_Node **the_node                                               
)                                                                     
{                                                                     
  bool is_empty_now = true;                                           
  Chain_Node *first = the_chain->first;                               
ffc08d28:	81 63 00 00 	lwz     r11,0(r3)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc08d2c:	38 03 00 04 	addi    r0,r3,4                                
)                                                                     
{                                                                     
  bool is_empty_now = true;                                           
  Chain_Node *first = the_chain->first;                               
                                                                      
  if ( first != _Chain_Tail( the_chain ) ) {                          
ffc08d30:	7f 8b 00 00 	cmpw    cr7,r11,r0                             
ffc08d34:	41 9e 00 24 	beq-    cr7,ffc08d58 <_Chain_Get_with_empty_check+0x40><== NEVER TAKEN
    Chain_Node *new_first = first->next;                              
ffc08d38:	81 2b 00 00 	lwz     r9,0(r11)                              
                                                                      
    the_chain->first = new_first;                                     
ffc08d3c:	91 23 00 00 	stw     r9,0(r3)                               
    new_first->previous = _Chain_Head( the_chain );                   
ffc08d40:	90 69 00 04 	stw     r3,4(r9)                               
                                                                      
    *the_node = first;                                                
                                                                      
    is_empty_now = new_first == _Chain_Tail( the_chain );             
ffc08d44:	7d 23 02 78 	xor     r3,r9,r0                               
ffc08d48:	7c 63 00 34 	cntlzw  r3,r3                                  
    Chain_Node *new_first = first->next;                              
                                                                      
    the_chain->first = new_first;                                     
    new_first->previous = _Chain_Head( the_chain );                   
                                                                      
    *the_node = first;                                                
ffc08d4c:	91 64 00 00 	stw     r11,0(r4)                              
                                                                      
    is_empty_now = new_first == _Chain_Tail( the_chain );             
ffc08d50:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
ffc08d54:	48 00 00 10 	b       ffc08d64 <_Chain_Get_with_empty_check+0x4c>
  } else                                                              
    *the_node = NULL;                                                 
ffc08d58:	38 00 00 00 	li      r0,0                                   <== NOT EXECUTED
ffc08d5c:	90 04 00 00 	stw     r0,0(r4)                               <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Get_with_empty_check_unprotected(    
  Chain_Control *the_chain,                                           
  Chain_Node **the_node                                               
)                                                                     
{                                                                     
  bool is_empty_now = true;                                           
ffc08d60:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08d64:	7d 40 01 24 	mtmsr   r10                                    
  _ISR_Disable( level );                                              
  is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node );
  _ISR_Enable( level );                                               
                                                                      
  return is_empty_now;                                                
}                                                                     
ffc08d68:	4e 80 00 20 	blr                                            
                                                                      

ffc086b0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
ffc086b0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc086b4:	7c 08 02 a6 	mflr    r0                                     
ffc086b8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc086bc:	90 01 00 14 	stw     r0,20(r1)                              
ffc086c0:	48 01 09 d5 	bl      ffc19094 <_savegpr_31>                 
ffc086c4:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_event_set     event_condition;                                
  rtems_event_set     seized_events;                                  
  rtems_option        option_set;                                     
  RTEMS_API_Control  *api;                                            
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
ffc086c8:	81 03 01 44 	lwz     r8,324(r3)                             
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
ffc086cc:	80 e3 00 30 	lwz     r7,48(r3)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc086d0:	7c 00 00 a6 	mfmsr   r0                                     
ffc086d4:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc086d8:	7c 09 48 78 	andc    r9,r0,r9                               
ffc086dc:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
  _ISR_Disable( level );                                              
  pending_events  = api->pending_events;                              
ffc086e0:	81 68 00 00 	lwz     r11,0(r8)                              
  event_condition = (rtems_event_set) the_thread->Wait.count;         
ffc086e4:	81 43 00 24 	lwz     r10,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 ) ) {                      
ffc086e8:	7d 49 58 39 	and.    r9,r10,r11                             
ffc086ec:	40 a2 00 08 	bne+    ffc086f4 <_Event_Surrender+0x44>       
    _ISR_Enable( level );                                             
ffc086f0:	48 00 00 f4 	b       ffc087e4 <_Event_Surrender+0x134>      
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
ffc086f4:	3c c0 00 00 	lis     r6,0                                   
ffc086f8:	38 c6 31 b0 	addi    r6,r6,12720                            
ffc086fc:	80 a6 00 08 	lwz     r5,8(r6)                               
ffc08700:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc08704:	41 9e 00 64 	beq-    cr7,ffc08768 <_Event_Surrender+0xb8>   
ffc08708:	80 c6 00 0c 	lwz     r6,12(r6)                              
ffc0870c:	7f 83 30 00 	cmpw    cr7,r3,r6                              
ffc08710:	40 be 00 58 	bne+    cr7,ffc08768 <_Event_Surrender+0xb8>   
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
ffc08714:	3c c0 00 00 	lis     r6,0                                   
ffc08718:	80 a6 27 e0 	lwz     r5,10208(r6)                           
  /*                                                                  
   *  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 ) &&                          
ffc0871c:	2f 85 00 02 	cmpwi   cr7,r5,2                               
ffc08720:	41 9e 00 10 	beq-    cr7,ffc08730 <_Event_Surrender+0x80>   <== NEVER TAKEN
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
ffc08724:	80 c6 27 e0 	lwz     r6,10208(r6)                           
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
ffc08728:	2f 86 00 01 	cmpwi   cr7,r6,1                               
ffc0872c:	40 be 00 3c 	bne+    cr7,ffc08768 <_Event_Surrender+0xb8>   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
ffc08730:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc08734:	41 9e 00 0c 	beq-    cr7,ffc08740 <_Event_Surrender+0x90>   
ffc08738:	70 e5 00 02 	andi.   r5,r7,2                                
ffc0873c:	41 82 00 28 	beq-    ffc08764 <_Event_Surrender+0xb4>       <== NEVER TAKEN
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
ffc08740:	7d 6b 48 78 	andc    r11,r11,r9                             
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
ffc08744:	91 68 00 00 	stw     r11,0(r8)                              
      the_thread->Wait.count = 0;                                     
ffc08748:	39 60 00 00 	li      r11,0                                  
ffc0874c:	91 7f 00 24 	stw     r11,36(r31)                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc08750:	81 7f 00 28 	lwz     r11,40(r31)                            
ffc08754:	91 2b 00 00 	stw     r9,0(r11)                              
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
ffc08758:	39 60 00 03 	li      r11,3                                  
ffc0875c:	3d 20 00 00 	lis     r9,0                                   
ffc08760:	91 69 27 e0 	stw     r11,10208(r9)                          
    }                                                                 
    _ISR_Enable( level );                                             
ffc08764:	48 00 00 80 	b       ffc087e4 <_Event_Surrender+0x134>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
ffc08768:	80 df 00 10 	lwz     r6,16(r31)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
ffc0876c:	70 c5 01 00 	andi.   r5,r6,256                              
ffc08770:	41 82 00 74 	beq-    ffc087e4 <_Event_Surrender+0x134>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
ffc08774:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc08778:	41 9e 00 0c 	beq-    cr7,ffc08784 <_Event_Surrender+0xd4>   
ffc0877c:	70 ea 00 02 	andi.   r10,r7,2                               
ffc08780:	41 82 00 64 	beq-    ffc087e4 <_Event_Surrender+0x134>      <== NEVER TAKEN
ffc08784:	7d 6b 48 78 	andc    r11,r11,r9                             
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
ffc08788:	91 68 00 00 	stw     r11,0(r8)                              
      the_thread->Wait.count = 0;                                     
ffc0878c:	39 60 00 00 	li      r11,0                                  
ffc08790:	91 7f 00 24 	stw     r11,36(r31)                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc08794:	81 7f 00 28 	lwz     r11,40(r31)                            
ffc08798:	91 2b 00 00 	stw     r9,0(r11)                              
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  asm volatile (                                                      
ffc0879c:	7d 20 00 a6 	mfmsr   r9                                     
ffc087a0:	7c 00 01 24 	mtmsr   r0                                     
ffc087a4:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
ffc087a8:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc087ac:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc087b0:	41 9e 00 0c 	beq-    cr7,ffc087bc <_Event_Surrender+0x10c>  
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc087b4:	7c 00 01 24 	mtmsr   r0                                     
ffc087b8:	48 00 00 18 	b       ffc087d0 <_Event_Surrender+0x120>      
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
ffc087bc:	39 20 00 03 	li      r9,3                                   
ffc087c0:	91 3f 00 50 	stw     r9,80(r31)                             
ffc087c4:	7c 00 01 24 	mtmsr   r0                                     
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
        (void) _Watchdog_Remove( &the_thread->Timer );                
ffc087c8:	38 7f 00 48 	addi    r3,r31,72                              
ffc087cc:	48 00 3d 9d 	bl      ffc0c568 <_Watchdog_Remove>            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc087d0:	3c 80 10 03 	lis     r4,4099                                
ffc087d4:	7f e3 fb 78 	mr      r3,r31                                 
ffc087d8:	60 84 ff f8 	ori     r4,r4,65528                            
ffc087dc:	48 00 25 7d 	bl      ffc0ad58 <_Thread_Clear_state>         
ffc087e0:	48 00 00 08 	b       ffc087e8 <_Event_Surrender+0x138>      
ffc087e4:	7c 00 01 24 	mtmsr   r0                                     
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
ffc087e8:	39 61 00 10 	addi    r11,r1,16                              
ffc087ec:	48 01 08 f4 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc087f0 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
ffc087f0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc087f4:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc087f8:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Event_Timeout(                                                  
  Objects_Id  id,                                                     
  void       *ignored                                                 
)                                                                     
{                                                                     
ffc087fc:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc08800:	48 00 29 a1 	bl      ffc0b1a0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc08804:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08808:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0880c:	40 9e 00 68 	bne-    cr7,ffc08874 <_Event_Timeout+0x84>     <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc08810:	7d 60 00 a6 	mfmsr   r11                                    
ffc08814:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc08818:	7d 69 48 78 	andc    r9,r11,r9                              
ffc0881c:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc08820:	3d 20 00 00 	lis     r9,0                                   
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
ffc08824:	90 03 00 24 	stw     r0,36(r3)                              
        if ( _Thread_Is_executing( the_thread ) ) {                   
ffc08828:	80 09 31 bc 	lwz     r0,12732(r9)                           
ffc0882c:	7f 83 00 00 	cmpw    cr7,r3,r0                              
ffc08830:	40 be 00 1c 	bne+    cr7,ffc0884c <_Event_Timeout+0x5c>     
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
ffc08834:	3d 20 00 00 	lis     r9,0                                   
ffc08838:	80 09 27 e0 	lwz     r0,10208(r9)                           
ffc0883c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc08840:	40 be 00 0c 	bne+    cr7,ffc0884c <_Event_Timeout+0x5c>     
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
ffc08844:	38 00 00 02 	li      r0,2                                   
ffc08848:	90 09 27 e0 	stw     r0,10208(r9)                           
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
ffc0884c:	38 00 00 06 	li      r0,6                                   
ffc08850:	90 03 00 34 	stw     r0,52(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08854:	7d 60 01 24 	mtmsr   r11                                    
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc08858:	3c 80 10 03 	lis     r4,4099                                
ffc0885c:	60 84 ff f8 	ori     r4,r4,65528                            
ffc08860:	48 00 24 f9 	bl      ffc0ad58 <_Thread_Clear_state>         
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc08864:	3d 20 00 00 	lis     r9,0                                   
ffc08868:	81 69 27 8c 	lwz     r11,10124(r9)                          
ffc0886c:	38 0b ff ff 	addi    r0,r11,-1                              
ffc08870:	90 09 27 8c 	stw     r0,10124(r9)                           
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc08874:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc08878:	38 21 00 18 	addi    r1,r1,24                               
ffc0887c:	7c 08 03 a6 	mtlr    r0                                     
ffc08880:	4e 80 00 20 	blr                                            
                                                                      

ffc0e388 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
ffc0e388:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0e38c:	7c 08 02 a6 	mflr    r0                                     
ffc0e390:	be c1 00 18 	stmw    r22,24(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;
ffc0e394:	7f c4 2a 14 	add     r30,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 ) {                        
ffc0e398:	7f 9e 20 40 	cmplw   cr7,r30,r4                             
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
ffc0e39c:	90 01 00 44 	stw     r0,68(r1)                              
  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;                              
ffc0e3a0:	3b 40 00 00 	li      r26,0                                  
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
ffc0e3a4:	7c d9 33 78 	mr      r25,r6                                 
ffc0e3a8:	7c 7f 1b 78 	mr      r31,r3                                 
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
ffc0e3ac:	83 83 00 20 	lwz     r28,32(r3)                             
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
ffc0e3b0:	7c 9d 23 78 	mr      r29,r4                                 
  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;                              
ffc0e3b4:	93 41 00 08 	stw     r26,8(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 false;                                                     
ffc0e3b8:	38 00 00 00 	li      r0,0                                   
  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;                              
  Heap_Block *extend_last_block = NULL;                               
ffc0e3bc:	93 41 00 0c 	stw     r26,12(r1)                             
  uintptr_t const page_size = heap->page_size;                        
ffc0e3c0:	83 63 00 10 	lwz     r27,16(r3)                             
  uintptr_t const min_block_size = heap->min_block_size;              
ffc0e3c4:	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;                       
ffc0e3c8:	83 03 00 30 	lwz     r24,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 ) {                        
ffc0e3cc:	41 bc 02 70 	blt+    cr7,ffc0e63c <_Heap_Extend+0x2b4>      
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
ffc0e3d0:	7c 83 23 78 	mr      r3,r4                                  
ffc0e3d4:	38 e1 00 08 	addi    r7,r1,8                                
ffc0e3d8:	7c a4 2b 78 	mr      r4,r5                                  
ffc0e3dc:	39 01 00 0c 	addi    r8,r1,12                               
ffc0e3e0:	7f 65 db 78 	mr      r5,r27                                 
ffc0e3e4:	4b ff ac 7d 	bl      ffc09060 <_Heap_Get_first_and_last_block>
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
    /* For simplicity we reject extend areas that are too small */    
    return false;                                                     
ffc0e3e8:	7f 40 d3 78 	mr      r0,r26                                 
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
ffc0e3ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e3f0:	41 9e 02 4c 	beq-    cr7,ffc0e63c <_Heap_Extend+0x2b4>      
ffc0e3f4:	7f 89 e3 78 	mr      r9,r28                                 
ffc0e3f8:	3a c0 00 00 	li      r22,0                                  
ffc0e3fc:	39 40 00 00 	li      r10,0                                  
ffc0e400:	3a e0 00 00 	li      r23,0                                  
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
ffc0e404:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0e408:	7d 2b 4b 78 	mr      r11,r9                                 
ffc0e40c:	40 be 00 08 	bne+    cr7,ffc0e414 <_Heap_Extend+0x8c>       
ffc0e410:	81 7f 00 18 	lwz     r11,24(r31)                            
    uintptr_t const sub_area_end = start_block->prev_size;            
ffc0e414:	80 09 00 00 	lwz     r0,0(r9)                               
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
ffc0e418:	7f 80 e8 40 	cmplw   cr7,r0,r29                             
ffc0e41c:	40 9d 00 0c 	ble-    cr7,ffc0e428 <_Heap_Extend+0xa0>       
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
ffc0e420:	7f 9e 58 40 	cmplw   cr7,r30,r11                            
ffc0e424:	41 9d 02 14 	bgt-    cr7,ffc0e638 <_Heap_Extend+0x2b0>      
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
ffc0e428:	7f 9e 58 00 	cmpw    cr7,r30,r11                            
ffc0e42c:	41 9e 00 10 	beq-    cr7,ffc0e43c <_Heap_Extend+0xb4>       
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
ffc0e430:	7f 9e 00 40 	cmplw   cr7,r30,r0                             
ffc0e434:	41 9c 00 10 	blt-    cr7,ffc0e444 <_Heap_Extend+0xbc>       
ffc0e438:	48 00 00 10 	b       ffc0e448 <_Heap_Extend+0xc0>           
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
ffc0e43c:	7d 37 4b 78 	mr      r23,r9                                 
ffc0e440:	48 00 00 08 	b       ffc0e448 <_Heap_Extend+0xc0>           
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
ffc0e444:	7d 2a 4b 78 	mr      r10,r9                                 
ffc0e448:	7d 60 db 96 	divwu   r11,r0,r27                             
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
ffc0e44c:	7f 80 e8 00 	cmpw    cr7,r0,r29                             
ffc0e450:	7d 6b d9 d6 	mullw   r11,r11,r27                            
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc0e454:	39 6b ff f8 	addi    r11,r11,-8                             
ffc0e458:	40 be 00 10 	bne+    cr7,ffc0e468 <_Heap_Extend+0xe0>       
      start_block->prev_size = extend_area_end;                       
ffc0e45c:	93 c9 00 00 	stw     r30,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 )   
ffc0e460:	7d 7a 5b 78 	mr      r26,r11                                
ffc0e464:	48 00 00 10 	b       ffc0e474 <_Heap_Extend+0xec>           
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
ffc0e468:	7f 80 e8 40 	cmplw   cr7,r0,r29                             
ffc0e46c:	40 9c 00 08 	bge-    cr7,ffc0e474 <_Heap_Extend+0xec>       
ffc0e470:	7d 76 5b 78 	mr      r22,r11                                
    - 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;                
ffc0e474:	81 2b 00 04 	lwz     r9,4(r11)                              
ffc0e478:	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);                 
ffc0e47c:	7d 2b 4a 14 	add     r9,r11,r9                              
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
ffc0e480:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0e484:	40 9e ff 80 	bne+    cr7,ffc0e404 <_Heap_Extend+0x7c>       
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
ffc0e488:	80 1f 00 18 	lwz     r0,24(r31)                             
ffc0e48c:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc0e490:	40 9c 00 0c 	bge-    cr7,ffc0e49c <_Heap_Extend+0x114>      
    heap->area_begin = extend_area_begin;                             
ffc0e494:	93 bf 00 18 	stw     r29,24(r31)                            
ffc0e498:	48 00 00 14 	b       ffc0e4ac <_Heap_Extend+0x124>          
  } else if ( heap->area_end < extend_area_end ) {                    
ffc0e49c:	80 1f 00 1c 	lwz     r0,28(r31)                             
ffc0e4a0:	7f 80 f0 40 	cmplw   cr7,r0,r30                             
ffc0e4a4:	40 9c 00 08 	bge-    cr7,ffc0e4ac <_Heap_Extend+0x124>      
    heap->area_end = extend_area_end;                                 
ffc0e4a8:	93 df 00 1c 	stw     r30,28(r31)                            
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
ffc0e4ac:	81 61 00 08 	lwz     r11,8(r1)                              
ffc0e4b0:	81 21 00 0c 	lwz     r9,12(r1)                              
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
ffc0e4b4:	93 cb 00 00 	stw     r30,0(r11)                             
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
ffc0e4b8:	7c 0b 48 50 	subf    r0,r11,r9                              
    (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;                   
ffc0e4bc:	60 08 00 01 	ori     r8,r0,1                                
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
ffc0e4c0:	90 09 00 00 	stw     r0,0(r9)                               
  extend_last_block->size_and_flag = 0;                               
ffc0e4c4:	38 00 00 00 	li      r0,0                                   
                                                                      
  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 =                                 
ffc0e4c8:	91 0b 00 04 	stw     r8,4(r11)                              
    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;                               
ffc0e4cc:	90 09 00 04 	stw     r0,4(r9)                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc0e4d0:	80 1f 00 20 	lwz     r0,32(r31)                             
ffc0e4d4:	7f 80 58 40 	cmplw   cr7,r0,r11                             
ffc0e4d8:	40 9d 00 0c 	ble-    cr7,ffc0e4e4 <_Heap_Extend+0x15c>      
    heap->first_block = extend_first_block;                           
ffc0e4dc:	91 7f 00 20 	stw     r11,32(r31)                            
ffc0e4e0:	48 00 00 14 	b       ffc0e4f4 <_Heap_Extend+0x16c>          
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
ffc0e4e4:	80 1f 00 24 	lwz     r0,36(r31)                             
ffc0e4e8:	7f 80 48 40 	cmplw   cr7,r0,r9                              
ffc0e4ec:	40 9c 00 08 	bge-    cr7,ffc0e4f4 <_Heap_Extend+0x16c>      
    heap->last_block = extend_last_block;                             
ffc0e4f0:	91 3f 00 24 	stw     r9,36(r31)                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
ffc0e4f4:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc0e4f8:	41 9e 00 48 	beq-    cr7,ffc0e540 <_Heap_Extend+0x1b8>      
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
ffc0e4fc:	80 1f 00 10 	lwz     r0,16(r31)                             
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
ffc0e500:	3b bd 00 08 	addi    r29,r29,8                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
ffc0e504:	7d 3d 03 96 	divwu   r9,r29,r0                              
ffc0e508:	7d 29 01 d6 	mullw   r9,r9,r0                               
                                                                      
  if ( remainder != 0 ) {                                             
ffc0e50c:	7d 29 e8 51 	subf.   r9,r9,r29                              
ffc0e510:	41 82 00 0c 	beq-    ffc0e51c <_Heap_Extend+0x194>          <== ALWAYS TAKEN
    return value - remainder + alignment;                             
ffc0e514:	7f bd 02 14 	add     r29,r29,r0                             <== NOT EXECUTED
ffc0e518:	7f a9 e8 50 	subf    r29,r9,r29                             <== NOT EXECUTED
  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;                
ffc0e51c:	80 17 00 00 	lwz     r0,0(r23)                              
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
ffc0e520:	38 9d ff f8 	addi    r4,r29,-8                              
  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;
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
ffc0e524:	7f e3 fb 78 	mr      r3,r31                                 
  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;                
ffc0e528:	90 1d ff f8 	stw     r0,-8(r29)                             
  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 =                              
ffc0e52c:	7c 04 b8 50 	subf    r0,r4,r23                              
    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;
ffc0e530:	60 00 00 01 	ori     r0,r0,1                                
ffc0e534:	90 04 00 04 	stw     r0,4(r4)                               
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
ffc0e538:	4b ff fe 15 	bl      ffc0e34c <_Heap_Free_block>            
ffc0e53c:	48 00 00 1c 	b       ffc0e558 <_Heap_Extend+0x1d0>          
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
ffc0e540:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e544:	41 9e 00 14 	beq-    cr7,ffc0e558 <_Heap_Extend+0x1d0>      
    _Heap_Link_below(                                                 
ffc0e548:	81 21 00 0c 	lwz     r9,12(r1)                              
{                                                                     
  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;           
ffc0e54c:	7d 49 50 50 	subf    r10,r9,r10                             
ffc0e550:	61 4a 00 01 	ori     r10,r10,1                              
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
ffc0e554:	91 49 00 04 	stw     r10,4(r9)                              
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
ffc0e558:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0e55c:	41 9e 00 4c 	beq-    cr7,ffc0e5a8 <_Heap_Extend+0x220>      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc0e560:	80 1f 00 10 	lwz     r0,16(r31)                             
)                                                                     
{                                                                     
  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,      
ffc0e564:	3b de ff f8 	addi    r30,r30,-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(             
ffc0e568:	7f da f0 50 	subf    r30,r26,r30                            
ffc0e56c:	7f de 03 96 	divwu   r30,r30,r0                             
ffc0e570:	7f de 01 d6 	mullw   r30,r30,r0                             
  );                                                                  
  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)                 
ffc0e574:	80 1a 00 04 	lwz     r0,4(r26)                              
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
ffc0e578:	7f e3 fb 78 	mr      r3,r31                                 
  );                                                                  
  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)                 
ffc0e57c:	7c 1e 00 50 	subf    r0,r30,r0                              
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
ffc0e580:	7d 3e d2 14 	add     r9,r30,r26                             
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
ffc0e584:	60 00 00 01 	ori     r0,r0,1                                
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
ffc0e588:	90 09 00 04 	stw     r0,4(r9)                               
    (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 );                               
ffc0e58c:	7f 44 d3 78 	mr      r4,r26                                 
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;       
ffc0e590:	80 1a 00 04 	lwz     r0,4(r26)                              
ffc0e594:	54 00 07 fe 	clrlwi  r0,r0,31                               
                                                                      
  block->size_and_flag = size | flag;                                 
ffc0e598:	7f de 03 78 	or      r30,r30,r0                             
ffc0e59c:	93 da 00 04 	stw     r30,4(r26)                             
ffc0e5a0:	4b ff fd ad 	bl      ffc0e34c <_Heap_Free_block>            
ffc0e5a4:	48 00 00 34 	b       ffc0e5d8 <_Heap_Extend+0x250>          
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
ffc0e5a8:	2f 96 00 00 	cmpwi   cr7,r22,0                              
ffc0e5ac:	41 9e 00 2c 	beq-    cr7,ffc0e5d8 <_Heap_Extend+0x250>      
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;       
ffc0e5b0:	80 16 00 04 	lwz     r0,4(r22)                              
)                                                                     
{                                                                     
  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 );       
ffc0e5b4:	81 61 00 08 	lwz     r11,8(r1)                              
ffc0e5b8:	54 00 07 fe 	clrlwi  r0,r0,31                               
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
    _Heap_Link_above(                                                 
ffc0e5bc:	81 21 00 0c 	lwz     r9,12(r1)                              
)                                                                     
{                                                                     
  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 );       
ffc0e5c0:	7d 76 58 50 	subf    r11,r22,r11                            
                                                                      
  block->size_and_flag = size | flag;                                 
ffc0e5c4:	7d 60 03 78 	or      r0,r11,r0                              
ffc0e5c8:	90 16 00 04 	stw     r0,4(r22)                              
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
ffc0e5cc:	80 09 00 04 	lwz     r0,4(r9)                               
ffc0e5d0:	60 00 00 01 	ori     r0,r0,1                                
ffc0e5d4:	90 09 00 04 	stw     r0,4(r9)                               
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
ffc0e5d8:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc0e5dc:	40 be 00 18 	bne+    cr7,ffc0e5f4 <_Heap_Extend+0x26c>      
ffc0e5e0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0e5e4:	40 be 00 10 	bne+    cr7,ffc0e5f4 <_Heap_Extend+0x26c>      
    _Heap_Free_block( heap, extend_first_block );                     
ffc0e5e8:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0e5ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e5f0:	4b ff fd 5d 	bl      ffc0e34c <_Heap_Free_block>            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
    heap->last_block,                                                 
    (uintptr_t) heap->first_block - (uintptr_t) heap->last_block      
ffc0e5f4:	81 3f 00 24 	lwz     r9,36(r31)                             
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
ffc0e5f8:	2f 99 00 00 	cmpwi   cr7,r25,0                              
 * 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(                                               
ffc0e5fc:	81 7f 00 20 	lwz     r11,32(r31)                            
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;       
ffc0e600:	80 09 00 04 	lwz     r0,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(                                               
ffc0e604:	7d 69 58 50 	subf    r11,r9,r11                             
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;       
ffc0e608:	54 00 07 fe 	clrlwi  r0,r0,31                               
                                                                      
  block->size_and_flag = size | flag;                                 
ffc0e60c:	7d 60 03 78 	or      r0,r11,r0                              
ffc0e610:	90 09 00 04 	stw     r0,4(r9)                               
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
ffc0e614:	80 1f 00 30 	lwz     r0,48(r31)                             
ffc0e618:	7f 18 00 50 	subf    r24,r24,r0                             
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
ffc0e61c:	80 1f 00 2c 	lwz     r0,44(r31)                             
ffc0e620:	7c 00 c2 14 	add     r0,r0,r24                              
ffc0e624:	90 1f 00 2c 	stw     r0,44(r31)                             
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
ffc0e628:	38 00 00 01 	li      r0,1                                   
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
ffc0e62c:	41 9e 00 10 	beq-    cr7,ffc0e63c <_Heap_Extend+0x2b4>      <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
ffc0e630:	93 19 00 00 	stw     r24,0(r25)                             
ffc0e634:	48 00 00 08 	b       ffc0e63c <_Heap_Extend+0x2b4>          
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
ffc0e638:	38 00 00 00 	li      r0,0                                   
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
ffc0e63c:	39 61 00 40 	addi    r11,r1,64                              
ffc0e640:	7c 03 03 78 	mr      r3,r0                                  
ffc0e644:	4b ff 1f 5c 	b       ffc005a0 <_restgpr_22_x>               
                                                                      

ffc12004 <_Heap_Free>:
ffc12004:	80 03 00 10 	lwz     r0,16(r3)                              
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
{                                                                     
ffc12008:	7c 69 1b 78 	mr      r9,r3                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
ffc1200c:	80 a3 00 20 	lwz     r5,32(r3)                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc12010:	7d 64 03 96 	divwu   r11,r4,r0                              
ffc12014:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc12018:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc1201c:	7d 6b 01 d6 	mullw   r11,r11,r0                             
  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;             
ffc12020:	38 00 00 00 	li      r0,0                                   
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc12024:	39 6b ff f8 	addi    r11,r11,-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;             
ffc12028:	7f 8b 28 40 	cmplw   cr7,r11,r5                             
ffc1202c:	41 9c 00 14 	blt-    cr7,ffc12040 <_Heap_Free+0x3c>         
ffc12030:	80 03 00 24 	lwz     r0,36(r3)                              
ffc12034:	7c 0b 00 10 	subfc   r0,r11,r0                              
ffc12038:	38 00 00 00 	li      r0,0                                   
ffc1203c:	7c 00 01 14 	adde    r0,r0,r0                               
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
ffc12040:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return false;                                                     
ffc12044:	38 60 00 00 	li      r3,0                                   
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
ffc12048:	41 9e 01 b0 	beq-    cr7,ffc121f8 <_Heap_Free+0x1f4>        
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc1204c:	80 cb 00 04 	lwz     r6,4(r11)                              
ffc12050:	38 00 00 00 	li      r0,0                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc12054:	54 c8 00 3c 	rlwinm  r8,r6,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);                 
ffc12058:	7d 4b 42 14 	add     r10,r11,r8                             
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
ffc1205c:	7f 8a 28 40 	cmplw   cr7,r10,r5                             
ffc12060:	41 9c 00 14 	blt-    cr7,ffc12074 <_Heap_Free+0x70>         <== NEVER TAKEN
ffc12064:	80 09 00 24 	lwz     r0,36(r9)                              
ffc12068:	7c 0a 00 10 	subfc   r0,r10,r0                              
ffc1206c:	38 00 00 00 	li      r0,0                                   
ffc12070:	7c 00 01 14 	adde    r0,r0,r0                               
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
ffc12074:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    _HAssert( false );                                                
    return false;                                                     
ffc12078:	38 60 00 00 	li      r3,0                                   
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
ffc1207c:	41 9e 01 7c 	beq-    cr7,ffc121f8 <_Heap_Free+0x1f4>        <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc12080:	80 0a 00 04 	lwz     r0,4(r10)                              
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
ffc12084:	70 04 00 01 	andi.   r4,r0,1                                
ffc12088:	41 82 01 70 	beq-    ffc121f8 <_Heap_Free+0x1f4>            
  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                       
ffc1208c:	80 69 00 24 	lwz     r3,36(r9)                              
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc12090:	54 00 00 3c 	rlwinm  r0,r0,0,0,30                           
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
ffc12094:	38 80 00 00 	li      r4,0                                   
ffc12098:	7f 8a 18 00 	cmpw    cr7,r10,r3                             
ffc1209c:	41 9e 00 18 	beq-    cr7,ffc120b4 <_Heap_Free+0xb0>         
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc120a0:	7c ea 02 14 	add     r7,r10,r0                              
  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;                 
ffc120a4:	80 e7 00 04 	lwz     r7,4(r7)                               
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
ffc120a8:	70 ff 00 01 	andi.   r31,r7,1                               
ffc120ac:	7c 80 00 26 	mfcr    r4                                     
ffc120b0:	54 84 1f fe 	rlwinm  r4,r4,3,31,31                          
                                                                      
  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 ) ) {                               
ffc120b4:	70 c7 00 01 	andi.   r7,r6,1                                
  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                       
ffc120b8:	54 84 06 3e 	clrlwi  r4,r4,24                               
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
ffc120bc:	40 82 00 98 	bne-    ffc12154 <_Heap_Free+0x150>            
    uintptr_t const prev_size = block->prev_size;                     
ffc120c0:	80 cb 00 00 	lwz     r6,0(r11)                              
  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;             
ffc120c4:	39 80 00 00 	li      r12,0                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc120c8:	7c e6 58 50 	subf    r7,r6,r11                              
  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;             
ffc120cc:	7f 87 28 40 	cmplw   cr7,r7,r5                              
ffc120d0:	41 9c 00 10 	blt-    cr7,ffc120e0 <_Heap_Free+0xdc>         <== NEVER TAKEN
ffc120d4:	7d 87 18 10 	subfc   r12,r7,r3                              
ffc120d8:	39 80 00 00 	li      r12,0                                  
ffc120dc:	7d 8c 61 14 	adde    r12,r12,r12                            
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
ffc120e0:	2f 8c 00 00 	cmpwi   cr7,r12,0                              
      _HAssert( false );                                              
      return( false );                                                
ffc120e4:	38 60 00 00 	li      r3,0                                   
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    uintptr_t const prev_size = block->prev_size;                     
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
ffc120e8:	41 9e 01 10 	beq-    cr7,ffc121f8 <_Heap_Free+0x1f4>        <== 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;                 
ffc120ec:	80 a7 00 04 	lwz     r5,4(r7)                               
      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) ) {                        
ffc120f0:	70 bf 00 01 	andi.   r31,r5,1                               
ffc120f4:	41 82 01 04 	beq-    ffc121f8 <_Heap_Free+0x1f4>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
ffc120f8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc120fc:	41 9e 00 38 	beq-    cr7,ffc12134 <_Heap_Free+0x130>        
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
ffc12100:	81 6a 00 08 	lwz     r11,8(r10)                             
      uintptr_t const size = block_size + prev_size + next_block_size;
ffc12104:	7c 08 02 14 	add     r0,r8,r0                               
  Heap_Block *prev = block->prev;                                     
ffc12108:	81 4a 00 0c 	lwz     r10,12(r10)                            
ffc1210c:	7c c0 32 14 	add     r6,r0,r6                               
                                                                      
  prev->next = next;                                                  
ffc12110:	91 6a 00 08 	stw     r11,8(r10)                             
  next->prev = prev;                                                  
ffc12114:	91 4b 00 0c 	stw     r10,12(r11)                            
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
ffc12118:	81 69 00 38 	lwz     r11,56(r9)                             
ffc1211c:	38 0b ff ff 	addi    r0,r11,-1                              
ffc12120:	90 09 00 38 	stw     r0,56(r9)                              
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc12124:	60 c0 00 01 	ori     r0,r6,1                                
ffc12128:	90 07 00 04 	stw     r0,4(r7)                               
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
ffc1212c:	7c c7 31 2e 	stwx    r6,r7,r6                               
ffc12130:	48 00 00 a0 	b       ffc121d0 <_Heap_Free+0x1cc>            
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
ffc12134:	7c c8 32 14 	add     r6,r8,r6                               
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc12138:	60 c0 00 01 	ori     r0,r6,1                                
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
ffc1213c:	7c cb 41 2e 	stwx    r6,r11,r8                              
      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;        
ffc12140:	90 07 00 04 	stw     r0,4(r7)                               
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
ffc12144:	80 0a 00 04 	lwz     r0,4(r10)                              
ffc12148:	54 00 00 3c 	rlwinm  r0,r0,0,0,30                           
ffc1214c:	90 0a 00 04 	stw     r0,4(r10)                              
ffc12150:	48 00 00 80 	b       ffc121d0 <_Heap_Free+0x1cc>            
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
ffc12154:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc12158:	41 9e 00 30 	beq-    cr7,ffc12188 <_Heap_Free+0x184>        
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
ffc1215c:	80 ca 00 08 	lwz     r6,8(r10)                              
    uintptr_t const size = block_size + next_block_size;              
ffc12160:	7c e0 42 14 	add     r7,r0,r8                               
  Heap_Block *prev = old_block->prev;                                 
ffc12164:	81 4a 00 0c 	lwz     r10,12(r10)                            
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
ffc12168:	60 e0 00 01 	ori     r0,r7,1                                
                                                                      
  new_block->next = next;                                             
ffc1216c:	90 cb 00 08 	stw     r6,8(r11)                              
  new_block->prev = prev;                                             
ffc12170:	91 4b 00 0c 	stw     r10,12(r11)                            
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
ffc12174:	91 6a 00 08 	stw     r11,8(r10)                             
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
ffc12178:	91 66 00 0c 	stw     r11,12(r6)                             
ffc1217c:	90 0b 00 04 	stw     r0,4(r11)                              
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
ffc12180:	7c eb 39 2e 	stwx    r7,r11,r7                              
ffc12184:	48 00 00 4c 	b       ffc121d0 <_Heap_Free+0x1cc>            
  } 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;         
ffc12188:	61 00 00 01 	ori     r0,r8,1                                
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
ffc1218c:	80 e9 00 08 	lwz     r7,8(r9)                               
ffc12190:	90 0b 00 04 	stw     r0,4(r11)                              
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc12194:	80 0a 00 04 	lwz     r0,4(r10)                              
                                                                      
  new_block->next = next;                                             
ffc12198:	90 eb 00 08 	stw     r7,8(r11)                              
ffc1219c:	54 00 00 3c 	rlwinm  r0,r0,0,0,30                           
  new_block->prev = block_before;                                     
ffc121a0:	91 2b 00 0c 	stw     r9,12(r11)                             
    next_block->prev_size = block_size;                               
ffc121a4:	7d 0b 41 2e 	stwx    r8,r11,r8                              
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
ffc121a8:	91 67 00 0c 	stw     r11,12(r7)                             
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
ffc121ac:	91 69 00 08 	stw     r11,8(r9)                              
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
ffc121b0:	81 69 00 38 	lwz     r11,56(r9)                             
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc121b4:	90 0a 00 04 	stw     r0,4(r10)                              
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
ffc121b8:	38 0b 00 01 	addi    r0,r11,1                               
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc121bc:	81 69 00 3c 	lwz     r11,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;                                             
ffc121c0:	90 09 00 38 	stw     r0,56(r9)                              
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc121c4:	7f 8b 00 40 	cmplw   cr7,r11,r0                             
ffc121c8:	40 9c 00 08 	bge-    cr7,ffc121d0 <_Heap_Free+0x1cc>        
      stats->max_free_blocks = stats->free_blocks;                    
ffc121cc:	90 09 00 3c 	stw     r0,60(r9)                              
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc121d0:	81 69 00 40 	lwz     r11,64(r9)                             
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
ffc121d4:	38 60 00 01 	li      r3,1                                   
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc121d8:	38 0b ff ff 	addi    r0,r11,-1                              
  ++stats->frees;                                                     
ffc121dc:	81 69 00 50 	lwz     r11,80(r9)                             
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc121e0:	90 09 00 40 	stw     r0,64(r9)                              
  ++stats->frees;                                                     
ffc121e4:	38 0b 00 01 	addi    r0,r11,1                               
ffc121e8:	90 09 00 50 	stw     r0,80(r9)                              
  stats->free_size += block_size;                                     
ffc121ec:	80 09 00 30 	lwz     r0,48(r9)                              
ffc121f0:	7d 00 42 14 	add     r8,r0,r8                               
ffc121f4:	91 09 00 30 	stw     r8,48(r9)                              
                                                                      
  return( true );                                                     
}                                                                     
ffc121f8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc121fc:	38 21 00 10 	addi    r1,r1,16                               
ffc12200:	4e 80 00 20 	blr                                            
                                                                      

ffc12338 <_Heap_Size_of_alloc_area>: RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment);
ffc12338:	80 03 00 10 	lwz     r0,16(r3)                              
bool _Heap_Size_of_alloc_area(                                        
  Heap_Control *heap,                                                 
  void *alloc_begin_ptr,                                              
  uintptr_t *alloc_size                                               
)                                                                     
{                                                                     
ffc1233c:	7c 69 1b 78 	mr      r9,r3                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
ffc12340:	81 03 00 20 	lwz     r8,32(r3)                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc12344:	7d 44 03 96 	divwu   r10,r4,r0                              
ffc12348:	7d 4a 01 d6 	mullw   r10,r10,r0                             
  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;             
ffc1234c:	38 00 00 00 	li      r0,0                                   
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc12350:	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;             
ffc12354:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc12358:	41 9c 00 14 	blt-    cr7,ffc1236c <_Heap_Size_of_alloc_area+0x34>
ffc1235c:	80 03 00 24 	lwz     r0,36(r3)                              
ffc12360:	7c 0a 00 10 	subfc   r0,r10,r0                              
ffc12364:	38 00 00 00 	li      r0,0                                   
ffc12368:	7c 00 01 14 	adde    r0,r0,r0                               
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
ffc1236c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return false;                                                     
ffc12370:	38 60 00 00 	li      r3,0                                   
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
ffc12374:	4d 9e 00 20 	beqlr   cr7                                    
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc12378:	81 6a 00 04 	lwz     r11,4(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;             
ffc1237c:	38 00 00 00 	li      r0,0                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc12380:	55 6b 00 3c 	rlwinm  r11,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);                 
ffc12384:	7d 6a 5a 14 	add     r11,r10,r11                            
  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;             
ffc12388:	7f 8b 40 40 	cmplw   cr7,r11,r8                             
ffc1238c:	41 9c 00 14 	blt-    cr7,ffc123a0 <_Heap_Size_of_alloc_area+0x68><== NEVER TAKEN
ffc12390:	80 09 00 24 	lwz     r0,36(r9)                              
ffc12394:	7c 0b 00 10 	subfc   r0,r11,r0                              
ffc12398:	38 00 00 00 	li      r0,0                                   
ffc1239c:	7c 00 01 14 	adde    r0,r0,r0                               
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
ffc123a0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
ffc123a4:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
ffc123a8:	4d 9e 00 20 	beqlr   cr7                                    
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
ffc123ac:	80 0b 00 04 	lwz     r0,4(r11)                              
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
ffc123b0:	70 09 00 01 	andi.   r9,r0,1                                
ffc123b4:	4d 82 00 20 	beqlr                                          
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
ffc123b8:	20 84 00 04 	subfic  r4,r4,4                                
ffc123bc:	7d 64 5a 14 	add     r11,r4,r11                             
ffc123c0:	91 65 00 00 	stw     r11,0(r5)                              
                                                                      
  return true;                                                        
ffc123c4:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc123c8:	4e 80 00 20 	blr                                            
                                                                      

ffc09ba4 <_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;
ffc09ba4:	2f 85 00 00 	cmpwi   cr7,r5,0                               
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
ffc09ba8:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc09bac:	7c 08 02 a6 	mflr    r0                                     
ffc09bb0:	bd c1 00 20 	stmw    r14,32(r1)                             
ffc09bb4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc09bb8:	7c 9f 23 78 	mr      r31,r4                                 
ffc09bbc:	90 01 00 6c 	stw     r0,108(r1)                             
  uintptr_t const page_size = heap->page_size;                        
ffc09bc0:	83 43 00 10 	lwz     r26,16(r3)                             
  uintptr_t const min_block_size = heap->min_block_size;              
ffc09bc4:	83 23 00 14 	lwz     r25,20(r3)                             
  Heap_Block *const first_block = heap->first_block;                  
ffc09bc8:	83 03 00 20 	lwz     r24,32(r3)                             
  Heap_Block *const last_block = heap->last_block;                    
ffc09bcc:	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;                      
ffc09bd0:	41 9e 00 10 	beq-    cr7,ffc09be0 <_Heap_Walk+0x3c>         
ffc09bd4:	3d 20 ff c1 	lis     r9,-63                                 
ffc09bd8:	39 29 9a f4 	addi    r9,r9,-25868                           
ffc09bdc:	48 00 00 0c 	b       ffc09be8 <_Heap_Walk+0x44>             
ffc09be0:	3d 20 ff c1 	lis     r9,-63                                 
ffc09be4:	39 29 9a f0 	addi    r9,r9,-25872                           
ffc09be8:	91 21 00 18 	stw     r9,24(r1)                              
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc09bec:	3d 20 00 00 	lis     r9,0                                   
    return true;                                                      
ffc09bf0:	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() ) ) {                
ffc09bf4:	80 09 27 b8 	lwz     r0,10168(r9)                           
ffc09bf8:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc09bfc:	40 be 04 c4 	bne+    cr7,ffc0a0c0 <_Heap_Walk+0x51c>        
  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)(                                                         
ffc09c00:	80 1e 00 08 	lwz     r0,8(r30)                              
ffc09c04:	3c a0 ff c2 	lis     r5,-62                                 
ffc09c08:	81 1e 00 18 	lwz     r8,24(r30)                             
ffc09c0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc09c10:	90 01 00 0c 	stw     r0,12(r1)                              
ffc09c14:	38 80 00 00 	li      r4,0                                   
ffc09c18:	38 a5 80 21 	addi    r5,r5,-32735                           
ffc09c1c:	80 1e 00 0c 	lwz     r0,12(r30)                             
ffc09c20:	7f 46 d3 78 	mr      r6,r26                                 
ffc09c24:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc09c28:	7f 27 cb 78 	mr      r7,r25                                 
ffc09c2c:	90 01 00 10 	stw     r0,16(r1)                              
ffc09c30:	7f 0a c3 78 	mr      r10,r24                                
ffc09c34:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09c38:	92 e1 00 08 	stw     r23,8(r1)                              
ffc09c3c:	7c 09 03 a6 	mtctr   r0                                     
ffc09c40:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09c44:	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 ) {                                             
ffc09c48:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc09c4c:	40 be 00 18 	bne+    cr7,ffc09c64 <_Heap_Walk+0xc0>         
    (*printer)( source, true, "page size is zero\n" );                
ffc09c50:	3c a0 ff c2 	lis     r5,-62                                 
ffc09c54:	7f e3 fb 78 	mr      r3,r31                                 
ffc09c58:	38 80 00 01 	li      r4,1                                   
ffc09c5c:	38 a5 80 b2 	addi    r5,r5,-32590                           
ffc09c60:	48 00 00 94 	b       ffc09cf4 <_Heap_Walk+0x150>            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
ffc09c64:	73 49 00 07 	andi.   r9,r26,7                               
ffc09c68:	41 a2 00 1c 	beq+    ffc09c84 <_Heap_Walk+0xe0>             
    (*printer)(                                                       
ffc09c6c:	3c a0 ff c2 	lis     r5,-62                                 
ffc09c70:	7f e3 fb 78 	mr      r3,r31                                 
ffc09c74:	38 80 00 01 	li      r4,1                                   
ffc09c78:	38 a5 80 c5 	addi    r5,r5,-32571                           
ffc09c7c:	7f 46 d3 78 	mr      r6,r26                                 
ffc09c80:	48 00 04 5c 	b       ffc0a0dc <_Heap_Walk+0x538>            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc09c84:	7c 19 d3 96 	divwu   r0,r25,r26                             
ffc09c88:	7c 00 d1 d6 	mullw   r0,r0,r26                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
ffc09c8c:	7f 99 00 00 	cmpw    cr7,r25,r0                             
ffc09c90:	41 be 00 1c 	beq+    cr7,ffc09cac <_Heap_Walk+0x108>        
    (*printer)(                                                       
ffc09c94:	3c a0 ff c2 	lis     r5,-62                                 
ffc09c98:	7f e3 fb 78 	mr      r3,r31                                 
ffc09c9c:	38 80 00 01 	li      r4,1                                   
ffc09ca0:	38 a5 80 e3 	addi    r5,r5,-32541                           
ffc09ca4:	7f 26 cb 78 	mr      r6,r25                                 
ffc09ca8:	48 00 04 34 	b       ffc0a0dc <_Heap_Walk+0x538>            
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc09cac:	38 18 00 08 	addi    r0,r24,8                               
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc09cb0:	7d 20 d3 96 	divwu   r9,r0,r26                              
ffc09cb4:	7d 29 d1 d6 	mullw   r9,r9,r26                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc09cb8:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc09cbc:	41 be 00 1c 	beq+    cr7,ffc09cd8 <_Heap_Walk+0x134>        
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
ffc09cc0:	3c a0 ff c2 	lis     r5,-62                                 
ffc09cc4:	7f e3 fb 78 	mr      r3,r31                                 
ffc09cc8:	38 80 00 01 	li      r4,1                                   
ffc09ccc:	38 a5 81 07 	addi    r5,r5,-32505                           
ffc09cd0:	7f 06 c3 78 	mr      r6,r24                                 
ffc09cd4:	48 00 04 08 	b       ffc0a0dc <_Heap_Walk+0x538>            
  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;                 
ffc09cd8:	80 18 00 04 	lwz     r0,4(r24)                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
ffc09cdc:	70 09 00 01 	andi.   r9,r0,1                                
ffc09ce0:	40 a2 00 28 	bne+    ffc09d08 <_Heap_Walk+0x164>            
    (*printer)(                                                       
ffc09ce4:	3c a0 ff c2 	lis     r5,-62                                 
ffc09ce8:	7f e3 fb 78 	mr      r3,r31                                 
ffc09cec:	38 80 00 01 	li      r4,1                                   
ffc09cf0:	38 a5 81 38 	addi    r5,r5,-32456                           
ffc09cf4:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09cf8:	7c 09 03 a6 	mtctr   r0                                     
ffc09cfc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09d00:	4e 80 04 21 	bctrl                                          
ffc09d04:	48 00 01 18 	b       ffc09e1c <_Heap_Walk+0x278>            
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc09d08:	83 b7 00 04 	lwz     r29,4(r23)                             
ffc09d0c:	57 bd 00 3c 	rlwinm  r29,r29,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);                 
ffc09d10:	7f b7 ea 14 	add     r29,r23,r29                            
  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;                 
ffc09d14:	80 1d 00 04 	lwz     r0,4(r29)                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
ffc09d18:	70 09 00 01 	andi.   r9,r0,1                                
ffc09d1c:	40 a2 00 18 	bne+    ffc09d34 <_Heap_Walk+0x190>            
    (*printer)(                                                       
ffc09d20:	3c a0 ff c2 	lis     r5,-62                                 
ffc09d24:	7f e3 fb 78 	mr      r3,r31                                 
ffc09d28:	38 80 00 01 	li      r4,1                                   
ffc09d2c:	38 a5 81 66 	addi    r5,r5,-32410                           
ffc09d30:	4b ff ff c4 	b       ffc09cf4 <_Heap_Walk+0x150>            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc09d34:	7f 9d c0 00 	cmpw    cr7,r29,r24                            
ffc09d38:	41 9e 00 18 	beq-    cr7,ffc09d50 <_Heap_Walk+0x1ac>        <== ALWAYS TAKEN
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
ffc09d3c:	3c a0 ff c2 	lis     r5,-62                                 <== NOT EXECUTED
ffc09d40:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc09d44:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc09d48:	38 a5 81 7b 	addi    r5,r5,-32389                           <== NOT EXECUTED
ffc09d4c:	4b ff ff a8 	b       ffc09cf4 <_Heap_Walk+0x150>            <== NOT EXECUTED
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
ffc09d50:	81 3e 00 10 	lwz     r9,16(r30)                             
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
ffc09d54:	7f c0 f3 78 	mr      r0,r30                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc09d58:	80 de 00 08 	lwz     r6,8(r30)                              
ffc09d5c:	48 00 00 d0 	b       ffc09e2c <_Heap_Walk+0x288>            
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
ffc09d60:	81 5e 00 20 	lwz     r10,32(r30)                            
ffc09d64:	39 60 00 00 	li      r11,0                                  
ffc09d68:	7f 8a 30 40 	cmplw   cr7,r10,r6                             
ffc09d6c:	41 9d 00 14 	bgt-    cr7,ffc09d80 <_Heap_Walk+0x1dc>        
ffc09d70:	81 7e 00 24 	lwz     r11,36(r30)                            
ffc09d74:	7d 66 58 10 	subfc   r11,r6,r11                             
ffc09d78:	39 60 00 00 	li      r11,0                                  
ffc09d7c:	7d 6b 59 14 	adde    r11,r11,r11                            
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
ffc09d80:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc09d84:	40 be 00 18 	bne+    cr7,ffc09d9c <_Heap_Walk+0x1f8>        
      (*printer)(                                                     
ffc09d88:	3c a0 ff c2 	lis     r5,-62                                 
ffc09d8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc09d90:	38 80 00 01 	li      r4,1                                   
ffc09d94:	38 a5 81 aa 	addi    r5,r5,-32342                           
ffc09d98:	48 00 03 44 	b       ffc0a0dc <_Heap_Walk+0x538>            
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc09d9c:	39 66 00 08 	addi    r11,r6,8                               
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc09da0:	7d 4b 4b 96 	divwu   r10,r11,r9                             
ffc09da4:	7d 4a 49 d6 	mullw   r10,r10,r9                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
ffc09da8:	7f 8b 50 00 	cmpw    cr7,r11,r10                            
ffc09dac:	41 be 00 18 	beq+    cr7,ffc09dc4 <_Heap_Walk+0x220>        
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
ffc09db0:	3c a0 ff c2 	lis     r5,-62                                 
ffc09db4:	7f e3 fb 78 	mr      r3,r31                                 
ffc09db8:	38 80 00 01 	li      r4,1                                   
ffc09dbc:	38 a5 81 ca 	addi    r5,r5,-32310                           
ffc09dc0:	48 00 03 1c 	b       ffc0a0dc <_Heap_Walk+0x538>            
    - 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;                
ffc09dc4:	81 66 00 04 	lwz     r11,4(r6)                              
ffc09dc8:	55 6b 00 3c 	rlwinm  r11,r11,0,0,30                         
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc09dcc:	7d 66 5a 14 	add     r11,r6,r11                             
  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;                 
ffc09dd0:	81 6b 00 04 	lwz     r11,4(r11)                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc09dd4:	71 6a 00 01 	andi.   r10,r11,1                              
ffc09dd8:	41 a2 00 18 	beq+    ffc09df0 <_Heap_Walk+0x24c>            
      (*printer)(                                                     
ffc09ddc:	3c a0 ff c2 	lis     r5,-62                                 
ffc09de0:	7f e3 fb 78 	mr      r3,r31                                 
ffc09de4:	38 80 00 01 	li      r4,1                                   
ffc09de8:	38 a5 81 fa 	addi    r5,r5,-32262                           
ffc09dec:	48 00 02 f0 	b       ffc0a0dc <_Heap_Walk+0x538>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
ffc09df0:	80 e6 00 0c 	lwz     r7,12(r6)                              
ffc09df4:	7f 87 00 00 	cmpw    cr7,r7,r0                              
ffc09df8:	41 be 00 2c 	beq+    cr7,ffc09e24 <_Heap_Walk+0x280>        
      (*printer)(                                                     
ffc09dfc:	3c a0 ff c2 	lis     r5,-62                                 
ffc09e00:	7f e3 fb 78 	mr      r3,r31                                 
ffc09e04:	38 80 00 01 	li      r4,1                                   
ffc09e08:	38 a5 82 16 	addi    r5,r5,-32234                           
ffc09e0c:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09e10:	7c 09 03 a6 	mtctr   r0                                     
ffc09e14:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09e18:	4e 80 04 21 	bctrl                                          
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
ffc09e1c:	38 60 00 00 	li      r3,0                                   
ffc09e20:	48 00 02 a0 	b       ffc0a0c0 <_Heap_Walk+0x51c>            
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
ffc09e24:	7c c0 33 78 	mr      r0,r6                                  
ffc09e28:	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 ) {                            
ffc09e2c:	7f 86 f0 00 	cmpw    cr7,r6,r30                             
ffc09e30:	40 9e ff 30 	bne+    cr7,ffc09d60 <_Heap_Walk+0x1bc>        
ffc09e34:	48 00 00 0c 	b       ffc09e40 <_Heap_Walk+0x29c>            
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
ffc09e38:	7f 7d db 78 	mr      r29,r27                                
ffc09e3c:	48 00 00 30 	b       ffc09e6c <_Heap_Walk+0x2c8>            
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc09e40:	3e 60 ff c2 	lis     r19,-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)(                                                     
ffc09e44:	3e 80 ff c2 	lis     r20,-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)(                                                         
ffc09e48:	3e 40 ff c2 	lis     r18,-62                                
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc09e4c:	3a 73 83 b6 	addi    r19,r19,-31818                         
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
ffc09e50:	3a 94 83 9f 	addi    r20,r20,-31841                         
  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)(                                                         
ffc09e54:	3a 52 83 02 	addi    r18,r18,-31998                         
ffc09e58:	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)" : "")          
ffc09e5c:	3e c0 ff c1 	lis     r22,-63                                
ffc09e60:	3e 00 ff c2 	lis     r16,-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)(                                                         
ffc09e64:	3d e0 ff c1 	lis     r15,-63                                
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc09e68:	3d c0 ff c1 	lis     r14,-63                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc09e6c:	82 bd 00 04 	lwz     r21,4(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;             
ffc09e70:	38 00 00 00 	li      r0,0                                   
ffc09e74:	81 3e 00 20 	lwz     r9,32(r30)                             
    - 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;                
ffc09e78:	56 bc 00 3c 	rlwinm  r28,r21,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);                 
ffc09e7c:	7f 7d e2 14 	add     r27,r29,r28                            
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
ffc09e80:	7f 89 d8 40 	cmplw   cr7,r9,r27                             
ffc09e84:	41 9d 00 14 	bgt-    cr7,ffc09e98 <_Heap_Walk+0x2f4>        <== NEVER TAKEN
ffc09e88:	80 1e 00 24 	lwz     r0,36(r30)                             
ffc09e8c:	7c 1b 00 10 	subfc   r0,r27,r0                              
ffc09e90:	38 00 00 00 	li      r0,0                                   
ffc09e94:	7c 00 01 14 	adde    r0,r0,r0                               
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
ffc09e98:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09e9c:	40 be 00 18 	bne+    cr7,ffc09eb4 <_Heap_Walk+0x310>        
      (*printer)(                                                     
ffc09ea0:	3c a0 ff c2 	lis     r5,-62                                 
ffc09ea4:	7f e3 fb 78 	mr      r3,r31                                 
ffc09ea8:	38 80 00 01 	li      r4,1                                   
ffc09eac:	38 a5 82 48 	addi    r5,r5,-32184                           
ffc09eb0:	48 00 00 a8 	b       ffc09f58 <_Heap_Walk+0x3b4>            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc09eb4:	7d 3c d3 96 	divwu   r9,r28,r26                             
ffc09eb8:	7d 29 d1 d6 	mullw   r9,r9,r26                              
    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;               
ffc09ebc:	7f a0 ba 78 	xor     r0,r29,r23                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
ffc09ec0:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
    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;               
ffc09ec4:	7c 00 00 34 	cntlzw  r0,r0                                  
ffc09ec8:	54 00 d9 7e 	rlwinm  r0,r0,27,5,31                          
ffc09ecc:	68 00 00 01 	xori    r0,r0,1                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
ffc09ed0:	41 9e 00 28 	beq-    cr7,ffc09ef8 <_Heap_Walk+0x354>        
ffc09ed4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09ed8:	41 be 00 20 	beq+    cr7,ffc09ef8 <_Heap_Walk+0x354>        
      (*printer)(                                                     
ffc09edc:	3c a0 ff c2 	lis     r5,-62                                 
ffc09ee0:	7f e3 fb 78 	mr      r3,r31                                 
ffc09ee4:	38 80 00 01 	li      r4,1                                   
ffc09ee8:	38 a5 82 75 	addi    r5,r5,-32139                           
ffc09eec:	7f a6 eb 78 	mr      r6,r29                                 
ffc09ef0:	7f 87 e3 78 	mr      r7,r28                                 
ffc09ef4:	4b ff ff 18 	b       ffc09e0c <_Heap_Walk+0x268>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
ffc09ef8:	7f 9c c8 40 	cmplw   cr7,r28,r25                            
ffc09efc:	40 9c 00 3c 	bge-    cr7,ffc09f38 <_Heap_Walk+0x394>        
ffc09f00:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09f04:	41 be 00 34 	beq+    cr7,ffc09f38 <_Heap_Walk+0x394>        <== NEVER TAKEN
      (*printer)(                                                     
ffc09f08:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09f0c:	3c a0 ff c2 	lis     r5,-62                                 
ffc09f10:	7f e3 fb 78 	mr      r3,r31                                 
ffc09f14:	38 80 00 01 	li      r4,1                                   
ffc09f18:	7c 09 03 a6 	mtctr   r0                                     
ffc09f1c:	38 a5 82 a3 	addi    r5,r5,-32093                           
ffc09f20:	7f a6 eb 78 	mr      r6,r29                                 
ffc09f24:	7f 87 e3 78 	mr      r7,r28                                 
ffc09f28:	7f 28 cb 78 	mr      r8,r25                                 
ffc09f2c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09f30:	4e 80 04 21 	bctrl                                          
ffc09f34:	4b ff fe e8 	b       ffc09e1c <_Heap_Walk+0x278>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
ffc09f38:	7f 9b e8 40 	cmplw   cr7,r27,r29                            
ffc09f3c:	41 9d 00 28 	bgt-    cr7,ffc09f64 <_Heap_Walk+0x3c0>        
ffc09f40:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09f44:	41 be 00 20 	beq+    cr7,ffc09f64 <_Heap_Walk+0x3c0>        
      (*printer)(                                                     
ffc09f48:	3c a0 ff c2 	lis     r5,-62                                 
ffc09f4c:	7f e3 fb 78 	mr      r3,r31                                 
ffc09f50:	38 80 00 01 	li      r4,1                                   
ffc09f54:	38 a5 82 ce 	addi    r5,r5,-32050                           
ffc09f58:	7f a6 eb 78 	mr      r6,r29                                 
ffc09f5c:	7f 67 db 78 	mr      r7,r27                                 
ffc09f60:	4b ff fe ac 	b       ffc09e0c <_Heap_Walk+0x268>            
  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;                 
ffc09f64:	80 1b 00 04 	lwz     r0,4(r27)                              
ffc09f68:	56 b5 07 fe 	clrlwi  r21,r21,31                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
ffc09f6c:	70 09 00 01 	andi.   r9,r0,1                                
ffc09f70:	40 a2 00 ec 	bne+    ffc0a05c <_Heap_Walk+0x4b8>            
    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 ?                                 
ffc09f74:	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)(                                                         
ffc09f78:	39 2f 7f ee 	addi    r9,r15,32750                           
ffc09f7c:	80 1e 00 08 	lwz     r0,8(r30)                              
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc09f80:	81 7e 00 0c 	lwz     r11,12(r30)                            
  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)(                                                         
ffc09f84:	7f 88 00 00 	cmpw    cr7,r8,r0                              
ffc09f88:	41 9e 00 14 	beq-    cr7,ffc09f9c <_Heap_Walk+0x3f8>        
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc09f8c:	7f 88 f0 00 	cmpw    cr7,r8,r30                             
ffc09f90:	39 36 7f 23 	addi    r9,r22,32547                           
ffc09f94:	40 be 00 08 	bne+    cr7,ffc09f9c <_Heap_Walk+0x3f8>        
ffc09f98:	39 2e 7f fe 	addi    r9,r14,32766                           
    block->next,                                                      
    block->next == last_free_block ?                                  
ffc09f9c:	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)(                                                         
ffc09fa0:	38 11 80 08 	addi    r0,r17,-32760                          
ffc09fa4:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
ffc09fa8:	41 9e 00 14 	beq-    cr7,ffc09fbc <_Heap_Walk+0x418>        
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc09fac:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc09fb0:	38 16 7f 23 	addi    r0,r22,32547                           
ffc09fb4:	40 be 00 08 	bne+    cr7,ffc09fbc <_Heap_Walk+0x418>        
ffc09fb8:	38 10 80 17 	addi    r0,r16,-32745                          
  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)(                                                         
ffc09fbc:	90 01 00 08 	stw     r0,8(r1)                               
ffc09fc0:	7f e3 fb 78 	mr      r3,r31                                 
ffc09fc4:	38 80 00 00 	li      r4,0                                   
ffc09fc8:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09fcc:	7e 45 93 78 	mr      r5,r18                                 
ffc09fd0:	7f a6 eb 78 	mr      r6,r29                                 
ffc09fd4:	7f 87 e3 78 	mr      r7,r28                                 
ffc09fd8:	7c 09 03 a6 	mtctr   r0                                     
ffc09fdc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09fe0:	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 ) {                        
ffc09fe4:	81 1b 00 00 	lwz     r8,0(r27)                              
ffc09fe8:	7f 9c 40 00 	cmpw    cr7,r28,r8                             
ffc09fec:	41 be 00 34 	beq+    cr7,ffc0a020 <_Heap_Walk+0x47c>        
    (*printer)(                                                       
ffc09ff0:	80 01 00 18 	lwz     r0,24(r1)                              
ffc09ff4:	3c a0 ff c2 	lis     r5,-62                                 
ffc09ff8:	7f e3 fb 78 	mr      r3,r31                                 
ffc09ffc:	38 80 00 01 	li      r4,1                                   
ffc0a000:	7c 09 03 a6 	mtctr   r0                                     
ffc0a004:	38 a5 83 37 	addi    r5,r5,-31945                           
ffc0a008:	7f a6 eb 78 	mr      r6,r29                                 
ffc0a00c:	7f 87 e3 78 	mr      r7,r28                                 
ffc0a010:	7f 69 db 78 	mr      r9,r27                                 
ffc0a014:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a018:	4e 80 04 21 	bctrl                                          
ffc0a01c:	4b ff fe 00 	b       ffc09e1c <_Heap_Walk+0x278>            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
ffc0a020:	2f 95 00 00 	cmpwi   cr7,r21,0                              
ffc0a024:	40 be 00 18 	bne+    cr7,ffc0a03c <_Heap_Walk+0x498>        
    (*printer)(                                                       
ffc0a028:	3c a0 ff c2 	lis     r5,-62                                 
ffc0a02c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a030:	38 80 00 01 	li      r4,1                                   
ffc0a034:	38 a5 83 70 	addi    r5,r5,-31888                           
ffc0a038:	48 00 00 a0 	b       ffc0a0d8 <_Heap_Walk+0x534>            
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0a03c:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0a040:	48 00 00 10 	b       ffc0a050 <_Heap_Walk+0x4ac>            
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( free_block == block ) {                                      
ffc0a044:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0a048:	41 9e 00 6c 	beq-    cr7,ffc0a0b4 <_Heap_Walk+0x510>        
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
ffc0a04c:	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 ) {                            
ffc0a050:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0a054:	40 9e ff f0 	bne+    cr7,ffc0a044 <_Heap_Walk+0x4a0>        
ffc0a058:	48 00 00 70 	b       ffc0a0c8 <_Heap_Walk+0x524>            
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
ffc0a05c:	2f 95 00 00 	cmpwi   cr7,r21,0                              
ffc0a060:	41 9e 00 2c 	beq-    cr7,ffc0a08c <_Heap_Walk+0x4e8>        
      (*printer)(                                                     
ffc0a064:	80 01 00 18 	lwz     r0,24(r1)                              
ffc0a068:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a06c:	38 80 00 00 	li      r4,0                                   
ffc0a070:	7e 85 a3 78 	mr      r5,r20                                 
ffc0a074:	7c 09 03 a6 	mtctr   r0                                     
ffc0a078:	7f a6 eb 78 	mr      r6,r29                                 
ffc0a07c:	7f 87 e3 78 	mr      r7,r28                                 
ffc0a080:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a084:	4e 80 04 21 	bctrl                                          
ffc0a088:	48 00 00 2c 	b       ffc0a0b4 <_Heap_Walk+0x510>            
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0a08c:	80 01 00 18 	lwz     r0,24(r1)                              
ffc0a090:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a094:	38 80 00 00 	li      r4,0                                   
ffc0a098:	81 1d 00 00 	lwz     r8,0(r29)                              
ffc0a09c:	7e 65 9b 78 	mr      r5,r19                                 
ffc0a0a0:	7c 09 03 a6 	mtctr   r0                                     
ffc0a0a4:	7f a6 eb 78 	mr      r6,r29                                 
ffc0a0a8:	7f 87 e3 78 	mr      r7,r28                                 
ffc0a0ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a0b0:	4e 80 04 21 	bctrl                                          
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
ffc0a0b4:	7f 9b c0 00 	cmpw    cr7,r27,r24                            
ffc0a0b8:	40 9e fd 80 	bne+    cr7,ffc09e38 <_Heap_Walk+0x294>        
                                                                      
  return true;                                                        
ffc0a0bc:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc0a0c0:	39 61 00 68 	addi    r11,r1,104                             
ffc0a0c4:	4b ff 69 fc 	b       ffc00ac0 <_restgpr_14_x>               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
ffc0a0c8:	3c a0 ff c2 	lis     r5,-62                                 
ffc0a0cc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a0d0:	38 80 00 01 	li      r4,1                                   
ffc0a0d4:	38 a5 83 db 	addi    r5,r5,-31781                           
ffc0a0d8:	7f a6 eb 78 	mr      r6,r29                                 
ffc0a0dc:	80 01 00 18 	lwz     r0,24(r1)                              
ffc0a0e0:	7c 09 03 a6 	mtctr   r0                                     
ffc0a0e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a0e8:	4e 80 04 21 	bctrl                                          
ffc0a0ec:	4b ff fd 30 	b       ffc09e1c <_Heap_Walk+0x278>            
                                                                      

ffc09af4 <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) {
ffc09af4:	7c 08 02 a6 	mflr    r0                                     
ffc09af8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc09afc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc09b00:	90 01 00 7c 	stw     r0,124(r1)                             
ffc09b04:	4b ff 6f b5 	bl      ffc00ab8 <_savegpr_31>                 
ffc09b08:	7c 60 1b 78 	mr      r0,r3                                  
ffc09b0c:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc09b10:	90 e1 00 20 	stw     r7,32(r1)                              
ffc09b14:	91 01 00 24 	stw     r8,36(r1)                              
ffc09b18:	91 21 00 28 	stw     r9,40(r1)                              
ffc09b1c:	91 41 00 2c 	stw     r10,44(r1)                             
ffc09b20:	40 86 00 24 	bne-    cr1,ffc09b44 <_Heap_Walk_print+0x50>   <== ALWAYS TAKEN
ffc09b24:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc09b28:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc09b2c:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc09b30:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc09b34:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc09b38:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc09b3c:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc09b40:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc09b44:	2f 84 00 00 	cmpwi   cr7,r4,0                               
{                                                                     
  /* Do nothing */                                                    
}                                                                     
                                                                      
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{                                                                     
ffc09b48:	7c bf 2b 78 	mr      r31,r5                                 
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc09b4c:	41 be 00 10 	beq+    cr7,ffc09b5c <_Heap_Walk_print+0x68>   
    printk( "FAIL[%d]: ", source );                                   
ffc09b50:	3c 60 ff c1 	lis     r3,-63                                 
ffc09b54:	38 63 7f d8 	addi    r3,r3,32728                            
ffc09b58:	48 00 00 0c 	b       ffc09b64 <_Heap_Walk_print+0x70>       
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
ffc09b5c:	3c 60 ff c1 	lis     r3,-63                                 
ffc09b60:	38 63 7f e3 	addi    r3,r3,32739                            
ffc09b64:	7c 04 03 78 	mr      r4,r0                                  
ffc09b68:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09b6c:	4b ff be b5 	bl      ffc05a20 <printk>                      
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc09b70:	38 00 00 03 	li      r0,3                                   
ffc09b74:	98 01 00 08 	stb     r0,8(r1)                               
ffc09b78:	38 00 00 00 	li      r0,0                                   
  vprintk( fmt, ap );                                                 
ffc09b7c:	7f e3 fb 78 	mr      r3,r31                                 
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc09b80:	98 01 00 09 	stb     r0,9(r1)                               
ffc09b84:	38 01 00 80 	addi    r0,r1,128                              
  vprintk( fmt, ap );                                                 
ffc09b88:	38 81 00 08 	addi    r4,r1,8                                
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc09b8c:	90 01 00 0c 	stw     r0,12(r1)                              
ffc09b90:	38 01 00 10 	addi    r0,r1,16                               
ffc09b94:	90 01 00 10 	stw     r0,16(r1)                              
  vprintk( fmt, ap );                                                 
ffc09b98:	4b ff dc 4d 	bl      ffc077e4 <vprintk>                     
  va_end( ap );                                                       
}                                                                     
ffc09b9c:	39 61 00 78 	addi    r11,r1,120                             
ffc09ba0:	4b ff 6f 64 	b       ffc00b04 <_restgpr_31_x>               
                                                                      

ffc0928c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
ffc0928c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09290:	7c 08 02 a6 	mflr    r0                                     
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
ffc09294:	3d 20 00 00 	lis     r9,0                                   
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
{                                                                     
ffc09298:	90 01 00 24 	stw     r0,36(r1)                              
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
ffc0929c:	39 29 20 88 	addi    r9,r9,8328                             
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
{                                                                     
ffc092a0:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc092a4:	3f a0 00 00 	lis     r29,0                                  
ffc092a8:	3f 40 00 00 	lis     r26,0                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
  drivers_in_table  = Configuration.number_of_device_drivers;         
ffc092ac:	83 c9 00 30 	lwz     r30,48(r9)                             
  number_of_drivers = Configuration.maximum_drivers;                  
ffc092b0:	83 69 00 2c 	lwz     r27,44(r9)                             
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
ffc092b4:	83 e9 00 34 	lwz     r31,52(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 )                        
ffc092b8:	7f 9b f0 40 	cmplw   cr7,r27,r30                            
ffc092bc:	40 9d 00 40 	ble-    cr7,ffc092fc <_IO_Manager_initialization+0x70>
   *  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 )  
ffc092c0:	1f 9b 00 18 	mulli   r28,r27,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(                             
ffc092c4:	7f 83 e3 78 	mr      r3,r28                                 
ffc092c8:	48 00 34 19 	bl      ffc0c6e0 <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
ffc092cc:	38 80 00 00 	li      r4,0                                   
ffc092d0:	7f 85 e3 78 	mr      r5,r28                                 
  /*                                                                  
   *  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 *)           
ffc092d4:	90 7d 27 e8 	stw     r3,10216(r29)                          
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
ffc092d8:	93 7a 27 e4 	stw     r27,10212(r26)                         
                                                                      
  memset(                                                             
ffc092dc:	48 00 bd 6d 	bl      ffc15048 <memset>                      
ffc092e0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
ffc092e4:	39 60 00 00 	li      r11,0                                  
    _IO_Driver_address_table[index] = driver_table[index];            
ffc092e8:	7f a4 eb 78 	mr      r4,r29                                 
ffc092ec:	38 1e 00 01 	addi    r0,r30,1                               
ffc092f0:	40 be 00 30 	bne+    cr7,ffc09320 <_IO_Manager_initialization+0x94><== ALWAYS TAKEN
ffc092f4:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc092f8:	48 00 00 28 	b       ffc09320 <_IO_Manager_initialization+0x94><== NOT EXECUTED
   *  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;                          
ffc092fc:	93 fd 27 e8 	stw     r31,10216(r29)                         
    _IO_Number_of_drivers = number_of_drivers;                        
ffc09300:	93 da 27 e4 	stw     r30,10212(r26)                         
    return;                                                           
ffc09304:	48 00 00 24 	b       ffc09328 <_IO_Manager_initialization+0x9c>
    _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];            
ffc09308:	80 64 27 e8 	lwz     r3,10216(r4)                           
ffc0930c:	7d 9f 5a 14 	add     r12,r31,r11                            
ffc09310:	7c 63 5a 14 	add     r3,r3,r11                              
ffc09314:	7c ac c4 aa 	lswi    r5,r12,24                              
ffc09318:	7c a3 c5 aa 	stswi   r5,r3,24                               
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
ffc0931c:	39 6b 00 18 	addi    r11,r11,24                             
ffc09320:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc09324:	40 82 ff e4 	bne+    ffc09308 <_IO_Manager_initialization+0x7c>
    _IO_Driver_address_table[index] = driver_table[index];            
  number_of_drivers = drivers_in_table;                               
}                                                                     
ffc09328:	39 61 00 20 	addi    r11,r1,32                              
ffc0932c:	48 00 fd a0 	b       ffc190cc <_restgpr_26_x>               
                                                                      

ffc0a198 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
ffc0a198:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0a19c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a1a0:	7c 08 02 a6 	mflr    r0                                     
ffc0a1a4:	48 00 ee f1 	bl      ffc19094 <_savegpr_31>                 
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
ffc0a1a8:	3d 60 00 00 	lis     r11,0                                  
ffc0a1ac:	39 2b 2d 70 	addi    r9,r11,11632                           
void _Internal_error_Occurred(                                        
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
ffc0a1b0:	90 01 00 14 	stw     r0,20(r1)                              
ffc0a1b4:	7c bf 2b 78 	mr      r31,r5                                 
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
  _Internal_errors_What_happened.is_internal = is_internal;           
ffc0a1b8:	98 89 00 04 	stb     r4,4(r9)                               
  _Internal_errors_What_happened.the_error   = the_error;             
ffc0a1bc:	90 a9 00 08 	stw     r5,8(r9)                               
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
ffc0a1c0:	90 6b 2d 70 	stw     r3,11632(r11)                          
  _Internal_errors_What_happened.is_internal = is_internal;           
  _Internal_errors_What_happened.the_error   = the_error;             
                                                                      
  _User_extensions_Fatal( the_source, is_internal, the_error );       
ffc0a1c4:	48 00 20 6d 	bl      ffc0c230 <_User_extensions_Fatal>      
                                                                      
RTEMS_INLINE_ROUTINE void _System_state_Set (                         
  System_state_Codes state                                            
)                                                                     
{                                                                     
  _System_state_Current = state;                                      
ffc0a1c8:	38 00 00 05 	li      r0,5                                   
ffc0a1cc:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
ffc0a1d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a1d4:	90 09 27 d4 	stw     r0,10196(r9)                           
ffc0a1d8:	4b ff 97 ed 	bl      ffc039c4 <_BSP_Fatal_error>            
ffc0a1dc:	48 00 00 00 	b       ffc0a1dc <_Internal_error_Occurred+0x44><== NOT EXECUTED
                                                                      

ffc0a1f4 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
ffc0a1f4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a1f8:	7c 08 02 a6 	mflr    r0                                     
ffc0a1fc:	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 )                                       
ffc0a200:	80 03 00 18 	lwz     r0,24(r3)                              
 */                                                                   
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0a204:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0a208:	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 )                                       
ffc0a20c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return NULL;                                                      
ffc0a210:	38 60 00 00 	li      r3,0                                   
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
ffc0a214:	41 be 00 70 	beq+    cr7,ffc0a284 <_Objects_Allocate+0x90>  <== 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 );
ffc0a218:	3b df 00 20 	addi    r30,r31,32                             
ffc0a21c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a220:	4b ff f6 65 	bl      ffc09884 <_Chain_Get>                  
                                                                      
  if ( information->auto_extend ) {                                   
ffc0a224:	88 1f 00 12 	lbz     r0,18(r31)                             
ffc0a228:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0a22c:	41 9e 00 58 	beq-    cr7,ffc0a284 <_Objects_Allocate+0x90>  
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
ffc0a230:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a234:	40 be 00 1c 	bne+    cr7,ffc0a250 <_Objects_Allocate+0x5c>  
      _Objects_Extend_information( information );                     
ffc0a238:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a23c:	48 00 00 85 	bl      ffc0a2c0 <_Objects_Extend_information> 
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
ffc0a240:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a244:	4b ff f6 41 	bl      ffc09884 <_Chain_Get>                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
ffc0a248:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0a24c:	41 a2 00 38 	beq+    ffc0a284 <_Objects_Allocate+0x90>      
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
ffc0a250:	a1 23 00 0a 	lhz     r9,10(r3)                              
ffc0a254:	a0 1f 00 0a 	lhz     r0,10(r31)                             
ffc0a258:	7c 00 48 50 	subf    r0,r0,r9                               
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
ffc0a25c:	a1 3f 00 14 	lhz     r9,20(r31)                             
ffc0a260:	7c 00 4b 96 	divwu   r0,r0,r9                               
                                                                      
      information->inactive_per_block[ block ]--;                     
ffc0a264:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc0a268:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc0a26c:	7d 69 00 2e 	lwzx    r11,r9,r0                              
ffc0a270:	39 6b ff ff 	addi    r11,r11,-1                             
ffc0a274:	7d 69 01 2e 	stwx    r11,r9,r0                              
      information->inactive--;                                        
ffc0a278:	a1 3f 00 2c 	lhz     r9,44(r31)                             
ffc0a27c:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0a280:	b0 1f 00 2c 	sth     r0,44(r31)                             
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
ffc0a284:	39 61 00 10 	addi    r11,r1,16                              
ffc0a288:	48 00 ee 54 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc0a2c0 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
ffc0a2c0:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0a2c4:	7c 08 02 a6 	mflr    r0                                     
ffc0a2c8:	90 01 00 4c 	stw     r0,76(r1)                              
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc0a2cc:	81 63 00 34 	lwz     r11,52(r3)                             
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0a2d0:	be a1 00 1c 	stmw    r21,28(r1)                             
ffc0a2d4:	7c 7f 1b 78 	mr      r31,r3                                 
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc0a2d8:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc0a2dc:	a3 83 00 0a 	lhz     r28,10(r3)                             
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc0a2e0:	41 9e 00 54 	beq-    cr7,ffc0a334 <_Objects_Extend_information+0x74>
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc0a2e4:	a1 23 00 14 	lhz     r9,20(r3)                              
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0a2e8:	39 6b ff fc 	addi    r11,r11,-4                             
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc0a2ec:	a3 63 00 10 	lhz     r27,16(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 );      
ffc0a2f0:	7f 9e e3 78 	mr      r30,r28                                
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc0a2f4:	3b a0 00 00 	li      r29,0                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc0a2f8:	7f 7b 4b 96 	divwu   r27,r27,r9                             
ffc0a2fc:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc0a300:	38 1b 00 01 	addi    r0,r27,1                               
ffc0a304:	40 be 00 20 	bne+    cr7,ffc0a324 <_Objects_Extend_information+0x64><== ALWAYS TAKEN
ffc0a308:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0a30c:	48 00 00 18 	b       ffc0a324 <_Objects_Extend_information+0x64><== NOT EXECUTED
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
ffc0a310:	85 4b 00 04 	lwzu    r10,4(r11)                             
ffc0a314:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0a318:	41 9e 00 30 	beq-    cr7,ffc0a348 <_Objects_Extend_information+0x88>
ffc0a31c:	7f de 4a 14 	add     r30,r30,r9                             
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
ffc0a320:	3b bd 00 01 	addi    r29,r29,1                              
ffc0a324:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc0a328:	40 82 ff e8 	bne+    ffc0a310 <_Objects_Extend_information+0x50>
                                                                      
  /*                                                                  
   *  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;                                               
ffc0a32c:	3b 20 00 01 	li      r25,1                                  
ffc0a330:	48 00 00 1c 	b       ffc0a34c <_Objects_Extend_information+0x8c>
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc0a334:	7f 9e e3 78 	mr      r30,r28                                
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
ffc0a338:	3b 20 00 01 	li      r25,1                                  
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc0a33c:	3b a0 00 00 	li      r29,0                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
ffc0a340:	3b 60 00 00 	li      r27,0                                  
ffc0a344:	48 00 00 08 	b       ffc0a34c <_Objects_Extend_information+0x8c>
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
ffc0a348:	3b 20 00 00 	li      r25,0                                  
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
ffc0a34c:	a0 1f 00 14 	lhz     r0,20(r31)                             
ffc0a350:	a2 ff 00 10 	lhz     r23,16(r31)                            
ffc0a354:	7e e0 ba 14 	add     r23,r0,r23                             
  /*                                                                  
   *  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 ) {                           
ffc0a358:	2b 97 ff ff 	cmplwi  cr7,r23,65535                          
ffc0a35c:	41 9d 02 08 	bgt-    cr7,ffc0a564 <_Objects_Extend_information+0x2a4>
                                                                      
  /*                                                                  
   * 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;      
ffc0a360:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc0a364:	7c 60 19 d6 	mullw   r3,r0,r3                               
  if ( information->auto_extend ) {                                   
ffc0a368:	88 1f 00 12 	lbz     r0,18(r31)                             
ffc0a36c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0a370:	41 9e 00 14 	beq-    cr7,ffc0a384 <_Objects_Extend_information+0xc4>
    new_object_block = _Workspace_Allocate( block_size );             
ffc0a374:	48 00 23 0d 	bl      ffc0c680 <_Workspace_Allocate>         
    if ( !new_object_block )                                          
ffc0a378:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc0a37c:	40 a2 00 10 	bne+    ffc0a38c <_Objects_Extend_information+0xcc>
ffc0a380:	48 00 01 e4 	b       ffc0a564 <_Objects_Extend_information+0x2a4>
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc0a384:	48 00 23 5d 	bl      ffc0c6e0 <_Workspace_Allocate_or_fatal_error>
ffc0a388:	7c 7a 1b 78 	mr      r26,r3                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
ffc0a38c:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc0a390:	41 9e 01 54 	beq-    cr7,ffc0a4e4 <_Objects_Extend_information+0x224>
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
ffc0a394:	3b 3b 00 01 	addi    r25,r27,1                              
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc0a398:	1c 19 00 03 	mulli   r0,r25,3                               
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
ffc0a39c:	7c 77 e2 14 	add     r3,r23,r28                             
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc0a3a0:	7c 63 02 14 	add     r3,r3,r0                               
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
ffc0a3a4:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0a3a8:	48 00 22 d9 	bl      ffc0c680 <_Workspace_Allocate>         
                                                                      
    if ( !object_blocks ) {                                           
ffc0a3ac:	7c 76 1b 79 	mr.     r22,r3                                 
ffc0a3b0:	40 a2 00 10 	bne+    ffc0a3c0 <_Objects_Extend_information+0x100>
      _Workspace_Free( new_object_block );                            
ffc0a3b4:	7f 43 d3 78 	mr      r3,r26                                 
ffc0a3b8:	48 00 22 fd 	bl      ffc0c6b4 <_Workspace_Free>             
      return;                                                         
ffc0a3bc:	48 00 01 a8 	b       ffc0a564 <_Objects_Extend_information+0x2a4>
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc0a3c0:	a0 1f 00 10 	lhz     r0,16(r31)                             
    }                                                                 
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
ffc0a3c4:	57 39 10 3a 	rlwinm  r25,r25,2,0,29                         
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
ffc0a3c8:	7f 16 ca 14 	add     r24,r22,r25                            
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc0a3cc:	7f 80 e0 40 	cmplw   cr7,r0,r28                             
ffc0a3d0:	7f 38 ca 14 	add     r25,r24,r25                            
ffc0a3d4:	41 9d 00 20 	bgt-    cr7,ffc0a3f4 <_Objects_Extend_information+0x134>
ffc0a3d8:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0a3dc:	39 39 ff fc 	addi    r9,r25,-4                              
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc0a3e0:	39 60 00 00 	li      r11,0                                  
ffc0a3e4:	38 1c 00 01 	addi    r0,r28,1                               
ffc0a3e8:	40 be 00 4c 	bne+    cr7,ffc0a434 <_Objects_Extend_information+0x174><== ALWAYS TAKEN
ffc0a3ec:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0a3f0:	48 00 00 44 	b       ffc0a434 <_Objects_Extend_information+0x174><== NOT EXECUTED
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
ffc0a3f4:	57 75 10 3a 	rlwinm  r21,r27,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,                                          
ffc0a3f8:	80 9f 00 34 	lwz     r4,52(r31)                             
ffc0a3fc:	7e a5 ab 78 	mr      r5,r21                                 
ffc0a400:	48 00 ab 69 	bl      ffc14f68 <memcpy>                      
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
ffc0a404:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc0a408:	7e a5 ab 78 	mr      r5,r21                                 
ffc0a40c:	7f 03 c3 78 	mr      r3,r24                                 
ffc0a410:	48 00 ab 59 	bl      ffc14f68 <memcpy>                      
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0a414:	a0 1f 00 10 	lhz     r0,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,                                            
ffc0a418:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc0a41c:	7f 23 cb 78 	mr      r3,r25                                 
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0a420:	7f 9c 02 14 	add     r28,r28,r0                             
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
ffc0a424:	57 85 10 3a 	rlwinm  r5,r28,2,0,29                          
ffc0a428:	48 00 ab 41 	bl      ffc14f68 <memcpy>                      
ffc0a42c:	48 00 00 10 	b       ffc0a43c <_Objects_Extend_information+0x17c>
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc0a430:	95 69 00 04 	stwu    r11,4(r9)                              
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
ffc0a434:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc0a438:	40 82 ff f8 	bne+    ffc0a430 <_Objects_Extend_information+0x170>
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
ffc0a43c:	a1 5f 00 14 	lhz     r10,20(r31)                            
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0a440:	57 c9 10 3a 	rlwinm  r9,r30,2,0,29                          
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
ffc0a444:	38 00 00 00 	li      r0,0                                   
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0a448:	7d 7e 52 14 	add     r11,r30,r10                            
ffc0a44c:	7f 9e 58 40 	cmplw   cr7,r30,r11                            
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
ffc0a450:	57 7b 10 3a 	rlwinm  r27,r27,2,0,29                         
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0a454:	39 29 ff fc 	addi    r9,r9,-4                               
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
ffc0a458:	7c 16 d9 2e 	stwx    r0,r22,r27                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
ffc0a45c:	7d 29 ca 14 	add     r9,r9,r25                              
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
ffc0a460:	7c 18 d9 2e 	stwx    r0,r24,r27                             
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0a464:	39 00 00 00 	li      r8,0                                   
ffc0a468:	38 0a 00 01 	addi    r0,r10,1                               
ffc0a46c:	41 9d 00 0c 	bgt-    cr7,ffc0a478 <_Objects_Extend_information+0x1b8><== NEVER TAKEN
ffc0a470:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0a474:	40 be 00 10 	bne+    cr7,ffc0a484 <_Objects_Extend_information+0x1c4><== ALWAYS TAKEN
ffc0a478:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0a47c:	48 00 00 08 	b       ffc0a484 <_Objects_Extend_information+0x1c4><== NOT EXECUTED
ffc0a480:	95 09 00 04 	stwu    r8,4(r9)                               
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
ffc0a484:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc0a488:	40 82 ff f8 	bne+    ffc0a480 <_Objects_Extend_information+0x1c0>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0a48c:	7c 00 00 a6 	mfmsr   r0                                     
ffc0a490:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0a494:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0a498:	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)   |    
ffc0a49c:	81 3f 00 00 	lwz     r9,0(r31)                              
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
ffc0a4a0:	56 f7 04 3e 	clrlwi  r23,r23,16                             
    information->maximum_id = _Objects_Build_id(                      
ffc0a4a4:	a1 7f 00 04 	lhz     r11,4(r31)                             
ffc0a4a8:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
ffc0a4ac:	b2 ff 00 10 	sth     r23,16(r31)                            
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a4b0:	55 6b d8 08 	rlwinm  r11,r11,27,0,4                         
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a4b4:	65 29 00 01 	oris    r9,r9,1                                
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
ffc0a4b8:	80 7f 00 34 	lwz     r3,52(r31)                             
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a4bc:	7d 29 5b 78 	or      r9,r9,r11                              
                                                                      
    information->object_blocks = object_blocks;                       
ffc0a4c0:	92 df 00 34 	stw     r22,52(r31)                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a4c4:	7d 37 bb 78 	or      r23,r9,r23                             
    information->inactive_per_block = inactive_per_block;             
ffc0a4c8:	93 1f 00 30 	stw     r24,48(r31)                            
    information->local_table = local_table;                           
ffc0a4cc:	93 3f 00 1c 	stw     r25,28(r31)                            
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
ffc0a4d0:	92 ff 00 0c 	stw     r23,12(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0a4d4:	7c 00 01 24 	mtmsr   r0                                     
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
                                                                      
    if ( old_tables )                                                 
ffc0a4d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a4dc:	41 9e 00 08 	beq-    cr7,ffc0a4e4 <_Objects_Extend_information+0x224>
      _Workspace_Free( old_tables );                                  
ffc0a4e0:	48 00 21 d5 	bl      ffc0c6b4 <_Workspace_Free>             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0a4e4:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0a4e8:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a4ec:	3b 81 00 08 	addi    r28,r1,8                               
ffc0a4f0:	a0 bf 00 14 	lhz     r5,20(r31)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0a4f4:	7f 49 e9 2e 	stwx    r26,r9,r29                             
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a4f8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a4fc:	7f 44 d3 78 	mr      r4,r26                                 
ffc0a500:	80 df 00 18 	lwz     r6,24(r31)                             
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a504:	3b 7f 00 20 	addi    r27,r31,32                             
  information->object_blocks[ block ] = new_object_block;             
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a508:	48 00 77 71 	bl      ffc11c78 <_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 ) {
ffc0a50c:	48 00 00 30 	b       ffc0a53c <_Objects_Extend_information+0x27c>
ffc0a510:	81 3f 00 00 	lwz     r9,0(r31)                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a514:	7f 63 db 78 	mr      r3,r27                                 
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
                                                                      
    the_object->id = _Objects_Build_id(                               
ffc0a518:	a0 1f 00 04 	lhz     r0,4(r31)                              
ffc0a51c:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
ffc0a520:	65 29 00 01 	oris    r9,r9,1                                
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a524:	54 00 d8 08 	rlwinm  r0,r0,27,0,4                           
ffc0a528:	7d 20 03 78 	or      r0,r9,r0                               
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a52c:	7c 00 f3 78 	or      r0,r0,r30                              
ffc0a530:	90 04 00 08 	stw     r0,8(r4)                               
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
ffc0a534:	3b de 00 01 	addi    r30,r30,1                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a538:	4b ff f2 f5 	bl      ffc0982c <_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 ) {
ffc0a53c:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a540:	4b ff f3 45 	bl      ffc09884 <_Chain_Get>                  
ffc0a544:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0a548:	40 82 ff c8 	bne+    ffc0a510 <_Objects_Extend_information+0x250>
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
ffc0a54c:	a0 1f 00 14 	lhz     r0,20(r31)                             
ffc0a550:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc0a554:	7c 09 e9 2e 	stwx    r0,r9,r29                              
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
ffc0a558:	a1 3f 00 2c 	lhz     r9,44(r31)                             
ffc0a55c:	7c 00 4a 14 	add     r0,r0,r9                               
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
ffc0a560:	b0 1f 00 2c 	sth     r0,44(r31)                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
}                                                                     
ffc0a564:	39 61 00 48 	addi    r11,r1,72                              
ffc0a568:	48 00 eb 50 	b       ffc190b8 <_restgpr_21_x>               
                                                                      

ffc0a620 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
ffc0a620:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0a624:	7c 08 02 a6 	mflr    r0                                     
ffc0a628:	bf a1 00 0c 	stmw    r29,12(r1)                             
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0a62c:	7c 9d 23 79 	mr.     r29,r4                                 
                                                                      
Objects_Information *_Objects_Get_information(                        
  Objects_APIs   the_api,                                             
  uint16_t       the_class                                            
)                                                                     
{                                                                     
ffc0a630:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0a634:	90 01 00 1c 	stw     r0,28(r1)                              
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
ffc0a638:	3b e0 00 00 	li      r31,0                                  
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0a63c:	41 a2 00 50 	beq+    ffc0a68c <_Objects_Get_information+0x6c>
                                                                      
  /*                                                                  
   *  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 );      
ffc0a640:	48 00 7d 8d 	bl      ffc123cc <_Objects_API_maximum_class>  
  if ( the_class_api_maximum == 0 )                                   
ffc0a644:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0a648:	41 a2 00 44 	beq+    ffc0a68c <_Objects_Get_information+0x6c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
ffc0a64c:	7f 9d 18 40 	cmplw   cr7,r29,r3                             
ffc0a650:	41 bd 00 3c 	bgt+    cr7,ffc0a68c <_Objects_Get_information+0x6c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc0a654:	3d 20 00 00 	lis     r9,0                                   
ffc0a658:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0a65c:	39 29 2c 80 	addi    r9,r9,11392                            
ffc0a660:	7d 29 f0 2e 	lwzx    r9,r9,r30                              
ffc0a664:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a668:	41 be 00 24 	beq+    cr7,ffc0a68c <_Objects_Get_information+0x6c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
ffc0a66c:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0a670:	7f e9 e8 2e 	lwzx    r31,r9,r29                             
  if ( !info )                                                        
ffc0a674:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0a678:	41 be 00 14 	beq+    cr7,ffc0a68c <_Objects_Get_information+0x6c><== 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 )                                         
ffc0a67c:	a0 1f 00 10 	lhz     r0,16(r31)                             
ffc0a680:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0a684:	40 be 00 08 	bne+    cr7,ffc0a68c <_Objects_Get_information+0x6c>
      return NULL;                                                    
ffc0a688:	3b e0 00 00 	li      r31,0                                  
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
ffc0a68c:	39 61 00 18 	addi    r11,r1,24                              
ffc0a690:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a694:	48 00 ea 44 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc1baac <_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;
ffc1baac:	80 03 00 08 	lwz     r0,8(r3)                               
                                                                      
  if ( information->maximum >= index ) {                              
ffc1bab0:	a1 23 00 10 	lhz     r9,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;                           
ffc1bab4:	20 00 00 01 	subfic  r0,r0,1                                
ffc1bab8:	7c 00 22 14 	add     r0,r0,r4                               
                                                                      
  if ( information->maximum >= index ) {                              
ffc1babc:	7f 89 00 40 	cmplw   cr7,r9,r0                              
ffc1bac0:	41 9c 00 24 	blt-    cr7,ffc1bae4 <_Objects_Get_no_protection+0x38>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
ffc1bac4:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc1bac8:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc1bacc:	7c 69 00 2e 	lwzx    r3,r9,r0                               
ffc1bad0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bad4:	41 9e 00 10 	beq-    cr7,ffc1bae4 <_Objects_Get_no_protection+0x38><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
ffc1bad8:	38 00 00 00 	li      r0,0                                   
ffc1badc:	90 05 00 00 	stw     r0,0(r5)                               
      return the_object;                                              
ffc1bae0:	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;                                          
ffc1bae4:	38 00 00 01 	li      r0,1                                   
ffc1bae8:	90 05 00 00 	stw     r0,0(r5)                               
  return NULL;                                                        
ffc1baec:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1baf0:	4e 80 00 20 	blr                                            
                                                                      

ffc0adc0 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
ffc0adc0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0adc4:	7c 08 02 a6 	mflr    r0                                     
ffc0adc8:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc0adcc:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0add0:	7c 64 1b 79 	mr.     r4,r3                                  
 */                                                                   
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (                
  Objects_Id      id,                                                 
  Objects_Name   *name                                                
)                                                                     
{                                                                     
ffc0add4:	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;
ffc0add8:	40 82 00 10 	bne-    ffc0ade8 <_Objects_Id_to_name+0x28>    
ffc0addc:	3d 20 00 00 	lis     r9,0                                   
ffc0ade0:	81 29 31 7c 	lwz     r9,12668(r9)                           
ffc0ade4:	80 89 00 08 	lwz     r4,8(r9)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
ffc0ade8:	54 89 47 7e 	rlwinm  r9,r4,8,29,31                          
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
ffc0adec:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0adf0:	2b 80 00 02 	cmplwi  cr7,r0,2                               
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
ffc0adf4:	3b e0 00 03 	li      r31,3                                  
ffc0adf8:	41 9d 00 44 	bgt-    cr7,ffc0ae3c <_Objects_Id_to_name+0x7c>
ffc0adfc:	48 00 00 4c 	b       ffc0ae48 <_Objects_Id_to_name+0x88>    
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
ffc0ae00:	54 80 3e 7a 	rlwinm  r0,r4,7,25,29                          
ffc0ae04:	7c 69 00 2e 	lwzx    r3,r9,r0                               
  if ( !information )                                                 
ffc0ae08:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ae0c:	41 9e 00 30 	beq-    cr7,ffc0ae3c <_Objects_Id_to_name+0x7c><== NEVER TAKEN
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
ffc0ae10:	88 03 00 38 	lbz     r0,56(r3)                              
ffc0ae14:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ae18:	40 9e 00 24 	bne-    cr7,ffc0ae3c <_Objects_Id_to_name+0x7c><== NEVER TAKEN
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
ffc0ae1c:	38 a1 00 08 	addi    r5,r1,8                                
ffc0ae20:	4b ff ff 25 	bl      ffc0ad44 <_Objects_Get>                
  if ( !the_object )                                                  
ffc0ae24:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ae28:	41 82 00 14 	beq-    ffc0ae3c <_Objects_Id_to_name+0x7c>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
ffc0ae2c:	80 03 00 0c 	lwz     r0,12(r3)                              
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
ffc0ae30:	3b e0 00 00 	li      r31,0                                  
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
ffc0ae34:	90 1e 00 00 	stw     r0,0(r30)                              
  _Thread_Enable_dispatch();                                          
ffc0ae38:	48 00 09 7d 	bl      ffc0b7b4 <_Thread_Enable_dispatch>     
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
ffc0ae3c:	39 61 00 20 	addi    r11,r1,32                              
ffc0ae40:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ae44:	4b ff 68 54 	b       ffc01698 <_restgpr_30_x>               
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc0ae48:	3d 60 00 00 	lis     r11,0                                  
ffc0ae4c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0ae50:	39 6b 2c 40 	addi    r11,r11,11328                          
ffc0ae54:	7d 2b 48 2e 	lwzx    r9,r11,r9                              
ffc0ae58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ae5c:	40 9e ff a4 	bne+    cr7,ffc0ae00 <_Objects_Id_to_name+0x40>
ffc0ae60:	4b ff ff dc 	b       ffc0ae3c <_Objects_Id_to_name+0x7c>    
                                                                      

ffc0a94c <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
ffc0a94c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0a950:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0a954:	39 20 00 00 	li      r9,0                                   
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0a958:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0a95c:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0a960:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
ffc0a964:	a3 c3 00 0a 	lhz     r30,10(r3)                             
  block_count = (information->maximum - index_base) /                 
ffc0a968:	a1 43 00 10 	lhz     r10,16(r3)                             
ffc0a96c:	a1 63 00 14 	lhz     r11,20(r3)                             
ffc0a970:	7d 5e 50 50 	subf    r10,r30,r10                            
ffc0a974:	7d 4a 5b 96 	divwu   r10,r10,r11                            
ffc0a978:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0a97c:	38 0a 00 01 	addi    r0,r10,1                               
ffc0a980:	40 be 00 90 	bne+    cr7,ffc0aa10 <_Objects_Shrink_information+0xc4><== ALWAYS TAKEN
ffc0a984:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0a988:	48 00 00 88 	b       ffc0aa10 <_Objects_Shrink_information+0xc4><== NOT EXECUTED
    if ( information->inactive_per_block[ block ] ==                  
ffc0a98c:	81 5f 00 30 	lwz     r10,48(r31)                            
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0a990:	55 3d 10 3a 	rlwinm  r29,r9,2,0,29                          
    if ( information->inactive_per_block[ block ] ==                  
ffc0a994:	7d 4a e8 2e 	lwzx    r10,r10,r29                            
ffc0a998:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
ffc0a99c:	40 be 00 6c 	bne+    cr7,ffc0aa08 <_Objects_Shrink_information+0xbc>
         information->allocation_size ) {                             
                                                                      
      /*                                                              
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) information->Inactive.first;   
ffc0a9a0:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0a9a4:	48 00 00 08 	b       ffc0a9ac <_Objects_Shrink_information+0x60>
         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;      
ffc0a9a8:	7f 83 e3 78 	mr      r3,r28                                 
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) information->Inactive.first;   
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
ffc0a9ac:	a0 03 00 0a 	lhz     r0,10(r3)                              
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
ffc0a9b0:	83 83 00 00 	lwz     r28,0(r3)                              
         if ((index >= index_base) &&                                 
ffc0a9b4:	7f 80 f0 40 	cmplw   cr7,r0,r30                             
ffc0a9b8:	41 9c 00 18 	blt-    cr7,ffc0a9d0 <_Objects_Shrink_information+0x84>
             (index < (index_base + information->allocation_size))) { 
ffc0a9bc:	a1 3f 00 14 	lhz     r9,20(r31)                             
ffc0a9c0:	7d 3e 4a 14 	add     r9,r30,r9                              
         /*                                                           
          *  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) &&                                 
ffc0a9c4:	7f 80 48 40 	cmplw   cr7,r0,r9                              
ffc0a9c8:	40 bc 00 08 	bge+    cr7,ffc0a9d0 <_Objects_Shrink_information+0x84>
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
ffc0a9cc:	4b ff ee 91 	bl      ffc0985c <_Chain_Extract>              
         }                                                            
       }                                                              
       while ( the_object );                                          
ffc0a9d0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0a9d4:	40 9e ff d4 	bne+    cr7,ffc0a9a8 <_Objects_Shrink_information+0x5c>
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
ffc0a9d8:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0a9dc:	7c 69 e8 2e 	lwzx    r3,r9,r29                              
ffc0a9e0:	48 00 1c d5 	bl      ffc0c6b4 <_Workspace_Free>             
      information->object_blocks[ block ] = NULL;                     
ffc0a9e4:	81 3f 00 34 	lwz     r9,52(r31)                             
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
ffc0a9e8:	a0 1f 00 14 	lhz     r0,20(r31)                             
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
ffc0a9ec:	7f 89 e9 2e 	stwx    r28,r9,r29                             
      information->inactive_per_block[ block ] = 0;                   
ffc0a9f0:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc0a9f4:	7f 89 e9 2e 	stwx    r28,r9,r29                             
                                                                      
      information->inactive -= information->allocation_size;          
ffc0a9f8:	a1 3f 00 2c 	lhz     r9,44(r31)                             
ffc0a9fc:	7c 00 48 50 	subf    r0,r0,r9                               
ffc0aa00:	b0 1f 00 2c 	sth     r0,44(r31)                             
                                                                      
      return;                                                         
ffc0aa04:	48 00 00 14 	b       ffc0aa18 <_Objects_Shrink_information+0xcc>
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
ffc0aa08:	7f de 5a 14 	add     r30,r30,r11                            
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0aa0c:	39 29 00 01 	addi    r9,r9,1                                
ffc0aa10:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc0aa14:	40 82 ff 78 	bne+    ffc0a98c <_Objects_Shrink_information+0x40>
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0aa18:	39 61 00 18 	addi    r11,r1,24                              
ffc0aa1c:	48 00 e6 b8 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc0a358 <_POSIX_Absolute_timeout_to_ticks>: */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) {
ffc0a358:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0a35c:	7c 08 02 a6 	mflr    r0                                     
ffc0a360:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
                                                                      
  /*                                                                  
   *  Make sure there is always a value returned.                     
   */                                                                 
  *ticks_out = 0;                                                     
ffc0a364:	38 00 00 00 	li      r0,0                                   
 */                                                                   
POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks(
  const struct timespec *abstime,                                     
  Watchdog_Interval     *ticks_out                                    
)                                                                     
{                                                                     
ffc0a368:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc0a36c:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0a370:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
                                                                      
  /*                                                                  
   *  Make sure there is always a value returned.                     
   */                                                                 
  *ticks_out = 0;                                                     
ffc0a374:	90 04 00 00 	stw     r0,0(r4)                               
                                                                      
  /*                                                                  
   *  Is the absolute time even valid?                                
   */                                                                 
  if ( !_Timespec_Is_valid(abstime) )                                 
ffc0a378:	48 00 44 49 	bl      ffc0e7c0 <_Timespec_Is_valid>          
    return POSIX_ABSOLUTE_TIMEOUT_INVALID;                            
ffc0a37c:	38 00 00 00 	li      r0,0                                   
  *ticks_out = 0;                                                     
                                                                      
  /*                                                                  
   *  Is the absolute time even valid?                                
   */                                                                 
  if ( !_Timespec_Is_valid(abstime) )                                 
ffc0a380:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a384:	41 be 00 58 	beq+    cr7,ffc0a3dc <_POSIX_Absolute_timeout_to_ticks+0x84>
    return POSIX_ABSOLUTE_TIMEOUT_INVALID;                            
                                                                      
  /*                                                                  
   *  Is the absolute time in the past?                               
   */                                                                 
  _TOD_Get( ¤t_time );                                          
ffc0a388:	3b a1 00 08 	addi    r29,r1,8                               
ffc0a38c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a390:	48 00 1f 89 	bl      ffc0c318 <_TOD_Get>                    
                                                                      
  if ( _Timespec_Less_than( abstime, ¤t_time ) )                
ffc0a394:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a398:	7f a4 eb 78 	mr      r4,r29                                 
ffc0a39c:	48 00 44 65 	bl      ffc0e800 <_Timespec_Less_than>         
    return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;                         
ffc0a3a0:	38 00 00 01 	li      r0,1                                   
  /*                                                                  
   *  Is the absolute time in the past?                               
   */                                                                 
  _TOD_Get( ¤t_time );                                          
                                                                      
  if ( _Timespec_Less_than( abstime, ¤t_time ) )                
ffc0a3a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a3a8:	40 9e 00 34 	bne-    cr7,ffc0a3dc <_POSIX_Absolute_timeout_to_ticks+0x84>
    return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;                         
                                                                      
  /*                                                                  
   *  How long until the requested absolute time?                     
   */                                                                 
  _Timespec_Subtract( ¤t_time, abstime, &difference );          
ffc0a3ac:	3b c1 00 10 	addi    r30,r1,16                              
ffc0a3b0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a3b4:	7f 84 e3 78 	mr      r4,r28                                 
ffc0a3b8:	7f c5 f3 78 	mr      r5,r30                                 
ffc0a3bc:	48 00 44 81 	bl      ffc0e83c <_Timespec_Subtract>          
                                                                      
  /*                                                                  
   *  Internally the SuperCore uses ticks, so convert to them.        
   */                                                                 
  *ticks_out = _Timespec_To_ticks( &difference );                     
ffc0a3c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a3c4:	48 00 44 bd 	bl      ffc0e880 <_Timespec_To_ticks>          
                                                                      
  /*                                                                  
   *  This is the case we were expecting and it took this long to     
   *  get here.                                                       
   */                                                                 
  return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE;                         
ffc0a3c8:	38 00 00 03 	li      r0,3                                   
                                                                      
  /*                                                                  
   *  If the difference was 0, then the future is now.  It is so bright
   *  we better wear shades.                                          
   */                                                                 
  if ( !*ticks_out )                                                  
ffc0a3cc:	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 );                     
ffc0a3d0:	90 7f 00 00 	stw     r3,0(r31)                              
                                                                      
  /*                                                                  
   *  If the difference was 0, then the future is now.  It is so bright
   *  we better wear shades.                                          
   */                                                                 
  if ( !*ticks_out )                                                  
ffc0a3d4:	40 be 00 08 	bne+    cr7,ffc0a3dc <_POSIX_Absolute_timeout_to_ticks+0x84><== ALWAYS TAKEN
    return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;                             
ffc0a3d8:	38 00 00 02 	li      r0,2                                   <== NOT EXECUTED
  /*                                                                  
   *  This is the case we were expecting and it took this long to     
   *  get here.                                                       
   */                                                                 
  return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE;                         
}                                                                     
ffc0a3dc:	39 61 00 28 	addi    r11,r1,40                              
ffc0a3e0:	7c 03 03 78 	mr      r3,r0                                  
ffc0a3e4:	4b ff 87 9c 	b       ffc02b80 <_restgpr_28_x>               
                                                                      

ffc08c28 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) {
ffc08c28:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc08c2c:	7c 08 02 a6 	mflr    r0                                     
ffc08c30:	bf 41 00 18 	stmw    r26,24(r1)                             
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
ffc08c34:	3b 41 00 08 	addi    r26,r1,8                               
  pthread_cond_t            *cond,                                    
  pthread_mutex_t           *mutex,                                   
  Watchdog_Interval          timeout,                                 
  bool                       already_timedout                         
)                                                                     
{                                                                     
ffc08c38:	7c 7e 1b 78 	mr      r30,r3                                 
ffc08c3c:	7c 9f 23 78 	mr      r31,r4                                 
ffc08c40:	90 01 00 34 	stw     r0,52(r1)                              
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
ffc08c44:	7c 83 23 78 	mr      r3,r4                                  
ffc08c48:	7f 44 d3 78 	mr      r4,r26                                 
  pthread_cond_t            *cond,                                    
  pthread_mutex_t           *mutex,                                   
  Watchdog_Interval          timeout,                                 
  bool                       already_timedout                         
)                                                                     
{                                                                     
ffc08c4c:	7c bc 2b 78 	mr      r28,r5                                 
ffc08c50:	7c db 33 78 	mr      r27,r6                                 
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
ffc08c54:	48 00 01 79 	bl      ffc08dcc <_POSIX_Mutex_Get>            
ffc08c58:	2f 83 00 00 	cmpwi   cr7,r3,0                               
     return EINVAL;                                                   
ffc08c5c:	3b a0 00 16 	li      r29,22                                 
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
ffc08c60:	41 9e 00 dc 	beq-    cr7,ffc08d3c <_POSIX_Condition_variables_Wait_support+0x114>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc08c64:	3d 20 00 00 	lis     r9,0                                   
ffc08c68:	81 69 27 c8 	lwz     r11,10184(r9)                          
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
ffc08c6c:	7f 44 d3 78 	mr      r4,r26                                 
ffc08c70:	7f c3 f3 78 	mr      r3,r30                                 
ffc08c74:	38 0b ff ff 	addi    r0,r11,-1                              
ffc08c78:	90 09 27 c8 	stw     r0,10184(r9)                           
ffc08c7c:	4b ff fd 55 	bl      ffc089d0 <_POSIX_Condition_variables_Get>
ffc08c80:	7c 7a 1b 78 	mr      r26,r3                                 
  switch ( location ) {                                               
ffc08c84:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08c88:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08c8c:	40 9e 00 b0 	bne-    cr7,ffc08d3c <_POSIX_Condition_variables_Wait_support+0x114>
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {       
ffc08c90:	80 03 00 14 	lwz     r0,20(r3)                              
ffc08c94:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08c98:	41 9e 00 18 	beq-    cr7,ffc08cb0 <_POSIX_Condition_variables_Wait_support+0x88>
ffc08c9c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc08ca0:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc08ca4:	41 9e 00 0c 	beq-    cr7,ffc08cb0 <_POSIX_Condition_variables_Wait_support+0x88>
        _Thread_Enable_dispatch();                                    
ffc08ca8:	48 00 36 c1 	bl      ffc0c368 <_Thread_Enable_dispatch>     
        return EINVAL;                                                
ffc08cac:	48 00 00 90 	b       ffc08d3c <_POSIX_Condition_variables_Wait_support+0x114>
      }                                                               
                                                                      
      (void) pthread_mutex_unlock( mutex );                           
ffc08cb0:	7f e3 fb 78 	mr      r3,r31                                 
ffc08cb4:	48 00 04 05 	bl      ffc090b8 <pthread_mutex_unlock>        
        _Thread_Enable_dispatch();                                    
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
ffc08cb8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc08cbc:	40 9e 00 5c 	bne-    cr7,ffc08d18 <_POSIX_Condition_variables_Wait_support+0xf0>
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
ffc08cc0:	3f a0 00 00 	lis     r29,0                                  
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
ffc08cc4:	80 1f 00 00 	lwz     r0,0(r31)                              
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
ffc08cc8:	3b bd 31 10 	addi    r29,r29,12560                          
ffc08ccc:	81 3d 00 0c 	lwz     r9,12(r29)                             
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
ffc08cd0:	38 7a 00 18 	addi    r3,r26,24                              
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
ffc08cd4:	90 1a 00 14 	stw     r0,20(r26)                             
                                                                      
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;
ffc08cd8:	38 00 00 01 	li      r0,1                                   
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
        _Thread_Executing->Wait.id          = *cond;                  
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
ffc08cdc:	3c a0 ff c1 	lis     r5,-63                                 
ffc08ce0:	90 1a 00 48 	stw     r0,72(r26)                             
ffc08ce4:	7f 84 e3 78 	mr      r4,r28                                 
ffc08ce8:	38 a5 cd 04 	addi    r5,r5,-13052                           
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
ffc08cec:	93 69 00 34 	stw     r27,52(r9)                             
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
        _Thread_Executing->Wait.id          = *cond;                  
ffc08cf0:	80 1e 00 00 	lwz     r0,0(r30)                              
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
ffc08cf4:	90 69 00 44 	stw     r3,68(r9)                              
        _Thread_Executing->Wait.id          = *cond;                  
ffc08cf8:	90 09 00 20 	stw     r0,32(r9)                              
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
ffc08cfc:	48 00 3b d1 	bl      ffc0c8cc <_Thread_queue_Enqueue_with_handler>
                                                                      
        _Thread_Enable_dispatch();                                    
ffc08d00:	48 00 36 69 	bl      ffc0c368 <_Thread_Enable_dispatch>     
         *  a POSIX signal, then pthread_cond_wait returns spuriously,
         *  according to the POSIX standard. It means that pthread_cond_wait
         *  returns a success status, except for the fact that it was not
         *  woken up a pthread_cond_signal or a pthread_cond_broadcast.
         */                                                           
        status = _Thread_Executing->Wait.return_code;                 
ffc08d04:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc08d08:	83 a9 00 34 	lwz     r29,52(r9)                             
        if ( status == EINTR )                                        
ffc08d0c:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc08d10:	40 be 00 18 	bne+    cr7,ffc08d28 <_POSIX_Condition_variables_Wait_support+0x100><== ALWAYS TAKEN
ffc08d14:	48 00 00 10 	b       ffc08d24 <_POSIX_Condition_variables_Wait_support+0xfc><== NOT EXECUTED
          status = 0;                                                 
                                                                      
      } else {                                                        
        _Thread_Enable_dispatch();                                    
ffc08d18:	48 00 36 51 	bl      ffc0c368 <_Thread_Enable_dispatch>     
        status = ETIMEDOUT;                                           
ffc08d1c:	3b a0 00 74 	li      r29,116                                
ffc08d20:	48 00 00 08 	b       ffc08d28 <_POSIX_Condition_variables_Wait_support+0x100>
         *  returns a success status, except for the fact that it was not
         *  woken up a pthread_cond_signal or a pthread_cond_broadcast.
         */                                                           
        status = _Thread_Executing->Wait.return_code;                 
        if ( status == EINTR )                                        
          status = 0;                                                 
ffc08d24:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
                                                                      
      /*                                                              
       *  When we get here the dispatch disable level is 0.           
       */                                                             
                                                                      
      mutex_status = pthread_mutex_lock( mutex );                     
ffc08d28:	7f e3 fb 78 	mr      r3,r31                                 
ffc08d2c:	48 00 02 e9 	bl      ffc09014 <pthread_mutex_lock>          
      if ( mutex_status )                                             
ffc08d30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08d34:	41 be 00 08 	beq+    cr7,ffc08d3c <_POSIX_Condition_variables_Wait_support+0x114>
        return EINVAL;                                                
ffc08d38:	3b a0 00 16 	li      r29,22                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc08d3c:	39 61 00 30 	addi    r11,r1,48                              
ffc08d40:	7f a3 eb 78 	mr      r3,r29                                 
ffc08d44:	4b ff 8a 88 	b       ffc017cc <_restgpr_26_x>               
                                                                      

ffc0ce08 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) {
ffc0ce08:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0ce0c:	7c 08 02 a6 	mflr    r0                                     
ffc0ce10:	bf 61 00 24 	stmw    r27,36(r1)                             
ffc0ce14:	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(             
ffc0ce18:	3c 60 00 00 	lis     r3,0                                   
ffc0ce1c:	7c 9d 23 78 	mr      r29,r4                                 
ffc0ce20:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0ce24:	7c bc 2b 78 	mr      r28,r5                                 
ffc0ce28:	38 63 36 04 	addi    r3,r3,13828                            
ffc0ce2c:	91 01 00 18 	stw     r8,24(r1)                              
ffc0ce30:	7f e4 fb 78 	mr      r4,r31                                 
ffc0ce34:	38 a1 00 08 	addi    r5,r1,8                                
ffc0ce38:	7c de 33 78 	mr      r30,r6                                 
ffc0ce3c:	7c fb 3b 78 	mr      r27,r7                                 
ffc0ce40:	48 00 35 19 	bl      ffc10358 <_Objects_Get>                
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
ffc0ce44:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0ce48:	81 01 00 18 	lwz     r8,24(r1)                              
ffc0ce4c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ce50:	40 9e 00 c8 	bne-    cr7,ffc0cf18 <_POSIX_Message_queue_Receive_support+0x110>
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
ffc0ce54:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0ce58:	55 20 07 be 	clrlwi  r0,r9,30                               
ffc0ce5c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0ce60:	40 be 00 0c 	bne+    cr7,ffc0ce6c <_POSIX_Message_queue_Receive_support+0x64>
        _Thread_Enable_dispatch();                                    
ffc0ce64:	48 00 3f 5d 	bl      ffc10dc0 <_Thread_Enable_dispatch>     
ffc0ce68:	48 00 00 b0 	b       ffc0cf18 <_POSIX_Message_queue_Receive_support+0x110>
        rtems_set_errno_and_return_minus_one( EBADF );                
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
ffc0ce6c:	80 63 00 10 	lwz     r3,16(r3)                              
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
ffc0ce70:	80 03 00 68 	lwz     r0,104(r3)                             
ffc0ce74:	7f 9c 00 40 	cmplw   cr7,r28,r0                             
ffc0ce78:	40 bc 00 14 	bge+    cr7,ffc0ce8c <_POSIX_Message_queue_Receive_support+0x84>
        _Thread_Enable_dispatch();                                    
ffc0ce7c:	48 00 3f 45 	bl      ffc10dc0 <_Thread_Enable_dispatch>     
        rtems_set_errno_and_return_minus_one( EMSGSIZE );             
ffc0ce80:	48 00 ab 9d 	bl      ffc17a1c <__errno>                     
ffc0ce84:	38 00 00 7a 	li      r0,122                                 
ffc0ce88:	48 00 00 98 	b       ffc0cf20 <_POSIX_Message_queue_Receive_support+0x118>
      length_out = -1;                                                
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0ce8c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
      /*                                                              
       *  Now if something goes wrong, we return a "length" of -1     
       *  to indicate an error.                                       
       */                                                             
                                                                      
      length_out = -1;                                                
ffc0ce90:	38 00 ff ff 	li      r0,-1                                  
ffc0ce94:	90 01 00 0c 	stw     r0,12(r1)                              
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0ce98:	38 00 00 00 	li      r0,0                                   
ffc0ce9c:	41 9e 00 10 	beq-    cr7,ffc0ceac <_POSIX_Message_queue_Receive_support+0xa4><== NEVER TAKEN
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
ffc0cea0:	71 20 40 00 	andi.   r0,r9,16384                            
ffc0cea4:	7c 00 00 26 	mfcr    r0                                     
ffc0cea8:	54 00 1f fe 	rlwinm  r0,r0,3,31,31                          
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
ffc0ceac:	7f e4 fb 78 	mr      r4,r31                                 
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
ffc0ceb0:	3f e0 00 00 	lis     r31,0                                  
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
ffc0ceb4:	7c 07 03 78 	mr      r7,r0                                  
ffc0ceb8:	38 63 00 1c 	addi    r3,r3,28                               
ffc0cebc:	7f a5 eb 78 	mr      r5,r29                                 
ffc0cec0:	38 c1 00 0c 	addi    r6,r1,12                               
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
ffc0cec4:	3b ff 36 70 	addi    r31,r31,13936                          
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
ffc0cec8:	48 00 23 15 	bl      ffc0f1dc <_CORE_message_queue_Seize>   
        &length_out,                                                  
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0cecc:	48 00 3e f5 	bl      ffc10dc0 <_Thread_Enable_dispatch>     
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
ffc0ced0:	81 3f 00 0c 	lwz     r9,12(r31)                             
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
  CORE_message_queue_Submit_types priority                            
)                                                                     
{                                                                     
  /* absolute value without a library dependency */                   
  return ((priority >= 0) ? priority : -priority);                    
ffc0ced4:	80 09 00 24 	lwz     r0,36(r9)                              
ffc0ced8:	7c 0b fe 70 	srawi   r11,r0,31                              
ffc0cedc:	7d 60 02 78 	xor     r0,r11,r0                              
ffc0cee0:	7c 0b 00 50 	subf    r0,r11,r0                              
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
ffc0cee4:	90 1e 00 00 	stw     r0,0(r30)                              
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
ffc0cee8:	80 09 00 34 	lwz     r0,52(r9)                              
ffc0ceec:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0cef0:	40 9e 00 0c 	bne-    cr7,ffc0cefc <_POSIX_Message_queue_Receive_support+0xf4>
        return length_out;                                            
ffc0cef4:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc0cef8:	48 00 00 30 	b       ffc0cf28 <_POSIX_Message_queue_Receive_support+0x120>
                                                                      
      rtems_set_errno_and_return_minus_one(                           
ffc0cefc:	48 00 ab 21 	bl      ffc17a1c <__errno>                     
ffc0cf00:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0cf04:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0cf08:	80 69 00 34 	lwz     r3,52(r9)                              
ffc0cf0c:	48 00 02 a5 	bl      ffc0d1b0 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
ffc0cf10:	90 7e 00 00 	stw     r3,0(r30)                              
ffc0cf14:	48 00 00 10 	b       ffc0cf24 <_POSIX_Message_queue_Receive_support+0x11c>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
ffc0cf18:	48 00 ab 05 	bl      ffc17a1c <__errno>                     
ffc0cf1c:	38 00 00 09 	li      r0,9                                   
ffc0cf20:	90 03 00 00 	stw     r0,0(r3)                               
ffc0cf24:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0cf28:	39 61 00 38 	addi    r11,r1,56                              
ffc0cf2c:	4b ff 89 b4 	b       ffc058e0 <_restgpr_27_x>               
                                                                      

ffc0d13c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: #include <rtems/posix/pthread.h> void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( Thread_Control *the_thread ) {
ffc0d13c:	7c 08 02 a6 	mflr    r0                                     
ffc0d140:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0d144:	90 01 00 0c 	stw     r0,12(r1)                              
  POSIX_API_Control *thread_support;                                  
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
ffc0d148:	81 23 01 48 	lwz     r9,328(r3)                             
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
ffc0d14c:	80 09 00 d8 	lwz     r0,216(r9)                             
ffc0d150:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0d154:	40 9e 00 38 	bne-    cr7,ffc0d18c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50><== NEVER TAKEN
ffc0d158:	80 09 00 dc 	lwz     r0,220(r9)                             
ffc0d15c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0d160:	40 be 00 2c 	bne+    cr7,ffc0d18c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50>
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
ffc0d164:	80 09 00 e0 	lwz     r0,224(r9)                             
ffc0d168:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0d16c:	41 be 00 20 	beq+    cr7,ffc0d18c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc0d170:	3d 20 00 00 	lis     r9,0                                   
ffc0d174:	81 69 27 9c 	lwz     r11,10140(r9)                          
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
ffc0d178:	38 80 ff ff 	li      r4,-1                                  
ffc0d17c:	38 0b ff ff 	addi    r0,r11,-1                              
ffc0d180:	90 09 27 9c 	stw     r0,10140(r9)                           
ffc0d184:	48 00 08 45 	bl      ffc0d9c8 <_POSIX_Thread_Exit>          
ffc0d188:	48 00 00 08 	b       ffc0d190 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54>
  } else                                                              
    _Thread_Enable_dispatch();                                        
ffc0d18c:	4b ff d1 c9 	bl      ffc0a354 <_Thread_Enable_dispatch>     
                                                                      
}                                                                     
ffc0d190:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0d194:	38 21 00 08 	addi    r1,r1,8                                
ffc0d198:	7c 08 03 a6 	mtlr    r0                                     
ffc0d19c:	4e 80 00 20 	blr                                            
                                                                      

ffc0e724 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) {
ffc0e724:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0e728:	7c 08 02 a6 	mflr    r0                                     
ffc0e72c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0e730:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e734:	7c 9e 23 78 	mr      r30,r4                                 
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
ffc0e738:	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                 
)                                                                     
{                                                                     
ffc0e73c:	7c bd 2b 78 	mr      r29,r5                                 
ffc0e740:	90 01 00 24 	stw     r0,36(r1)                              
ffc0e744:	7c db 33 78 	mr      r27,r6                                 
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
ffc0e748:	4b ff ff b5 	bl      ffc0e6fc <_POSIX_Priority_Is_valid>    
    return EINVAL;                                                    
ffc0e74c:	3b 80 00 16 	li      r28,22                                 
  struct sched_param                  *param,                         
  Thread_CPU_budget_algorithms        *budget_algorithm,              
  Thread_CPU_budget_algorithm_callout *budget_callout                 
)                                                                     
{                                                                     
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
ffc0e750:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e754:	41 9e 00 c8 	beq-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
ffc0e758:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
)                                                                     
{                                                                     
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
ffc0e75c:	38 00 00 00 	li      r0,0                                   
ffc0e760:	90 1d 00 00 	stw     r0,0(r29)                              
  *budget_callout = NULL;                                             
ffc0e764:	90 1b 00 00 	stw     r0,0(r27)                              
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
ffc0e768:	40 be 00 10 	bne+    cr7,ffc0e778 <_POSIX_Thread_Translate_sched_param+0x54>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
ffc0e76c:	38 00 00 01 	li      r0,1                                   
ffc0e770:	90 1d 00 00 	stw     r0,0(r29)                              
ffc0e774:	48 00 00 a4 	b       ffc0e818 <_POSIX_Thread_Translate_sched_param+0xf4>
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
ffc0e778:	2f 9f 00 01 	cmpwi   cr7,r31,1                              
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
ffc0e77c:	3b 80 00 00 	li      r28,0                                  
  if ( policy == SCHED_OTHER ) {                                      
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
ffc0e780:	41 9e 00 9c 	beq-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
ffc0e784:	2f 9f 00 02 	cmpwi   cr7,r31,2                              
ffc0e788:	40 be 00 0c 	bne+    cr7,ffc0e794 <_POSIX_Thread_Translate_sched_param+0x70>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
ffc0e78c:	93 fd 00 00 	stw     r31,0(r29)                             
    return 0;                                                         
ffc0e790:	48 00 00 8c 	b       ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
ffc0e794:	2f 9f 00 04 	cmpwi   cr7,r31,4                              
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
ffc0e798:	3b 80 00 16 	li      r28,22                                 
  if ( policy == SCHED_RR ) {                                         
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
ffc0e79c:	40 be 00 80 	bne+    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
ffc0e7a0:	80 1e 00 08 	lwz     r0,8(r30)                              
ffc0e7a4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e7a8:	40 9e 00 10 	bne-    cr7,ffc0e7b8 <_POSIX_Thread_Translate_sched_param+0x94>
ffc0e7ac:	80 1e 00 0c 	lwz     r0,12(r30)                             
ffc0e7b0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e7b4:	41 9e 00 68 	beq-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
ffc0e7b8:	80 1e 00 10 	lwz     r0,16(r30)                             
ffc0e7bc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e7c0:	40 9e 00 14 	bne-    cr7,ffc0e7d4 <_POSIX_Thread_Translate_sched_param+0xb0>
ffc0e7c4:	80 1e 00 14 	lwz     r0,20(r30)                             
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
ffc0e7c8:	3b 80 00 16 	li      r28,22                                 
  if ( policy == SCHED_SPORADIC ) {                                   
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
ffc0e7cc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e7d0:	41 9e 00 4c 	beq-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
ffc0e7d4:	38 7e 00 08 	addi    r3,r30,8                               
ffc0e7d8:	4b ff da 3d 	bl      ffc0c214 <_Timespec_To_ticks>          
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
ffc0e7dc:	3b 80 00 16 	li      r28,22                                 
                                                                      
    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 ) <         
ffc0e7e0:	7c 7f 1b 78 	mr      r31,r3                                 
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
ffc0e7e4:	38 7e 00 10 	addi    r3,r30,16                              
ffc0e7e8:	4b ff da 2d 	bl      ffc0c214 <_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 ) <         
ffc0e7ec:	7f 9f 18 40 	cmplw   cr7,r31,r3                             
ffc0e7f0:	41 9c 00 2c 	blt-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
ffc0e7f4:	80 7e 00 04 	lwz     r3,4(r30)                              
ffc0e7f8:	4b ff ff 05 	bl      ffc0e6fc <_POSIX_Priority_Is_valid>    
ffc0e7fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e800:	41 9e 00 1c 	beq-    cr7,ffc0e81c <_POSIX_Thread_Translate_sched_param+0xf8>
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
ffc0e804:	38 00 00 03 	li      r0,3                                   
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
ffc0e808:	3d 20 ff c1 	lis     r9,-63                                 
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
ffc0e80c:	90 1d 00 00 	stw     r0,0(r29)                              
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
ffc0e810:	38 09 82 d4 	addi    r0,r9,-32044                           
ffc0e814:	90 1b 00 00 	stw     r0,0(r27)                              
    return 0;                                                         
ffc0e818:	3b 80 00 00 	li      r28,0                                  
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc0e81c:	39 61 00 20 	addi    r11,r1,32                              
ffc0e820:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e824:	4b ff 23 b0 	b       ffc00bd4 <_restgpr_27_x>               
                                                                      

ffc07fb8 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) {
ffc07fb8:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc07fbc:	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;
ffc07fc0:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc07fc4:	90 01 00 74 	stw     r0,116(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;
ffc07fc8:	39 29 20 84 	addi    r9,r9,8324                             
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc07fcc:	bf 61 00 5c 	stmw    r27,92(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;
ffc07fd0:	83 c9 00 34 	lwz     r30,52(r9)                             
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
ffc07fd4:	83 89 00 30 	lwz     r28,48(r9)                             
                                                                      
  if ( !user_threads || maximum == 0 )                                
ffc07fd8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07fdc:	41 9e 00 70 	beq-    cr7,ffc0804c <_POSIX_Threads_Initialize_user_threads_body+0x94><== NEVER TAKEN
ffc07fe0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc07fe4:	41 9e 00 68 	beq-    cr7,ffc0804c <_POSIX_Threads_Initialize_user_threads_body+0x94><== NEVER TAKEN
ffc07fe8:	3b a0 00 00 	li      r29,0                                  
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
ffc07fec:	3b e1 00 0c 	addi    r31,r1,12                              
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
                                                                      
    status = pthread_create(                                          
ffc07ff0:	3b 61 00 08 	addi    r27,r1,8                               
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
ffc07ff4:	7f e3 fb 78 	mr      r3,r31                                 
ffc07ff8:	48 00 68 31 	bl      ffc0e828 <pthread_attr_init>           
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
ffc07ffc:	38 80 00 02 	li      r4,2                                   
ffc08000:	7f e3 fb 78 	mr      r3,r31                                 
ffc08004:	48 00 68 65 	bl      ffc0e868 <pthread_attr_setinheritsched>
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
ffc08008:	80 9e 00 04 	lwz     r4,4(r30)                              
ffc0800c:	7f e3 fb 78 	mr      r3,r31                                 
ffc08010:	48 00 68 91 	bl      ffc0e8a0 <pthread_attr_setstacksize>   
                                                                      
    status = pthread_create(                                          
ffc08014:	80 be 00 00 	lwz     r5,0(r30)                              
ffc08018:	7f 63 db 78 	mr      r3,r27                                 
ffc0801c:	7f e4 fb 78 	mr      r4,r31                                 
ffc08020:	38 c0 00 00 	li      r6,0                                   
ffc08024:	4b ff fc c9 	bl      ffc07cec <pthread_create>              
      &thread_id,                                                     
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
ffc08028:	7c 65 1b 79 	mr.     r5,r3                                  
ffc0802c:	41 a2 00 10 	beq+    ffc0803c <_POSIX_Threads_Initialize_user_threads_body+0x84>
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
ffc08030:	38 60 00 02 	li      r3,2                                   
ffc08034:	38 80 00 01 	li      r4,1                                   
ffc08038:	48 00 22 71 	bl      ffc0a2a8 <_Internal_error_Occurred>    
   *                                                                  
   *  Setting the attributes explicitly is critical, since we don't want
   *  to inherit the idle tasks attributes.                           
   */                                                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
ffc0803c:	3b bd 00 01 	addi    r29,r29,1                              
ffc08040:	7f 9d e0 40 	cmplw   cr7,r29,r28                            
ffc08044:	3b de 00 08 	addi    r30,r30,8                              
ffc08048:	41 9c ff ac 	blt+    cr7,ffc07ff4 <_POSIX_Threads_Initialize_user_threads_body+0x3c><== NEVER TAKEN
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
  }                                                                   
}                                                                     
ffc0804c:	39 61 00 70 	addi    r11,r1,112                             
ffc08050:	4b ff 8b 84 	b       ffc00bd4 <_restgpr_27_x>               
                                                                      

ffc11238 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) {
ffc11238:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1123c:	7c 08 02 a6 	mflr    r0                                     
ffc11240:	90 01 00 14 	stw     r0,20(r1)                              
ffc11244:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc11248:	7c 9e 23 78 	mr      r30,r4                                 
  Thread_Control     *the_thread;                                     
  POSIX_API_Control  *api;                                            
                                                                      
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc1124c:	83 e4 01 48 	lwz     r31,328(r4)                            
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
ffc11250:	38 7f 00 98 	addi    r3,r31,152                             
ffc11254:	48 00 15 65 	bl      ffc127b8 <_Timespec_To_ticks>          
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
ffc11258:	3d 20 00 00 	lis     r9,0                                   
ffc1125c:	80 1f 00 88 	lwz     r0,136(r31)                            
ffc11260:	88 89 26 c4 	lbz     r4,9924(r9)                            
                                                                      
  the_thread->cpu_time_budget = ticks;                                
ffc11264:	90 7e 00 78 	stw     r3,120(r30)                            
ffc11268:	7c 80 20 50 	subf    r4,r0,r4                               
   */                                                                 
  #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 ) {                            
ffc1126c:	80 1e 00 1c 	lwz     r0,28(r30)                             
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
                                                                      
  the_thread->cpu_time_budget = ticks;                                
                                                                      
  new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
  the_thread->real_priority = new_priority;                           
ffc11270:	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 ) {                            
ffc11274:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc11278:	40 9e 00 1c 	bne-    cr7,ffc11294 <_POSIX_Threads_Sporadic_budget_TSR+0x5c><== NEVER TAKEN
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
ffc1127c:	80 1e 00 14 	lwz     r0,20(r30)                             
ffc11280:	7f 80 20 40 	cmplw   cr7,r0,r4                              
ffc11284:	40 bd 00 10 	ble+    cr7,ffc11294 <_POSIX_Threads_Sporadic_budget_TSR+0x5c>
      _Thread_Change_priority( the_thread, new_priority, true );      
ffc11288:	7f c3 f3 78 	mr      r3,r30                                 
ffc1128c:	38 a0 00 01 	li      r5,1                                   
ffc11290:	4b ff 99 45 	bl      ffc0abd4 <_Thread_Change_priority>     
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
ffc11294:	38 7f 00 90 	addi    r3,r31,144                             
ffc11298:	48 00 15 21 	bl      ffc127b8 <_Timespec_To_ticks>          
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc1129c:	38 9f 00 a8 	addi    r4,r31,168                             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc112a0:	90 7f 00 b4 	stw     r3,180(r31)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc112a4:	3c 60 00 00 	lis     r3,0                                   
ffc112a8:	38 63 2d 88 	addi    r3,r3,11656                            
ffc112ac:	4b ff b1 69 	bl      ffc0c414 <_Watchdog_Insert>            
                                                                      
  _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );              
}                                                                     
ffc112b0:	39 61 00 10 	addi    r11,r1,16                              
ffc112b4:	48 00 7e 28 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc112b8 <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) {
ffc112b8:	7c 08 02 a6 	mflr    r0                                     
ffc112bc:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc112c0:	3d 40 00 00 	lis     r10,0                                  
ffc112c4:	90 01 00 0c 	stw     r0,12(r1)                              
                                                                      
  /*                                                                  
   *  This will prevent the thread from consuming its entire "budget" 
   *  while at low priority.                                          
   */                                                                 
  the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
ffc112c8:	38 00 ff ff 	li      r0,-1                                  
)                                                                     
{                                                                     
  POSIX_API_Control *api;                                             
  uint32_t           new_priority;                                    
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc112cc:	81 63 01 48 	lwz     r11,328(r3)                            
                                                                      
  /*                                                                  
   *  This will prevent the thread from consuming its entire "budget" 
   *  while at low priority.                                          
   */                                                                 
  the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
ffc112d0:	90 03 00 78 	stw     r0,120(r3)                             
ffc112d4:	88 8a 26 c4 	lbz     r4,9924(r10)                           
ffc112d8:	80 0b 00 8c 	lwz     r0,140(r11)                            
ffc112dc:	7c 80 20 50 	subf    r4,r0,r4                               
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
ffc112e0:	80 03 00 1c 	lwz     r0,28(r3)                              
   *  while at low priority.                                          
   */                                                                 
  the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
                                                                      
  new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
  the_thread->real_priority = new_priority;                           
ffc112e4:	90 83 00 18 	stw     r4,24(r3)                              
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
ffc112e8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc112ec:	40 9e 00 18 	bne-    cr7,ffc11304 <_POSIX_Threads_Sporadic_budget_callout+0x4c><== NEVER TAKEN
    /*                                                                
     *  Make sure we are actually lowering it. If they have lowered it
     *  to logically lower than sched_ss_low_priority, then we do not want to
     *  change it.                                                    
     */                                                               
    if ( the_thread->current_priority < new_priority ) {              
ffc112f0:	80 03 00 14 	lwz     r0,20(r3)                              
ffc112f4:	7f 80 20 40 	cmplw   cr7,r0,r4                              
ffc112f8:	40 bc 00 0c 	bge+    cr7,ffc11304 <_POSIX_Threads_Sporadic_budget_callout+0x4c><== NEVER TAKEN
      _Thread_Change_priority( the_thread, new_priority, true );      
ffc112fc:	38 a0 00 01 	li      r5,1                                   
ffc11300:	4b ff 98 d5 	bl      ffc0abd4 <_Thread_Change_priority>     
      #if 0                                                           
        printk( "lower priority\n" );                                 
      #endif                                                          
    }                                                                 
  }                                                                   
}                                                                     
ffc11304:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc11308:	38 21 00 08 	addi    r1,r1,8                                
ffc1130c:	7c 08 03 a6 	mtlr    r0                                     
ffc11310:	4e 80 00 20 	blr                                            
                                                                      

ffc07cd8 <_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) {
ffc07cd8:	7c 08 02 a6 	mflr    r0                                     
ffc07cdc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc07ce0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc07ce4:	90 01 00 14 	stw     r0,20(r1)                              
ffc07ce8:	48 01 3b f5 	bl      ffc1b8dc <_savegpr_31>                 
ffc07cec:	7c 9f 23 78 	mr      r31,r4                                 
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
ffc07cf0:	81 24 00 68 	lwz     r9,104(r4)                             
ffc07cf4:	38 09 00 01 	addi    r0,r9,1                                
ffc07cf8:	90 04 00 68 	stw     r0,104(r4)                             
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
ffc07cfc:	80 04 00 54 	lwz     r0,84(r4)                              
ffc07d00:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07d04:	40 9e 00 10 	bne-    cr7,ffc07d14 <_POSIX_Timer_TSR+0x3c>   
ffc07d08:	80 04 00 58 	lwz     r0,88(r4)                              
ffc07d0c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07d10:	41 9e 00 38 	beq-    cr7,ffc07d48 <_POSIX_Timer_TSR+0x70>   <== NEVER TAKEN
       ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {            
    activated = _POSIX_Timer_Insert_helper(                           
ffc07d14:	80 9f 00 64 	lwz     r4,100(r31)                            
ffc07d18:	3c c0 ff c0 	lis     r6,-64                                 
ffc07d1c:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc07d20:	38 7f 00 10 	addi    r3,r31,16                              
ffc07d24:	38 c6 7c d8 	addi    r6,r6,31960                            
ffc07d28:	7f e7 fb 78 	mr      r7,r31                                 
ffc07d2c:	48 00 66 e5 	bl      ffc0e410 <_POSIX_Timer_Insert_helper>  
      ptimer->ticks,                                                  
      ptimer->Object.id,                                              
      _POSIX_Timer_TSR,                                               
      ptimer                                                          
    );                                                                
    if ( !activated )                                                 
ffc07d30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07d34:	41 be 00 30 	beq+    cr7,ffc07d64 <_POSIX_Timer_TSR+0x8c>   <== NEVER TAKEN
      return;                                                         
                                                                      
    /* Store the time when the timer was started again */             
    _TOD_Get( &ptimer->time );                                        
ffc07d38:	38 7f 00 6c 	addi    r3,r31,108                             
ffc07d3c:	48 00 18 ed 	bl      ffc09628 <_TOD_Get>                    
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
ffc07d40:	38 00 00 03 	li      r0,3                                   
ffc07d44:	48 00 00 08 	b       ffc07d4c <_POSIX_Timer_TSR+0x74>       
  } else {                                                            
   /* Indicates that the timer is stopped */                          
   ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;                     
ffc07d48:	38 00 00 04 	li      r0,4                                   <== NOT EXECUTED
ffc07d4c:	98 1f 00 3c 	stb     r0,60(r31)                             
  /*                                                                  
   * 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 ) ) {
ffc07d50:	80 7f 00 38 	lwz     r3,56(r31)                             
ffc07d54:	80 9f 00 44 	lwz     r4,68(r31)                             
ffc07d58:	48 00 61 d5 	bl      ffc0df2c <pthread_kill>                
  }                                                                   
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
ffc07d5c:	38 00 00 00 	li      r0,0                                   
ffc07d60:	90 1f 00 68 	stw     r0,104(r31)                            
}                                                                     
ffc07d64:	39 61 00 10 	addi    r11,r1,16                              
ffc07d68:	4b ff 88 bc 	b       ffc00624 <_restgpr_31_x>               
                                                                      

ffc13c78 <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) {
ffc13c78:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc13c7c:	7c 08 02 a6 	mflr    r0                                     
ffc13c80:	7c a6 2b 78 	mr      r6,r5                                  
ffc13c84:	bf 21 00 4c 	stmw    r25,76(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,   
ffc13c88:	3b a1 00 08 	addi    r29,r1,8                               
ffc13c8c:	7f a5 eb 78 	mr      r5,r29                                 
ffc13c90:	38 e0 00 01 	li      r7,1                                   
bool    _POSIX_signals_Check_signal(                                  
  POSIX_API_Control  *api,                                            
  int                 signo,                                          
  bool                is_global                                       
)                                                                     
{                                                                     
ffc13c94:	90 01 00 6c 	stw     r0,108(r1)                             
ffc13c98:	7c 7f 1b 78 	mr      r31,r3                                 
ffc13c9c:	7c 9e 23 78 	mr      r30,r4                                 
  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,   
ffc13ca0:	48 00 00 b5 	bl      ffc13d54 <_POSIX_signals_Clear_signals>
ffc13ca4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                       is_global, true ) )            
    return false;                                                     
ffc13ca8:	38 00 00 00 	li      r0,0                                   
{                                                                     
  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,   
ffc13cac:	41 9e 00 9c 	beq-    cr7,ffc13d48 <_POSIX_signals_Check_signal+0xd0>
  #endif                                                              
                                                                      
  /*                                                                  
   *  Just to prevent sending a signal which is currently being ignored.
   */                                                                 
  if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )        
ffc13cb0:	3f 20 00 00 	lis     r25,0                                  
ffc13cb4:	1f 5e 00 0c 	mulli   r26,r30,12                             
ffc13cb8:	3b 39 31 cc 	addi    r25,r25,12748                          
ffc13cbc:	7d 39 d2 14 	add     r9,r25,r26                             
ffc13cc0:	83 89 00 08 	lwz     r28,8(r9)                              
ffc13cc4:	2f 9c 00 01 	cmpwi   cr7,r28,1                              
ffc13cc8:	41 9e 00 80 	beq-    cr7,ffc13d48 <_POSIX_signals_Check_signal+0xd0><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
ffc13ccc:	80 09 00 04 	lwz     r0,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,  
ffc13cd0:	3d 20 00 00 	lis     r9,0                                   
    return false;                                                     
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
ffc13cd4:	83 7f 00 d0 	lwz     r27,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,  
ffc13cd8:	38 61 00 14 	addi    r3,r1,20                               
ffc13cdc:	80 89 31 bc 	lwz     r4,12732(r9)                           
ffc13ce0:	38 a0 00 28 	li      r5,40                                  
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
ffc13ce4:	7c 00 db 78 	or      r0,r0,r27                              
ffc13ce8:	90 1f 00 d0 	stw     r0,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,  
ffc13cec:	38 84 00 20 	addi    r4,r4,32                               
ffc13cf0:	48 00 12 79 	bl      ffc14f68 <memcpy>                      
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
ffc13cf4:	7c 19 d0 2e 	lwzx    r0,r25,r26                             
ffc13cf8:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc13cfc:	40 be 00 1c 	bne+    cr7,ffc13d18 <_POSIX_signals_Check_signal+0xa0>
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
ffc13d00:	7f c3 f3 78 	mr      r3,r30                                 
ffc13d04:	7f 89 03 a6 	mtctr   r28                                    
ffc13d08:	7f a4 eb 78 	mr      r4,r29                                 
ffc13d0c:	38 a0 00 00 	li      r5,0                                   
ffc13d10:	4e 80 04 21 	bctrl                                          
        signo,                                                        
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
ffc13d14:	48 00 00 14 	b       ffc13d28 <_POSIX_signals_Check_signal+0xb0>
    default:                                                          
      (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );         
ffc13d18:	7f c3 f3 78 	mr      r3,r30                                 
ffc13d1c:	7f 89 03 a6 	mtctr   r28                                    
ffc13d20:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc13d24:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
  /*                                                                  
   *  Restore the blocking information                                
   */                                                                 
  memcpy( &_Thread_Executing->Wait, &stored_thread_wait_information,  
ffc13d28:	3d 20 00 00 	lis     r9,0                                   
ffc13d2c:	80 69 31 bc 	lwz     r3,12732(r9)                           
ffc13d30:	38 81 00 14 	addi    r4,r1,20                               
ffc13d34:	38 a0 00 28 	li      r5,40                                  
ffc13d38:	38 63 00 20 	addi    r3,r3,32                               
ffc13d3c:	48 00 12 2d 	bl      ffc14f68 <memcpy>                      
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
ffc13d40:	93 7f 00 d0 	stw     r27,208(r31)                           
                                                                      
  return true;                                                        
ffc13d44:	38 00 00 01 	li      r0,1                                   
}                                                                     
ffc13d48:	39 61 00 68 	addi    r11,r1,104                             
ffc13d4c:	7c 03 03 78 	mr      r3,r0                                  
ffc13d50:	48 00 53 78 	b       ffc190c8 <_restgpr_25_x>               
                                                                      

ffc142a0 <_POSIX_signals_Clear_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile (
ffc142a0:	7d 60 00 a6 	mfmsr   r11                                    
ffc142a4:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc142a8:	7d 60 00 78 	andc    r0,r11,r0                              
ffc142ac:	7c 00 01 24 	mtmsr   r0                                     
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
ffc142b0:	3d 20 00 00 	lis     r9,0                                   
ffc142b4:	1c 03 00 0c 	mulli   r0,r3,12                               
ffc142b8:	39 29 31 cc 	addi    r9,r9,12748                            
ffc142bc:	7d 29 00 2e 	lwzx    r9,r9,r0                               
ffc142c0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc142c4:	40 be 00 20 	bne+    cr7,ffc142e4 <_POSIX_signals_Clear_process_signals+0x44>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc142c8:	3d 20 00 00 	lis     r9,0                                   
ffc142cc:	39 29 33 c0 	addi    r9,r9,13248                            
ffc142d0:	7d 49 02 14 	add     r10,r9,r0                              
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
ffc142d4:	7c 09 00 2e 	lwzx    r0,r9,r0                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc142d8:	39 4a 00 04 	addi    r10,r10,4                              
ffc142dc:	7f 80 50 00 	cmpw    cr7,r0,r10                             
ffc142e0:	40 be 00 20 	bne+    cr7,ffc14300 <_POSIX_signals_Clear_process_signals+0x60><== NEVER TAKEN
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
ffc142e4:	3d 20 00 00 	lis     r9,0                                   
ffc142e8:	38 00 ff fe 	li      r0,-2                                  
ffc142ec:	38 63 ff ff 	addi    r3,r3,-1                               
ffc142f0:	5c 03 18 3e 	rotlw   r3,r0,r3                               
ffc142f4:	80 09 27 dc 	lwz     r0,10204(r9)                           
ffc142f8:	7c 63 00 38 	and     r3,r3,r0                               
ffc142fc:	90 69 27 dc 	stw     r3,10204(r9)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc14300:	7d 60 01 24 	mtmsr   r11                                    
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
ffc14304:	4e 80 00 20 	blr                                            
                                                                      

ffc08790 <_POSIX_signals_Get_lowest>:
ffc08790:	39 40 00 05 	li      r10,5                                  
ffc08794:	7d 49 03 a6 	mtctr   r10                                    
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
ffc08798:	39 20 00 1b 	li      r9,27                                  
ffc0879c:	38 00 00 01 	li      r0,1                                   
#include <rtems/posix/psignal.h>                                      
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
int _POSIX_signals_Get_lowest(                                        
ffc087a0:	39 69 ff ff 	addi    r11,r9,-1                              
ffc087a4:	7c 0b 58 30 	slw     r11,r0,r11                             
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
    if ( set & signo_to_mask( signo ) ) {                             
ffc087a8:	7d 6a 18 39 	and.    r10,r11,r3                             
ffc087ac:	40 82 00 34 	bne-    ffc087e0 <_POSIX_signals_Get_lowest+0x50><== NEVER TAKEN
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
ffc087b0:	39 29 00 01 	addi    r9,r9,1                                
ffc087b4:	42 00 ff ec 	bdnz+   ffc087a0 <_POSIX_signals_Get_lowest+0x10>
ffc087b8:	39 60 00 1a 	li      r11,26                                 
ffc087bc:	7d 69 03 a6 	mtctr   r11                                    
ffc087c0:	39 20 00 01 	li      r9,1                                   
ffc087c4:	38 00 00 01 	li      r0,1                                   
#include <rtems/posix/psignal.h>                                      
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
int _POSIX_signals_Get_lowest(                                        
ffc087c8:	39 69 ff ff 	addi    r11,r9,-1                              
ffc087cc:	7c 0b 58 30 	slw     r11,r0,r11                             
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
    if ( set & signo_to_mask( signo ) ) {                             
ffc087d0:	7d 6a 18 39 	and.    r10,r11,r3                             
ffc087d4:	40 82 00 0c 	bne-    ffc087e0 <_POSIX_signals_Get_lowest+0x50>
   */                                                                 
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
ffc087d8:	39 29 00 01 	addi    r9,r9,1                                
ffc087dc:	42 00 ff ec 	bdnz+   ffc087c8 <_POSIX_signals_Get_lowest+0x38>
   *  a return 0.  This routine will NOT be called unless a signal    
   *  is pending in the set passed in.                                
   */                                                                 
found_it:                                                             
  return signo;                                                       
}                                                                     
ffc087e0:	7d 23 4b 78 	mr      r3,r9                                  
ffc087e4:	4e 80 00 20 	blr                                            
                                                                      

ffc24d88 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
ffc24d88:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc24d8c:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc24d90:	3c e0 10 00 	lis     r7,4096                                
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
ffc24d94:	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 ) ) {
ffc24d98:	60 e7 80 00 	ori     r7,r7,32768                            
ffc24d9c:	39 64 ff ff 	addi    r11,r4,-1                              
ffc24da0:	80 03 00 10 	lwz     r0,16(r3)                              
ffc24da4:	39 40 00 01 	li      r10,1                                  
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
ffc24da8:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc24dac:	7c a9 2b 78 	mr      r9,r5                                  
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc24db0:	7c 06 38 38 	and     r6,r0,r7                               
ffc24db4:	7f 86 38 00 	cmpw    cr7,r6,r7                              
{                                                                     
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc24db8:	81 03 01 48 	lwz     r8,328(r3)                             
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
ffc24dbc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc24dc0:	7d 4b 58 30 	slw     r11,r10,r11                            
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc24dc4:	40 be 00 60 	bne+    cr7,ffc24e24 <_POSIX_signals_Unblock_thread+0x9c>
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
ffc24dc8:	80 03 00 30 	lwz     r0,48(r3)                              
ffc24dcc:	7d 6a 00 39 	and.    r10,r11,r0                             
ffc24dd0:	40 82 00 14 	bne-    ffc24de4 <_POSIX_signals_Unblock_thread+0x5c>
ffc24dd4:	80 08 00 d0 	lwz     r0,208(r8)                             
                                                                      
    /*                                                                
     *  This should only be reached via pthread_kill().               
     */                                                               
                                                                      
    return false;                                                     
ffc24dd8:	3b c0 00 00 	li      r30,0                                  
   *  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) ) {
ffc24ddc:	7d 68 00 79 	andc.   r8,r11,r0                              
ffc24de0:	41 82 00 cc 	beq-    ffc24eac <_POSIX_signals_Unblock_thread+0x124>
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
ffc24de4:	2f 89 00 00 	cmpwi   cr7,r9,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;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
ffc24de8:	81 7f 00 28 	lwz     r11,40(r31)                            
   */                                                                 
                                                                      
  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;                           
ffc24dec:	38 00 00 04 	li      r0,4                                   
ffc24df0:	90 1f 00 34 	stw     r0,52(r31)                             
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
ffc24df4:	40 be 00 18 	bne+    cr7,ffc24e0c <_POSIX_signals_Unblock_thread+0x84>
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
ffc24df8:	38 00 00 01 	li      r0,1                                   
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
ffc24dfc:	90 8b 00 00 	stw     r4,0(r11)                              
        the_info->si_code = SI_USER;                                  
ffc24e00:	90 0b 00 04 	stw     r0,4(r11)                              
        the_info->si_value.sival_int = 0;                             
ffc24e04:	91 2b 00 08 	stw     r9,8(r11)                              
ffc24e08:	48 00 00 0c 	b       ffc24e14 <_POSIX_signals_Unblock_thread+0x8c>
      } else {                                                        
        *the_info = *info;                                            
ffc24e0c:	7c a9 64 aa 	lswi    r5,r9,12                               
ffc24e10:	7c ab 65 aa 	stswi   r5,r11,12                              
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
ffc24e14:	7f e3 fb 78 	mr      r3,r31                                 
ffc24e18:	4b fe b4 cd 	bl      ffc102e4 <_Thread_queue_Extract_with_proxy>
      return true;                                                    
ffc24e1c:	3b c0 00 01 	li      r30,1                                  
ffc24e20:	48 00 00 8c 	b       ffc24eac <_POSIX_signals_Unblock_thread+0x124>
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
ffc24e24:	81 28 00 d0 	lwz     r9,208(r8)                             
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_Thread_Dispatch_necessary = true;                                   
    }                                                                 
  }                                                                   
  return false;                                                       
ffc24e28:	3b c0 00 00 	li      r30,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
ffc24e2c:	7d 68 48 79 	andc.   r8,r11,r9                              
ffc24e30:	41 82 00 7c 	beq-    ffc24eac <_POSIX_signals_Unblock_thread+0x124>
     *      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 ) ) {
ffc24e34:	74 09 10 00 	andis.  r9,r0,4096                             
ffc24e38:	41 82 00 48 	beq-    ffc24e80 <_POSIX_signals_Unblock_thread+0xf8>
      the_thread->Wait.return_code = EINTR;                           
ffc24e3c:	39 20 00 04 	li      r9,4                                   
ffc24e40:	91 23 00 34 	stw     r9,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) ) 
ffc24e44:	3d 20 00 03 	lis     r9,3                                   
ffc24e48:	61 29 be e0 	ori     r9,r9,48864                            
ffc24e4c:	7c 0a 48 39 	and.    r10,r0,r9                              
ffc24e50:	41 a2 00 0c 	beq+    ffc24e5c <_POSIX_signals_Unblock_thread+0xd4><== ALWAYS TAKEN
	  _Thread_queue_Extract_with_proxy( the_thread );                    
ffc24e54:	4b fe b4 91 	bl      ffc102e4 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED
ffc24e58:	48 00 00 54 	b       ffc24eac <_POSIX_signals_Unblock_thread+0x124><== NOT EXECUTED
	else if ( _States_Is_delaying(the_thread->current_state) ) {         
ffc24e5c:	70 0b 00 08 	andi.   r11,r0,8                               
ffc24e60:	41 a2 00 4c 	beq+    ffc24eac <_POSIX_signals_Unblock_thread+0x124><== NEVER TAKEN
	    (void) _Watchdog_Remove( &the_thread->Timer );                   
ffc24e64:	38 63 00 48 	addi    r3,r3,72                               
ffc24e68:	4b fe c1 49 	bl      ffc10fb0 <_Watchdog_Remove>            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc24e6c:	3c 80 10 03 	lis     r4,4099                                
ffc24e70:	7f e3 fb 78 	mr      r3,r31                                 
ffc24e74:	60 84 ff f8 	ori     r4,r4,65528                            
ffc24e78:	4b fe a8 81 	bl      ffc0f6f8 <_Thread_Clear_state>         
ffc24e7c:	48 00 00 30 	b       ffc24eac <_POSIX_signals_Unblock_thread+0x124>
	    _Thread_Unblock( the_thread );                                   
	  }                                                                  
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
ffc24e80:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc24e84:	40 9e 00 28 	bne-    cr7,ffc24eac <_POSIX_signals_Unblock_thread+0x124><== NEVER TAKEN
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc24e88:	3d 20 00 00 	lis     r9,0                                   
ffc24e8c:	39 29 32 90 	addi    r9,r9,12944                            
ffc24e90:	80 09 00 08 	lwz     r0,8(r9)                               
ffc24e94:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc24e98:	41 9e 00 14 	beq-    cr7,ffc24eac <_POSIX_signals_Unblock_thread+0x124>
ffc24e9c:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc24ea0:	7f 83 00 00 	cmpw    cr7,r3,r0                              
ffc24ea4:	40 be 00 08 	bne+    cr7,ffc24eac <_POSIX_signals_Unblock_thread+0x124><== NEVER TAKEN
	_Thread_Dispatch_necessary = true;                                   
ffc24ea8:	99 49 00 18 	stb     r10,24(r9)                             
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
ffc24eac:	39 61 00 10 	addi    r11,r1,16                              
ffc24eb0:	7f c3 f3 78 	mr      r3,r30                                 
ffc24eb4:	4b fd d0 d8 	b       ffc01f8c <_restgpr_30_x>               
                                                                      

ffc0924c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
ffc0924c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc09250:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09254:	7c 08 02 a6 	mflr    r0                                     
ffc09258:	7c 64 1b 78 	mr      r4,r3                                  
ffc0925c:	3c 60 00 00 	lis     r3,0                                   
ffc09260:	48 01 33 85 	bl      ffc1c5e4 <_savegpr_31>                 
ffc09264:	38 63 2c 38 	addi    r3,r3,11320                            
ffc09268:	90 01 00 24 	stw     r0,36(r1)                              
ffc0926c:	38 a1 00 08 	addi    r5,r1,8                                
ffc09270:	48 00 21 6d 	bl      ffc0b3dc <_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 ) {                                               
ffc09274:	80 01 00 08 	lwz     r0,8(r1)                               
ffc09278:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0927c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09280:	40 9e 00 84 	bne-    cr7,ffc09304 <_Rate_monotonic_Timeout+0xb8><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
ffc09284:	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);                   
ffc09288:	80 03 00 10 	lwz     r0,16(r3)                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
ffc0928c:	70 09 40 00 	andi.   r9,r0,16384                            
ffc09290:	41 82 00 24 	beq-    ffc092b4 <_Rate_monotonic_Timeout+0x68>
ffc09294:	81 23 00 20 	lwz     r9,32(r3)                              
ffc09298:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc0929c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc092a0:	40 be 00 14 	bne+    cr7,ffc092b4 <_Rate_monotonic_Timeout+0x68>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc092a4:	3c 80 10 03 	lis     r4,4099                                
ffc092a8:	60 84 ff f8 	ori     r4,r4,65528                            
ffc092ac:	48 00 26 d5 	bl      ffc0b980 <_Thread_Clear_state>         
ffc092b0:	48 00 00 18 	b       ffc092c8 <_Rate_monotonic_Timeout+0x7c>
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
ffc092b4:	80 1f 00 38 	lwz     r0,56(r31)                             
ffc092b8:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc092bc:	40 be 00 30 	bne+    cr7,ffc092ec <_Rate_monotonic_Timeout+0xa0>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
ffc092c0:	38 00 00 03 	li      r0,3                                   
ffc092c4:	90 1f 00 38 	stw     r0,56(r31)                             
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc092c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc092cc:	4b ff f9 45 	bl      ffc08c10 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc092d0:	80 1f 00 3c 	lwz     r0,60(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc092d4:	3c 60 00 00 	lis     r3,0                                   
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc092d8:	90 1f 00 1c 	stw     r0,28(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc092dc:	38 63 2e 08 	addi    r3,r3,11784                            
ffc092e0:	38 9f 00 10 	addi    r4,r31,16                              
ffc092e4:	48 00 3f 09 	bl      ffc0d1ec <_Watchdog_Insert>            
ffc092e8:	48 00 00 0c 	b       ffc092f4 <_Rate_monotonic_Timeout+0xa8>
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
ffc092ec:	38 00 00 04 	li      r0,4                                   
ffc092f0:	90 1f 00 38 	stw     r0,56(r31)                             
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc092f4:	3d 20 00 00 	lis     r9,0                                   
ffc092f8:	81 69 27 f4 	lwz     r11,10228(r9)                          
ffc092fc:	38 0b ff ff 	addi    r0,r11,-1                              
ffc09300:	90 09 27 f4 	stw     r0,10228(r9)                           
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc09304:	39 61 00 20 	addi    r11,r1,32                              
ffc09308:	4b ff 7e c4 	b       ffc011cc <_restgpr_31_x>               
                                                                      

ffc08ca8 <_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) ||
ffc08ca8:	2c 03 00 00 	cmpwi   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();                 
ffc08cac:	3d 20 00 00 	lis     r9,0                                   
ffc08cb0:	81 29 20 cc 	lwz     r9,8396(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;                                                    
ffc08cb4:	38 00 00 00 	li      r0,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)                                  ||                  
ffc08cb8:	41 82 00 94 	beq-    ffc08d4c <_TOD_Validate+0xa4>          <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
ffc08cbc:	3d 60 00 0f 	lis     r11,15                                 
ffc08cc0:	61 6b 42 40 	ori     r11,r11,16960                          
ffc08cc4:	7d 2b 4b 96 	divwu   r9,r11,r9                              
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
ffc08cc8:	81 63 00 18 	lwz     r11,24(r3)                             
ffc08ccc:	7f 8b 48 40 	cmplw   cr7,r11,r9                             
ffc08cd0:	40 9c 00 7c 	bge-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->ticks  >= ticks_per_second)       ||                  
ffc08cd4:	81 23 00 14 	lwz     r9,20(r3)                              
ffc08cd8:	2b 89 00 3b 	cmplwi  cr7,r9,59                              
ffc08cdc:	41 9d 00 70 	bgt-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
ffc08ce0:	81 23 00 10 	lwz     r9,16(r3)                              
ffc08ce4:	2b 89 00 3b 	cmplwi  cr7,r9,59                              
ffc08ce8:	41 9d 00 64 	bgt-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
ffc08cec:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc08cf0:	2b 89 00 17 	cmplwi  cr7,r9,23                              
ffc08cf4:	41 9d 00 58 	bgt-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
ffc08cf8:	81 23 00 04 	lwz     r9,4(r3)                               
	    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)      ||                  
ffc08cfc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08d00:	41 9e 00 4c 	beq-    cr7,ffc08d4c <_TOD_Validate+0xa4>      <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
ffc08d04:	2b 89 00 0c 	cmplwi  cr7,r9,12                              
ffc08d08:	41 9d 00 44 	bgt-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
ffc08d0c:	81 43 00 00 	lwz     r10,0(r3)                              
      (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)    ||                  
ffc08d10:	2b 8a 07 c3 	cmplwi  cr7,r10,1987                           
ffc08d14:	40 9d 00 38 	ble-    cr7,ffc08d4c <_TOD_Validate+0xa4>      
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
ffc08d18:	81 63 00 08 	lwz     r11,8(r3)                              
      (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)          ||                  
ffc08d1c:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc08d20:	41 9e 00 2c 	beq-    cr7,ffc08d4c <_TOD_Validate+0xa4>      <== NEVER TAKEN
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
ffc08d24:	71 40 00 03 	andi.   r0,r10,3                               
ffc08d28:	3d 40 ff c2 	lis     r10,-62                                
ffc08d2c:	39 4a f7 08 	addi    r10,r10,-2296                          
ffc08d30:	40 82 00 08 	bne-    ffc08d38 <_TOD_Validate+0x90>          
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
ffc08d34:	39 29 00 0d 	addi    r9,r9,13                               
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
ffc08d38:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc08d3c:	7c 0a 48 2e 	lwzx    r0,r10,r9                              
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
ffc08d40:	7c 0b 00 10 	subfc   r0,r11,r0                              
ffc08d44:	38 00 00 00 	li      r0,0                                   
ffc08d48:	7c 00 01 14 	adde    r0,r0,r0                               
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
ffc08d4c:	7c 03 03 78 	mr      r3,r0                                  
ffc08d50:	4e 80 00 20 	blr                                            
                                                                      

ffc0abd4 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
ffc0abd4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0abd8:	7c 08 02 a6 	mflr    r0                                     
ffc0abdc:	90 01 00 24 	stw     r0,36(r1)                              
ffc0abe0:	bf a1 00 14 	stmw    r29,20(r1)                             
ffc0abe4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0abe8:	7c be 2b 78 	mr      r30,r5                                 
*/                                                                    
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
ffc0abec:	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 );                                
ffc0abf0:	90 81 00 08 	stw     r4,8(r1)                               
ffc0abf4:	48 00 10 65 	bl      ffc0bc58 <_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 )                  
ffc0abf8:	80 1f 00 14 	lwz     r0,20(r31)                             
ffc0abfc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0ac00:	7f 80 20 00 	cmpw    cr7,r0,r4                              
ffc0ac04:	41 9e 00 0c 	beq-    cr7,ffc0ac10 <_Thread_Change_priority+0x3c>
    _Thread_Set_priority( the_thread, new_priority );                 
ffc0ac08:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ac0c:	48 00 0e d5 	bl      ffc0bae0 <_Thread_Set_priority>        
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0ac10:	7d 60 00 a6 	mfmsr   r11                                    
ffc0ac14:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc0ac18:	7d 60 00 78 	andc    r0,r11,r0                              
ffc0ac1c:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
  /*                                                                  
   *  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;                                  
ffc0ac20:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0ac24:	57 bd 07 7a 	rlwinm  r29,r29,0,29,29                        
  if ( state != STATES_TRANSIENT ) {                                  
ffc0ac28:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc0ac2c:	41 9e 00 38 	beq-    cr7,ffc0ac64 <_Thread_Change_priority+0x90>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
ffc0ac30:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0ac34:	40 9e 00 0c 	bne-    cr7,ffc0ac40 <_Thread_Change_priority+0x6c><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
ffc0ac38:	54 09 07 b8 	rlwinm  r9,r0,0,30,28                          
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0ac3c:	91 3f 00 10 	stw     r9,16(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ac40:	7d 60 01 24 	mtmsr   r11                                    
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
ffc0ac44:	3d 20 00 03 	lis     r9,3                                   
ffc0ac48:	61 29 be e0 	ori     r9,r9,48864                            
ffc0ac4c:	7c 0b 48 39 	and.    r11,r0,r9                              
ffc0ac50:	41 a2 01 00 	beq+    ffc0ad50 <_Thread_Change_priority+0x17c>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
ffc0ac54:	80 7f 00 44 	lwz     r3,68(r31)                             
ffc0ac58:	7f e4 fb 78 	mr      r4,r31                                 
ffc0ac5c:	48 00 0d cd 	bl      ffc0ba28 <_Thread_queue_Requeue>       
ffc0ac60:	48 00 00 f0 	b       ffc0ad50 <_Thread_Change_priority+0x17c>
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
ffc0ac64:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0ac68:	40 9e 00 6c 	bne-    cr7,ffc0acd4 <_Thread_Change_priority+0x100><== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (                     
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
ffc0ac6c:	81 3f 00 90 	lwz     r9,144(r31)                            
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
                                                                      
    _Priority_bit_map_Add( &the_thread->Priority_map );               
    if ( prepend_it )                                                 
ffc0ac70:	2f 9e 00 00 	cmpwi   cr7,r30,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 );
ffc0ac74:	93 bf 00 10 	stw     r29,16(r31)                            
ffc0ac78:	80 1f 00 98 	lwz     r0,152(r31)                            
ffc0ac7c:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0ac80:	7d 40 03 78 	or      r0,r10,r0                              
ffc0ac84:	90 09 00 00 	stw     r0,0(r9)                               
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
ffc0ac88:	3d 20 00 00 	lis     r9,0                                   
ffc0ac8c:	81 49 27 b0 	lwz     r10,10160(r9)                          
ffc0ac90:	80 1f 00 94 	lwz     r0,148(r31)                            
ffc0ac94:	7d 40 03 78 	or      r0,r10,r0                              
ffc0ac98:	90 09 27 b0 	stw     r0,10160(r9)                           
ffc0ac9c:	81 3f 00 8c 	lwz     r9,140(r31)                            
                                                                      
    _Priority_bit_map_Add( &the_thread->Priority_map );               
    if ( prepend_it )                                                 
ffc0aca0:	41 9e 00 1c 	beq-    cr7,ffc0acbc <_Thread_Change_priority+0xe8>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0aca4:	81 49 00 00 	lwz     r10,0(r9)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0aca8:	91 3f 00 04 	stw     r9,4(r31)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0acac:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0acb0:	93 ea 00 04 	stw     r31,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;                                
ffc0acb4:	91 5f 00 00 	stw     r10,0(r31)                             
ffc0acb8:	48 00 00 1c 	b       ffc0acd4 <_Thread_Change_priority+0x100>
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
ffc0acbc:	81 49 00 08 	lwz     r10,8(r9)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0acc0:	38 09 00 04 	addi    r0,r9,4                                
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
ffc0acc4:	90 1f 00 00 	stw     r0,0(r31)                              
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
ffc0acc8:	93 e9 00 08 	stw     r31,8(r9)                              
  old_last_node->next = the_node;                                     
ffc0accc:	93 ea 00 00 	stw     r31,0(r10)                             
  the_node->previous  = old_last_node;                                
ffc0acd0:	91 5f 00 04 	stw     r10,4(r31)                             
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  asm volatile (                                                      
ffc0acd4:	7c 00 00 a6 	mfmsr   r0                                     
ffc0acd8:	7d 60 01 24 	mtmsr   r11                                    
ffc0acdc:	7c 00 01 24 	mtmsr   r0                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
    _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;     
ffc0ace0:	3d 20 00 00 	lis     r9,0                                   
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
ffc0ace4:	3d 40 00 00 	lis     r10,0                                  
ffc0ace8:	80 e9 27 84 	lwz     r7,10116(r9)                           
ffc0acec:	80 0a 27 b0 	lwz     r0,10160(r10)                          
ffc0acf0:	7c 09 00 34 	cntlzw  r9,r0                                  
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0acf4:	3d 00 00 00 	lis     r8,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 );         
ffc0acf8:	90 0a 27 b0 	stw     r0,10160(r10)                          
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0acfc:	39 08 2d e0 	addi    r8,r8,11744                            
ffc0ad00:	55 2a 10 3a 	rlwinm  r10,r9,2,0,29                          
ffc0ad04:	7c 08 50 2e 	lwzx    r0,r8,r10                              
ffc0ad08:	7c 06 00 34 	cntlzw  r6,r0                                  
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0ad0c:	55 29 20 36 	rlwinm  r9,r9,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 );        
ffc0ad10:	7c 08 51 2e 	stwx    r0,r8,r10                              
ffc0ad14:	7d 29 32 14 	add     r9,r9,r6                               
ffc0ad18:	1d 29 00 0c 	mulli   r9,r9,12                               
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
ffc0ad1c:	7c 07 48 2e 	lwzx    r0,r7,r9                               
ffc0ad20:	3d 20 00 00 	lis     r9,0                                   
ffc0ad24:	39 29 31 b0 	addi    r9,r9,12720                            
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
ffc0ad28:	81 49 00 0c 	lwz     r10,12(r9)                             
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
ffc0ad2c:	90 09 00 10 	stw     r0,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.               
   */                                                                 
  _Thread_Calculate_heir();                                           
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
ffc0ad30:	7f 8a 00 00 	cmpw    cr7,r10,r0                             
ffc0ad34:	41 9e 00 18 	beq-    cr7,ffc0ad4c <_Thread_Change_priority+0x178>
ffc0ad38:	88 0a 00 74 	lbz     r0,116(r10)                            
ffc0ad3c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ad40:	41 9e 00 0c 	beq-    cr7,ffc0ad4c <_Thread_Change_priority+0x178>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
ffc0ad44:	38 00 00 01 	li      r0,1                                   
ffc0ad48:	98 09 00 18 	stb     r0,24(r9)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ad4c:	7d 60 01 24 	mtmsr   r11                                    
  _ISR_Enable( level );                                               
}                                                                     
ffc0ad50:	39 61 00 20 	addi    r11,r1,32                              
ffc0ad54:	48 00 e3 84 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0ad58 <_Thread_Clear_state>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile (
ffc0ad58:	7c 00 00 a6 	mfmsr   r0                                     
ffc0ad5c:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0ad60:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0ad64:	7d 20 01 24 	mtmsr   r9                                     
{                                                                     
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
    current_state = the_thread->current_state;                        
ffc0ad68:	81 23 00 10 	lwz     r9,16(r3)                              
                                                                      
    if ( current_state & state ) {                                    
ffc0ad6c:	7c 8b 48 39 	and.    r11,r4,r9                              
ffc0ad70:	41 82 00 ac 	beq-    ffc0ae1c <_Thread_Clear_state+0xc4>    
ffc0ad74:	7d 24 20 78 	andc    r4,r9,r4                               
      current_state =                                                 
      the_thread->current_state = _States_Clear( state, current_state );
                                                                      
      if ( _States_Is_ready( current_state ) ) {                      
ffc0ad78:	2f 84 00 00 	cmpwi   cr7,r4,0                               
  _ISR_Disable( level );                                              
    current_state = the_thread->current_state;                        
                                                                      
    if ( current_state & state ) {                                    
      current_state =                                                 
      the_thread->current_state = _States_Clear( state, current_state );
ffc0ad7c:	90 83 00 10 	stw     r4,16(r3)                              
                                                                      
      if ( _States_Is_ready( current_state ) ) {                      
ffc0ad80:	40 9e 00 9c 	bne-    cr7,ffc0ae1c <_Thread_Clear_state+0xc4>
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (                     
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
ffc0ad84:	81 23 00 90 	lwz     r9,144(r3)                             
ffc0ad88:	81 63 00 98 	lwz     r11,152(r3)                            
ffc0ad8c:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0ad90:	7d 4b 5b 78 	or      r11,r10,r11                            
ffc0ad94:	91 69 00 00 	stw     r11,0(r9)                              
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
ffc0ad98:	3d 20 00 00 	lis     r9,0                                   
ffc0ad9c:	81 49 27 b0 	lwz     r10,10160(r9)                          
ffc0ada0:	81 63 00 94 	lwz     r11,148(r3)                            
ffc0ada4:	7d 4b 5b 78 	or      r11,r10,r11                            
ffc0ada8:	91 69 27 b0 	stw     r11,10160(r9)                          
                                                                      
        _Priority_bit_map_Add( &the_thread->Priority_map );           
                                                                      
        _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
ffc0adac:	81 23 00 8c 	lwz     r9,140(r3)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0adb0:	39 69 00 04 	addi    r11,r9,4                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
ffc0adb4:	91 63 00 00 	stw     r11,0(r3)                              
  old_last_node       = the_chain->last;                              
ffc0adb8:	81 69 00 08 	lwz     r11,8(r9)                              
  the_chain->last     = the_node;                                     
ffc0adbc:	90 69 00 08 	stw     r3,8(r9)                               
  old_last_node->next = the_node;                                     
ffc0adc0:	90 6b 00 00 	stw     r3,0(r11)                              
  the_node->previous  = old_last_node;                                
ffc0adc4:	91 63 00 04 	stw     r11,4(r3)                              
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  asm volatile (                                                      
ffc0adc8:	7d 20 00 a6 	mfmsr   r9                                     
ffc0adcc:	7c 00 01 24 	mtmsr   r0                                     
ffc0add0:	7d 20 01 24 	mtmsr   r9                                     
         *    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 ( the_thread->current_priority < _Thread_Heir->current_priority ) {
ffc0add4:	3d 20 00 00 	lis     r9,0                                   
ffc0add8:	81 63 00 14 	lwz     r11,20(r3)                             
ffc0addc:	39 29 31 b0 	addi    r9,r9,12720                            
ffc0ade0:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0ade4:	81 4a 00 14 	lwz     r10,20(r10)                            
ffc0ade8:	7f 8b 50 40 	cmplw   cr7,r11,r10                            
ffc0adec:	40 9c 00 30 	bge-    cr7,ffc0ae1c <_Thread_Clear_state+0xc4>
          _Thread_Heir = the_thread;                                  
ffc0adf0:	90 69 00 10 	stw     r3,16(r9)                              
          if ( _Thread_Executing->is_preemptible ||                   
ffc0adf4:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0adf8:	89 29 00 74 	lbz     r9,116(r9)                             
ffc0adfc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ae00:	40 9e 00 0c 	bne-    cr7,ffc0ae0c <_Thread_Clear_state+0xb4>
ffc0ae04:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0ae08:	40 9e 00 14 	bne-    cr7,ffc0ae1c <_Thread_Clear_state+0xc4><== ALWAYS TAKEN
               the_thread->current_priority == 0 )                    
            _Thread_Dispatch_necessary = true;                        
ffc0ae0c:	3d 20 00 00 	lis     r9,0                                   
ffc0ae10:	39 60 00 01 	li      r11,1                                  
ffc0ae14:	39 29 31 b0 	addi    r9,r9,12720                            
ffc0ae18:	99 69 00 18 	stb     r11,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ae1c:	7c 00 01 24 	mtmsr   r0                                     
        }                                                             
      }                                                               
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
ffc0ae20:	4e 80 00 20 	blr                                            
                                                                      

ffc0ae24 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) {
ffc0ae24:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ae28:	7c 08 02 a6 	mflr    r0                                     
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0ae2c:	39 60 00 00 	li      r11,0                                  
ffc0ae30:	90 01 00 1c 	stw     r0,28(r1)                              
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(                     
  Objects_Information  *information,                                  
  Objects_Control      *the_object                                    
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc0ae34:	a0 04 00 0a 	lhz     r0,10(r4)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0ae38:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc0ae3c:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc0ae40:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0ae44:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0ae48:	7d 69 01 2e 	stwx    r11,r9,r0                              
ffc0ae4c:	7c 9f 23 78 	mr      r31,r4                                 
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc0ae50:	3f a0 00 00 	lis     r29,0                                  
ffc0ae54:	81 3d 27 8c 	lwz     r9,10124(r29)                          
   *  disappear and set a transient state on it.  So we temporarily   
   *  unnest dispatching.                                             
   */                                                                 
  _Thread_Unnest_dispatch();                                          
                                                                      
  _User_extensions_Thread_delete( the_thread );                       
ffc0ae58:	7c 83 23 78 	mr      r3,r4                                  
ffc0ae5c:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0ae60:	90 1d 27 8c 	stw     r0,10124(r29)                          
ffc0ae64:	48 00 14 a1 	bl      ffc0c304 <_User_extensions_Thread_delete>
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc0ae68:	81 3d 27 8c 	lwz     r9,10124(r29)                          
ffc0ae6c:	38 09 00 01 	addi    r0,r9,1                                
ffc0ae70:	90 1d 27 8c 	stw     r0,10124(r29)                          
  /*                                                                  
   *  Now we are in a dispatching critical section again and we       
   *  can take the thread OUT of the published set.  It is invalid    
   *  to use this thread's Id OR name after this call.                
   */                                                                 
  _Objects_Close( information, &the_thread->Object );                 
ffc0ae74:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ae78:	7f e4 fb 78 	mr      r4,r31                                 
ffc0ae7c:	4b ff f4 11 	bl      ffc0a28c <_Objects_Close>              
                                                                      
  /*                                                                  
   *  By setting the dormant state, the thread will not be considered 
   *  for scheduling when we remove any blocking states.              
   */                                                                 
  _Thread_Set_state( the_thread, STATES_DORMANT );                    
ffc0ae80:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ae84:	38 80 00 01 	li      r4,1                                   
ffc0ae88:	48 00 0c b5 	bl      ffc0bb3c <_Thread_Set_state>           
                                                                      
  if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {            
ffc0ae8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ae90:	48 00 0a b5 	bl      ffc0b944 <_Thread_queue_Extract_with_proxy>
ffc0ae94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ae98:	40 9e 00 18 	bne-    cr7,ffc0aeb0 <_Thread_Close+0x8c>      
    if ( _Watchdog_Is_active( &the_thread->Timer ) )                  
ffc0ae9c:	80 1f 00 50 	lwz     r0,80(r31)                             
ffc0aea0:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc0aea4:	40 be 00 0c 	bne+    cr7,ffc0aeb0 <_Thread_Close+0x8c>      
      (void) _Watchdog_Remove( &the_thread->Timer );                  
ffc0aea8:	38 7f 00 48 	addi    r3,r31,72                              
ffc0aeac:	48 00 16 bd 	bl      ffc0c568 <_Watchdog_Remove>            
  if ( _Thread_Is_allocated_fp( the_thread ) )                        
    _Thread_Deallocate_fp();                                          
#endif                                                                
  the_thread->fp_context = NULL;                                      
                                                                      
  if ( the_thread->Start.fp_context )                                 
ffc0aeb0:	80 7f 00 d4 	lwz     r3,212(r31)                            
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                            
  if ( _Thread_Is_allocated_fp( the_thread ) )                        
    _Thread_Deallocate_fp();                                          
#endif                                                                
  the_thread->fp_context = NULL;                                      
ffc0aeb4:	38 00 00 00 	li      r0,0                                   
ffc0aeb8:	90 1f 01 3c 	stw     r0,316(r31)                            
                                                                      
  if ( the_thread->Start.fp_context )                                 
ffc0aebc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0aec0:	41 9e 00 08 	beq-    cr7,ffc0aec8 <_Thread_Close+0xa4>      <== NEVER TAKEN
    (void) _Workspace_Free( the_thread->Start.fp_context );           
ffc0aec4:	48 00 17 f1 	bl      ffc0c6b4 <_Workspace_Free>             
                                                                      
  /*                                                                  
   *  Free the rest of the memory associated with this task           
   *  and set the associated pointers to NULL for safety.             
   */                                                                 
  _Thread_Stack_Free( the_thread );                                   
ffc0aec8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0aecc:	48 00 0e 95 	bl      ffc0bd60 <_Thread_Stack_Free>          
  the_thread->Start.stack = NULL;                                     
                                                                      
  if ( the_thread->extensions )                                       
ffc0aed0:	80 7f 01 4c 	lwz     r3,332(r31)                            
  /*                                                                  
   *  Free the rest of the memory associated with this task           
   *  and set the associated pointers to NULL for safety.             
   */                                                                 
  _Thread_Stack_Free( the_thread );                                   
  the_thread->Start.stack = NULL;                                     
ffc0aed4:	38 00 00 00 	li      r0,0                                   
                                                                      
  if ( the_thread->extensions )                                       
ffc0aed8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  /*                                                                  
   *  Free the rest of the memory associated with this task           
   *  and set the associated pointers to NULL for safety.             
   */                                                                 
  _Thread_Stack_Free( the_thread );                                   
  the_thread->Start.stack = NULL;                                     
ffc0aedc:	90 1f 00 d8 	stw     r0,216(r31)                            
                                                                      
  if ( the_thread->extensions )                                       
ffc0aee0:	41 9e 00 08 	beq-    cr7,ffc0aee8 <_Thread_Close+0xc4>      
    (void) _Workspace_Free( the_thread->extensions );                 
ffc0aee4:	48 00 17 d1 	bl      ffc0c6b4 <_Workspace_Free>             
  the_thread->extensions = NULL;                                      
ffc0aee8:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc0aeec:	39 61 00 18 	addi    r11,r1,24                              
  _Thread_Stack_Free( the_thread );                                   
  the_thread->Start.stack = NULL;                                     
                                                                      
  if ( the_thread->extensions )                                       
    (void) _Workspace_Free( the_thread->extensions );                 
  the_thread->extensions = NULL;                                      
ffc0aef0:	90 1f 01 4c 	stw     r0,332(r31)                            
}                                                                     
ffc0aef4:	48 00 e1 e4 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0afdc <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0afdc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0afe0:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0afe4:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_Delay_ended(                                             
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0afe8:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0afec:	48 00 01 b5 	bl      ffc0b1a0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0aff0:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0aff4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0aff8:	40 9e 00 20 	bne-    cr7,ffc0b018 <_Thread_Delay_ended+0x3c><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
ffc0affc:	3c 80 10 00 	lis     r4,4096                                
ffc0b000:	60 84 00 18 	ori     r4,r4,24                               
ffc0b004:	4b ff fd 55 	bl      ffc0ad58 <_Thread_Clear_state>         
ffc0b008:	3d 20 00 00 	lis     r9,0                                   
ffc0b00c:	81 69 27 8c 	lwz     r11,10124(r9)                          
ffc0b010:	38 0b ff ff 	addi    r0,r11,-1                              
ffc0b014:	90 09 27 8c 	stw     r0,10124(r9)                           
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0b018:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0b01c:	38 21 00 18 	addi    r1,r1,24                               
ffc0b020:	7c 08 03 a6 	mtlr    r0                                     
ffc0b024:	4e 80 00 20 	blr                                            
                                                                      

ffc0b028 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
ffc0b028:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0b02c:	7c 08 02 a6 	mflr    r0                                     
ffc0b030:	be a1 00 1c 	stmw    r21,28(r1)                             
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
ffc0b034:	3f 40 00 00 	lis     r26,0                                  
ffc0b038:	39 3a 31 b0 	addi    r9,r26,12720                           
 *    dispatch thread                                                 
 *    no dispatch thread                                              
 */                                                                   
                                                                      
void _Thread_Dispatch( void )                                         
{                                                                     
ffc0b03c:	90 01 00 4c 	stw     r0,76(r1)                              
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
ffc0b040:	83 e9 00 0c 	lwz     r31,12(r9)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0b044:	7c 00 00 a6 	mfmsr   r0                                     
ffc0b048:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0b04c:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0b050:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
ffc0b054:	3f 80 00 00 	lis     r28,0                                  
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
ffc0b058:	3e a0 00 00 	lis     r21,0                                  
ffc0b05c:	3a c0 00 01 	li      r22,1                                  
    _Thread_Dispatch_necessary = false;                               
ffc0b060:	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 )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
ffc0b064:	3f 00 00 00 	lis     r24,0                                  
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
ffc0b068:	3b 61 00 08 	addi    r27,r1,8                               
        _Timestamp_Subtract(                                          
ffc0b06c:	3b 9c 27 c0 	addi    r28,r28,10176                          
ffc0b070:	3b a1 00 10 	addi    r29,r1,16                              
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b074:	3f 20 00 00 	lis     r25,0                                  
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0b078:	48 00 00 dc 	b       ffc0b154 <_Thread_Dispatch+0x12c>      
    heir = _Thread_Heir;                                              
ffc0b07c:	83 c9 00 10 	lwz     r30,16(r9)                             
    _Thread_Dispatch_disable_level = 1;                               
ffc0b080:	92 d5 27 8c 	stw     r22,10124(r21)                         
    /*                                                                
     *  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 )                                          
ffc0b084:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
    _Thread_Dispatch_necessary = false;                               
ffc0b088:	9a e9 00 18 	stb     r23,24(r9)                             
    _Thread_Executing = heir;                                         
ffc0b08c:	93 c9 00 0c 	stw     r30,12(r9)                             
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
ffc0b090:	41 9e 00 d4 	beq-    cr7,ffc0b164 <_Thread_Dispatch+0x13c>  
     */                                                               
#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 )
ffc0b094:	81 3e 00 7c 	lwz     r9,124(r30)                            
ffc0b098:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0b09c:	40 be 00 0c 	bne+    cr7,ffc0b0a8 <_Thread_Dispatch+0x80>   
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
ffc0b0a0:	81 38 27 88 	lwz     r9,10120(r24)                          
ffc0b0a4:	91 3e 00 78 	stw     r9,120(r30)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0b0a8:	7c 00 01 24 	mtmsr   r0                                     
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
ffc0b0ac:	7f 63 db 78 	mr      r3,r27                                 
ffc0b0b0:	48 00 6d 3d 	bl      ffc11dec <_TOD_Get_uptime>             
        _Timestamp_Subtract(                                          
ffc0b0b4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0b0b8:	7f 64 db 78 	mr      r4,r27                                 
ffc0b0bc:	7f a5 eb 78 	mr      r5,r29                                 
ffc0b0c0:	48 00 0f d5 	bl      ffc0c094 <_Timespec_Subtract>          
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
ffc0b0c4:	38 7f 00 84 	addi    r3,r31,132                             
ffc0b0c8:	7f a4 eb 78 	mr      r4,r29                                 
ffc0b0cc:	48 00 0f 6d 	bl      ffc0c038 <_Timespec_Add_to>            
        _Thread_Time_of_last_context_switch = uptime;                 
ffc0b0d0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0b0d4:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc0b0d8:	91 3c 00 00 	stw     r9,0(r28)                              
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b0dc:	81 39 27 a0 	lwz     r9,10144(r25)                          
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
ffc0b0e0:	91 5c 00 04 	stw     r10,4(r28)                             
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b0e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b0e8:	41 9e 00 14 	beq-    cr7,ffc0b0fc <_Thread_Dispatch+0xd4>   <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
ffc0b0ec:	80 09 00 00 	lwz     r0,0(r9)                               
ffc0b0f0:	90 1f 01 40 	stw     r0,320(r31)                            
      *_Thread_libc_reent = heir->libc_reent;                         
ffc0b0f4:	80 1e 01 40 	lwz     r0,320(r30)                            
ffc0b0f8:	90 09 00 00 	stw     r0,0(r9)                               
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
ffc0b0fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b100:	7f c4 f3 78 	mr      r4,r30                                 
ffc0b104:	48 00 12 bd 	bl      ffc0c3c0 <_User_extensions_Thread_switch>
     *  operations.                                                   
     */                                                               
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE )                            
    if ( executing->fp_context != NULL )                              
ffc0b108:	80 1f 01 3c 	lwz     r0,316(r31)                            
ffc0b10c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0b110:	41 9e 00 0c 	beq-    cr7,ffc0b11c <_Thread_Dispatch+0xf4>   
      _Context_Save_fp( &executing->fp_context );                     
ffc0b114:	38 7f 01 3c 	addi    r3,r31,316                             
ffc0b118:	48 00 e0 89 	bl      ffc191a0 <_CPU_Context_save_fp>        
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
ffc0b11c:	38 7f 00 dc 	addi    r3,r31,220                             
ffc0b120:	38 9e 00 dc 	addi    r4,r30,220                             
ffc0b124:	48 00 e1 fd 	bl      ffc19320 <_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 )                              
ffc0b128:	80 1f 01 3c 	lwz     r0,316(r31)                            
ffc0b12c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0b130:	41 9e 00 0c 	beq-    cr7,ffc0b13c <_Thread_Dispatch+0x114>  
      _Context_Restore_fp( &executing->fp_context );                  
ffc0b134:	38 7f 01 3c 	addi    r3,r31,316                             
ffc0b138:	48 00 e1 29 	bl      ffc19260 <_CPU_Context_restore_fp>     
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
ffc0b13c:	39 3a 31 b0 	addi    r9,r26,12720                           
ffc0b140:	83 e9 00 0c 	lwz     r31,12(r9)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0b144:	7c 00 00 a6 	mfmsr   r0                                     
ffc0b148:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0b14c:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0b150:	7d 20 01 24 	mtmsr   r9                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0b154:	39 3a 31 b0 	addi    r9,r26,12720                           
ffc0b158:	89 69 00 18 	lbz     r11,24(r9)                             
ffc0b15c:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0b160:	40 9e ff 1c 	bne+    cr7,ffc0b07c <_Thread_Dispatch+0x54>   
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
ffc0b164:	39 60 00 00 	li      r11,0                                  
ffc0b168:	3d 20 00 00 	lis     r9,0                                   
ffc0b16c:	91 69 27 8c 	stw     r11,10124(r9)                          
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0b170:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
  _ISR_Enable( level );                                               
                                                                      
  _API_extensions_Run_postswitch();                                   
ffc0b174:	4b ff e5 31 	bl      ffc096a4 <_API_extensions_Run_postswitch>
}                                                                     
ffc0b178:	39 61 00 48 	addi    r11,r1,72                              
ffc0b17c:	48 00 df 3c 	b       ffc190b8 <_restgpr_21_x>               
                                                                      

ffc140f8 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
ffc140f8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc140fc:	7c 08 02 a6 	mflr    r0                                     
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc14100:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Thread_Handler( void )                                          
{                                                                     
ffc14104:	90 01 00 14 	stw     r0,20(r1)                              
ffc14108:	bf c1 00 08 	stmw    r30,8(r1)                              
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc1410c:	83 e9 31 bc 	lwz     r31,12732(r9)                          
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
ffc14110:	81 3f 00 c0 	lwz     r9,192(r31)                            
}                                                                     
                                                                      
static inline void _CPU_ISR_Set_level( uint32_t   level )             
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc14114:	38 00 00 00 	li      r0,0                                   
ffc14118:	7c 00 00 a6 	mfmsr   r0                                     
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc1411c:	71 2b 00 01 	andi.   r11,r9,1                               
ffc14120:	40 82 00 10 	bne-    ffc14130 <_Thread_Handler+0x38>        
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc14124:	7d 30 42 a6 	mfsprg  r9,0                                   
    msr |= ppc_interrupt_get_disable_mask();                          
ffc14128:	7d 20 03 78 	or      r0,r9,r0                               
ffc1412c:	48 00 00 0c 	b       ffc14138 <_Thread_Handler+0x40>        
ffc14130:	7d 30 42 a6 	mfsprg  r9,0                                   
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc14134:	7c 00 48 78 	andc    r0,r0,r9                               
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc14138:	7c 00 01 24 	mtmsr   r0                                     
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
ffc1413c:	3d 20 00 00 	lis     r9,0                                   
ffc14140:	8b c9 2a 10 	lbz     r30,10768(r9)                          
    doneConstructors = 1;                                             
ffc14144:	38 00 00 01 	li      r0,1                                   
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
ffc14148:	7f e3 fb 78 	mr      r3,r31                                 
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
    doneConstructors = 1;                                             
ffc1414c:	98 09 2a 10 	stb     r0,10768(r9)                           
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
ffc14150:	4b ff 80 3d 	bl      ffc0c18c <_User_extensions_Thread_begin>
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
ffc14154:	4b ff 70 2d 	bl      ffc0b180 <_Thread_Enable_dispatch>     
    /*                                                                
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
ffc14158:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1415c:	40 be 00 08 	bne+    cr7,ffc14164 <_Thread_Handler+0x6c>    
      INIT_NAME ();                                                   
ffc14160:	48 00 5c 9d 	bl      ffc19dfc <_init>                       
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
ffc14164:	80 1f 00 a8 	lwz     r0,168(r31)                            
ffc14168:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc1416c:	40 be 00 10 	bne+    cr7,ffc1417c <_Thread_Handler+0x84>    
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
ffc14170:	80 1f 00 a4 	lwz     r0,164(r31)                            
ffc14174:	80 7f 00 b0 	lwz     r3,176(r31)                            
ffc14178:	48 00 00 14 	b       ffc1418c <_Thread_Handler+0x94>        
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
ffc1417c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc14180:	40 be 00 18 	bne+    cr7,ffc14198 <_Thread_Handler+0xa0>    <== NEVER TAKEN
      executing->Wait.return_argument =                               
        (*(Thread_Entry_pointer) executing->Start.entry_point)(       
ffc14184:	80 1f 00 a4 	lwz     r0,164(r31)                            
ffc14188:	80 7f 00 ac 	lwz     r3,172(r31)                            
ffc1418c:	7c 09 03 a6 	mtctr   r0                                     
ffc14190:	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 =                               
ffc14194:	90 7f 00 28 	stw     r3,40(r31)                             
   *  was placed in return_argument.  This assumed that if it returned
   *  anything (which is not supporting in all APIs), then it would be
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
ffc14198:	7f e3 fb 78 	mr      r3,r31                                 
ffc1419c:	4b ff 80 45 	bl      ffc0c1e0 <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
ffc141a0:	38 60 00 00 	li      r3,0                                   
ffc141a4:	38 80 00 01 	li      r4,1                                   
ffc141a8:	38 a0 00 05 	li      r5,5                                   
ffc141ac:	4b ff 5f ed 	bl      ffc0a198 <_Internal_error_Occurred>    
                                                                      

ffc0b240 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
ffc0b240:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0b244:	7c 08 02 a6 	mflr    r0                                     
ffc0b248:	be e1 00 0c 	stmw    r23,12(r1)                             
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
ffc0b24c:	7c b7 2b 79 	mr.     r23,r5                                 
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b250:	7d 3a 4b 78 	mr      r26,r9                                 
ffc0b254:	90 01 00 34 	stw     r0,52(r1)                              
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b258:	38 00 00 00 	li      r0,0                                   
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b25c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0b260:	81 21 00 40 	lwz     r9,64(r1)                              
ffc0b264:	7c 9f 23 78 	mr      r31,r4                                 
ffc0b268:	7c dd 33 78 	mr      r29,r6                                 
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b26c:	90 04 01 44 	stw     r0,324(r4)                             
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b270:	7c fc 3b 78 	mr      r28,r7                                 
ffc0b274:	7d 1b 43 78 	mr      r27,r8                                 
ffc0b278:	83 09 00 00 	lwz     r24,0(r9)                              
ffc0b27c:	7d 59 53 78 	mr      r25,r10                                
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b280:	90 04 01 48 	stw     r0,328(r4)                             
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
ffc0b284:	90 04 01 40 	stw     r0,320(r4)                             
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
ffc0b288:	40 a2 00 38 	bne+    ffc0b2c0 <_Thread_Initialize+0x80>     
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b28c:	7c 83 23 78 	mr      r3,r4                                  
ffc0b290:	7c c4 33 78 	mr      r4,r6                                  
ffc0b294:	48 00 0a 59 	bl      ffc0bcec <_Thread_Stack_Allocate>      
      if ( !actual_stack_size || actual_stack_size < stack_size )     
        return false;                     /* stack allocation failed */
ffc0b298:	38 00 00 00 	li      r0,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 )     
ffc0b29c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b2a0:	41 82 01 ac 	beq-    ffc0b44c <_Thread_Initialize+0x20c>    
ffc0b2a4:	7f 83 e8 40 	cmplw   cr7,r3,r29                             
        return false;                     /* stack allocation failed */
ffc0b2a8:	7e e0 bb 78 	mr      r0,r23                                 
                                                                      
    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 )     
ffc0b2ac:	41 9c 01 a0 	blt-    cr7,ffc0b44c <_Thread_Initialize+0x20c><== NEVER TAKEN
        return false;                     /* stack allocation failed */
                                                                      
      stack = the_thread->Start.stack;                                
      the_thread->Start.core_allocated_stack = true;                  
ffc0b2b0:	38 00 00 01 	li      r0,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;                                
ffc0b2b4:	82 ff 00 d8 	lwz     r23,216(r31)                           
      the_thread->Start.core_allocated_stack = true;                  
ffc0b2b8:	98 1f 00 c8 	stb     r0,200(r31)                            
ffc0b2bc:	48 00 00 0c 	b       ffc0b2c8 <_Thread_Initialize+0x88>     
    } else {                                                          
      stack = stack_area;                                             
      actual_stack_size = stack_size;                                 
      the_thread->Start.core_allocated_stack = false;                 
ffc0b2c0:	98 04 00 c8 	stb     r0,200(r4)                             
ffc0b2c4:	7c c3 33 78 	mr      r3,r6                                  
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0b2c8:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
ffc0b2cc:	92 ff 00 d0 	stw     r23,208(r31)                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    fp_area = NULL;                                                   
ffc0b2d0:	3a e0 00 00 	li      r23,0                                  
  the_stack->size = size;                                             
ffc0b2d4:	90 7f 00 cc 	stw     r3,204(r31)                            
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0b2d8:	41 be 00 14 	beq+    cr7,ffc0b2ec <_Thread_Initialize+0xac> 
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
ffc0b2dc:	38 60 01 08 	li      r3,264                                 
ffc0b2e0:	48 00 13 a1 	bl      ffc0c680 <_Workspace_Allocate>         
      if ( !fp_area )                                                 
ffc0b2e4:	7c 77 1b 79 	mr.     r23,r3                                 
ffc0b2e8:	41 82 01 04 	beq-    ffc0b3ec <_Thread_Initialize+0x1ac>    
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b2ec:	3d 20 00 00 	lis     r9,0                                   
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
      if ( !fp_area )                                                 
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
ffc0b2f0:	92 ff 01 3c 	stw     r23,316(r31)                           
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc0b2f4:	38 00 00 00 	li      r0,0                                   
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b2f8:	80 69 27 ac 	lwz     r3,10156(r9)                           
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0b2fc:	3b a0 00 00 	li      r29,0                                  
      if ( !fp_area )                                                 
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
    the_thread->Start.fp_context = fp_area;                           
ffc0b300:	92 ff 00 d4 	stw     r23,212(r31)                           
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b304:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b308:	90 1f 00 50 	stw     r0,80(r31)                             
  the_watchdog->routine   = routine;                                  
ffc0b30c:	90 1f 00 64 	stw     r0,100(r31)                            
  the_watchdog->id        = id;                                       
ffc0b310:	90 1f 00 68 	stw     r0,104(r31)                            
  the_watchdog->user_data = user_data;                                
ffc0b314:	90 1f 00 6c 	stw     r0,108(r31)                            
ffc0b318:	41 be 00 18 	beq+    cr7,ffc0b330 <_Thread_Initialize+0xf0> 
    extensions_area = _Workspace_Allocate(                            
ffc0b31c:	38 63 00 01 	addi    r3,r3,1                                
ffc0b320:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0b324:	48 00 13 5d 	bl      ffc0c680 <_Workspace_Allocate>         
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
ffc0b328:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0b32c:	41 82 00 c4 	beq-    ffc0b3f0 <_Thread_Initialize+0x1b0>    
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
ffc0b330:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
ffc0b334:	93 bf 01 4c 	stw     r29,332(r31)                           
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
ffc0b338:	41 9e 00 2c 	beq-    cr7,ffc0b364 <_Thread_Initialize+0x124>
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
ffc0b33c:	3d 20 00 00 	lis     r9,0                                   
ffc0b340:	81 49 27 ac 	lwz     r10,10156(r9)                          
 *  all memory associated with this thread.  It completes by adding   
 *  the thread to the local object table so operations on this        
 *  thread id are allowed.                                            
 */                                                                   
                                                                      
bool _Thread_Initialize(                                              
ffc0b344:	39 7d ff fc 	addi    r11,r29,-4                             
ffc0b348:	39 20 00 00 	li      r9,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;                               
ffc0b34c:	38 00 00 00 	li      r0,0                                   
ffc0b350:	48 00 00 0c 	b       ffc0b35c <_Thread_Initialize+0x11c>    
ffc0b354:	94 0b 00 04 	stwu    r0,4(r11)                              
   * 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++ )              
ffc0b358:	39 29 00 01 	addi    r9,r9,1                                
ffc0b35c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0b360:	40 9d ff f4 	ble+    cr7,ffc0b354 <_Thread_Initialize+0x114>
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
                                                                      
  switch ( budget_algorithm ) {                                       
ffc0b364:	2f 99 00 02 	cmpwi   cr7,r25,2                              
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
ffc0b368:	80 01 00 38 	lwz     r0,56(r1)                              
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
ffc0b36c:	9b 5f 00 b4 	stb     r26,180(r31)                           
  the_thread->Start.budget_algorithm = budget_algorithm;              
ffc0b370:	93 3f 00 b8 	stw     r25,184(r31)                           
  the_thread->Start.budget_callout   = budget_callout;                
ffc0b374:	90 1f 00 bc 	stw     r0,188(r31)                            
                                                                      
  switch ( budget_algorithm ) {                                       
ffc0b378:	40 be 00 10 	bne+    cr7,ffc0b388 <_Thread_Initialize+0x148>
    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;    
ffc0b37c:	3d 20 00 00 	lis     r9,0                                   
ffc0b380:	80 09 27 88 	lwz     r0,10120(r9)                           
ffc0b384:	90 1f 00 78 	stw     r0,120(r31)                            
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0b388:	80 01 00 3c 	lwz     r0,60(r1)                              
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
ffc0b38c:	3b 80 00 00 	li      r28,0                                  
ffc0b390:	93 9f 00 44 	stw     r28,68(r31)                            
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
ffc0b394:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b398:	7f 64 db 78 	mr      r4,r27                                 
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0b39c:	90 1f 00 c0 	stw     r0,192(r31)                            
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
ffc0b3a0:	38 00 00 01 	li      r0,1                                   
ffc0b3a4:	90 1f 00 10 	stw     r0,16(r31)                             
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
ffc0b3a8:	93 9f 00 1c 	stw     r28,28(r31)                            
  the_thread->real_priority           = priority;                     
ffc0b3ac:	93 7f 00 18 	stw     r27,24(r31)                            
  the_thread->Start.initial_priority  = priority;                     
ffc0b3b0:	93 7f 00 c4 	stw     r27,196(r31)                           
  _Thread_Set_priority( the_thread, priority );                       
ffc0b3b4:	48 00 07 2d 	bl      ffc0bae0 <_Thread_Set_priority>        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc0b3b8:	a0 1f 00 0a 	lhz     r0,10(r31)                             
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
                                                                      
                                                                      
}                                                                     
ffc0b3bc:	81 3e 00 1c 	lwz     r9,28(r30)                             
   *  enabled when we get here.  We want to be able to run the        
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
ffc0b3c0:	7f e3 fb 78 	mr      r3,r31                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0b3c4:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
ffc0b3c8:	93 9f 00 84 	stw     r28,132(r31)                           
ffc0b3cc:	93 9f 00 88 	stw     r28,136(r31)                           
ffc0b3d0:	7f e9 01 2e 	stwx    r31,r9,r0                              
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc0b3d4:	93 1f 00 0c 	stw     r24,12(r31)                            
   *  enabled when we get here.  We want to be able to run the        
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
ffc0b3d8:	48 00 0e b9 	bl      ffc0c290 <_User_extensions_Thread_create>
  if ( extension_status )                                             
    return true;                                                      
ffc0b3dc:	38 00 00 01 	li      r0,1                                   
   *  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 )                                             
ffc0b3e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b3e4:	41 be 00 0c 	beq+    cr7,ffc0b3f0 <_Thread_Initialize+0x1b0>
ffc0b3e8:	48 00 00 64 	b       ffc0b44c <_Thread_Initialize+0x20c>    
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0b3ec:	3b a0 00 00 	li      r29,0                                  
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
    return true;                                                      
                                                                      
failed:                                                               
  if ( the_thread->libc_reent )                                       
ffc0b3f0:	80 7f 01 40 	lwz     r3,320(r31)                            
ffc0b3f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b3f8:	41 9e 00 08 	beq-    cr7,ffc0b400 <_Thread_Initialize+0x1c0>
    _Workspace_Free( the_thread->libc_reent );                        
ffc0b3fc:	48 00 12 b9 	bl      ffc0c6b4 <_Workspace_Free>             
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
ffc0b400:	80 7f 01 44 	lwz     r3,324(r31)                            
ffc0b404:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b408:	41 9e 00 08 	beq-    cr7,ffc0b410 <_Thread_Initialize+0x1d0>
      _Workspace_Free( the_thread->API_Extensions[i] );               
ffc0b40c:	48 00 12 a9 	bl      ffc0c6b4 <_Workspace_Free>             
failed:                                                               
  if ( the_thread->libc_reent )                                       
    _Workspace_Free( the_thread->libc_reent );                        
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
ffc0b410:	80 7f 01 48 	lwz     r3,328(r31)                            
ffc0b414:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b418:	41 9e 00 08 	beq-    cr7,ffc0b420 <_Thread_Initialize+0x1e0>
      _Workspace_Free( the_thread->API_Extensions[i] );               
ffc0b41c:	48 00 12 99 	bl      ffc0c6b4 <_Workspace_Free>             
                                                                      
  if ( extensions_area )                                              
ffc0b420:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b424:	41 9e 00 0c 	beq-    cr7,ffc0b430 <_Thread_Initialize+0x1f0>
    (void) _Workspace_Free( extensions_area );                        
ffc0b428:	7f a3 eb 78 	mr      r3,r29                                 
ffc0b42c:	48 00 12 89 	bl      ffc0c6b4 <_Workspace_Free>             
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( fp_area )                                                    
ffc0b430:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc0b434:	41 9e 00 0c 	beq-    cr7,ffc0b440 <_Thread_Initialize+0x200>
      (void) _Workspace_Free( fp_area );                              
ffc0b438:	7e e3 bb 78 	mr      r3,r23                                 
ffc0b43c:	48 00 12 79 	bl      ffc0c6b4 <_Workspace_Free>             
  #endif                                                              
                                                                      
   _Thread_Stack_Free( the_thread );                                  
ffc0b440:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b444:	48 00 09 1d 	bl      ffc0bd60 <_Thread_Stack_Free>          
  return false;                                                       
ffc0b448:	38 00 00 00 	li      r0,0                                   
                                                                      
                                                                      
}                                                                     
ffc0b44c:	39 61 00 30 	addi    r11,r1,48                              
ffc0b450:	7c 03 03 78 	mr      r3,r0                                  
ffc0b454:	48 00 dc 6c 	b       ffc190c0 <_restgpr_23_x>               
                                                                      

ffc0b744 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
ffc0b744:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0b748:	7c 08 02 a6 	mflr    r0                                     
ffc0b74c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0b750:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0b754:	48 00 ff 6d 	bl      ffc1b6c0 <_savegpr_31>                 
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
  }                                                                   
                                                                      
  return false;                                                       
ffc0b758:	38 00 00 00 	li      r0,0                                   
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (                        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_DORMANT);                              
ffc0b75c:	81 23 00 10 	lwz     r9,16(r3)                              
bool _Thread_Restart(                                                 
  Thread_Control            *the_thread,                              
  void                      *pointer_argument,                        
  Thread_Entry_numeric_type  numeric_argument                         
)                                                                     
{                                                                     
ffc0b760:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
ffc0b764:	71 2b 00 01 	andi.   r11,r9,1                               
ffc0b768:	40 a2 00 74 	bne+    ffc0b7dc <_Thread_Restart+0x98>        
                                                                      
    _Thread_Set_transient( the_thread );                              
ffc0b76c:	90 81 00 08 	stw     r4,8(r1)                               
ffc0b770:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc0b774:	48 00 01 ed 	bl      ffc0b960 <_Thread_Set_transient>       
                                                                      
    _Thread_Reset( the_thread, pointer_argument, numeric_argument );  
ffc0b778:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b77c:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0b780:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc0b784:	48 00 3e 7d 	bl      ffc0f600 <_Thread_Reset>               
                                                                      
    _Thread_Load_environment( the_thread );                           
ffc0b788:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b78c:	48 00 3a ad 	bl      ffc0f238 <_Thread_Load_environment>    
                                                                      
    _Thread_Ready( the_thread );                                      
ffc0b790:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b794:	48 00 3d 95 	bl      ffc0f528 <_Thread_Ready>               
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
ffc0b798:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b79c:	48 00 09 75 	bl      ffc0c110 <_User_extensions_Thread_restart>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc0b7a0:	3d 20 00 00 	lis     r9,0                                   
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0b7a4:	81 29 31 7c 	lwz     r9,12668(r9)                           
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
ffc0b7a8:	38 00 00 01 	li      r0,1                                   
                                                                      
    _Thread_Ready( the_thread );                                      
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0b7ac:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0b7b0:	40 be 00 2c 	bne+    cr7,ffc0b7dc <_Thread_Restart+0x98>    
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )                
{                                                                     
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  if ( _Thread_Executing->fp_context != NULL )                        
ffc0b7b4:	80 1f 01 3c 	lwz     r0,316(r31)                            
ffc0b7b8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0b7bc:	41 9e 00 0c 	beq-    cr7,ffc0b7c8 <_Thread_Restart+0x84>    <== NEVER TAKEN
    _Context_Restore_fp( &_Thread_Executing->fp_context );            
ffc0b7c0:	38 7f 01 3c 	addi    r3,r31,316                             
ffc0b7c4:	48 01 00 7d 	bl      ffc1b840 <_CPU_Context_restore_fp>     
#endif                                                                
                                                                      
  _CPU_Context_Restart_self( &_Thread_Executing->Registers );         
ffc0b7c8:	3d 20 00 00 	lis     r9,0                                   
ffc0b7cc:	80 69 31 7c 	lwz     r3,12668(r9)                           
ffc0b7d0:	38 63 00 dc 	addi    r3,r3,220                              
ffc0b7d4:	48 01 02 2d 	bl      ffc1ba00 <_CPU_Context_restore>        
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
ffc0b7d8:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return false;                                                       
}                                                                     
ffc0b7dc:	39 61 00 18 	addi    r11,r1,24                              
ffc0b7e0:	7c 03 03 78 	mr      r3,r0                                  
ffc0b7e4:	4b ff 55 74 	b       ffc00d58 <_restgpr_31_x>               
                                                                      

ffc0ddb4 <_Thread_Resume>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile (
ffc0ddb4:	7c 00 00 a6 	mfmsr   r0                                     
ffc0ddb8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0ddbc:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0ddc0:	7d 20 01 24 	mtmsr   r9                                     
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  current_state = the_thread->current_state;                          
ffc0ddc4:	81 23 00 10 	lwz     r9,16(r3)                              
  if ( current_state & STATES_SUSPENDED ) {                           
ffc0ddc8:	71 2b 00 02 	andi.   r11,r9,2                               
ffc0ddcc:	41 82 00 ac 	beq-    ffc0de78 <_Thread_Resume+0xc4>         <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
ffc0ddd0:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          
    current_state =                                                   
    the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
                                                                      
    if ( _States_Is_ready( current_state ) ) {                        
ffc0ddd4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  _ISR_Disable( level );                                              
                                                                      
  current_state = the_thread->current_state;                          
  if ( current_state & STATES_SUSPENDED ) {                           
    current_state =                                                   
    the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
ffc0ddd8:	91 23 00 10 	stw     r9,16(r3)                              
                                                                      
    if ( _States_Is_ready( current_state ) ) {                        
ffc0dddc:	40 9e 00 9c 	bne-    cr7,ffc0de78 <_Thread_Resume+0xc4>     
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (                     
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
ffc0dde0:	81 23 00 90 	lwz     r9,144(r3)                             
ffc0dde4:	81 63 00 98 	lwz     r11,152(r3)                            
ffc0dde8:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0ddec:	7d 4b 5b 78 	or      r11,r10,r11                            
ffc0ddf0:	91 69 00 00 	stw     r11,0(r9)                              
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
ffc0ddf4:	3d 20 00 00 	lis     r9,0                                   
ffc0ddf8:	81 49 27 b0 	lwz     r10,10160(r9)                          
ffc0ddfc:	81 63 00 94 	lwz     r11,148(r3)                            
ffc0de00:	7d 4b 5b 78 	or      r11,r10,r11                            
ffc0de04:	91 69 27 b0 	stw     r11,10160(r9)                          
                                                                      
      _Priority_bit_map_Add( &the_thread->Priority_map );             
                                                                      
      _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
ffc0de08:	81 23 00 8c 	lwz     r9,140(r3)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0de0c:	39 69 00 04 	addi    r11,r9,4                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
ffc0de10:	91 63 00 00 	stw     r11,0(r3)                              
  old_last_node       = the_chain->last;                              
ffc0de14:	81 69 00 08 	lwz     r11,8(r9)                              
  the_chain->last     = the_node;                                     
ffc0de18:	90 69 00 08 	stw     r3,8(r9)                               
  old_last_node->next = the_node;                                     
ffc0de1c:	90 6b 00 00 	stw     r3,0(r11)                              
  the_node->previous  = old_last_node;                                
ffc0de20:	91 63 00 04 	stw     r11,4(r3)                              
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  asm volatile (                                                      
ffc0de24:	7d 20 00 a6 	mfmsr   r9                                     
ffc0de28:	7c 00 01 24 	mtmsr   r0                                     
ffc0de2c:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
ffc0de30:	3d 20 00 00 	lis     r9,0                                   
ffc0de34:	81 63 00 14 	lwz     r11,20(r3)                             
ffc0de38:	39 29 31 d0 	addi    r9,r9,12752                            
ffc0de3c:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0de40:	81 4a 00 14 	lwz     r10,20(r10)                            
ffc0de44:	7f 8b 50 40 	cmplw   cr7,r11,r10                            
ffc0de48:	40 9c 00 30 	bge-    cr7,ffc0de78 <_Thread_Resume+0xc4>     
        _Thread_Heir = the_thread;                                    
ffc0de4c:	90 69 00 10 	stw     r3,16(r9)                              
        if ( _Thread_Executing->is_preemptible ||                     
ffc0de50:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0de54:	89 29 00 74 	lbz     r9,116(r9)                             
ffc0de58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0de5c:	40 9e 00 0c 	bne-    cr7,ffc0de68 <_Thread_Resume+0xb4>     
ffc0de60:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0de64:	40 9e 00 14 	bne-    cr7,ffc0de78 <_Thread_Resume+0xc4>     <== ALWAYS TAKEN
             the_thread->current_priority == 0 )                      
          _Thread_Dispatch_necessary = true;                          
ffc0de68:	3d 20 00 00 	lis     r9,0                                   
ffc0de6c:	39 60 00 01 	li      r11,1                                  
ffc0de70:	39 29 31 d0 	addi    r9,r9,12752                            
ffc0de74:	99 69 00 18 	stb     r11,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0de78:	7c 00 01 24 	mtmsr   r0                                     
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
}                                                                     
ffc0de7c:	4e 80 00 20 	blr                                            
                                                                      

ffc0f7fc <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) {
ffc0f7fc:	7c 08 02 a6 	mflr    r0                                     
ffc0f800:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0f804:	94 21 ff f0 	stwu    r1,-16(r1)                             
  Thread_Control *executing;                                          
                                                                      
  executing = _Thread_Executing;                                      
ffc0f808:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Thread_Tickle_timeslice( void )                                 
{                                                                     
ffc0f80c:	90 01 00 14 	stw     r0,20(r1)                              
ffc0f810:	4b ff 18 c9 	bl      ffc010d8 <_savegpr_31>                 
  Thread_Control *executing;                                          
                                                                      
  executing = _Thread_Executing;                                      
ffc0f814:	83 e9 32 5c 	lwz     r31,12892(r9)                          
  /*                                                                  
   *  If the thread is not preemptible or is not ready, then          
   *  just return.                                                    
   */                                                                 
                                                                      
  if ( !executing->is_preemptible )                                   
ffc0f818:	88 1f 00 74 	lbz     r0,116(r31)                            
ffc0f81c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f820:	41 9e 00 7c 	beq-    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0>
    return;                                                           
                                                                      
  if ( !_States_Is_ready( executing->current_state ) )                
ffc0f824:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0f828:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f82c:	40 9e 00 70 	bne-    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0>
                                                                      
  /*                                                                  
   *  The cpu budget algorithm determines what happens next.          
   */                                                                 
                                                                      
  switch ( executing->budget_algorithm ) {                            
ffc0f830:	80 1f 00 7c 	lwz     r0,124(r31)                            
ffc0f834:	2b 80 00 01 	cmplwi  cr7,r0,1                               
ffc0f838:	41 9c 00 64 	blt-    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0>
ffc0f83c:	2b 80 00 02 	cmplwi  cr7,r0,2                               
ffc0f840:	40 9d 00 10 	ble-    cr7,ffc0f850 <_Thread_Tickle_timeslice+0x54>
ffc0f844:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc0f848:	40 be 00 54 	bne+    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0><== NEVER TAKEN
ffc0f84c:	48 00 00 2c 	b       ffc0f878 <_Thread_Tickle_timeslice+0x7c>
                                                                      
    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:                 
    #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)          
      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:             
    #endif                                                            
      if ( (int)(--executing->cpu_time_budget) <= 0 ) {               
ffc0f850:	81 3f 00 78 	lwz     r9,120(r31)                            
ffc0f854:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0f858:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f85c:	90 1f 00 78 	stw     r0,120(r31)                            
ffc0f860:	41 bd 00 3c 	bgt+    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0>
         *  at the priority of the currently executing thread, then the
         *  executing thread's timeslice is reset.  Otherwise, the    
         *  currently executing thread is placed at the rear of the   
         *  FIFO for this priority and a new heir is selected.        
         */                                                           
        _Thread_Yield_processor();                                    
ffc0f864:	48 00 00 41 	bl      ffc0f8a4 <_Thread_Yield_processor>     
        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;     
ffc0f868:	3d 20 00 00 	lis     r9,0                                   
ffc0f86c:	80 09 27 ac 	lwz     r0,10156(r9)                           
ffc0f870:	90 1f 00 78 	stw     r0,120(r31)                            
ffc0f874:	48 00 00 28 	b       ffc0f89c <_Thread_Tickle_timeslice+0xa0>
      }                                                               
      break;                                                          
                                                                      
    #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)          
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	if ( --executing->cpu_time_budget == 0 )                             
ffc0f878:	81 3f 00 78 	lwz     r9,120(r31)                            
ffc0f87c:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0f880:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f884:	90 1f 00 78 	stw     r0,120(r31)                            
ffc0f888:	40 be 00 14 	bne+    cr7,ffc0f89c <_Thread_Tickle_timeslice+0xa0>
	  (*executing->budget_callout)( executing );                         
ffc0f88c:	80 1f 00 80 	lwz     r0,128(r31)                            
ffc0f890:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f894:	7c 09 03 a6 	mtctr   r0                                     
ffc0f898:	4e 80 04 21 	bctrl                                          
	break;                                                               
    #endif                                                            
  }                                                                   
}                                                                     
ffc0f89c:	39 61 00 10 	addi    r11,r1,16                              
ffc0f8a0:	4b ff 18 84 	b       ffc01124 <_restgpr_31_x>               
                                                                      

ffc0bf94 <_Thread_Yield_processor>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
ffc0bf94:	3d 60 00 00 	lis     r11,0                                  
ffc0bf98:	39 6b 31 b0 	addi    r11,r11,12720                          
ffc0bf9c:	81 2b 00 0c 	lwz     r9,12(r11)                             
  ready     = executing->ready;                                       
ffc0bfa0:	81 49 00 8c 	lwz     r10,140(r9)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0bfa4:	7c 00 00 a6 	mfmsr   r0                                     
ffc0bfa8:	7d 10 42 a6 	mfsprg  r8,0                                   
ffc0bfac:	7c 08 40 78 	andc    r8,r0,r8                               
ffc0bfb0:	7d 00 01 24 	mtmsr   r8                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(                   
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return (the_chain->first == the_chain->last);                       
ffc0bfb4:	81 0a 00 08 	lwz     r8,8(r10)                              
  _ISR_Disable( level );                                              
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
ffc0bfb8:	80 ea 00 00 	lwz     r7,0(r10)                              
ffc0bfbc:	7f 87 40 00 	cmpw    cr7,r7,r8                              
ffc0bfc0:	41 9e 00 5c 	beq-    cr7,ffc0c01c <_Thread_Yield_processor+0x88>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0bfc4:	80 c9 00 00 	lwz     r6,0(r9)                               
  previous       = the_node->previous;                                
ffc0bfc8:	80 e9 00 04 	lwz     r7,4(r9)                               
  next->previous = previous;                                          
  previous->next = next;                                              
ffc0bfcc:	90 c7 00 00 	stw     r6,0(r7)                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
ffc0bfd0:	90 e6 00 04 	stw     r7,4(r6)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0bfd4:	38 ea 00 04 	addi    r7,r10,4                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
ffc0bfd8:	90 e9 00 00 	stw     r7,0(r9)                               
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
ffc0bfdc:	91 2a 00 08 	stw     r9,8(r10)                              
  old_last_node->next = the_node;                                     
ffc0bfe0:	91 28 00 00 	stw     r9,0(r8)                               
  the_node->previous  = old_last_node;                                
ffc0bfe4:	91 09 00 04 	stw     r8,4(r9)                               
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  asm volatile (                                                      
ffc0bfe8:	7d 00 00 a6 	mfmsr   r8                                     
ffc0bfec:	7c 00 01 24 	mtmsr   r0                                     
ffc0bff0:	7d 00 01 24 	mtmsr   r8                                     
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
ffc0bff4:	81 0b 00 10 	lwz     r8,16(r11)                             
ffc0bff8:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc0bffc:	40 be 00 0c 	bne+    cr7,ffc0c008 <_Thread_Yield_processor+0x74><== NEVER TAKEN
        _Thread_Heir = (Thread_Control *) ready->first;               
ffc0c000:	81 2a 00 00 	lwz     r9,0(r10)                              
ffc0c004:	91 2b 00 10 	stw     r9,16(r11)                             
      _Thread_Dispatch_necessary = true;                              
ffc0c008:	3d 20 00 00 	lis     r9,0                                   
ffc0c00c:	39 60 00 01 	li      r11,1                                  
ffc0c010:	39 29 31 b0 	addi    r9,r9,12720                            
ffc0c014:	99 69 00 18 	stb     r11,24(r9)                             
ffc0c018:	48 00 00 18 	b       ffc0c030 <_Thread_Yield_processor+0x9c>
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
ffc0c01c:	81 4b 00 10 	lwz     r10,16(r11)                            
ffc0c020:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c024:	41 9e 00 0c 	beq-    cr7,ffc0c030 <_Thread_Yield_processor+0x9c>
      _Thread_Dispatch_necessary = true;                              
ffc0c028:	39 20 00 01 	li      r9,1                                   
ffc0c02c:	99 2b 00 18 	stb     r9,24(r11)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0c030:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
  _ISR_Enable( level );                                               
}                                                                     
ffc0c034:	4e 80 00 20 	blr                                            
                                                                      

ffc0ba28 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
ffc0ba28:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0ba2c:	7c 08 02 a6 	mflr    r0                                     
ffc0ba30:	bf a1 00 1c 	stmw    r29,28(r1)                             
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0ba34:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void _Thread_queue_Requeue(                                           
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread                                    
)                                                                     
{                                                                     
ffc0ba38:	7c 9e 23 78 	mr      r30,r4                                 
ffc0ba3c:	90 01 00 2c 	stw     r0,44(r1)                              
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0ba40:	41 82 00 54 	beq-    ffc0ba94 <_Thread_queue_Requeue+0x6c>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If queueing by FIFO, there is nothing to do. This only applies to
   * priority blocking discipline.                                    
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
ffc0ba44:	80 1f 00 34 	lwz     r0,52(r31)                             
ffc0ba48:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc0ba4c:	40 be 00 48 	bne+    cr7,ffc0ba94 <_Thread_queue_Requeue+0x6c><== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0ba50:	7f a0 00 a6 	mfmsr   r29                                    
ffc0ba54:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0ba58:	7f a9 48 78 	andc    r9,r29,r9                              
ffc0ba5c:	7d 20 01 24 	mtmsr   r9                                     
    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 ) ) {
ffc0ba60:	3d 60 00 03 	lis     r11,3                                  
ffc0ba64:	81 24 00 10 	lwz     r9,16(r4)                              
ffc0ba68:	61 6b be e0 	ori     r11,r11,48864                          
ffc0ba6c:	7d 6a 48 39 	and.    r10,r11,r9                             
ffc0ba70:	41 a2 00 20 	beq+    ffc0ba90 <_Thread_queue_Requeue+0x68>  <== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc0ba74:	90 1f 00 30 	stw     r0,48(r31)                             
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
ffc0ba78:	38 a0 00 01 	li      r5,1                                   
ffc0ba7c:	48 00 6b 11 	bl      ffc1258c <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
ffc0ba80:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ba84:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ba88:	38 a1 00 08 	addi    r5,r1,8                                
ffc0ba8c:	4b ff fd 0d 	bl      ffc0b798 <_Thread_queue_Enqueue_priority>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ba90:	7f a0 01 24 	mtmsr   r29                                    
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
ffc0ba94:	39 61 00 28 	addi    r11,r1,40                              
ffc0ba98:	48 00 d6 40 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc0ba9c <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0ba9c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0baa0:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0baa4:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_queue_Timeout(                                           
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0baa8:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0baac:	4b ff f6 f5 	bl      ffc0b1a0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0bab0:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0bab4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0bab8:	40 9e 00 18 	bne-    cr7,ffc0bad0 <_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 );                    
ffc0babc:	48 00 6b bd 	bl      ffc12678 <_Thread_queue_Process_timeout>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
ffc0bac0:	3d 20 00 00 	lis     r9,0                                   
ffc0bac4:	81 69 27 8c 	lwz     r11,10124(r9)                          
ffc0bac8:	38 0b ff ff 	addi    r0,r11,-1                              
ffc0bacc:	90 09 27 8c 	stw     r0,10124(r9)                           
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0bad0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0bad4:	38 21 00 18 	addi    r1,r1,24                               
ffc0bad8:	7c 08 03 a6 	mtlr    r0                                     
ffc0badc:	4e 80 00 20 	blr                                            
                                                                      

ffc18fb4 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
ffc18fb4:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc18fb8:	7c 08 02 a6 	mflr    r0                                     
ffc18fbc:	be 01 00 28 	stmw    r16,40(r1)                             
ffc18fc0:	3b 81 00 14 	addi    r28,r1,20                              
ffc18fc4:	3b 01 00 0c 	addi    r24,r1,12                              
ffc18fc8:	90 01 00 6c 	stw     r0,108(r1)                             
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
ffc18fcc:	3a 01 00 08 	addi    r16,r1,8                               
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
ffc18fd0:	38 00 00 00 	li      r0,0                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc18fd4:	3b 61 00 18 	addi    r27,r1,24                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc18fd8:	93 01 00 08 	stw     r24,8(r1)                              
ffc18fdc:	7c 7f 1b 78 	mr      r31,r3                                 
  the_chain->permanent_null = NULL;                                   
ffc18fe0:	90 01 00 0c 	stw     r0,12(r1)                              
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
ffc18fe4:	3e 20 00 00 	lis     r17,0                                  
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc18fe8:	3b 23 00 30 	addi    r25,r3,48                              
  the_chain->last           = _Chain_Head(the_chain);                 
ffc18fec:	92 01 00 10 	stw     r16,16(r1)                             
                                                                      
  _Chain_Initialize_empty( &insert_chain );                           
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
ffc18ff0:	7f 9a e3 78 	mr      r26,r28                                
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc18ff4:	3e 40 00 00 	lis     r18,0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc18ff8:	93 61 00 14 	stw     r27,20(r1)                             
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
ffc18ffc:	3b a3 00 68 	addi    r29,r3,104                             
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
ffc19000:	3a 60 00 00 	li      r19,0                                  
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
ffc19004:	90 01 00 18 	stw     r0,24(r1)                              
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
ffc19008:	3a 80 00 00 	li      r20,0                                  
        _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;                                              
ffc1900c:	3a a0 00 01 	li      r21,1                                  
  the_chain->last           = _Chain_Head(the_chain);                 
ffc19010:	93 81 00 1c 	stw     r28,28(r1)                             
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
ffc19014:	3a c3 00 08 	addi    r22,r3,8                               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
ffc19018:	3a e3 00 40 	addi    r23,r3,64                              
{                                                                     
  /*                                                                  
   *  Afterwards all timer inserts are directed to this chain and the interval
   *  and TOD chains will be no more modified by other parties.       
   */                                                                 
  ts->insert_chain = insert_chain;                                    
ffc1901c:	92 1f 00 78 	stw     r16,120(r31)                           
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
ffc19020:	80 11 28 c8 	lwz     r0,10440(r17)                          
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19024:	7f 45 d3 78 	mr      r5,r26                                 
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
ffc19028:	80 9f 00 3c 	lwz     r4,60(r31)                             
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc1902c:	7f 23 cb 78 	mr      r3,r25                                 
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc19030:	90 1f 00 3c 	stw     r0,60(r31)                             
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19034:	7c 84 00 50 	subf    r4,r4,r0                               
ffc19038:	48 00 4a c5 	bl      ffc1dafc <_Watchdog_Adjust_to_chain>   
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1903c:	83 d2 28 a0 	lwz     r30,10400(r18)                         
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
ffc19040:	80 bf 00 74 	lwz     r5,116(r31)                            
  /*                                                                  
   *  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 ) {                                   
ffc19044:	7f 9e 28 40 	cmplw   cr7,r30,r5                             
ffc19048:	40 bd 00 18 	ble+    cr7,ffc19060 <_Timer_server_Body+0xac> 
    /*                                                                
     *  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 );
ffc1904c:	7c 85 f0 50 	subf    r4,r5,r30                              
ffc19050:	7f a3 eb 78 	mr      r3,r29                                 
ffc19054:	7f 45 d3 78 	mr      r5,r26                                 
ffc19058:	48 00 4a a5 	bl      ffc1dafc <_Watchdog_Adjust_to_chain>   
ffc1905c:	48 00 00 18 	b       ffc19074 <_Timer_server_Body+0xc0>     
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
ffc19060:	40 bc 00 14 	bge+    cr7,ffc19074 <_Timer_server_Body+0xc0> 
     /*                                                               
      *  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 ); 
ffc19064:	7f a3 eb 78 	mr      r3,r29                                 
ffc19068:	38 80 00 01 	li      r4,1                                   
ffc1906c:	7c be 28 50 	subf    r5,r30,r5                              
ffc19070:	48 00 49 d5 	bl      ffc1da44 <_Watchdog_Adjust>            
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc19074:	93 df 00 74 	stw     r30,116(r31)                           
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc19078:	80 7f 00 78 	lwz     r3,120(r31)                            
ffc1907c:	48 00 0b c5 	bl      ffc19c40 <_Chain_Get>                  
                                                                      
    if ( timer == NULL ) {                                            
ffc19080:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19084:	41 82 00 2c 	beq-    ffc190b0 <_Timer_server_Body+0xfc>     
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19088:	80 1e 00 38 	lwz     r0,56(r30)                             
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc1908c:	7f 23 cb 78 	mr      r3,r25                                 
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19090:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc19094:	41 9e 00 10 	beq-    cr7,ffc190a4 <_Timer_server_Body+0xf0> 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc19098:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc1909c:	40 9e ff dc 	bne+    cr7,ffc19078 <_Timer_server_Body+0xc4> <== NEVER TAKEN
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc190a0:	7f a3 eb 78 	mr      r3,r29                                 
ffc190a4:	38 9e 00 10 	addi    r4,r30,16                              
ffc190a8:	48 00 4b 09 	bl      ffc1dbb0 <_Watchdog_Insert>            
ffc190ac:	4b ff ff cc 	b       ffc19078 <_Timer_server_Body+0xc4>     
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
ffc190b0:	4b ff fe 1d 	bl      ffc18ecc <ppc_interrupt_disable>       
    if ( _Chain_Is_empty( insert_chain ) ) {                          
ffc190b4:	80 01 00 08 	lwz     r0,8(r1)                               
ffc190b8:	7f 80 c0 00 	cmpw    cr7,r0,r24                             
ffc190bc:	40 be 00 1c 	bne+    cr7,ffc190d8 <_Timer_server_Body+0x124><== NEVER TAKEN
      ts->insert_chain = NULL;                                        
ffc190c0:	93 df 00 78 	stw     r30,120(r31)                           
ffc190c4:	7c 60 01 24 	mtmsr   r3                                     
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
                                                                      
    if ( !_Chain_Is_empty( &fire_chain ) ) {                          
ffc190c8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc190cc:	7f 80 d8 00 	cmpw    cr7,r0,r27                             
ffc190d0:	40 be 00 10 	bne+    cr7,ffc190e0 <_Timer_server_Body+0x12c>
ffc190d4:	48 00 00 58 	b       ffc1912c <_Timer_server_Body+0x178>    
ffc190d8:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
ffc190dc:	4b ff ff 44 	b       ffc19020 <_Timer_server_Body+0x6c>     <== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
ffc190e0:	4b ff fd ed 	bl      ffc18ecc <ppc_interrupt_disable>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc190e4:	81 21 00 14 	lwz     r9,20(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc190e8:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc190ec:	41 9e 00 38 	beq-    cr7,ffc19124 <_Timer_server_Body+0x170>
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
ffc190f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
ffc190f4:	81 69 00 00 	lwz     r11,0(r9)                              
  the_chain->first    = new_first;                                    
ffc190f8:	91 61 00 14 	stw     r11,20(r1)                             
  new_first->previous = _Chain_Head(the_chain);                       
ffc190fc:	93 8b 00 04 	stw     r28,4(r11)                             
ffc19100:	41 9e 00 24 	beq-    cr7,ffc19124 <_Timer_server_Body+0x170><== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
ffc19104:	92 69 00 08 	stw     r19,8(r9)                              
ffc19108:	7c 60 01 24 	mtmsr   r3                                     
        /*                                                            
         *  The timer server may block here and wait for resources or time.
         *  The system watchdogs are inactive and will remain inactive since
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
ffc1910c:	80 09 00 1c 	lwz     r0,28(r9)                              
ffc19110:	80 69 00 20 	lwz     r3,32(r9)                              
ffc19114:	80 89 00 24 	lwz     r4,36(r9)                              
ffc19118:	7c 09 03 a6 	mtctr   r0                                     
ffc1911c:	4e 80 04 21 	bctrl                                          
      }                                                               
ffc19120:	4b ff ff c0 	b       ffc190e0 <_Timer_server_Body+0x12c>    
ffc19124:	7c 60 01 24 	mtmsr   r3                                     
ffc19128:	4b ff fe f4 	b       ffc1901c <_Timer_server_Body+0x68>     
    } else {                                                          
      ts->active = false;                                             
ffc1912c:	9a 9f 00 7c 	stb     r20,124(r31)                           
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
ffc19130:	4b ff fd b1 	bl      ffc18ee0 <_Thread_Disable_dispatch>    
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
ffc19134:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc19138:	38 80 00 08 	li      r4,8                                   
ffc1913c:	48 00 3e b1 	bl      ffc1cfec <_Thread_Set_state>           
        _Timer_server_Reset_interval_system_watchdog( ts );           
ffc19140:	7f e3 fb 78 	mr      r3,r31                                 
ffc19144:	4b ff fd b1 	bl      ffc18ef4 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
ffc19148:	7f e3 fb 78 	mr      r3,r31                                 
ffc1914c:	4b ff fe 09 	bl      ffc18f54 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
ffc19150:	48 00 33 71 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
                                                                      
      ts->active = true;                                              
ffc19154:	9a bf 00 7c 	stb     r21,124(r31)                           
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
ffc19158:	7e c3 b3 78 	mr      r3,r22                                 
ffc1915c:	48 00 4b a9 	bl      ffc1dd04 <_Watchdog_Remove>            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
ffc19160:	7e e3 bb 78 	mr      r3,r23                                 
ffc19164:	48 00 4b a1 	bl      ffc1dd04 <_Watchdog_Remove>            
ffc19168:	4b ff fe b4 	b       ffc1901c <_Timer_server_Body+0x68>     
                                                                      

ffc1916c <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
ffc1916c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc19170:	7c 08 02 a6 	mflr    r0                                     
ffc19174:	90 01 00 14 	stw     r0,20(r1)                              
  if ( ts->insert_chain == NULL ) {                                   
ffc19178:	80 03 00 78 	lwz     r0,120(r3)                             
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
ffc1917c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc19180:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( ts->insert_chain == NULL ) {                                   
ffc19184:	2f 80 00 00 	cmpwi   cr7,r0,0                               
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
ffc19188:	7c 9e 23 78 	mr      r30,r4                                 
  if ( ts->insert_chain == NULL ) {                                   
ffc1918c:	40 be 01 00 	bne+    cr7,ffc1928c <_Timer_server_Schedule_operation_method+0x120>
   *  is the reference point for the delta chain.  Thus if we do not update the
   *  reference point we have to add DT to the initial delta of the watchdog
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
ffc19190:	4b ff fd 51 	bl      ffc18ee0 <_Thread_Disable_dispatch>    
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19194:	80 1e 00 38 	lwz     r0,56(r30)                             
ffc19198:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc1919c:	40 be 00 6c 	bne+    cr7,ffc19208 <_Timer_server_Schedule_operation_method+0x9c>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
ffc191a0:	4b ff fd 2d 	bl      ffc18ecc <ppc_interrupt_disable>       
    snapshot = _Watchdog_Ticks_since_boot;                            
ffc191a4:	3d 20 00 00 	lis     r9,0                                   
ffc191a8:	80 09 28 c8 	lwz     r0,10440(r9)                           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc191ac:	39 7f 00 34 	addi    r11,r31,52                             
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc191b0:	81 3f 00 30 	lwz     r9,48(r31)                             
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
ffc191b4:	81 5f 00 3c 	lwz     r10,60(r31)                            
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
ffc191b8:	7f 89 58 00 	cmpw    cr7,r9,r11                             
ffc191bc:	41 9e 00 20 	beq-    cr7,ffc191dc <_Timer_server_Schedule_operation_method+0x70>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
ffc191c0:	81 09 00 10 	lwz     r8,16(r9)                              
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
ffc191c4:	7d 4a 00 50 	subf    r10,r10,r0                             
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
ffc191c8:	39 60 00 00 	li      r11,0                                  
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
ffc191cc:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc191d0:	40 9d 00 08 	ble-    cr7,ffc191d8 <_Timer_server_Schedule_operation_method+0x6c>
        delta_interval -= delta;                                      
ffc191d4:	7d 6a 40 50 	subf    r11,r10,r8                             
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc191d8:	91 69 00 10 	stw     r11,16(r9)                             
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
ffc191dc:	90 1f 00 3c 	stw     r0,60(r31)                             
ffc191e0:	7c 60 01 24 	mtmsr   r3                                     
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc191e4:	38 7f 00 30 	addi    r3,r31,48                              
ffc191e8:	38 9e 00 10 	addi    r4,r30,16                              
ffc191ec:	48 00 49 c5 	bl      ffc1dbb0 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc191f0:	88 1f 00 7c 	lbz     r0,124(r31)                            
ffc191f4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc191f8:	40 be 00 8c 	bne+    cr7,ffc19284 <_Timer_server_Schedule_operation_method+0x118>
      _Timer_server_Reset_interval_system_watchdog( ts );             
ffc191fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc19200:	4b ff fc f5 	bl      ffc18ef4 <_Timer_server_Reset_interval_system_watchdog>
ffc19204:	48 00 00 80 	b       ffc19284 <_Timer_server_Schedule_operation_method+0x118>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc19208:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc1920c:	40 be 00 78 	bne+    cr7,ffc19284 <_Timer_server_Schedule_operation_method+0x118>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
ffc19210:	4b ff fc bd 	bl      ffc18ecc <ppc_interrupt_disable>       
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
ffc19214:	3d 20 00 00 	lis     r9,0                                   
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
ffc19218:	81 1f 00 74 	lwz     r8,116(r31)                            
    /*                                                                
     *  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();        
ffc1921c:	80 09 28 a0 	lwz     r0,10400(r9)                           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc19220:	39 7f 00 6c 	addi    r11,r31,108                            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc19224:	81 3f 00 68 	lwz     r9,104(r31)                            
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
ffc19228:	7f 89 58 00 	cmpw    cr7,r9,r11                             
ffc1922c:	41 9e 00 30 	beq-    cr7,ffc1925c <_Timer_server_Schedule_operation_method+0xf0>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
ffc19230:	7f 80 40 40 	cmplw   cr7,r0,r8                              
    _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;                
ffc19234:	81 49 00 10 	lwz     r10,16(r9)                             
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
ffc19238:	7d 6a 42 14 	add     r11,r10,r8                             
        delta_interval += delta;                                      
ffc1923c:	7d 60 58 50 	subf    r11,r0,r11                             
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
ffc19240:	40 9d 00 18 	ble-    cr7,ffc19258 <_Timer_server_Schedule_operation_method+0xec>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
ffc19244:	7d 08 00 50 	subf    r8,r8,r0                               
        if (delta_interval > delta) {                                 
ffc19248:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
ffc1924c:	39 60 00 00 	li      r11,0                                  
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
ffc19250:	40 9d 00 08 	ble-    cr7,ffc19258 <_Timer_server_Schedule_operation_method+0xec><== NEVER TAKEN
          delta_interval -= delta;                                    
ffc19254:	7d 68 50 50 	subf    r11,r8,r10                             
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc19258:	91 69 00 10 	stw     r11,16(r9)                             
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
ffc1925c:	90 1f 00 74 	stw     r0,116(r31)                            
ffc19260:	7c 60 01 24 	mtmsr   r3                                     
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc19264:	38 7f 00 68 	addi    r3,r31,104                             
ffc19268:	38 9e 00 10 	addi    r4,r30,16                              
ffc1926c:	48 00 49 45 	bl      ffc1dbb0 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc19270:	88 1f 00 7c 	lbz     r0,124(r31)                            
ffc19274:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc19278:	40 be 00 0c 	bne+    cr7,ffc19284 <_Timer_server_Schedule_operation_method+0x118>
      _Timer_server_Reset_tod_system_watchdog( ts );                  
ffc1927c:	7f e3 fb 78 	mr      r3,r31                                 
ffc19280:	4b ff fc d5 	bl      ffc18f54 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
ffc19284:	48 00 32 3d 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
ffc19288:	48 00 00 0c 	b       ffc19294 <_Timer_server_Schedule_operation_method+0x128>
     *  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 );           
ffc1928c:	80 63 00 78 	lwz     r3,120(r3)                             
ffc19290:	48 00 09 59 	bl      ffc19be8 <_Chain_Append>               
  }                                                                   
}                                                                     
ffc19294:	39 61 00 10 	addi    r11,r1,16                              
ffc19298:	4b ff 50 20 	b       ffc0e2b8 <_restgpr_30_x>               
                                                                      

ffc0c0d8 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
ffc0c0d8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c0dc:	7c 08 02 a6 	mflr    r0                                     
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
ffc0c0e0:	3d 20 00 00 	lis     r9,0                                   
#include <rtems/score/userext.h>                                      
#include <rtems/score/wkspace.h>                                      
#include <string.h>                                                   
                                                                      
void _User_extensions_Handler_initialization(void)                    
{                                                                     
ffc0c0e4:	90 01 00 1c 	stw     r0,28(r1)                              
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
ffc0c0e8:	39 29 20 88 	addi    r9,r9,8328                             
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc0c0ec:	3d 60 00 00 	lis     r11,0                                  
#include <rtems/score/userext.h>                                      
#include <rtems/score/wkspace.h>                                      
#include <string.h>                                                   
                                                                      
void _User_extensions_Handler_initialization(void)                    
{                                                                     
ffc0c0f0:	bf 81 00 08 	stmw    r28,8(r1)                              
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
  initial_extensions   = Configuration.User_extension_table;          
ffc0c0f4:	83 a9 00 3c 	lwz     r29,60(r9)                             
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
ffc0c0f8:	83 c9 00 38 	lwz     r30,56(r9)                             
ffc0c0fc:	39 2b 2e 60 	addi    r9,r11,11872                           
  initial_extensions   = Configuration.User_extension_table;          
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
ffc0c100:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
ffc0c104:	91 29 00 08 	stw     r9,8(r9)                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc0c108:	38 09 00 04 	addi    r0,r9,4                                
ffc0c10c:	90 0b 2e 60 	stw     r0,11872(r11)                          
  the_chain->permanent_null = NULL;                                   
ffc0c110:	38 00 00 00 	li      r0,0                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc0c114:	3d 60 00 00 	lis     r11,0                                  
  the_chain->permanent_null = NULL;                                   
ffc0c118:	90 09 00 04 	stw     r0,4(r9)                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
ffc0c11c:	39 2b 2c f0 	addi    r9,r11,11504                           
ffc0c120:	39 49 00 04 	addi    r10,r9,4                               
ffc0c124:	91 4b 2c f0 	stw     r10,11504(r11)                         
  the_chain->permanent_null = NULL;                                   
ffc0c128:	90 09 00 04 	stw     r0,4(r9)                               
  the_chain->last           = _Chain_Head(the_chain);                 
ffc0c12c:	91 29 00 08 	stw     r9,8(r9)                               
ffc0c130:	41 9e 00 54 	beq-    cr7,ffc0c184 <_User_extensions_Handler_initialization+0xac><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
ffc0c134:	1f 9e 00 34 	mulli   r28,r30,52                             
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
ffc0c138:	7f 83 e3 78 	mr      r3,r28                                 
ffc0c13c:	48 00 05 a5 	bl      ffc0c6e0 <_Workspace_Allocate_or_fatal_error>
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
ffc0c140:	7f 85 e3 78 	mr      r5,r28                                 
ffc0c144:	38 80 00 00 	li      r4,0                                   
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
ffc0c148:	7c 7f 1b 78 	mr      r31,r3                                 
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
ffc0c14c:	48 00 8e fd 	bl      ffc15048 <memset>                      
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
ffc0c150:	3b 80 00 00 	li      r28,0                                  
ffc0c154:	48 00 00 28 	b       ffc0c17c <_User_extensions_Handler_initialization+0xa4>
#include <rtems/config.h>                                             
#include <rtems/score/userext.h>                                      
#include <rtems/score/wkspace.h>                                      
#include <string.h>                                                   
                                                                      
void _User_extensions_Handler_initialization(void)                    
ffc0c158:	57 83 28 34 	rlwinm  r3,r28,5,0,26                          
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
ffc0c15c:	38 9f 00 14 	addi    r4,r31,20                              
ffc0c160:	7c 7d 1a 14 	add     r3,r29,r3                              
ffc0c164:	7c a3 04 aa 	lswi    r5,r3,32                               
ffc0c168:	7c a4 05 aa 	stswi   r5,r4,32                               
                                                                      
  _User_extensions_Add_set( extension );                              
ffc0c16c:	7f e3 fb 78 	mr      r3,r31                                 
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
ffc0c170:	3b 9c 00 01 	addi    r28,r28,1                              
ffc0c174:	48 00 66 a5 	bl      ffc12818 <_User_extensions_Add_set>    
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
ffc0c178:	3b ff 00 34 	addi    r31,r31,52                             
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
ffc0c17c:	7f 9c f0 40 	cmplw   cr7,r28,r30                            
ffc0c180:	41 9c ff d8 	blt+    cr7,ffc0c158 <_User_extensions_Handler_initialization+0x80>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
ffc0c184:	39 61 00 18 	addi    r11,r1,24                              
ffc0c188:	48 00 cf 4c 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc0d2e8 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
ffc0d2e8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d2ec:	7c 08 02 a6 	mflr    r0                                     
ffc0d2f0:	90 01 00 24 	stw     r0,36(r1)                              
ffc0d2f4:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0d2f8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0d2fc:	7c be 2b 78 	mr      r30,r5                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0d300:	7c 00 00 a6 	mfmsr   r0                                     
ffc0d304:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0d308:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0d30c:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc0d310:	81 23 00 00 	lwz     r9,0(r3)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0d314:	3b 83 00 04 	addi    r28,r3,4                               
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
ffc0d318:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0d31c:	41 9e 00 78 	beq-    cr7,ffc0d394 <_Watchdog_Adjust+0xac>   
    switch ( direction ) {                                            
ffc0d320:	2f 84 00 00 	cmpwi   cr7,r4,0                               
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
ffc0d324:	3b 60 00 01 	li      r27,1                                  
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
ffc0d328:	41 9e 00 64 	beq-    cr7,ffc0d38c <_Watchdog_Adjust+0xa4>   
ffc0d32c:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc0d330:	40 be 00 64 	bne+    cr7,ffc0d394 <_Watchdog_Adjust+0xac>   <== NEVER TAKEN
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
ffc0d334:	81 69 00 10 	lwz     r11,16(r9)                             
ffc0d338:	7f cb 2a 14 	add     r30,r11,r5                             
ffc0d33c:	48 00 00 18 	b       ffc0d354 <_Watchdog_Adjust+0x6c>       
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) header->first );                      
ffc0d340:	81 3f 00 00 	lwz     r9,0(r31)                              
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
ffc0d344:	83 a9 00 10 	lwz     r29,16(r9)                             
ffc0d348:	7f 9e e8 40 	cmplw   cr7,r30,r29                            
ffc0d34c:	40 bc 00 10 	bge+    cr7,ffc0d35c <_Watchdog_Adjust+0x74>   
            _Watchdog_First( header )->delta_interval -= units;       
ffc0d350:	7f de e8 50 	subf    r30,r30,r29                            
ffc0d354:	93 c9 00 10 	stw     r30,16(r9)                             
            break;                                                    
ffc0d358:	48 00 00 3c 	b       ffc0d394 <_Watchdog_Adjust+0xac>       
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
ffc0d35c:	93 69 00 10 	stw     r27,16(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0d360:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
ffc0d364:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d368:	48 00 02 35 	bl      ffc0d59c <_Watchdog_Tickle>            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0d36c:	7c 00 00 a6 	mfmsr   r0                                     
ffc0d370:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0d374:	7c 09 48 78 	andc    r9,r0,r9                               
ffc0d378:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
            _ISR_Disable( level );                                    
                                                                      
            if ( _Chain_Is_empty( header ) )                          
ffc0d37c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc0d380:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0d384:	41 9e 00 10 	beq-    cr7,ffc0d394 <_Watchdog_Adjust+0xac>   
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
ffc0d388:	7f dd f0 50 	subf    r30,r29,r30                            
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
ffc0d38c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0d390:	40 9e ff b0 	bne+    cr7,ffc0d340 <_Watchdog_Adjust+0x58>   <== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0d394:	7c 00 01 24 	mtmsr   r0                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
ffc0d398:	39 61 00 20 	addi    r11,r1,32                              
ffc0d39c:	4b ff 3f a4 	b       ffc01340 <_restgpr_27_x>               
                                                                      

ffc0c568 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
ffc0c568:	7c 69 1b 78 	mr      r9,r3                                  
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0c56c:	7c 00 00 a6 	mfmsr   r0                                     
ffc0c570:	7d 70 42 a6 	mfsprg  r11,0                                  
ffc0c574:	7c 0b 58 78 	andc    r11,r0,r11                             
ffc0c578:	7d 60 01 24 	mtmsr   r11                                    
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
ffc0c57c:	80 63 00 08 	lwz     r3,8(r3)                               
  switch ( previous_state ) {                                         
ffc0c580:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0c584:	41 9e 00 18 	beq-    cr7,ffc0c59c <_Watchdog_Remove+0x34>   
ffc0c588:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc0c58c:	41 9c 00 70 	blt-    cr7,ffc0c5fc <_Watchdog_Remove+0x94>   
ffc0c590:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc0c594:	41 9d 00 68 	bgt-    cr7,ffc0c5fc <_Watchdog_Remove+0x94>   <== NEVER TAKEN
ffc0c598:	48 00 00 10 	b       ffc0c5a8 <_Watchdog_Remove+0x40>       
                                                                      
      /*                                                              
       *  It is not actually on the chain so just change the state and
       *  the Insert operation we interrupted will be aborted.        
       */                                                             
      the_watchdog->state = WATCHDOG_INACTIVE;                        
ffc0c59c:	39 60 00 00 	li      r11,0                                  
ffc0c5a0:	91 69 00 08 	stw     r11,8(r9)                              
      break;                                                          
ffc0c5a4:	48 00 00 58 	b       ffc0c5fc <_Watchdog_Remove+0x94>       
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
ffc0c5a8:	39 60 00 00 	li      r11,0                                  
ffc0c5ac:	91 69 00 08 	stw     r11,8(r9)                              
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0c5b0:	81 69 00 00 	lwz     r11,0(r9)                              
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
ffc0c5b4:	81 4b 00 00 	lwz     r10,0(r11)                             
ffc0c5b8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c5bc:	41 9e 00 14 	beq-    cr7,ffc0c5d0 <_Watchdog_Remove+0x68>   
        next_watchdog->delta_interval += the_watchdog->delta_interval;
ffc0c5c0:	81 0b 00 10 	lwz     r8,16(r11)                             
ffc0c5c4:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0c5c8:	7d 48 52 14 	add     r10,r8,r10                             
ffc0c5cc:	91 4b 00 10 	stw     r10,16(r11)                            
                                                                      
      if ( _Watchdog_Sync_count )                                     
ffc0c5d0:	3d 40 00 00 	lis     r10,0                                  
ffc0c5d4:	81 4a 27 c8 	lwz     r10,10184(r10)                         
ffc0c5d8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c5dc:	41 9e 00 14 	beq-    cr7,ffc0c5f0 <_Watchdog_Remove+0x88>   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
ffc0c5e0:	3d 40 00 00 	lis     r10,0                                  
ffc0c5e4:	81 0a 31 b8 	lwz     r8,12728(r10)                          
ffc0c5e8:	3d 40 00 00 	lis     r10,0                                  
ffc0c5ec:	91 0a 27 b8 	stw     r8,10168(r10)                          
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0c5f0:	81 49 00 04 	lwz     r10,4(r9)                              
  next->previous = previous;                                          
ffc0c5f4:	91 4b 00 04 	stw     r10,4(r11)                             
  previous->next = next;                                              
ffc0c5f8:	91 6a 00 00 	stw     r11,0(r10)                             
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
ffc0c5fc:	3d 60 00 00 	lis     r11,0                                  
ffc0c600:	81 6b 27 cc 	lwz     r11,10188(r11)                         
ffc0c604:	91 69 00 18 	stw     r11,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0c608:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0c60c:	4e 80 00 20 	blr                                            
                                                                      

ffc0cb50 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
ffc0cb50:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0cb54:	7c 08 02 a6 	mflr    r0                                     
ffc0cb58:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0cb5c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0cb60:	7c 9f 23 78 	mr      r31,r4                                 
ffc0cb64:	90 01 00 1c 	stw     r0,28(r1)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0cb68:	7f a0 00 a6 	mfmsr   r29                                    
ffc0cb6c:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc0cb70:	7f a0 00 78 	andc    r0,r29,r0                              
ffc0cb74:	7c 00 01 24 	mtmsr   r0                                     
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
ffc0cb78:	3c 60 ff c2 	lis     r3,-62                                 
ffc0cb7c:	7f e5 fb 78 	mr      r5,r31                                 
ffc0cb80:	38 63 ef bc 	addi    r3,r3,-4164                            
ffc0cb84:	7f c4 f3 78 	mr      r4,r30                                 
ffc0cb88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0cb8c:	4b ff 96 09 	bl      ffc06194 <printk>                      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc0cb90:	83 9f 00 00 	lwz     r28,0(r31)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0cb94:	3b ff 00 04 	addi    r31,r31,4                              
    if ( !_Chain_Is_empty( header ) ) {                               
ffc0cb98:	7f 9c f8 00 	cmpw    cr7,r28,r31                            
ffc0cb9c:	41 9e 00 34 	beq-    cr7,ffc0cbd0 <_Watchdog_Report_chain+0x80>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
ffc0cba0:	7f 84 e3 78 	mr      r4,r28                                 
ffc0cba4:	38 60 00 00 	li      r3,0                                   
ffc0cba8:	48 00 00 45 	bl      ffc0cbec <_Watchdog_Report>            
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
ffc0cbac:	83 9c 00 00 	lwz     r28,0(r28)                             
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
ffc0cbb0:	7f 9c f8 00 	cmpw    cr7,r28,r31                            
ffc0cbb4:	40 9e ff ec 	bne+    cr7,ffc0cba0 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
ffc0cbb8:	3c 60 ff c2 	lis     r3,-62                                 
ffc0cbbc:	38 63 ef d3 	addi    r3,r3,-4141                            
ffc0cbc0:	7f c4 f3 78 	mr      r4,r30                                 
ffc0cbc4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0cbc8:	4b ff 95 cd 	bl      ffc06194 <printk>                      
ffc0cbcc:	48 00 00 14 	b       ffc0cbe0 <_Watchdog_Report_chain+0x90> 
    } else {                                                          
      printk( "Chain is empty\n" );                                   
ffc0cbd0:	3c 60 ff c2 	lis     r3,-62                                 
ffc0cbd4:	38 63 ef e2 	addi    r3,r3,-4126                            
ffc0cbd8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0cbdc:	4b ff 95 b9 	bl      ffc06194 <printk>                      
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0cbe0:	7f a0 01 24 	mtmsr   r29                                    
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
ffc0cbe4:	39 61 00 18 	addi    r11,r1,24                              
ffc0cbe8:	4b ff 42 dc 	b       ffc00ec4 <_restgpr_28_x>               
                                                                      

ffc0ff20 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
ffc0ff20:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ff24:	7c 08 02 a6 	mflr    r0                                     
ffc0ff28:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0ff2c:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0ff30:	7c 7f 1b 78 	mr      r31,r3                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0ff34:	7f 80 00 a6 	mfmsr   r28                                    
ffc0ff38:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc0ff3c:	7f 80 00 78 	andc    r0,r28,r0                              
ffc0ff40:	7c 00 01 24 	mtmsr   r0                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc0ff44:	83 a3 00 00 	lwz     r29,0(r3)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc0ff48:	3b c3 00 04 	addi    r30,r3,4                               
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
ffc0ff4c:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
ffc0ff50:	41 9e 00 6c 	beq-    cr7,ffc0ffbc <_Watchdog_Tickle+0x9c>   
   * to be inserted has already had its delta_interval adjusted to 0, and
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
ffc0ff54:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc0ff58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ff5c:	41 9e 00 14 	beq-    cr7,ffc0ff70 <_Watchdog_Tickle+0x50>   
    the_watchdog->delta_interval--;                                   
ffc0ff60:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0ff64:	90 1d 00 10 	stw     r0,16(r29)                             
    if ( the_watchdog->delta_interval != 0 )                          
ffc0ff68:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ff6c:	40 9e 00 50 	bne-    cr7,ffc0ffbc <_Watchdog_Tickle+0x9c>   
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
ffc0ff70:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ff74:	4b ff ff 05 	bl      ffc0fe78 <_Watchdog_Remove>            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ff78:	7f 80 01 24 	mtmsr   r28                                    
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
ffc0ff7c:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0ff80:	40 be 00 18 	bne+    cr7,ffc0ff98 <_Watchdog_Tickle+0x78>   <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
ffc0ff84:	80 1d 00 1c 	lwz     r0,28(r29)                             
ffc0ff88:	80 7d 00 20 	lwz     r3,32(r29)                             
ffc0ff8c:	80 9d 00 24 	lwz     r4,36(r29)                             
ffc0ff90:	7c 09 03 a6 	mtctr   r0                                     
ffc0ff94:	4e 80 04 21 	bctrl                                          
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0ff98:	7f 80 00 a6 	mfmsr   r28                                    
ffc0ff9c:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc0ffa0:	7f 80 00 78 	andc    r0,r28,r0                              
ffc0ffa4:	7c 00 01 24 	mtmsr   r0                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
ffc0ffa8:	83 bf 00 00 	lwz     r29,0(r31)                             
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
ffc0ffac:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
ffc0ffb0:	41 9e 00 0c 	beq-    cr7,ffc0ffbc <_Watchdog_Tickle+0x9c>   
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
ffc0ffb4:	80 1d 00 10 	lwz     r0,16(r29)                             
ffc0ffb8:	4b ff ff b0 	b       ffc0ff68 <_Watchdog_Tickle+0x48>       
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc0ffbc:	7f 80 01 24 	mtmsr   r28                                    
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
ffc0ffc0:	39 61 00 18 	addi    r11,r1,24                              
ffc0ffc4:	4b ff 11 54 	b       ffc01118 <_restgpr_28_x>               
                                                                      

ffc090bc <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
ffc090bc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc090c0:	7d 80 00 26 	mfcr    r12                                    
ffc090c4:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
ffc090c8:	7c 83 23 78 	mr      r3,r4                                  
int _rename_r(                                                        
  struct _reent *ptr __attribute__((unused)),                         
  const char    *old,                                                 
  const char    *new                                                  
)                                                                     
{                                                                     
ffc090cc:	bf 41 00 60 	stmw    r26,96(r1)                             
ffc090d0:	7c 9d 23 78 	mr      r29,r4                                 
ffc090d4:	7c bb 2b 78 	mr      r27,r5                                 
ffc090d8:	90 01 00 7c 	stw     r0,124(r1)                             
ffc090dc:	91 81 00 5c 	stw     r12,92(r1)                             
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
ffc090e0:	4b ff e7 ed 	bl      ffc078cc <rtems_filesystem_dirname>    
                                                                      
  if ( old_parent_pathlen == 0 )                                      
ffc090e4:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc090e8:	38 c1 00 24 	addi    r6,r1,36                               
ffc090ec:	40 82 00 1c 	bne-    ffc09108 <_rename_r+0x4c>              
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
ffc090f0:	7f a3 eb 78 	mr      r3,r29                                 
ffc090f4:	38 81 00 08 	addi    r4,r1,8                                
ffc090f8:	7c c5 33 78 	mr      r5,r6                                  
ffc090fc:	48 00 03 99 	bl      ffc09494 <rtems_filesystem_get_start_loc>
  rtems_filesystem_location_info_t    old_parent_loc;                 
  rtems_filesystem_location_info_t    new_parent_loc;                 
  int                                 i;                              
  int                                 result;                         
  const char                         *name;                           
  bool                                free_old_parentloc = false;     
ffc09100:	3b c0 00 00 	li      r30,0                                  
ffc09104:	48 00 00 28 	b       ffc0912c <_rename_r+0x70>              
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
                                                                      
  if ( old_parent_pathlen == 0 )                                      
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
ffc09108:	7f a3 eb 78 	mr      r3,r29                                 
ffc0910c:	7f 44 d3 78 	mr      r4,r26                                 
ffc09110:	38 a0 00 02 	li      r5,2                                   
ffc09114:	38 e0 00 00 	li      r7,0                                   
ffc09118:	4b ff e7 59 	bl      ffc07870 <rtems_filesystem_evaluate_path>
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
      return -1;                                                      
ffc0911c:	3b 80 ff ff 	li      r28,-1                                 
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
ffc09120:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09124:	40 9e 01 5c 	bne-    cr7,ffc09280 <_rename_r+0x1c4>         <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_old_parentloc = true;                                        
ffc09128:	3b c0 00 01 	li      r30,1                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
ffc0912c:	3b 81 00 10 	addi    r28,r1,16                              
ffc09130:	3b e1 00 24 	addi    r31,r1,36                              
ffc09134:	7c bf a4 aa 	lswi    r5,r31,20                              
ffc09138:	7c bc a5 aa 	stswi   r5,r28,20                              
  name = old + old_parent_pathlen;                                    
ffc0913c:	7f bd d2 14 	add     r29,r29,r26                            
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
ffc09140:	7f a3 eb 78 	mr      r3,r29                                 
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
ffc09144:	93 a1 00 0c 	stw     r29,12(r1)                             
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
ffc09148:	48 00 ef 15 	bl      ffc1805c <strlen>                      
ffc0914c:	7c 64 1b 78 	mr      r4,r3                                  
ffc09150:	7f a3 eb 78 	mr      r3,r29                                 
ffc09154:	4b ff e7 c1 	bl      ffc07914 <rtems_filesystem_prefix_separators>
ffc09158:	7f bd 1a 14 	add     r29,r29,r3                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc0915c:	7f a3 eb 78 	mr      r3,r29                                 
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
ffc09160:	93 a1 00 0c 	stw     r29,12(r1)                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc09164:	48 00 ee f9 	bl      ffc1805c <strlen>                      
ffc09168:	38 a0 00 00 	li      r5,0                                   
ffc0916c:	7c 64 1b 78 	mr      r4,r3                                  
ffc09170:	7f 86 e3 78 	mr      r6,r28                                 
ffc09174:	7f a3 eb 78 	mr      r3,r29                                 
ffc09178:	38 e0 00 00 	li      r7,0                                   
ffc0917c:	4b ff e6 71 	bl      ffc077ec <rtems_filesystem_evaluate_relative_path>
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
ffc09180:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09184:	41 be 00 18 	beq+    cr7,ffc0919c <_rename_r+0xe0>          
    if ( free_old_parentloc )                                         
ffc09188:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      rtems_filesystem_freenode( &old_parent_loc );                   
    return -1;                                                        
ffc0918c:	3b 80 ff ff 	li      r28,-1                                 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
ffc09190:	7f e3 fb 78 	mr      r3,r31                                 
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
ffc09194:	41 be 00 ec 	beq+    cr7,ffc09280 <_rename_r+0x1c4>         <== NEVER TAKEN
ffc09198:	48 00 00 e4 	b       ffc0927c <_rename_r+0x1c0>             
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
ffc0919c:	3b a1 00 38 	addi    r29,r1,56                              
ffc091a0:	7f 63 db 78 	mr      r3,r27                                 
ffc091a4:	38 81 00 08 	addi    r4,r1,8                                
ffc091a8:	7f a5 eb 78 	mr      r5,r29                                 
ffc091ac:	48 00 02 e9 	bl      ffc09494 <rtems_filesystem_get_start_loc>
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
ffc091b0:	81 21 00 44 	lwz     r9,68(r1)                              
ffc091b4:	80 61 00 08 	lwz     r3,8(r1)                               
ffc091b8:	7f a4 eb 78 	mr      r4,r29                                 
ffc091bc:	80 09 00 04 	lwz     r0,4(r9)                               
ffc091c0:	38 a1 00 0c 	addi    r5,r1,12                               
ffc091c4:	7c 7b 1a 14 	add     r3,r27,r3                              
ffc091c8:	7c 09 03 a6 	mtctr   r0                                     
ffc091cc:	4e 80 04 21 	bctrl                                          
  if ( result != 0 ) {                                                
ffc091d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc091d4:	41 be 00 28 	beq+    cr7,ffc091fc <_rename_r+0x140>         
    rtems_filesystem_freenode( &new_parent_loc );                     
ffc091d8:	7f a3 eb 78 	mr      r3,r29                                 
ffc091dc:	4b ff e9 d1 	bl      ffc07bac <rtems_filesystem_freenode>   
    if ( free_old_parentloc )                                         
ffc091e0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc091e4:	41 be 00 0c 	beq+    cr7,ffc091f0 <_rename_r+0x134>         <== NEVER TAKEN
      rtems_filesystem_freenode( &old_parent_loc );                   
ffc091e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc091ec:	4b ff e9 c1 	bl      ffc07bac <rtems_filesystem_freenode>   
    rtems_filesystem_freenode( &old_loc );                            
ffc091f0:	38 61 00 10 	addi    r3,r1,16                               
ffc091f4:	4b ff e9 b9 	bl      ffc07bac <rtems_filesystem_freenode>   
ffc091f8:	48 00 00 40 	b       ffc09238 <_rename_r+0x17c>             
  /*                                                                  
   *  Check to see if the caller is trying to rename across file system
   *  boundaries.                                                     
   */                                                                 
                                                                      
  if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {         
ffc091fc:	80 01 00 48 	lwz     r0,72(r1)                              
ffc09200:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc09204:	81 21 00 34 	lwz     r9,52(r1)                              
ffc09208:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc0920c:	41 be 00 34 	beq+    cr7,ffc09240 <_rename_r+0x184>         
    rtems_filesystem_freenode( &new_parent_loc );                     
ffc09210:	7f a3 eb 78 	mr      r3,r29                                 
ffc09214:	4b ff e9 99 	bl      ffc07bac <rtems_filesystem_freenode>   
    if ( free_old_parentloc )                                         
ffc09218:	41 b2 00 0c 	beq+    cr4,ffc09224 <_rename_r+0x168>         
      rtems_filesystem_freenode( &old_parent_loc );                   
ffc0921c:	7f e3 fb 78 	mr      r3,r31                                 
ffc09220:	4b ff e9 8d 	bl      ffc07bac <rtems_filesystem_freenode>   
    rtems_filesystem_freenode( &old_loc );                            
ffc09224:	38 61 00 10 	addi    r3,r1,16                               
ffc09228:	4b ff e9 85 	bl      ffc07bac <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( EXDEV );                    
ffc0922c:	48 00 b4 bd 	bl      ffc146e8 <__errno>                     
ffc09230:	38 00 00 12 	li      r0,18                                  
ffc09234:	90 03 00 00 	stw     r0,0(r3)                               
ffc09238:	3b 80 ff ff 	li      r28,-1                                 
ffc0923c:	48 00 00 44 	b       ffc09280 <_rename_r+0x1c4>             
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
ffc09240:	81 21 00 44 	lwz     r9,68(r1)                              
ffc09244:	7f 84 e3 78 	mr      r4,r28                                 
ffc09248:	7f e3 fb 78 	mr      r3,r31                                 
ffc0924c:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc09250:	80 09 00 40 	lwz     r0,64(r9)                              
ffc09254:	7f a5 eb 78 	mr      r5,r29                                 
ffc09258:	7c 09 03 a6 	mtctr   r0                                     
ffc0925c:	4e 80 04 21 	bctrl                                          
ffc09260:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
ffc09264:	7f a3 eb 78 	mr      r3,r29                                 
ffc09268:	4b ff e9 45 	bl      ffc07bac <rtems_filesystem_freenode>   
  if ( free_old_parentloc )                                           
ffc0926c:	41 b2 00 0c 	beq+    cr4,ffc09278 <_rename_r+0x1bc>         
    rtems_filesystem_freenode( &old_parent_loc );                     
ffc09270:	7f e3 fb 78 	mr      r3,r31                                 
ffc09274:	4b ff e9 39 	bl      ffc07bac <rtems_filesystem_freenode>   
  rtems_filesystem_freenode( &old_loc );                              
ffc09278:	38 61 00 10 	addi    r3,r1,16                               
ffc0927c:	4b ff e9 31 	bl      ffc07bac <rtems_filesystem_freenode>   
                                                                      
  return result;                                                      
}                                                                     
ffc09280:	81 81 00 5c 	lwz     r12,92(r1)                             
ffc09284:	39 61 00 78 	addi    r11,r1,120                             
ffc09288:	7f 83 e3 78 	mr      r3,r28                                 
ffc0928c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc09290:	4b ff a2 d0 	b       ffc03560 <_restgpr_26_x>               
                                                                      

ffc042b4 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
ffc042b4:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc042b8:	7c 08 02 a6 	mflr    r0                                     
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
ffc042bc:	3d 20 00 00 	lis     r9,0                                   
#include <rtems/seterr.h>                                             
                                                                      
int chroot(                                                           
  const char *pathname                                                
)                                                                     
{                                                                     
ffc042c0:	bf a1 00 2c 	stmw    r29,44(r1)                             
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
ffc042c4:	3f c0 00 00 	lis     r30,0                                  
#include <rtems/seterr.h>                                             
                                                                      
int chroot(                                                           
  const char *pathname                                                
)                                                                     
{                                                                     
ffc042c8:	7c 7d 1b 78 	mr      r29,r3                                 
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
ffc042cc:	83 fe 26 b4 	lwz     r31,9908(r30)                          
#include <rtems/seterr.h>                                             
                                                                      
int chroot(                                                           
  const char *pathname                                                
)                                                                     
{                                                                     
ffc042d0:	90 01 00 3c 	stw     r0,60(r1)                              
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
ffc042d4:	38 09 2a c8 	addi    r0,r9,10952                            
ffc042d8:	7f 9f 00 00 	cmpw    cr7,r31,r0                             
ffc042dc:	40 be 00 24 	bne+    cr7,ffc04300 <chroot+0x4c>             
   rtems_libio_set_private_env(); /* try to set a new private env*/   
ffc042e0:	48 00 15 31 	bl      ffc05810 <rtems_libio_set_private_env> 
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
ffc042e4:	80 1e 26 b4 	lwz     r0,9908(r30)                           
ffc042e8:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc042ec:	40 be 00 14 	bne+    cr7,ffc04300 <chroot+0x4c>             
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
ffc042f0:	48 00 c3 c1 	bl      ffc106b0 <__errno>                     
ffc042f4:	38 00 00 86 	li      r0,134                                 
ffc042f8:	90 03 00 00 	stw     r0,0(r3)                               
ffc042fc:	48 00 00 28 	b       ffc04324 <chroot+0x70>                 
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
ffc04300:	7f a3 eb 78 	mr      r3,r29                                 
ffc04304:	48 00 8a 01 	bl      ffc0cd04 <chdir>                       
  if (result) {                                                       
ffc04308:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0430c:	41 be 00 20 	beq+    cr7,ffc0432c <chroot+0x78>             
    rtems_set_errno_and_return_minus_one( errno );                    
ffc04310:	48 00 c3 a1 	bl      ffc106b0 <__errno>                     
ffc04314:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04318:	48 00 c3 99 	bl      ffc106b0 <__errno>                     
ffc0431c:	80 03 00 00 	lwz     r0,0(r3)                               
ffc04320:	90 1f 00 00 	stw     r0,0(r31)                              
ffc04324:	38 60 ff ff 	li      r3,-1                                  
ffc04328:	48 00 00 50 	b       ffc04378 <chroot+0xc4>                 
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
ffc0432c:	3c 60 ff c1 	lis     r3,-63                                 
ffc04330:	3b e1 00 08 	addi    r31,r1,8                               
ffc04334:	38 63 73 80 	addi    r3,r3,29568                            
ffc04338:	38 80 00 01 	li      r4,1                                   
ffc0433c:	38 a0 00 00 	li      r5,0                                   
ffc04340:	7f e6 fb 78 	mr      r6,r31                                 
ffc04344:	38 e0 00 00 	li      r7,0                                   
ffc04348:	48 00 01 49 	bl      ffc04490 <rtems_filesystem_evaluate_path>
ffc0434c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04350:	40 be ff c0 	bne-    cr7,ffc04310 <chroot+0x5c>             <== NEVER TAKEN
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
ffc04354:	3f c0 00 00 	lis     r30,0                                  
ffc04358:	80 7e 26 b4 	lwz     r3,9908(r30)                           
ffc0435c:	38 63 00 18 	addi    r3,r3,24                               
ffc04360:	48 00 02 25 	bl      ffc04584 <rtems_filesystem_freenode>   
  rtems_filesystem_root = loc;                                        
ffc04364:	81 7e 26 b4 	lwz     r11,9908(r30)                          
                                                                      
  return 0;                                                           
ffc04368:	38 60 00 00 	li      r3,0                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
  rtems_filesystem_root = loc;                                        
ffc0436c:	39 6b 00 18 	addi    r11,r11,24                             
ffc04370:	7c bf a4 aa 	lswi    r5,r31,20                              
ffc04374:	7c ab a5 aa 	stswi   r5,r11,20                              
                                                                      
  return 0;                                                           
}                                                                     
ffc04378:	39 61 00 38 	addi    r11,r1,56                              
ffc0437c:	48 01 11 04 	b       ffc15480 <_restgpr_29_x>               
                                                                      

ffc0797c <clock_gettime>: int clock_gettime( clockid_t clock_id, struct timespec *tp ) {
ffc0797c:	7c 08 02 a6 	mflr    r0                                     
ffc07980:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc07984:	90 01 00 0c 	stw     r0,12(r1)                              
ffc07988:	7c 60 1b 78 	mr      r0,r3                                  
  if ( !tp )                                                          
ffc0798c:	7c 83 23 79 	mr.     r3,r4                                  
ffc07990:	41 82 00 44 	beq-    ffc079d4 <clock_gettime+0x58>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
ffc07994:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc07998:	40 be 00 0c 	bne+    cr7,ffc079a4 <clock_gettime+0x28>      
    _TOD_Get(tp);                                                     
ffc0799c:	48 00 21 75 	bl      ffc09b10 <_TOD_Get>                    
ffc079a0:	48 00 00 18 	b       ffc079b8 <clock_gettime+0x3c>          
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
ffc079a4:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc079a8:	41 9e 00 0c 	beq-    cr7,ffc079b4 <clock_gettime+0x38>      <== NEVER TAKEN
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME ) {                          
ffc079ac:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc079b0:	40 be 00 10 	bne+    cr7,ffc079c0 <clock_gettime+0x44>      
    _TOD_Get_uptime_as_timespec( tp );                                
ffc079b4:	48 00 21 e9 	bl      ffc09b9c <_TOD_Get_uptime_as_timespec> 
    return 0;                                                         
ffc079b8:	38 60 00 00 	li      r3,0                                   
ffc079bc:	48 00 00 28 	b       ffc079e4 <clock_gettime+0x68>          
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME )                             
ffc079c0:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc079c4:	40 be 00 10 	bne+    cr7,ffc079d4 <clock_gettime+0x58>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc079c8:	48 00 9b b5 	bl      ffc1157c <__errno>                     
ffc079cc:	38 00 00 58 	li      r0,88                                  
ffc079d0:	48 00 00 0c 	b       ffc079dc <clock_gettime+0x60>          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
ffc079d4:	48 00 9b a9 	bl      ffc1157c <__errno>                     
ffc079d8:	38 00 00 16 	li      r0,22                                  
ffc079dc:	90 03 00 00 	stw     r0,0(r3)                               
ffc079e0:	38 60 ff ff 	li      r3,-1                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc079e4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc079e8:	38 21 00 08 	addi    r1,r1,8                                
ffc079ec:	7c 08 03 a6 	mtlr    r0                                     
ffc079f0:	4e 80 00 20 	blr                                            
                                                                      

ffc079f4 <clock_settime>: int clock_settime( clockid_t clock_id, const struct timespec *tp ) {
ffc079f4:	7c 08 02 a6 	mflr    r0                                     
ffc079f8:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc079fc:	90 01 00 0c 	stw     r0,12(r1)                              
ffc07a00:	7c 60 1b 78 	mr      r0,r3                                  
  if ( !tp )                                                          
ffc07a04:	7c 83 23 79 	mr.     r3,r4                                  
ffc07a08:	41 82 00 5c 	beq-    ffc07a64 <clock_settime+0x70>          <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
ffc07a0c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc07a10:	40 be 00 38 	bne+    cr7,ffc07a48 <clock_settime+0x54>      
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
ffc07a14:	81 23 00 00 	lwz     r9,0(r3)                               
ffc07a18:	3c 00 21 da 	lis     r0,8666                                
ffc07a1c:	60 00 e4 ff 	ori     r0,r0,58623                            
ffc07a20:	7f 89 00 40 	cmplw   cr7,r9,r0                              
ffc07a24:	40 9d 00 40 	ble-    cr7,ffc07a64 <clock_settime+0x70>      
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc07a28:	3d 20 00 00 	lis     r9,0                                   
ffc07a2c:	81 69 28 00 	lwz     r11,10240(r9)                          
ffc07a30:	38 0b 00 01 	addi    r0,r11,1                               
ffc07a34:	90 09 28 00 	stw     r0,10240(r9)                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
ffc07a38:	48 00 21 d5 	bl      ffc09c0c <_TOD_Set>                    
    _Thread_Enable_dispatch();                                        
ffc07a3c:	48 00 35 f9 	bl      ffc0b034 <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
ffc07a40:	38 60 00 00 	li      r3,0                                   
ffc07a44:	48 00 00 30 	b       ffc07a74 <clock_settime+0x80>          
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
#ifdef _POSIX_CPUTIME                                                 
  else if ( clock_id == CLOCK_PROCESS_CPUTIME )                       
ffc07a48:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc07a4c:	41 9e 00 0c 	beq-    cr7,ffc07a58 <clock_settime+0x64>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME )                        
ffc07a50:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc07a54:	40 be 00 10 	bne+    cr7,ffc07a64 <clock_settime+0x70>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc07a58:	48 00 9b 25 	bl      ffc1157c <__errno>                     
ffc07a5c:	38 00 00 58 	li      r0,88                                  
ffc07a60:	48 00 00 0c 	b       ffc07a6c <clock_settime+0x78>          
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc07a64:	48 00 9b 19 	bl      ffc1157c <__errno>                     
ffc07a68:	38 00 00 16 	li      r0,22                                  
ffc07a6c:	90 03 00 00 	stw     r0,0(r3)                               
ffc07a70:	38 60 ff ff 	li      r3,-1                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc07a74:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07a78:	38 21 00 08 	addi    r1,r1,8                                
ffc07a7c:	7c 08 03 a6 	mtlr    r0                                     
ffc07a80:	4e 80 00 20 	blr                                            
                                                                      

ffc0b6e0 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
ffc0b6e0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0b6e4:	7c 08 02 a6 	mflr    r0                                     
ffc0b6e8:	90 01 00 2c 	stw     r0,44(r1)                              
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
ffc0b6ec:	54 a0 00 39 	rlwinm. r0,r5,0,0,28                           
  const char                        *pathname,                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
ffc0b6f0:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc0b6f4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0b6f8:	7c 9f 23 78 	mr      r31,r4                                 
ffc0b6fc:	7c dd 33 78 	mr      r29,r6                                 
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
ffc0b700:	41 a2 00 10 	beq+    ffc0b710 <devFS_evaluate_path+0x30>    <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0b704:	48 00 2a 71 	bl      ffc0e174 <__errno>                     <== NOT EXECUTED
ffc0b708:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc0b70c:	48 00 00 a0 	b       ffc0b7ac <devFS_evaluate_path+0xcc>    <== NOT EXECUTED
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
ffc0b710:	83 86 00 00 	lwz     r28,0(r6)                              
  if (!device_name_table)                                             
ffc0b714:	3b 60 00 00 	li      r27,0                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
ffc0b718:	3f 20 00 00 	lis     r25,0                                  
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
ffc0b71c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0b720:	40 be 00 78 	bne+    cr7,ffc0b798 <devFS_evaluate_path+0xb8>
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc0b724:	48 00 2a 51 	bl      ffc0e174 <__errno>                     
ffc0b728:	38 00 00 0e 	li      r0,14                                  
ffc0b72c:	48 00 00 80 	b       ffc0b7ac <devFS_evaluate_path+0xcc>    
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
ffc0b730:	83 5c 00 00 	lwz     r26,0(r28)                             
ffc0b734:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0b738:	41 9e 00 58 	beq-    cr7,ffc0b790 <devFS_evaluate_path+0xb0>
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0b73c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b740:	7f 44 d3 78 	mr      r4,r26                                 
ffc0b744:	7f e5 fb 78 	mr      r5,r31                                 
ffc0b748:	48 00 3b 61 	bl      ffc0f2a8 <strncmp>                     
ffc0b74c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b750:	40 9e 00 40 	bne-    cr7,ffc0b790 <devFS_evaluate_path+0xb0>
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
ffc0b754:	7c 1a f8 ae 	lbzx    r0,r26,r31                             
ffc0b758:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0b75c:	40 be 00 34 	bne+    cr7,ffc0b790 <devFS_evaluate_path+0xb0><== NEVER TAKEN
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
ffc0b760:	3d 20 00 00 	lis     r9,0                                   
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
ffc0b764:	93 9d 00 00 	stw     r28,0(r29)                             
    pathloc->handlers = &devFS_file_handlers;                         
ffc0b768:	38 09 21 68 	addi    r0,r9,8552                             
    pathloc->ops = &devFS_ops;                                        
ffc0b76c:	3d 20 00 00 	lis     r9,0                                   
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
ffc0b770:	90 1d 00 08 	stw     r0,8(r29)                              
    pathloc->ops = &devFS_ops;                                        
ffc0b774:	38 09 21 a0 	addi    r0,r9,8608                             
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
ffc0b778:	3d 20 00 00 	lis     r9,0                                   
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
ffc0b77c:	90 1d 00 0c 	stw     r0,12(r29)                             
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
ffc0b780:	81 29 27 5c 	lwz     r9,10076(r9)                           
ffc0b784:	80 09 00 28 	lwz     r0,40(r9)                              
ffc0b788:	90 1d 00 10 	stw     r0,16(r29)                             
    return 0;                                                         
ffc0b78c:	48 00 00 28 	b       ffc0b7b4 <devFS_evaluate_path+0xd4>    
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
ffc0b790:	3b 7b 00 01 	addi    r27,r27,1                              
ffc0b794:	3b 9c 00 14 	addi    r28,r28,20                             
ffc0b798:	80 19 27 10 	lwz     r0,10000(r25)                          
ffc0b79c:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc0b7a0:	41 9c ff 90 	blt+    cr7,ffc0b730 <devFS_evaluate_path+0x50>
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
ffc0b7a4:	48 00 29 d1 	bl      ffc0e174 <__errno>                     
ffc0b7a8:	38 00 00 02 	li      r0,2                                   
ffc0b7ac:	90 03 00 00 	stw     r0,0(r3)                               
ffc0b7b0:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0b7b4:	39 61 00 28 	addi    r11,r1,40                              
ffc0b7b8:	48 00 6e 80 	b       ffc12638 <_restgpr_25_x>               
                                                                      

ffc03a14 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
ffc03a14:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc03a18:	7c 08 02 a6 	mflr    r0                                     
ffc03a1c:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc03a20:	7c 7f 1b 78 	mr      r31,r3                                 
ffc03a24:	7c 9e 23 78 	mr      r30,r4                                 
ffc03a28:	90 01 00 2c 	stw     r0,44(r1)                              
ffc03a2c:	7c bd 2b 78 	mr      r29,r5                                 
ffc03a30:	7c dc 33 78 	mr      r28,r6                                 
   * condition and do not create the '/dev' and the 'path'            
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
ffc03a34:	88 03 00 00 	lbz     r0,0(r3)                               
ffc03a38:	2f 80 00 64 	cmpwi   cr7,r0,100                             
ffc03a3c:	40 be 00 2c 	bne+    cr7,ffc03a68 <devFS_mknod+0x54>        
ffc03a40:	88 03 00 01 	lbz     r0,1(r3)                               
ffc03a44:	2f 80 00 65 	cmpwi   cr7,r0,101                             
ffc03a48:	40 be 00 20 	bne+    cr7,ffc03a68 <devFS_mknod+0x54>        <== NEVER TAKEN
ffc03a4c:	88 03 00 02 	lbz     r0,2(r3)                               
ffc03a50:	2f 80 00 76 	cmpwi   cr7,r0,118                             
ffc03a54:	40 be 00 14 	bne+    cr7,ffc03a68 <devFS_mknod+0x54>        <== NEVER TAKEN
      (path[2] == 'v') && (path[3] == '\0'))                          
ffc03a58:	88 03 00 03 	lbz     r0,3(r3)                               
      return 0;                                                       
ffc03a5c:	38 60 00 00 	li      r3,0                                   
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
      (path[2] == 'v') && (path[3] == '\0'))                          
ffc03a60:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc03a64:	41 9e 00 e4 	beq-    cr7,ffc03b48 <devFS_mknod+0x134>       
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
ffc03a68:	57 c0 04 26 	rlwinm  r0,r30,0,16,19                         
ffc03a6c:	2f 80 60 00 	cmpwi   cr7,r0,24576                           
ffc03a70:	41 9e 00 18 	beq-    cr7,ffc03a88 <devFS_mknod+0x74>        
ffc03a74:	2f 80 20 00 	cmpwi   cr7,r0,8192                            
ffc03a78:	41 be 00 10 	beq+    cr7,ffc03a88 <devFS_mknod+0x74>        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc03a7c:	48 00 a6 f9 	bl      ffc0e174 <__errno>                     
ffc03a80:	38 00 00 16 	li      r0,22                                  
ffc03a84:	48 00 00 28 	b       ffc03aac <devFS_mknod+0x98>            
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
ffc03a88:	83 47 00 00 	lwz     r26,0(r7)                              
  if (!device_name_table)                                             
ffc03a8c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc03a90:	41 9e 00 14 	beq-    cr7,ffc03aa4 <devFS_mknod+0x90>        
ffc03a94:	3b 20 ff ff 	li      r25,-1                                 
ffc03a98:	3b 60 00 00 	li      r27,0                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
ffc03a9c:	3f 00 00 00 	lis     r24,0                                  
ffc03aa0:	48 00 00 4c 	b       ffc03aec <devFS_mknod+0xd8>            
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc03aa4:	48 00 a6 d1 	bl      ffc0e174 <__errno>                     
ffc03aa8:	38 00 00 0e 	li      r0,14                                  
ffc03aac:	90 03 00 00 	stw     r0,0(r3)                               
ffc03ab0:	38 60 ff ff 	li      r3,-1                                  
ffc03ab4:	48 00 00 94 	b       ffc03b48 <devFS_mknod+0x134>           
#include <stdlib.h>                                                   
                                                                      
#include <rtems/seterr.h>                                             
#include "devfs.h"                                                    
                                                                      
int devFS_mknod(                                                      
ffc03ab8:	1c 1b 00 14 	mulli   r0,r27,20                              
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
ffc03abc:	7c 9a 00 2e 	lwzx    r4,r26,r0                              
ffc03ac0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc03ac4:	41 9e 00 20 	beq-    cr7,ffc03ae4 <devFS_mknod+0xd0>        
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
ffc03ac8:	7f e3 fb 78 	mr      r3,r31                                 
ffc03acc:	48 00 b6 85 	bl      ffc0f150 <strcmp>                      
ffc03ad0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc03ad4:	40 be 00 14 	bne+    cr7,ffc03ae8 <devFS_mknod+0xd4>        
              rtems_set_errno_and_return_minus_one( EEXIST );         
ffc03ad8:	48 00 a6 9d 	bl      ffc0e174 <__errno>                     
ffc03adc:	38 00 00 11 	li      r0,17                                  
ffc03ae0:	4b ff ff cc 	b       ffc03aac <devFS_mknod+0x98>            
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
          slot = i;                                                   
ffc03ae4:	7f 79 db 78 	mr      r25,r27                                
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
ffc03ae8:	3b 7b 00 01 	addi    r27,r27,1                              
ffc03aec:	80 18 27 10 	lwz     r0,10000(r24)                          
ffc03af0:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc03af4:	41 9c ff c4 	blt+    cr7,ffc03ab8 <devFS_mknod+0xa4>        
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
ffc03af8:	2f 99 ff ff 	cmpwi   cr7,r25,-1                             
ffc03afc:	40 be 00 10 	bne+    cr7,ffc03b0c <devFS_mknod+0xf8>        
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
ffc03b00:	48 00 a6 75 	bl      ffc0e174 <__errno>                     
ffc03b04:	38 00 00 0c 	li      r0,12                                  
ffc03b08:	4b ff ff a4 	b       ffc03aac <devFS_mknod+0x98>            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc03b0c:	7f 00 00 a6 	mfmsr   r24                                    
ffc03b10:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc03b14:	7f 00 00 78 	andc    r0,r24,r0                              
ffc03b18:	7c 00 01 24 	mtmsr   r0                                     
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
ffc03b1c:	1f 39 00 14 	mulli   r25,r25,20                             
ffc03b20:	7f fa c9 2e 	stwx    r31,r26,r25                            
  device_name_table[slot].device_name_length = strlen(path);          
ffc03b24:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
ffc03b28:	7f 7a ca 14 	add     r27,r26,r25                            
  device_name_table[slot].device_name_length = strlen(path);          
ffc03b2c:	48 00 b6 d9 	bl      ffc0f204 <strlen>                      
  device_name_table[slot].major = major;                              
ffc03b30:	93 bb 00 08 	stw     r29,8(r27)                             
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
  device_name_table[slot].device_name_length = strlen(path);          
ffc03b34:	90 7b 00 04 	stw     r3,4(r27)                              
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
ffc03b38:	93 9b 00 0c 	stw     r28,12(r27)                            
  device_name_table[slot].mode  = mode;                               
ffc03b3c:	93 db 00 10 	stw     r30,16(r27)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc03b40:	7f 00 01 24 	mtmsr   r24                                    
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
ffc03b44:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc03b48:	39 61 00 28 	addi    r11,r1,40                              
ffc03b4c:	48 00 ea e8 	b       ffc12634 <_restgpr_24_x>               
                                                                      

ffc06378 <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
ffc06378:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0637c:	7c 08 02 a6 	mflr    r0                                     
ffc06380:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc06384:	80 03 00 b4 	lwz     r0,180(r3)                             
/*                                                                    
 * Drain output queue                                                 
 */                                                                   
static void                                                           
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
ffc06388:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0638c:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc06390:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06394:	41 be 00 4c 	beq+    cr7,ffc063e0 <drainOutput+0x68>        
    rtems_interrupt_disable (level);                                  
ffc06398:	4b ff ff cd 	bl      ffc06364 <ppc_interrupt_disable>       
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
ffc0639c:	3b c0 00 02 	li      r30,2                                  
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    rtems_interrupt_disable (level);                                  
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
ffc063a0:	48 00 00 2c 	b       ffc063cc <drainOutput+0x54>            
      tty->rawOutBufState = rob_wait;                                 
ffc063a4:	93 df 00 94 	stw     r30,148(r31)                           <== NOT EXECUTED
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc063a8:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc063ac:	80 7f 00 8c 	lwz     r3,140(r31)                            <== NOT EXECUTED
ffc063b0:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc063b4:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc063b8:	48 00 27 4d 	bl      ffc08b04 <rtems_semaphore_obtain>      <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc063bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc063c0:	41 be 00 08 	beq+    cr7,ffc063c8 <drainOutput+0x50>        <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
ffc063c4:	48 00 2e ad 	bl      ffc09270 <rtems_fatal_error_occurred>  <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
ffc063c8:	4b ff ff 9d 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    rtems_interrupt_disable (level);                                  
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
ffc063cc:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc063d0:	80 1f 00 80 	lwz     r0,128(r31)                            
ffc063d4:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc063d8:	40 9e ff cc 	bne+    cr7,ffc063a4 <drainOutput+0x2c>        <== NEVER TAKEN
ffc063dc:	7c 60 01 24 	mtmsr   r3                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    rtems_interrupt_enable (level);                                   
  }                                                                   
}                                                                     
ffc063e0:	39 61 00 10 	addi    r11,r1,16                              
ffc063e4:	48 01 2c f8 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc07054 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
ffc07054:	7c 08 02 a6 	mflr    r0                                     
ffc07058:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0705c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc07060:	90 01 00 24 	stw     r0,36(r1)                              
ffc07064:	48 01 20 31 	bl      ffc19094 <_savegpr_31>                 
ffc07068:	7c 9f 23 78 	mr      r31,r4                                 
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc0706c:	80 04 00 3c 	lwz     r0,60(r4)                              
ffc07070:	70 09 02 00 	andi.   r9,r0,512                              
ffc07074:	41 82 00 5c 	beq-    ffc070d0 <echo+0x7c>                   <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07078:	3d 20 00 00 	lis     r9,0                                   
ffc0707c:	81 29 26 f8 	lwz     r9,9976(r9)                            
ffc07080:	7d 29 1a 14 	add     r9,r9,r3                               
ffc07084:	88 09 00 01 	lbz     r0,1(r9)                               
 * Echo a typed character                                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc07088:	70 09 00 20 	andi.   r9,r0,32                               
ffc0708c:	41 82 00 44 	beq-    ffc070d0 <echo+0x7c>                   
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07090:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc07094:	41 9e 00 3c 	beq-    cr7,ffc070d0 <echo+0x7c>               
ffc07098:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc0709c:	41 be 00 34 	beq+    cr7,ffc070d0 <echo+0x7c>               
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
ffc070a0:	68 63 00 40 	xori    r3,r3,64                               
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
ffc070a4:	38 00 00 5e 	li      r0,94                                  
    echobuf[1] = c ^ 0x40;                                            
ffc070a8:	98 61 00 09 	stb     r3,9(r1)                               
    rtems_termios_puts (echobuf, 2, tty);                             
ffc070ac:	38 80 00 02 	li      r4,2                                   
ffc070b0:	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] = '^';                                                 
ffc070b4:	98 01 00 08 	stb     r0,8(r1)                               
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
ffc070b8:	7f e5 fb 78 	mr      r5,r31                                 
ffc070bc:	4b ff fd 05 	bl      ffc06dc0 <rtems_termios_puts>          
    tty->column += 2;                                                 
ffc070c0:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc070c4:	38 09 00 02 	addi    r0,r9,2                                
ffc070c8:	90 1f 00 28 	stw     r0,40(r31)                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc070cc:	48 00 00 0c 	b       ffc070d8 <echo+0x84>                   
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
ffc070d0:	7f e4 fb 78 	mr      r4,r31                                 
ffc070d4:	4b ff fe 15 	bl      ffc06ee8 <oproc>                       
  }                                                                   
}                                                                     
ffc070d8:	39 61 00 20 	addi    r11,r1,32                              
ffc070dc:	48 01 20 04 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc05584 <endgrent>: void endgrent(void) { if (group_fp != NULL)
ffc05584:	3d 20 00 00 	lis     r9,0                                   
    fclose(group_fp);                                                 
  group_fp = fopen("/etc/group", "r");                                
}                                                                     
                                                                      
void endgrent(void)                                                   
{                                                                     
ffc05588:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0558c:	7c 08 02 a6 	mflr    r0                                     
  if (group_fp != NULL)                                               
ffc05590:	80 69 2a 30 	lwz     r3,10800(r9)                           
    fclose(group_fp);                                                 
  group_fp = fopen("/etc/group", "r");                                
}                                                                     
                                                                      
void endgrent(void)                                                   
{                                                                     
ffc05594:	90 01 00 0c 	stw     r0,12(r1)                              
  if (group_fp != NULL)                                               
ffc05598:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0559c:	41 9e 00 08 	beq-    cr7,ffc055a4 <endgrent+0x20>           <== NEVER TAKEN
    fclose(group_fp);                                                 
ffc055a0:	48 00 bf f1 	bl      ffc11590 <fclose>                      
}                                                                     
ffc055a4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc055a8:	38 21 00 08 	addi    r1,r1,8                                
ffc055ac:	7c 08 03 a6 	mtlr    r0                                     
ffc055b0:	4e 80 00 20 	blr                                            
                                                                      

ffc053c4 <endpwent>: void endpwent(void) { if (passwd_fp != NULL)
ffc053c4:	3d 20 00 00 	lis     r9,0                                   
    fclose(passwd_fp);                                                
  passwd_fp = fopen("/etc/passwd", "r");                              
}                                                                     
                                                                      
void endpwent(void)                                                   
{                                                                     
ffc053c8:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc053cc:	7c 08 02 a6 	mflr    r0                                     
  if (passwd_fp != NULL)                                              
ffc053d0:	80 69 29 54 	lwz     r3,10580(r9)                           
    fclose(passwd_fp);                                                
  passwd_fp = fopen("/etc/passwd", "r");                              
}                                                                     
                                                                      
void endpwent(void)                                                   
{                                                                     
ffc053d4:	90 01 00 0c 	stw     r0,12(r1)                              
  if (passwd_fp != NULL)                                              
ffc053d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc053dc:	41 9e 00 08 	beq-    cr7,ffc053e4 <endpwent+0x20>           <== NEVER TAKEN
    fclose(passwd_fp);                                                
ffc053e0:	48 00 c1 b1 	bl      ffc11590 <fclose>                      
}                                                                     
ffc053e4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc053e8:	38 21 00 08 	addi    r1,r1,8                                
ffc053ec:	7c 08 03 a6 	mtlr    r0                                     
ffc053f0:	4e 80 00 20 	blr                                            
                                                                      

ffc070e0 <erase>: * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) {
ffc070e0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc070e4:	7c 08 02 a6 	mflr    r0                                     
ffc070e8:	7d 80 00 26 	mfcr    r12                                    
ffc070ec:	90 01 00 24 	stw     r0,36(r1)                              
  if (tty->ccount == 0)                                               
ffc070f0:	80 03 00 20 	lwz     r0,32(r3)                              
 * 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)                   
{                                                                     
ffc070f4:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc070f8:	7c 7f 1b 78 	mr      r31,r3                                 
  if (tty->ccount == 0)                                               
ffc070fc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
 * 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)                   
{                                                                     
ffc07100:	91 81 00 08 	stw     r12,8(r1)                              
  if (tty->ccount == 0)                                               
ffc07104:	41 9e 01 d8 	beq-    cr7,ffc072dc <erase+0x1fc>             
    return;                                                           
  if (lineFlag) {                                                     
ffc07108:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0710c:	41 9e 01 ac 	beq-    cr7,ffc072b8 <erase+0x1d8>             
    if (!(tty->termios.c_lflag & ECHO)) {                             
ffc07110:	80 03 00 3c 	lwz     r0,60(r3)                              
ffc07114:	70 09 00 08 	andi.   r9,r0,8                                
ffc07118:	40 a2 00 0c 	bne+    ffc07124 <erase+0x44>                  <== ALWAYS TAKEN
      tty->ccount = 0;                                                
ffc0711c:	91 23 00 20 	stw     r9,32(r3)                              <== NOT EXECUTED
      return;                                                         
ffc07120:	48 00 01 bc 	b       ffc072dc <erase+0x1fc>                 <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
ffc07124:	70 00 00 10 	andi.   r0,r0,16                               
ffc07128:	40 a2 01 90 	bne+    ffc072b8 <erase+0x1d8>                 <== ALWAYS TAKEN
      tty->ccount = 0;                                                
ffc0712c:	90 03 00 20 	stw     r0,32(r3)                              <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
ffc07130:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc07134:	88 63 00 44 	lbz     r3,68(r3)                              <== NOT EXECUTED
ffc07138:	4b ff ff 1d 	bl      ffc07054 <echo>                        <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
ffc0713c:	80 1f 00 3c 	lwz     r0,60(r31)                             <== NOT EXECUTED
        echo ('\n', tty);                                             
ffc07140:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
      if (tty->termios.c_lflag & ECHOK)                               
ffc07144:	70 07 00 20 	andi.   r7,r0,32                               <== NOT EXECUTED
ffc07148:	41 a2 01 94 	beq+    ffc072dc <erase+0x1fc>                 <== NOT EXECUTED
ffc0714c:	48 00 00 30 	b       ffc0717c <erase+0x9c>                  <== NOT EXECUTED
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc07150:	80 1f 00 3c 	lwz     r0,60(r31)                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc07154:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07158:	81 5f 00 1c 	lwz     r10,28(r31)                            
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc0715c:	70 0b 00 08 	andi.   r11,r0,8                               
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc07160:	91 3f 00 20 	stw     r9,32(r31)                             
ffc07164:	7f ca 48 ae 	lbzx    r30,r10,r9                             
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc07168:	41 82 01 48 	beq-    ffc072b0 <erase+0x1d0>                 <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
ffc0716c:	40 92 00 30 	bne-    cr4,ffc0719c <erase+0xbc>              
ffc07170:	70 07 00 10 	andi.   r7,r0,16                               
ffc07174:	40 a2 00 28 	bne+    ffc0719c <erase+0xbc>                  <== ALWAYS TAKEN
        echo (tty->termios.c_cc[VERASE], tty);                        
ffc07178:	88 7f 00 43 	lbz     r3,67(r31)                             <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc0717c:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
ffc07180:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc07184:	81 81 00 08 	lwz     r12,8(r1)                              <== NOT EXECUTED
ffc07188:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0718c:	bb 61 00 0c 	lmw     r27,12(r1)                             <== NOT EXECUTED
ffc07190:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc07194:	7d 80 81 20 	mtcrf   8,r12                                  <== 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);                        
ffc07198:	4b ff fe bc 	b       ffc07054 <echo>                        <== NOT EXECUTED
      } else if (c == '\t') {                                         
ffc0719c:	2f 9e 00 09 	cmpwi   cr7,r30,9                              
ffc071a0:	40 be 00 90 	bne+    cr7,ffc07230 <erase+0x150>             
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc071a4:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
        int col = tty->read_start_column;                             
ffc071a8:	83 df 00 2c 	lwz     r30,44(r31)                            
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
ffc071ac:	81 1d 26 f8 	lwz     r8,9976(r29)                           
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
        int col = tty->read_start_column;                             
        int i = 0;                                                    
ffc071b0:	39 60 00 00 	li      r11,0                                  
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc071b4:	70 07 02 00 	andi.   r7,r0,512                              
ffc071b8:	7d 29 03 a6 	mtctr   r9                                     
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc071bc:	48 00 00 40 	b       ffc071fc <erase+0x11c>                 
          c = tty->cbuf[i++];                                         
ffc071c0:	7c 0a 58 ae 	lbzx    r0,r10,r11                             
ffc071c4:	39 6b 00 01 	addi    r11,r11,1                              
          if (c == '\t') {                                            
ffc071c8:	2f 80 00 09 	cmpwi   cr7,r0,9                               
ffc071cc:	40 be 00 0c 	bne+    cr7,ffc071d8 <erase+0xf8>              
            col = (col | 7) + 1;                                      
ffc071d0:	63 de 00 07 	ori     r30,r30,7                              
ffc071d4:	48 00 00 24 	b       ffc071f8 <erase+0x118>                 
          } else if (iscntrl (c)) {                                   
ffc071d8:	7d 28 02 14 	add     r9,r8,r0                               
ffc071dc:	88 09 00 01 	lbz     r0,1(r9)                               
ffc071e0:	54 09 df fe 	rlwinm  r9,r0,27,31,31                         
ffc071e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc071e8:	41 9e 00 10 	beq-    cr7,ffc071f8 <erase+0x118>             <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc071ec:	41 82 00 10 	beq-    ffc071fc <erase+0x11c>                 <== NOT EXECUTED
              col += 2;                                               
ffc071f0:	3b de 00 02 	addi    r30,r30,2                              <== NOT EXECUTED
ffc071f4:	48 00 00 08 	b       ffc071fc <erase+0x11c>                 <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
ffc071f8:	3b de 00 01 	addi    r30,r30,1                              
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc071fc:	42 00 ff c4 	bdnz+   ffc071c0 <erase+0xe0>                  
ffc07200:	48 00 00 20 	b       ffc07220 <erase+0x140>                 
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc07204:	7f 63 db 78 	mr      r3,r27                                 
ffc07208:	38 80 00 01 	li      r4,1                                   
ffc0720c:	7f e5 fb 78 	mr      r5,r31                                 
ffc07210:	4b ff fb b1 	bl      ffc06dc0 <rtems_termios_puts>          
          tty->column--;                                              
ffc07214:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07218:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0721c:	90 1f 00 28 	stw     r0,40(r31)                             
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
ffc07220:	80 1f 00 28 	lwz     r0,40(r31)                             
ffc07224:	7f 80 f0 00 	cmpw    cr7,r0,r30                             
ffc07228:	41 9d ff dc 	bgt+    cr7,ffc07204 <erase+0x124>             
ffc0722c:	48 00 00 84 	b       ffc072b0 <erase+0x1d0>                 
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
ffc07230:	81 3d 26 f8 	lwz     r9,9976(r29)                           
ffc07234:	3b de 00 01 	addi    r30,r30,1                              
ffc07238:	7d 29 f0 ae 	lbzx    r9,r9,r30                              
ffc0723c:	71 2b 00 20 	andi.   r11,r9,32                              
ffc07240:	41 82 00 30 	beq-    ffc07270 <erase+0x190>                 <== ALWAYS TAKEN
ffc07244:	70 07 02 00 	andi.   r7,r0,512                              <== NOT EXECUTED
ffc07248:	41 a2 00 28 	beq+    ffc07270 <erase+0x190>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc0724c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc07250:	38 80 00 03 	li      r4,3                                   <== NOT EXECUTED
ffc07254:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc07258:	4b ff fb 69 	bl      ffc06dc0 <rtems_termios_puts>          <== NOT EXECUTED
          if (tty->column)                                            
ffc0725c:	81 3f 00 28 	lwz     r9,40(r31)                             <== NOT EXECUTED
ffc07260:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07264:	41 9e 00 0c 	beq-    cr7,ffc07270 <erase+0x190>             <== NOT EXECUTED
            tty->column--;                                            
ffc07268:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc0726c:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
ffc07270:	81 3d 26 f8 	lwz     r9,9976(r29)                           
ffc07274:	7c 09 f0 ae 	lbzx    r0,r9,r30                              
ffc07278:	70 09 00 20 	andi.   r9,r0,32                               
ffc0727c:	41 82 00 10 	beq-    ffc0728c <erase+0x1ac>                 <== ALWAYS TAKEN
ffc07280:	80 1f 00 3c 	lwz     r0,60(r31)                             <== NOT EXECUTED
ffc07284:	70 0b 02 00 	andi.   r11,r0,512                             <== NOT EXECUTED
ffc07288:	41 82 00 28 	beq-    ffc072b0 <erase+0x1d0>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc0728c:	7f 83 e3 78 	mr      r3,r28                                 
ffc07290:	38 80 00 03 	li      r4,3                                   
ffc07294:	7f e5 fb 78 	mr      r5,r31                                 
ffc07298:	4b ff fb 29 	bl      ffc06dc0 <rtems_termios_puts>          
          if (tty->column)                                            
ffc0729c:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc072a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc072a4:	41 9e 00 0c 	beq-    cr7,ffc072b0 <erase+0x1d0>             <== NEVER TAKEN
            tty->column--;                                            
ffc072a8:	39 29 ff ff 	addi    r9,r9,-1                               
ffc072ac:	91 3f 00 28 	stw     r9,40(r31)                             
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
ffc072b0:	40 b2 00 20 	bne+    cr4,ffc072d0 <erase+0x1f0>             
ffc072b4:	48 00 00 28 	b       ffc072dc <erase+0x1fc>                 
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
ffc072b8:	2e 04 00 00 	cmpwi   cr4,r4,0                               
          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);                       
ffc072bc:	3f 80 ff c2 	lis     r28,-62                                
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc072c0:	3f 60 ff c2 	lis     r27,-62                                
ffc072c4:	3f a0 00 00 	lis     r29,0                                  
          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);                       
ffc072c8:	3b 9c aa 3c 	addi    r28,r28,-21956                         
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc072cc:	3b 7b aa 3e 	addi    r27,r27,-21954                         
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
ffc072d0:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc072d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc072d8:	40 9e fe 78 	bne+    cr7,ffc07150 <erase+0x70>              
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc072dc:	81 81 00 08 	lwz     r12,8(r1)                              
ffc072e0:	39 61 00 20 	addi    r11,r1,32                              
ffc072e4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc072e8:	48 01 1d e8 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

ffc04eb0 <fcntl>: int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd );
ffc04eb0:	3d 20 00 00 	lis     r9,0                                   
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc04eb4:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04eb8:	7c 08 02 a6 	mflr    r0                                     
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc04ebc:	81 09 26 8c 	lwz     r8,9868(r9)                            
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc04ec0:	90 01 00 3c 	stw     r0,60(r1)                              
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc04ec4:	38 00 00 02 	li      r0,2                                   
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc04ec8:	7f 83 40 40 	cmplw   cr7,r3,r8                              
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc04ecc:	98 01 00 08 	stb     r0,8(r1)                               
ffc04ed0:	38 01 00 40 	addi    r0,r1,64                               
ffc04ed4:	90 01 00 0c 	stw     r0,12(r1)                              
ffc04ed8:	38 01 00 10 	addi    r0,r1,16                               
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc04edc:	bf a1 00 2c 	stmw    r29,44(r1)                             
ffc04ee0:	7c 9e 23 78 	mr      r30,r4                                 
ffc04ee4:	90 a1 00 18 	stw     r5,24(r1)                              
ffc04ee8:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc04eec:	90 e1 00 20 	stw     r7,32(r1)                              
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc04ef0:	90 01 00 10 	stw     r0,16(r1)                              
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc04ef4:	40 9c 00 20 	bge-    cr7,ffc04f14 <fcntl+0x64>              
  iop = rtems_libio_iop( fd );                                        
ffc04ef8:	3d 20 00 00 	lis     r9,0                                   
ffc04efc:	81 49 27 50 	lwz     r10,10064(r9)                          
ffc04f00:	54 7f 30 32 	rlwinm  r31,r3,6,0,25                          
ffc04f04:	7f ea fa 14 	add     r31,r10,r31                            
  rtems_libio_check_is_open(iop);                                     
ffc04f08:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc04f0c:	70 60 01 00 	andi.   r0,r3,256                              
ffc04f10:	40 a2 00 10 	bne+    ffc04f20 <fcntl+0x70>                  
ffc04f14:	48 00 c6 a1 	bl      ffc115b4 <__errno>                     
ffc04f18:	38 00 00 09 	li      r0,9                                   
ffc04f1c:	48 00 01 80 	b       ffc0509c <fcntl+0x1ec>                 
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
ffc04f20:	2b 84 00 09 	cmplwi  cr7,r4,9                               
ffc04f24:	41 9d 01 70 	bgt-    cr7,ffc05094 <fcntl+0x1e4>             
ffc04f28:	3d 20 ff c2 	lis     r9,-62                                 
ffc04f2c:	39 29 8c b0 	addi    r9,r9,-29520                           
ffc04f30:	54 80 10 3a 	rlwinm  r0,r4,2,0,29                           
ffc04f34:	7c 09 00 2e 	lwzx    r0,r9,r0                               
ffc04f38:	7d 20 4a 14 	add     r9,r0,r9                               
ffc04f3c:	7d 29 03 a6 	mtctr   r9                                     
ffc04f40:	4e 80 04 20 	bctr                                           
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
ffc04f44:	89 61 00 08 	lbz     r11,8(r1)                              
ffc04f48:	2b 8b 00 07 	cmplwi  cr7,r11,7                              
ffc04f4c:	41 9d 00 1c 	bgt-    cr7,ffc04f68 <fcntl+0xb8>              <== NEVER TAKEN
ffc04f50:	81 21 00 10 	lwz     r9,16(r1)                              
ffc04f54:	55 60 10 3a 	rlwinm  r0,r11,2,0,29                          
ffc04f58:	39 6b 00 01 	addi    r11,r11,1                              
ffc04f5c:	7d 29 02 14 	add     r9,r9,r0                               
ffc04f60:	99 61 00 08 	stb     r11,8(r1)                              
ffc04f64:	48 00 00 10 	b       ffc04f74 <fcntl+0xc4>                  
ffc04f68:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc04f6c:	38 09 00 04 	addi    r0,r9,4                                <== NOT EXECUTED
ffc04f70:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
ffc04f74:	80 09 00 00 	lwz     r0,0(r9)                               
      if ( fd2 )                                                      
ffc04f78:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04f7c:	41 9e 00 1c 	beq-    cr7,ffc04f98 <fcntl+0xe8>              
        diop = rtems_libio_iop( fd2 );                                
ffc04f80:	7f 80 40 40 	cmplw   cr7,r0,r8                              
ffc04f84:	38 60 00 00 	li      r3,0                                   
ffc04f88:	40 9c 00 1c 	bge-    cr7,ffc04fa4 <fcntl+0xf4>              <== NEVER TAKEN
ffc04f8c:	54 03 30 32 	rlwinm  r3,r0,6,0,25                           
ffc04f90:	7c 6a 1a 14 	add     r3,r10,r3                              
ffc04f94:	48 00 00 10 	b       ffc04fa4 <fcntl+0xf4>                  
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
ffc04f98:	48 00 07 01 	bl      ffc05698 <rtems_libio_allocate>        
        if ( diop == 0 ) {                                            
ffc04f9c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04fa0:	41 82 01 34 	beq-    ffc050d4 <fcntl+0x224>                 <== NEVER TAKEN
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
ffc04fa4:	39 63 00 1c 	addi    r11,r3,28                              
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
ffc04fa8:	80 1f 00 18 	lwz     r0,24(r31)                             
      diop->pathinfo   = iop->pathinfo;                               
ffc04fac:	38 9f 00 1c 	addi    r4,r31,28                              
ffc04fb0:	7c a4 a4 aa 	lswi    r5,r4,20                               
ffc04fb4:	7c ab a5 aa 	stswi   r5,r11,20                              
      ret = (int) (diop - rtems_libio_iops);                          
ffc04fb8:	3d 20 00 00 	lis     r9,0                                   
ffc04fbc:	83 a9 27 50 	lwz     r29,10064(r9)                          
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
ffc04fc0:	90 03 00 18 	stw     r0,24(r3)                              
      diop->pathinfo   = iop->pathinfo;                               
      ret = (int) (diop - rtems_libio_iops);                          
ffc04fc4:	7c 7d 18 50 	subf    r3,r29,r3                              
ffc04fc8:	7c 7d 36 70 	srawi   r29,r3,6                               
ffc04fcc:	48 00 00 d8 	b       ffc050a4 <fcntl+0x1f4>                 
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
ffc04fd0:	54 7d af fe 	rlwinm  r29,r3,21,31,31                        
ffc04fd4:	48 00 00 d8 	b       ffc050ac <fcntl+0x1fc>                 
       *  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 ) )                                        
ffc04fd8:	89 61 00 08 	lbz     r11,8(r1)                              
ffc04fdc:	2b 8b 00 07 	cmplwi  cr7,r11,7                              
ffc04fe0:	41 9d 00 1c 	bgt-    cr7,ffc04ffc <fcntl+0x14c>             <== NEVER TAKEN
ffc04fe4:	81 21 00 10 	lwz     r9,16(r1)                              
ffc04fe8:	55 60 10 3a 	rlwinm  r0,r11,2,0,29                          
ffc04fec:	39 6b 00 01 	addi    r11,r11,1                              
ffc04ff0:	7d 29 02 14 	add     r9,r9,r0                               
ffc04ff4:	99 61 00 08 	stb     r11,8(r1)                              
ffc04ff8:	48 00 00 10 	b       ffc05008 <fcntl+0x158>                 
ffc04ffc:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc05000:	38 09 00 04 	addi    r0,r9,4                                <== NOT EXECUTED
ffc05004:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
ffc05008:	80 09 00 00 	lwz     r0,0(r9)                               
ffc0500c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc05010:	41 9e 00 0c 	beq-    cr7,ffc0501c <fcntl+0x16c>             
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
ffc05014:	60 63 08 00 	ori     r3,r3,2048                             
ffc05018:	48 00 00 64 	b       ffc0507c <fcntl+0x1cc>                 
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
ffc0501c:	54 63 05 66 	rlwinm  r3,r3,0,21,19                          
ffc05020:	48 00 00 5c 	b       ffc0507c <fcntl+0x1cc>                 
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
ffc05024:	48 00 06 29 	bl      ffc0564c <rtems_libio_to_fcntl_flags>  
ffc05028:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0502c:	48 00 00 78 	b       ffc050a4 <fcntl+0x1f4>                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
ffc05030:	89 61 00 08 	lbz     r11,8(r1)                              
ffc05034:	2b 8b 00 07 	cmplwi  cr7,r11,7                              
ffc05038:	41 9d 00 1c 	bgt-    cr7,ffc05054 <fcntl+0x1a4>             <== NEVER TAKEN
ffc0503c:	81 21 00 10 	lwz     r9,16(r1)                              
ffc05040:	55 60 10 3a 	rlwinm  r0,r11,2,0,29                          
ffc05044:	39 6b 00 01 	addi    r11,r11,1                              
ffc05048:	7d 29 02 14 	add     r9,r9,r0                               
ffc0504c:	99 61 00 08 	stb     r11,8(r1)                              
ffc05050:	48 00 00 10 	b       ffc05060 <fcntl+0x1b0>                 
ffc05054:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc05058:	38 09 00 04 	addi    r0,r9,4                                <== NOT EXECUTED
ffc0505c:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
ffc05060:	80 69 00 00 	lwz     r3,0(r9)                               
ffc05064:	48 00 05 a5 	bl      ffc05608 <rtems_libio_fcntl_flags>     
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
ffc05068:	80 1f 00 18 	lwz     r0,24(r31)                             
ffc0506c:	70 63 02 01 	andi.   r3,r3,513                              
ffc05070:	39 20 fd fe 	li      r9,-514                                
ffc05074:	7d 20 00 38 	and     r0,r9,r0                               
ffc05078:	7c 63 03 78 	or      r3,r3,r0                               
ffc0507c:	90 7f 00 18 	stw     r3,24(r31)                             
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
ffc05080:	3b a0 00 00 	li      r29,0                                  
ffc05084:	48 00 00 28 	b       ffc050ac <fcntl+0x1fc>                 
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
ffc05088:	48 00 c5 2d 	bl      ffc115b4 <__errno>                     
ffc0508c:	38 00 00 86 	li      r0,134                                 
ffc05090:	48 00 00 0c 	b       ffc0509c <fcntl+0x1ec>                 
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
ffc05094:	48 00 c5 21 	bl      ffc115b4 <__errno>                     
ffc05098:	38 00 00 16 	li      r0,22                                  
ffc0509c:	90 03 00 00 	stw     r0,0(r3)                               
ffc050a0:	48 00 00 34 	b       ffc050d4 <fcntl+0x224>                 
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
ffc050a4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc050a8:	41 9c 00 30 	blt-    cr7,ffc050d8 <fcntl+0x228>             <== NEVER TAKEN
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
ffc050ac:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc050b0:	7f e4 fb 78 	mr      r4,r31                                 
ffc050b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc050b8:	80 09 00 30 	lwz     r0,48(r9)                              
ffc050bc:	7c 09 03 a6 	mtctr   r0                                     
ffc050c0:	4e 80 04 21 	bctrl                                          
    if (err) {                                                        
ffc050c4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc050c8:	41 a2 00 10 	beq+    ffc050d8 <fcntl+0x228>                 <== ALWAYS TAKEN
      errno = err;                                                    
ffc050cc:	48 00 c4 e9 	bl      ffc115b4 <__errno>                     <== NOT EXECUTED
ffc050d0:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
      ret = -1;                                                       
ffc050d4:	3b a0 ff ff 	li      r29,-1                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc050d8:	39 61 00 38 	addi    r11,r1,56                              
ffc050dc:	7f a3 eb 78 	mr      r3,r29                                 
ffc050e0:	4b ff bc 40 	b       ffc00d20 <_restgpr_29_x>               
                                                                      

ffc0e954 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc0e954:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0e958:	7c 08 02 a6 	mflr    r0                                     
ffc0e95c:	bf 21 00 1c 	stmw    r25,28(r1)                             
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc0e960:	3f c0 00 00 	lis     r30,0                                  
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc0e964:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0e968:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0e96c:	7c 9b 23 78 	mr      r27,r4                                 
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc0e970:	3b fe 29 94 	addi    r31,r30,10644                          
ffc0e974:	80 1e 29 94 	lwz     r0,10644(r30)                          
ffc0e978:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e97c:	40 be 00 5c 	bne+    cr7,ffc0e9d8 <fifo_open+0x84>          
rtems_status_code rtems_libio_set_private_env(void);                  
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;   
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc0e980:	3d 20 00 00 	lis     r9,0                                   
ffc0e984:	80 69 27 78 	lwz     r3,10104(r9)                           
ffc0e988:	38 80 00 00 	li      r4,0                                   
ffc0e98c:	38 a0 00 00 	li      r5,0                                   
ffc0e990:	4b ff b3 69 	bl      ffc09cf8 <rtems_semaphore_obtain>      
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
ffc0e994:	80 1e 29 94 	lwz     r0,10644(r30)                          
  free(pipe);                                                         
}                                                                     
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0e998:	3b c0 00 00 	li      r30,0                                  
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
ffc0e99c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e9a0:	40 be 00 24 	bne+    cr7,ffc0e9c4 <fifo_open+0x70>          <== NEVER TAKEN
      sc = rtems_semaphore_create(                                    
ffc0e9a4:	3c 60 50 49 	lis     r3,20553                               
ffc0e9a8:	60 63 50 45 	ori     r3,r3,20549                            
ffc0e9ac:	38 80 00 01 	li      r4,1                                   
ffc0e9b0:	38 a0 00 54 	li      r5,84                                  
ffc0e9b4:	38 c0 00 00 	li      r6,0                                   
ffc0e9b8:	7f e7 fb 78 	mr      r7,r31                                 
ffc0e9bc:	4b ff b0 bd 	bl      ffc09a78 <rtems_semaphore_create>      
ffc0e9c0:	7c 7e 1b 78 	mr      r30,r3                                 
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc0e9c4:	3d 20 00 00 	lis     r9,0                                   
ffc0e9c8:	80 69 27 78 	lwz     r3,10104(r9)                           
ffc0e9cc:	4b ff b4 55 	bl      ffc09e20 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc0e9d0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e9d4:	40 be 00 24 	bne+    cr7,ffc0e9f8 <fifo_open+0xa4>          
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0e9d8:	3d 20 00 00 	lis     r9,0                                   
ffc0e9dc:	80 69 29 94 	lwz     r3,10644(r9)                           
ffc0e9e0:	38 80 00 00 	li      r4,0                                   
ffc0e9e4:	38 a0 00 00 	li      r5,0                                   
ffc0e9e8:	4b ff b3 11 	bl      ffc09cf8 <rtems_semaphore_obtain>      
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
ffc0e9ec:	3b c0 00 00 	li      r30,0                                  
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc0e9f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e9f4:	41 be 00 08 	beq+    cr7,ffc0e9fc <fifo_open+0xa8>          <== ALWAYS TAKEN
    return 0;                                                         
  } else {                                                            
    return -ENOMEM;                                                   
ffc0e9f8:	3b c0 ff f4 	li      r30,-12                                
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
ffc0e9fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ea00:	40 9e 03 64 	bne-    cr7,ffc0ed64 <fifo_open+0x410>         
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
ffc0ea04:	83 fc 00 00 	lwz     r31,0(r28)                             
  if (pipe == NULL) {                                                 
ffc0ea08:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ea0c:	40 be 01 4c 	bne+    cr7,ffc0eb58 <fifo_open+0x204>         
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
ffc0ea10:	38 60 00 34 	li      r3,52                                  
ffc0ea14:	4b ff 7e c1 	bl      ffc068d4 <malloc>                      
  if (pipe == NULL)                                                   
ffc0ea18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
ffc0ea1c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ea20:	7c 7a 1b 78 	mr      r26,r3                                 
  if (pipe == NULL)                                                   
ffc0ea24:	41 9e 01 2c 	beq-    cr7,ffc0eb50 <fifo_open+0x1fc>         
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
ffc0ea28:	38 80 00 00 	li      r4,0                                   
ffc0ea2c:	38 a0 00 34 	li      r5,52                                  
ffc0ea30:	48 00 54 d1 	bl      ffc13f00 <memset>                      
                                                                      
  pipe->Size = PIPE_BUF;                                              
ffc0ea34:	38 00 02 00 	li      r0,512                                 
ffc0ea38:	90 1f 00 04 	stw     r0,4(r31)                              
  pipe->Buffer = malloc(pipe->Size);                                  
ffc0ea3c:	38 60 02 00 	li      r3,512                                 
ffc0ea40:	4b ff 7e 95 	bl      ffc068d4 <malloc>                      
  if (! pipe->Buffer)                                                 
ffc0ea44:	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);                                  
ffc0ea48:	90 7f 00 00 	stw     r3,0(r31)                              
  if (! pipe->Buffer)                                                 
ffc0ea4c:	41 9e 00 fc 	beq-    cr7,ffc0eb48 <fifo_open+0x1f4>         <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
ffc0ea50:	3f a0 00 00 	lis     r29,0                                  
ffc0ea54:	88 7d 21 81 	lbz     r3,8577(r29)                           
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
ffc0ea58:	38 80 00 00 	li      r4,0                                   
ffc0ea5c:	38 a0 00 00 	li      r5,0                                   
ffc0ea60:	64 63 50 49 	oris    r3,r3,20553                            
ffc0ea64:	60 63 72 00 	ori     r3,r3,29184                            
ffc0ea68:	38 df 00 2c 	addi    r6,r31,44                              
ffc0ea6c:	48 00 1b 1d 	bl      ffc10588 <rtems_barrier_create>        
ffc0ea70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea74:	40 9e 00 cc 	bne-    cr7,ffc0eb40 <fifo_open+0x1ec>         
        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),                          
ffc0ea78:	88 7d 21 81 	lbz     r3,8577(r29)                           
  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(                                           
ffc0ea7c:	38 80 00 00 	li      r4,0                                   
ffc0ea80:	38 a0 00 00 	li      r5,0                                   
ffc0ea84:	64 63 50 49 	oris    r3,r3,20553                            
ffc0ea88:	60 63 77 00 	ori     r3,r3,30464                            
ffc0ea8c:	38 df 00 30 	addi    r6,r31,48                              
ffc0ea90:	48 00 1a f9 	bl      ffc10588 <rtems_barrier_create>        
ffc0ea94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea98:	40 9e 00 a0 	bne-    cr7,ffc0eb38 <fifo_open+0x1e4>         
        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,                       
ffc0ea9c:	88 7d 21 81 	lbz     r3,8577(r29)                           
  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(                                         
ffc0eaa0:	38 80 00 01 	li      r4,1                                   
ffc0eaa4:	38 a0 00 10 	li      r5,16                                  
ffc0eaa8:	64 63 50 49 	oris    r3,r3,20553                            
ffc0eaac:	60 63 73 00 	ori     r3,r3,29440                            
ffc0eab0:	38 c0 00 00 	li      r6,0                                   
ffc0eab4:	38 ff 00 28 	addi    r7,r31,40                              
ffc0eab8:	4b ff af c1 	bl      ffc09a78 <rtems_semaphore_create>      
ffc0eabc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eac0:	40 9e 00 70 	bne-    cr7,ffc0eb30 <fifo_open+0x1dc>         
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
    _Objects_Get( &_Barrier_Information, id, location );              
ffc0eac4:	3f 20 00 00 	lis     r25,0                                  
ffc0eac8:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc0eacc:	3b 39 34 e8 	addi    r25,r25,13544                          
/* Set barriers to be interruptible by signals. */                    
static void pipe_interruptible(pipe_control_t *pipe)                  
{                                                                     
  Objects_Locations location;                                         
                                                                      
  _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
ffc0ead0:	3b 41 00 0c 	addi    r26,r1,12                              
ffc0ead4:	7f 45 d3 78 	mr      r5,r26                                 
ffc0ead8:	7f 23 cb 78 	mr      r3,r25                                 
ffc0eadc:	4b ff cc b9 	bl      ffc0b794 <_Objects_Get>                
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
ffc0eae0:	80 03 00 4c 	lwz     r0,76(r3)                              
ffc0eae4:	64 00 10 00 	oris    r0,r0,4096                             
ffc0eae8:	90 03 00 4c 	stw     r0,76(r3)                              
  _Thread_Enable_dispatch();                                          
ffc0eaec:	4b ff d6 b9 	bl      ffc0c1a4 <_Thread_Enable_dispatch>     
ffc0eaf0:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc0eaf4:	7f 45 d3 78 	mr      r5,r26                                 
ffc0eaf8:	7f 23 cb 78 	mr      r3,r25                                 
ffc0eafc:	4b ff cc 99 	bl      ffc0b794 <_Objects_Get>                
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
ffc0eb00:	80 03 00 4c 	lwz     r0,76(r3)                              
ffc0eb04:	64 00 10 00 	oris    r0,r0,4096                             
ffc0eb08:	90 03 00 4c 	stw     r0,76(r3)                              
  _Thread_Enable_dispatch();                                          
ffc0eb0c:	4b ff d6 99 	bl      ffc0c1a4 <_Thread_Enable_dispatch>     
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
ffc0eb10:	89 3d 21 81 	lbz     r9,8577(r29)                           
ffc0eb14:	2f 89 00 7a 	cmpwi   cr7,r9,122                             
ffc0eb18:	38 09 00 01 	addi    r0,r9,1                                
ffc0eb1c:	98 1d 21 81 	stb     r0,8577(r29)                           
ffc0eb20:	40 be 00 38 	bne+    cr7,ffc0eb58 <fifo_open+0x204>         
    c = 'a';                                                          
ffc0eb24:	38 00 00 61 	li      r0,97                                  
ffc0eb28:	98 1d 21 81 	stb     r0,8577(r29)                           
ffc0eb2c:	48 00 00 2c 	b       ffc0eb58 <fifo_open+0x204>             
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
ffc0eb30:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0eb34:	48 00 1b 21 	bl      ffc10654 <rtems_barrier_delete>        
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
ffc0eb38:	80 7a 00 2c 	lwz     r3,44(r26)                             
ffc0eb3c:	48 00 1b 19 	bl      ffc10654 <rtems_barrier_delete>        
err_rbar:                                                             
  free(pipe->Buffer);                                                 
ffc0eb40:	80 7a 00 00 	lwz     r3,0(r26)                              
ffc0eb44:	4b ff 75 21 	bl      ffc06064 <free>                        
err_buf:                                                              
  free(pipe);                                                         
ffc0eb48:	7f 43 d3 78 	mr      r3,r26                                 
ffc0eb4c:	4b ff 75 19 	bl      ffc06064 <free>                        
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
ffc0eb50:	3b c0 ff f4 	li      r30,-12                                
ffc0eb54:	48 00 00 44 	b       ffc0eb98 <fifo_open+0x244>             
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0eb58:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0eb5c:	38 80 00 00 	li      r4,0                                   
ffc0eb60:	38 a0 00 00 	li      r5,0                                   
ffc0eb64:	4b ff b1 95 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0eb68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eb6c:	41 9e 00 08 	beq-    cr7,ffc0eb74 <fifo_open+0x220>         <== ALWAYS TAKEN
    err = -EINTR;                                                     
ffc0eb70:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
                                                                      
  if (*pipep == NULL) {                                               
ffc0eb74:	80 1c 00 00 	lwz     r0,0(r28)                              
ffc0eb78:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0eb7c:	40 be 00 1c 	bne+    cr7,ffc0eb98 <fifo_open+0x244>         
    if (err)                                                          
ffc0eb80:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0eb84:	41 be 00 10 	beq+    cr7,ffc0eb94 <fifo_open+0x240>         <== ALWAYS TAKEN
      pipe_free(pipe);                                                
ffc0eb88:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0eb8c:	4b ff fc cd 	bl      ffc0e858 <pipe_free>                   <== NOT EXECUTED
ffc0eb90:	48 00 00 08 	b       ffc0eb98 <fifo_open+0x244>             <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
ffc0eb94:	93 fc 00 00 	stw     r31,0(r28)                             
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
ffc0eb98:	4b ff fc 99 	bl      ffc0e830 <pipe_unlock>                 
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
ffc0eb9c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0eba0:	40 9e 01 c4 	bne-    cr7,ffc0ed64 <fifo_open+0x410>         
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc0eba4:	80 1b 00 18 	lwz     r0,24(r27)                             
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
ffc0eba8:	83 fc 00 00 	lwz     r31,0(r28)                             
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc0ebac:	54 00 07 7c 	rlwinm  r0,r0,0,29,30                          
ffc0ebb0:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc0ebb4:	41 9e 00 a0 	beq-    cr7,ffc0ec54 <fifo_open+0x300>         
ffc0ebb8:	2f 80 00 06 	cmpwi   cr7,r0,6                               
ffc0ebbc:	41 9e 01 34 	beq-    cr7,ffc0ecf0 <fifo_open+0x39c>         
ffc0ebc0:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc0ebc4:	40 be 01 84 	bne+    cr7,ffc0ed48 <fifo_open+0x3f4>         <== NEVER TAKEN
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc0ebc8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0ebcc:	38 09 00 01 	addi    r0,r9,1                                
      if (pipe->Readers ++ == 0)                                      
ffc0ebd0:	81 3f 00 10 	lwz     r9,16(r31)                             
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc0ebd4:	90 1f 00 20 	stw     r0,32(r31)                             
      if (pipe->Readers ++ == 0)                                      
ffc0ebd8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ebdc:	38 09 00 01 	addi    r0,r9,1                                
ffc0ebe0:	90 1f 00 10 	stw     r0,16(r31)                             
ffc0ebe4:	40 be 00 10 	bne+    cr7,ffc0ebf4 <fifo_open+0x2a0>         <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc0ebe8:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ebec:	38 81 00 08 	addi    r4,r1,8                                
ffc0ebf0:	48 00 1b 1d 	bl      ffc1070c <rtems_barrier_release>       
                                                                      
      if (pipe->Writers == 0) {                                       
ffc0ebf4:	80 1f 00 14 	lwz     r0,20(r31)                             
ffc0ebf8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ebfc:	40 9e 01 4c 	bne-    cr7,ffc0ed48 <fifo_open+0x3f4>         
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
ffc0ec00:	80 1b 00 18 	lwz     r0,24(r27)                             
ffc0ec04:	70 09 00 01 	andi.   r9,r0,1                                
ffc0ec08:	40 82 01 40 	bne-    ffc0ed48 <fifo_open+0x3f4>             
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
ffc0ec0c:	83 bf 00 24 	lwz     r29,36(r31)                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc0ec10:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ec14:	4b ff b2 0d 	bl      ffc09e20 <rtems_semaphore_release>     
          if (! PIPE_READWAIT(pipe))                                  
ffc0ec18:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ec1c:	38 80 00 00 	li      r4,0                                   
ffc0ec20:	48 00 1b 59 	bl      ffc10778 <rtems_barrier_wait>          
ffc0ec24:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ec28:	40 9e 01 2c 	bne-    cr7,ffc0ed54 <fifo_open+0x400>         <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc0ec2c:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ec30:	38 80 00 00 	li      r4,0                                   
ffc0ec34:	38 a0 00 00 	li      r5,0                                   
ffc0ec38:	4b ff b0 c1 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0ec3c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ec40:	40 9e 01 14 	bne-    cr7,ffc0ed54 <fifo_open+0x400>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
ffc0ec44:	80 1f 00 24 	lwz     r0,36(r31)                             
ffc0ec48:	7f 9d 00 00 	cmpw    cr7,r29,r0                             
ffc0ec4c:	41 9e ff c4 	beq+    cr7,ffc0ec10 <fifo_open+0x2bc>         <== NEVER TAKEN
ffc0ec50:	48 00 00 f8 	b       ffc0ed48 <fifo_open+0x3f4>             
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc0ec54:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0ec58:	38 09 00 01 	addi    r0,r9,1                                
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc0ec5c:	81 3f 00 14 	lwz     r9,20(r31)                             
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc0ec60:	90 1f 00 24 	stw     r0,36(r31)                             
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc0ec64:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ec68:	38 09 00 01 	addi    r0,r9,1                                
ffc0ec6c:	90 1f 00 14 	stw     r0,20(r31)                             
ffc0ec70:	40 be 00 10 	bne+    cr7,ffc0ec80 <fifo_open+0x32c>         <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
ffc0ec74:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ec78:	38 81 00 08 	addi    r4,r1,8                                
ffc0ec7c:	48 00 1a 91 	bl      ffc1070c <rtems_barrier_release>       
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
ffc0ec80:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0ec84:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ec88:	40 9e 00 c0 	bne-    cr7,ffc0ed48 <fifo_open+0x3f4>         
ffc0ec8c:	80 1b 00 18 	lwz     r0,24(r27)                             
ffc0ec90:	70 09 00 01 	andi.   r9,r0,1                                
ffc0ec94:	41 a2 00 14 	beq+    ffc0eca8 <fifo_open+0x354>             
	PIPE_UNLOCK(pipe);                                                   
ffc0ec98:	80 7f 00 28 	lwz     r3,40(r31)                             
        err = -ENXIO;                                                 
ffc0ec9c:	3b c0 ff fa 	li      r30,-6                                 
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
ffc0eca0:	4b ff b1 81 	bl      ffc09e20 <rtems_semaphore_release>     
        err = -ENXIO;                                                 
        goto out_error;                                               
ffc0eca4:	48 00 00 b4 	b       ffc0ed58 <fifo_open+0x404>             
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
ffc0eca8:	83 bf 00 20 	lwz     r29,32(r31)                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc0ecac:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ecb0:	4b ff b1 71 	bl      ffc09e20 <rtems_semaphore_release>     
          if (! PIPE_WRITEWAIT(pipe))                                 
ffc0ecb4:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ecb8:	38 80 00 00 	li      r4,0                                   
ffc0ecbc:	48 00 1a bd 	bl      ffc10778 <rtems_barrier_wait>          
ffc0ecc0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ecc4:	40 9e 00 90 	bne-    cr7,ffc0ed54 <fifo_open+0x400>         <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc0ecc8:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0eccc:	38 80 00 00 	li      r4,0                                   
ffc0ecd0:	38 a0 00 00 	li      r5,0                                   
ffc0ecd4:	4b ff b0 25 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0ecd8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ecdc:	40 9e 00 78 	bne-    cr7,ffc0ed54 <fifo_open+0x400>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
ffc0ece0:	80 1f 00 20 	lwz     r0,32(r31)                             
ffc0ece4:	7f 9d 00 00 	cmpw    cr7,r29,r0                             
ffc0ece8:	41 9e ff c4 	beq+    cr7,ffc0ecac <fifo_open+0x358>         <== NEVER TAKEN
ffc0ecec:	48 00 00 5c 	b       ffc0ed48 <fifo_open+0x3f4>             
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc0ecf0:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0ecf4:	38 09 00 01 	addi    r0,r9,1                                
      if (pipe->Readers ++ == 0)                                      
ffc0ecf8:	81 3f 00 10 	lwz     r9,16(r31)                             
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc0ecfc:	90 1f 00 20 	stw     r0,32(r31)                             
      if (pipe->Readers ++ == 0)                                      
ffc0ed00:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ed04:	38 09 00 01 	addi    r0,r9,1                                
ffc0ed08:	90 1f 00 10 	stw     r0,16(r31)                             
ffc0ed0c:	40 be 00 10 	bne+    cr7,ffc0ed1c <fifo_open+0x3c8>         <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc0ed10:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ed14:	38 81 00 08 	addi    r4,r1,8                                
ffc0ed18:	48 00 19 f5 	bl      ffc1070c <rtems_barrier_release>       
      pipe->writerCounter ++;                                         
ffc0ed1c:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0ed20:	38 09 00 01 	addi    r0,r9,1                                
      if (pipe->Writers ++ == 0)                                      
ffc0ed24:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
ffc0ed28:	90 1f 00 24 	stw     r0,36(r31)                             
      if (pipe->Writers ++ == 0)                                      
ffc0ed2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ed30:	38 09 00 01 	addi    r0,r9,1                                
ffc0ed34:	90 1f 00 14 	stw     r0,20(r31)                             
ffc0ed38:	40 be 00 10 	bne+    cr7,ffc0ed48 <fifo_open+0x3f4>         <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
ffc0ed3c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ed40:	38 81 00 08 	addi    r4,r1,8                                
ffc0ed44:	48 00 19 c9 	bl      ffc1070c <rtems_barrier_release>       
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc0ed48:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ed4c:	4b ff b0 d5 	bl      ffc09e20 <rtems_semaphore_release>     
  return 0;                                                           
ffc0ed50:	48 00 00 14 	b       ffc0ed64 <fifo_open+0x410>             
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
ffc0ed54:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
ffc0ed58:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ed5c:	7f 64 db 78 	mr      r4,r27                                 
ffc0ed60:	4b ff fb 41 	bl      ffc0e8a0 <pipe_release>                
  return err;                                                         
}                                                                     
ffc0ed64:	39 61 00 38 	addi    r11,r1,56                              
ffc0ed68:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ed6c:	48 01 1a 2c 	b       ffc20798 <_restgpr_25_x>               
                                                                      

ffc05178 <fpathconf>: long fpathconf( int fd, int name ) {
ffc05178:	7c 08 02 a6 	mflr    r0                                     
ffc0517c:	94 21 ff f8 	stwu    r1,-8(r1)                              
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
ffc05180:	3d 20 00 00 	lis     r9,0                                   
                                                                      
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
ffc05184:	90 01 00 0c 	stw     r0,12(r1)                              
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
ffc05188:	80 09 26 8c 	lwz     r0,9868(r9)                            
ffc0518c:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc05190:	40 9c 00 20 	bge-    cr7,ffc051b0 <fpathconf+0x38>          
  iop = rtems_libio_iop(fd);                                          
ffc05194:	3d 20 00 00 	lis     r9,0                                   
ffc05198:	80 09 27 50 	lwz     r0,10064(r9)                           
ffc0519c:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc051a0:	7c 60 1a 14 	add     r3,r0,r3                               
  rtems_libio_check_is_open(iop);                                     
ffc051a4:	80 03 00 18 	lwz     r0,24(r3)                              
ffc051a8:	70 09 01 00 	andi.   r9,r0,256                              
ffc051ac:	40 a2 00 10 	bne+    ffc051bc <fpathconf+0x44>              <== ALWAYS TAKEN
ffc051b0:	48 00 c4 05 	bl      ffc115b4 <__errno>                     
ffc051b4:	38 00 00 09 	li      r0,9                                   
ffc051b8:	48 00 00 9c 	b       ffc05254 <fpathconf+0xdc>              
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
ffc051bc:	70 09 00 02 	andi.   r9,r0,2                                
ffc051c0:	41 82 00 8c 	beq-    ffc0524c <fpathconf+0xd4>              
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
ffc051c4:	2b 84 00 0b 	cmplwi  cr7,r4,11                              
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
ffc051c8:	81 23 00 2c 	lwz     r9,44(r3)                              
                                                                      
  switch ( name ) {                                                   
ffc051cc:	41 9d 00 80 	bgt-    cr7,ffc0524c <fpathconf+0xd4>          
ffc051d0:	3d 60 ff c2 	lis     r11,-62                                
ffc051d4:	39 6b 8c d8 	addi    r11,r11,-29480                         
ffc051d8:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc051dc:	7c 0b 20 2e 	lwzx    r0,r11,r4                              
ffc051e0:	7d 60 5a 14 	add     r11,r0,r11                             
ffc051e4:	7d 69 03 a6 	mtctr   r11                                    
ffc051e8:	4e 80 04 20 	bctr                                           
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
ffc051ec:	80 69 00 38 	lwz     r3,56(r9)                              
      break;                                                          
ffc051f0:	48 00 00 6c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
ffc051f4:	80 69 00 3c 	lwz     r3,60(r9)                              
      break;                                                          
ffc051f8:	48 00 00 64 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
ffc051fc:	80 69 00 40 	lwz     r3,64(r9)                              
      break;                                                          
ffc05200:	48 00 00 5c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
ffc05204:	80 69 00 44 	lwz     r3,68(r9)                              
      break;                                                          
ffc05208:	48 00 00 54 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
ffc0520c:	80 69 00 48 	lwz     r3,72(r9)                              
      break;                                                          
ffc05210:	48 00 00 4c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
ffc05214:	80 69 00 4c 	lwz     r3,76(r9)                              
      break;                                                          
ffc05218:	48 00 00 44 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
ffc0521c:	80 69 00 54 	lwz     r3,84(r9)                              
      break;                                                          
ffc05220:	48 00 00 3c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
ffc05224:	80 69 00 58 	lwz     r3,88(r9)                              
      break;                                                          
ffc05228:	48 00 00 34 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
ffc0522c:	80 69 00 64 	lwz     r3,100(r9)                             
      break;                                                          
ffc05230:	48 00 00 2c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
ffc05234:	80 69 00 50 	lwz     r3,80(r9)                              
      break;                                                          
ffc05238:	48 00 00 24 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
ffc0523c:	80 69 00 5c 	lwz     r3,92(r9)                              
      break;                                                          
ffc05240:	48 00 00 1c 	b       ffc0525c <fpathconf+0xe4>              
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
ffc05244:	80 69 00 60 	lwz     r3,96(r9)                              
      break;                                                          
ffc05248:	48 00 00 14 	b       ffc0525c <fpathconf+0xe4>              
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc0524c:	48 00 c3 69 	bl      ffc115b4 <__errno>                     
ffc05250:	38 00 00 16 	li      r0,22                                  
ffc05254:	90 03 00 00 	stw     r0,0(r3)                               
ffc05258:	38 60 ff ff 	li      r3,-1                                  
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
ffc0525c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc05260:	38 21 00 08 	addi    r1,r1,8                                
ffc05264:	7c 08 03 a6 	mtlr    r0                                     
ffc05268:	4e 80 00 20 	blr                                            
                                                                      

ffc0524c <free>: #include <stdlib.h> void free( void *ptr ) {
ffc0524c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05250:	7c 08 02 a6 	mflr    r0                                     
  MSBUMP(free_calls, 1);                                              
ffc05254:	3d 20 00 00 	lis     r9,0                                   
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc05258:	90 01 00 14 	stw     r0,20(r1)                              
  MSBUMP(free_calls, 1);                                              
ffc0525c:	39 29 2b 78 	addi    r9,r9,11128                            
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc05260:	bf c1 00 08 	stmw    r30,8(r1)                              
  MSBUMP(free_calls, 1);                                              
                                                                      
  if ( !ptr )                                                         
ffc05264:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
  MSBUMP(free_calls, 1);                                              
ffc05268:	81 69 00 0c 	lwz     r11,12(r9)                             
ffc0526c:	38 0b 00 01 	addi    r0,r11,1                               
ffc05270:	90 09 00 0c 	stw     r0,12(r9)                              
                                                                      
  if ( !ptr )                                                         
ffc05274:	41 82 00 84 	beq-    ffc052f8 <free+0xac>                   
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc05278:	3d 20 00 00 	lis     r9,0                                   
ffc0527c:	80 09 27 d4 	lwz     r0,10196(r9)                           
ffc05280:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc05284:	40 be 00 1c 	bne+    cr7,ffc052a0 <free+0x54>               <== NEVER TAKEN
       !malloc_is_system_state_OK() ) {                               
ffc05288:	48 00 01 bd 	bl      ffc05444 <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()) &&                    
ffc0528c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05290:	40 be 00 10 	bne+    cr7,ffc052a0 <free+0x54>               
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
ffc05294:	7f e3 fb 78 	mr      r3,r31                                 
ffc05298:	48 00 02 31 	bl      ffc054c8 <malloc_deferred_free>        
      return;                                                         
ffc0529c:	48 00 00 5c 	b       ffc052f8 <free+0xac>                   
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc052a0:	3d 20 00 00 	lis     r9,0                                   
ffc052a4:	81 29 27 28 	lwz     r9,10024(r9)                           
ffc052a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc052ac:	41 9e 00 14 	beq-    cr7,ffc052c0 <free+0x74>               
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
ffc052b0:	80 09 00 08 	lwz     r0,8(r9)                               
ffc052b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc052b8:	7c 09 03 a6 	mtctr   r0                                     
ffc052bc:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
ffc052c0:	3f c0 00 00 	lis     r30,0                                  
ffc052c4:	80 7e 26 bc 	lwz     r3,9916(r30)                           
ffc052c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc052cc:	48 00 57 ad 	bl      ffc0aa78 <_Protected_heap_Free>        
ffc052d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc052d4:	40 be 00 24 	bne+    cr7,ffc052f8 <free+0xac>               
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
ffc052d8:	81 3e 26 bc 	lwz     r9,9916(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",
ffc052dc:	3c 60 ff c2 	lis     r3,-62                                 
ffc052e0:	38 63 a9 cf 	addi    r3,r3,-22065                           
ffc052e4:	80 a9 00 18 	lwz     r5,24(r9)                              
ffc052e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc052ec:	80 c9 00 1c 	lwz     r6,28(r9)                              
ffc052f0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc052f4:	48 00 0d e1 	bl      ffc060d4 <printk>                      
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc052f8:	39 61 00 10 	addi    r11,r1,16                              
ffc052fc:	48 01 3d e0 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc057c8 <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
ffc057c8:	7c 08 02 a6 	mflr    r0                                     
ffc057cc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc057d0:	94 21 ff f0 	stwu    r1,-16(r1)                             
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
ffc057d4:	3d 20 00 00 	lis     r9,0                                   
 * NOTE: this must be called with                                     
 *       thread dispatching disabled!                                 
 */                                                                   
static void                                                           
free_user_env(void *venv)                                             
{                                                                     
ffc057d8:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
ffc057dc:	38 09 2a c8 	addi    r0,r9,10952                            
ffc057e0:	7f 83 00 00 	cmpw    cr7,r3,r0                              
 * NOTE: this must be called with                                     
 *       thread dispatching disabled!                                 
 */                                                                   
static void                                                           
free_user_env(void *venv)                                             
{                                                                     
ffc057e4:	48 00 fc 59 	bl      ffc1543c <_savegpr_31>                 
ffc057e8:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
ffc057ec:	41 9e 00 1c 	beq-    cr7,ffc05808 <free_user_env+0x40>      <== NEVER TAKEN
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
ffc057f0:	38 63 00 04 	addi    r3,r3,4                                
ffc057f4:	4b ff ed 91 	bl      ffc04584 <rtems_filesystem_freenode>   
    rtems_filesystem_freenode( &env->root_directory);                 
ffc057f8:	38 7f 00 18 	addi    r3,r31,24                              
ffc057fc:	4b ff ed 89 	bl      ffc04584 <rtems_filesystem_freenode>   
    free(env);                                                        
ffc05800:	7f e3 fb 78 	mr      r3,r31                                 
ffc05804:	4b ff ed ad 	bl      ffc045b0 <free>                        
  }                                                                   
}                                                                     
ffc05808:	39 61 00 10 	addi    r11,r1,16                              
ffc0580c:	48 00 fc 7c 	b       ffc15488 <_restgpr_31_x>               
                                                                      

ffc171a0 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
ffc171a0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc171a4:	7c 08 02 a6 	mflr    r0                                     
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc171a8:	3d 20 00 00 	lis     r9,0                                   
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc171ac:	90 01 00 3c 	stw     r0,60(r1)                              
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc171b0:	80 09 27 2c 	lwz     r0,10028(r9)                           
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc171b4:	bf c1 00 30 	stmw    r30,48(r1)                             
ffc171b8:	7c bf 2b 78 	mr      r31,r5                                 
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc171bc:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc171c0:	3b c0 00 00 	li      r30,0                                  
ffc171c4:	40 9c 00 14 	bge-    cr7,ffc171d8 <getdents+0x38>           <== NEVER TAKEN
ffc171c8:	3d 20 00 00 	lis     r9,0                                   
ffc171cc:	83 c9 27 fc 	lwz     r30,10236(r9)                          
ffc171d0:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc171d4:	7f de 1a 14 	add     r30,r30,r3                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
ffc171d8:	39 7e 00 1c 	addi    r11,r30,28                             
ffc171dc:	38 61 00 08 	addi    r3,r1,8                                
ffc171e0:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc171e4:	7c a3 a5 aa 	stswi   r5,r3,20                               
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
ffc171e8:	81 21 00 14 	lwz     r9,20(r1)                              
ffc171ec:	80 09 00 10 	lwz     r0,16(r9)                              
ffc171f0:	90 81 00 28 	stw     r4,40(r1)                              
ffc171f4:	7c 09 03 a6 	mtctr   r0                                     
ffc171f8:	4e 80 04 21 	bctrl                                          
ffc171fc:	80 81 00 28 	lwz     r4,40(r1)                              
ffc17200:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc17204:	41 be 00 18 	beq+    cr7,ffc1721c <getdents+0x7c>           
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc17208:	4b ff 9f 1d 	bl      ffc11124 <__errno>                     
ffc1720c:	38 00 00 14 	li      r0,20                                  
ffc17210:	90 03 00 00 	stw     r0,0(r3)                               
ffc17214:	38 60 ff ff 	li      r3,-1                                  
ffc17218:	48 00 00 1c 	b       ffc17234 <getdents+0x94>               
                                                                      
  /*                                                                  
   *  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  );   
ffc1721c:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc17220:	7f c3 f3 78 	mr      r3,r30                                 
ffc17224:	7f e5 fb 78 	mr      r5,r31                                 
ffc17228:	80 09 00 08 	lwz     r0,8(r9)                               
ffc1722c:	7c 09 03 a6 	mtctr   r0                                     
ffc17230:	4e 80 04 21 	bctrl                                          
}                                                                     
ffc17234:	39 61 00 38 	addi    r11,r1,56                              
ffc17238:	4b ff f8 b0 	b       ffc16ae8 <_restgpr_30_x>               
                                                                      

ffc13714 <imfs_dir_open>: IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access; if ( the_jnode->type != IMFS_DIRECTORY )
ffc13714:	81 23 00 1c 	lwz     r9,28(r3)                              
     return -1;      /* It wasn't a directory --> return error */     
ffc13718:	38 00 ff ff 	li      r0,-1                                  
  IMFS_jnode_t      *the_jnode;                                       
                                                                      
  /* Is the node a directory ? */                                     
  the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;             
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
ffc1371c:	81 29 00 4c 	lwz     r9,76(r9)                              
ffc13720:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc13724:	40 be 00 18 	bne+    cr7,ffc1373c <imfs_dir_open+0x28>      <== NEVER TAKEN
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
ffc13728:	39 20 00 00 	li      r9,0                                   
ffc1372c:	39 40 00 00 	li      r10,0                                  
ffc13730:	91 23 00 10 	stw     r9,16(r3)                              
  return 0;                                                           
ffc13734:	38 00 00 00 	li      r0,0                                   
  the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;             
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
ffc13738:	91 43 00 14 	stw     r10,20(r3)                             
  return 0;                                                           
}                                                                     
ffc1373c:	7c 03 03 78 	mr      r3,r0                                  
ffc13740:	4e 80 00 20 	blr                                            
                                                                      

ffc13958 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
ffc13958:	7c 08 02 a6 	mflr    r0                                     
ffc1395c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc13960:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc13964:	90 01 00 14 	stw     r0,20(r1)                              
ffc13968:	48 00 57 2d 	bl      ffc19094 <_savegpr_31>                 
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
ffc1396c:	83 e4 00 00 	lwz     r31,0(r4)                              
                                                                      
  /*                                                                  
   * You cannot remove a node that still has children                 
   */                                                                 
                                                                      
  if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 
ffc13970:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc13974:	38 1f 00 54 	addi    r0,r31,84                              
ffc13978:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc1397c:	41 be 00 10 	beq+    cr7,ffc1398c <imfs_dir_rmnod+0x34>     
     rtems_set_errno_and_return_minus_one( ENOTEMPTY );               
ffc13980:	48 00 09 89 	bl      ffc14308 <__errno>                     
ffc13984:	38 00 00 5a 	li      r0,90                                  
ffc13988:	48 00 00 1c 	b       ffc139a4 <imfs_dir_rmnod+0x4c>         
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
ffc1398c:	81 24 00 10 	lwz     r9,16(r4)                              
ffc13990:	80 09 00 1c 	lwz     r0,28(r9)                              
ffc13994:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc13998:	40 be 00 18 	bne+    cr7,ffc139b0 <imfs_dir_rmnod+0x58>     
     rtems_set_errno_and_return_minus_one( EBUSY );                   
ffc1399c:	48 00 09 6d 	bl      ffc14308 <__errno>                     
ffc139a0:	38 00 00 10 	li      r0,16                                  
ffc139a4:	90 03 00 00 	stw     r0,0(r3)                               
ffc139a8:	38 60 ff ff 	li      r3,-1                                  
ffc139ac:	48 00 00 24 	b       ffc139d0 <imfs_dir_rmnod+0x78>         
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
ffc139b0:	80 1f 00 5c 	lwz     r0,92(r31)                             
ffc139b4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc139b8:	40 be ff e4 	bne-    cr7,ffc1399c <imfs_dir_rmnod+0x44>     <== NEVER TAKEN
     rtems_set_errno_and_return_minus_one( EBUSY );                   
                                                                      
  IMFS_create_orphan( the_jnode );                                    
ffc139bc:	7f e3 fb 78 	mr      r3,r31                                 
ffc139c0:	4b ff c7 25 	bl      ffc100e4 <IMFS_create_orphan>          
  IMFS_check_node_remove( the_jnode );                                
ffc139c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc139c8:	4b ff c7 75 	bl      ffc1013c <IMFS_check_node_remove>      
                                                                      
  return 0;                                                           
ffc139cc:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc139d0:	39 61 00 10 	addi    r11,r1,16                              
ffc139d4:	48 00 57 0c 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc04fa0 <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
ffc04fa0:	7c 08 02 a6 	mflr    r0                                     
ffc04fa4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04fa8:	94 21 ff f0 	stwu    r1,-16(r1)                             
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
ffc04fac:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/*                                                                    
 * Initialize useable but dummy databases                             
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc04fb0:	90 01 00 14 	stw     r0,20(r1)                              
ffc04fb4:	48 01 1d a9 	bl      ffc16d5c <_savegpr_31>                 
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
ffc04fb8:	88 09 28 6c 	lbz     r0,10348(r9)                           
ffc04fbc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04fc0:	40 be 00 bc 	bne+    cr7,ffc0507c <init_etc_passwd_group+0xdc>
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc04fc4:	3c 60 ff c2 	lis     r3,-62                                 
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc04fc8:	38 00 00 01 	li      r0,1                                   
  mkdir("/etc", 0777);                                                
ffc04fcc:	38 80 01 ff 	li      r4,511                                 
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc04fd0:	98 09 28 6c 	stb     r0,10348(r9)                           
  mkdir("/etc", 0777);                                                
ffc04fd4:	38 63 8a ef 	addi    r3,r3,-29969                           
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc04fd8:	3f e0 ff c2 	lis     r31,-62                                
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc04fdc:	48 00 09 d5 	bl      ffc059b0 <mkdir>                       
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc04fe0:	3b ff 8a f4 	addi    r31,r31,-29964                         
ffc04fe4:	3c 80 ff c2 	lis     r4,-62                                 
ffc04fe8:	7f e3 fb 78 	mr      r3,r31                                 
ffc04fec:	38 84 83 3c 	addi    r4,r4,-31940                           
ffc04ff0:	48 00 cf 61 	bl      ffc11f50 <fopen>                       
ffc04ff4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04ff8:	40 be 00 30 	bne+    cr7,ffc05028 <init_etc_passwd_group+0x88>
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
ffc04ffc:	3c 80 ff c2 	lis     r4,-62                                 
ffc05000:	7f e3 fb 78 	mr      r3,r31                                 
ffc05004:	38 84 8b 00 	addi    r4,r4,-29952                           
ffc05008:	48 00 cf 49 	bl      ffc11f50 <fopen>                       
ffc0500c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05010:	41 82 00 1c 	beq-    ffc0502c <init_etc_passwd_group+0x8c>  <== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
ffc05014:	3c 60 ff c2 	lis     r3,-62                                 
ffc05018:	38 63 8b 02 	addi    r3,r3,-29950                           
ffc0501c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05020:	48 00 cf f5 	bl      ffc12014 <fputs>                       
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
ffc05024:	7f e3 fb 78 	mr      r3,r31                                 
ffc05028:	48 00 c5 69 	bl      ffc11590 <fclose>                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
ffc0502c:	3f e0 ff c2 	lis     r31,-62                                
ffc05030:	3b ff 8b 69 	addi    r31,r31,-29847                         
ffc05034:	3c 80 ff c2 	lis     r4,-62                                 
ffc05038:	7f e3 fb 78 	mr      r3,r31                                 
ffc0503c:	38 84 83 3c 	addi    r4,r4,-31940                           
ffc05040:	48 00 cf 11 	bl      ffc11f50 <fopen>                       
ffc05044:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05048:	40 be 00 30 	bne+    cr7,ffc05078 <init_etc_passwd_group+0xd8>
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
ffc0504c:	3c 80 ff c2 	lis     r4,-62                                 
ffc05050:	7f e3 fb 78 	mr      r3,r31                                 
ffc05054:	38 84 8b 00 	addi    r4,r4,-29952                           
ffc05058:	48 00 ce f9 	bl      ffc11f50 <fopen>                       
ffc0505c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05060:	41 82 00 1c 	beq-    ffc0507c <init_etc_passwd_group+0xdc>  <== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
ffc05064:	3c 60 ff c2 	lis     r3,-62                                 
ffc05068:	38 63 8b 74 	addi    r3,r3,-29836                           
ffc0506c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05070:	48 00 cf a5 	bl      ffc12014 <fputs>                       
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
ffc05074:	7f e3 fb 78 	mr      r3,r31                                 
ffc05078:	48 00 c5 19 	bl      ffc11590 <fclose>                      
  }                                                                   
}                                                                     
ffc0507c:	39 61 00 10 	addi    r11,r1,16                              
ffc05080:	4b ff b8 48 	b       ffc008c8 <_restgpr_31_x>               
                                                                      

ffc072ec <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc072ec:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc072f0:	7c 08 02 a6 	mflr    r0                                     
ffc072f4:	90 01 00 14 	stw     r0,20(r1)                              
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc072f8:	80 04 00 30 	lwz     r0,48(r4)                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc072fc:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc07300:	7c 7e 1b 78 	mr      r30,r3                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc07304:	70 09 00 20 	andi.   r9,r0,32                               
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc07308:	7c 9f 23 78 	mr      r31,r4                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc0730c:	41 82 00 08 	beq-    ffc07314 <iproc+0x28>                  <== ALWAYS TAKEN
    c &= 0x7f;                                                        
ffc07310:	54 7e 06 7e 	clrlwi  r30,r3,25                              <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
ffc07314:	70 09 02 00 	andi.   r9,r0,512                              
ffc07318:	41 82 00 28 	beq-    ffc07340 <iproc+0x54>                  
    c = tolower (c);                                                  
ffc0731c:	3d 20 00 00 	lis     r9,0                                   
ffc07320:	81 29 26 f8 	lwz     r9,9976(r9)                            
ffc07324:	7d 29 f2 14 	add     r9,r9,r30                              
ffc07328:	89 29 00 01 	lbz     r9,1(r9)                               
ffc0732c:	55 29 07 be 	clrlwi  r9,r9,30                               
ffc07330:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc07334:	40 be 00 08 	bne+    cr7,ffc0733c <iproc+0x50>              
ffc07338:	3b de 00 20 	addi    r30,r30,32                             
ffc0733c:	57 de 06 3e 	clrlwi  r30,r30,24                             
                                                                      
  if (c == '\r') {                                                    
ffc07340:	2f 9e 00 0d 	cmpwi   cr7,r30,13                             
ffc07344:	40 be 00 20 	bne+    cr7,ffc07364 <iproc+0x78>              
    if (tty->termios.c_iflag & IGNCR)                                 
ffc07348:	70 09 00 80 	andi.   r9,r0,128                              
      return 0;                                                       
ffc0734c:	38 60 00 00 	li      r3,0                                   
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
ffc07350:	40 82 01 44 	bne-    ffc07494 <iproc+0x1a8>                 <== NEVER TAKEN
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
ffc07354:	70 09 01 00 	andi.   r9,r0,256                              
ffc07358:	41 82 00 2c 	beq-    ffc07384 <iproc+0x98>                  <== NEVER TAKEN
      c = '\n';                                                       
ffc0735c:	3b c0 00 0a 	li      r30,10                                 
ffc07360:	48 00 00 24 	b       ffc07384 <iproc+0x98>                  
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
ffc07364:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc07368:	40 be 00 14 	bne+    cr7,ffc0737c <iproc+0x90>              
ffc0736c:	70 09 00 40 	andi.   r9,r0,64                               
ffc07370:	41 82 00 14 	beq-    ffc07384 <iproc+0x98>                  <== ALWAYS TAKEN
    c = '\r';                                                         
ffc07374:	3b c0 00 0d 	li      r30,13                                 <== NOT EXECUTED
ffc07378:	48 00 00 0c 	b       ffc07384 <iproc+0x98>                  <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
ffc0737c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07380:	41 be 00 c8 	beq+    cr7,ffc07448 <iproc+0x15c>             <== NEVER TAKEN
ffc07384:	80 1f 00 3c 	lwz     r0,60(r31)                             
ffc07388:	70 09 00 02 	andi.   r9,r0,2                                
ffc0738c:	41 82 00 bc 	beq-    ffc07448 <iproc+0x15c>                 
    if (c == tty->termios.c_cc[VERASE]) {                             
ffc07390:	89 3f 00 43 	lbz     r9,67(r31)                             
      erase (tty, 0);                                                 
ffc07394:	7f e3 fb 78 	mr      r3,r31                                 
ffc07398:	38 80 00 00 	li      r4,0                                   
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    if (c == tty->termios.c_cc[VERASE]) {                             
ffc0739c:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc073a0:	41 9e 00 18 	beq-    cr7,ffc073b8 <iproc+0xcc>              
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
ffc073a4:	89 3f 00 44 	lbz     r9,68(r31)                             
ffc073a8:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc073ac:	40 be 00 14 	bne+    cr7,ffc073c0 <iproc+0xd4>              
      erase (tty, 1);                                                 
ffc073b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc073b4:	38 80 00 01 	li      r4,1                                   
ffc073b8:	4b ff fd 29 	bl      ffc070e0 <erase>                       
ffc073bc:	48 00 00 d4 	b       ffc07490 <iproc+0x1a4>                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
ffc073c0:	89 3f 00 45 	lbz     r9,69(r31)                             
      return 1;                                                       
ffc073c4:	38 60 00 01 	li      r3,1                                   
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
ffc073c8:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc073cc:	41 9e 00 c8 	beq-    cr7,ffc07494 <iproc+0x1a8>             <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
ffc073d0:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc073d4:	40 be 00 2c 	bne+    cr7,ffc07400 <iproc+0x114>             
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
ffc073d8:	70 09 00 48 	andi.   r9,r0,72                               
ffc073dc:	41 a2 00 10 	beq+    ffc073ec <iproc+0x100>                 <== NEVER TAKEN
        echo (c, tty);                                                
ffc073e0:	38 60 00 0a 	li      r3,10                                  
ffc073e4:	7f e4 fb 78 	mr      r4,r31                                 
ffc073e8:	4b ff fc 6d 	bl      ffc07054 <echo>                        
      tty->cbuf[tty->ccount++] = c;                                   
ffc073ec:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc073f0:	38 00 00 0a 	li      r0,10                                  
ffc073f4:	81 7f 00 1c 	lwz     r11,28(r31)                            
ffc073f8:	7c 0b 49 ae 	stbx    r0,r11,r9                              
ffc073fc:	48 00 00 3c 	b       ffc07438 <iproc+0x14c>                 
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
ffc07400:	89 3f 00 4c 	lbz     r9,76(r31)                             
ffc07404:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc07408:	41 9e 00 10 	beq-    cr7,ffc07418 <iproc+0x12c>             <== NEVER TAKEN
ffc0740c:	89 3f 00 51 	lbz     r9,81(r31)                             
ffc07410:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc07414:	40 be 00 34 	bne+    cr7,ffc07448 <iproc+0x15c>             <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
ffc07418:	70 09 00 08 	andi.   r9,r0,8                                <== NOT EXECUTED
ffc0741c:	41 a2 00 10 	beq+    ffc0742c <iproc+0x140>                 <== NOT EXECUTED
        echo (c, tty);                                                
ffc07420:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07424:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc07428:	4b ff fc 2d 	bl      ffc07054 <echo>                        <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
ffc0742c:	81 3f 00 20 	lwz     r9,32(r31)                             <== NOT EXECUTED
ffc07430:	81 7f 00 1c 	lwz     r11,28(r31)                            <== NOT EXECUTED
ffc07434:	7f cb 49 ae 	stbx    r30,r11,r9                             <== NOT EXECUTED
ffc07438:	39 29 00 01 	addi    r9,r9,1                                
ffc0743c:	91 3f 00 20 	stw     r9,32(r31)                             
      return 1;                                                       
ffc07440:	38 60 00 01 	li      r3,1                                   
ffc07444:	48 00 00 50 	b       ffc07494 <iproc+0x1a8>                 
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
ffc07448:	3d 20 00 00 	lis     r9,0                                   
ffc0744c:	81 29 21 5c 	lwz     r9,8540(r9)                            
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
ffc07450:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
ffc07454:	38 09 ff ff 	addi    r0,r9,-1                               
ffc07458:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0745c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc07460:	40 9c 00 34 	bge-    cr7,ffc07494 <iproc+0x1a8>             <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
ffc07464:	80 1f 00 3c 	lwz     r0,60(r31)                             
ffc07468:	70 09 00 08 	andi.   r9,r0,8                                
ffc0746c:	41 a2 00 10 	beq+    ffc0747c <iproc+0x190>                 <== NEVER TAKEN
      echo (c, tty);                                                  
ffc07470:	7f c3 f3 78 	mr      r3,r30                                 
ffc07474:	7f e4 fb 78 	mr      r4,r31                                 
ffc07478:	4b ff fb dd 	bl      ffc07054 <echo>                        
    tty->cbuf[tty->ccount++] = c;                                     
ffc0747c:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc07480:	81 7f 00 1c 	lwz     r11,28(r31)                            
ffc07484:	7f cb 49 ae 	stbx    r30,r11,r9                             
ffc07488:	39 29 00 01 	addi    r9,r9,1                                
ffc0748c:	91 3f 00 20 	stw     r9,32(r31)                             
  }                                                                   
  return 0;                                                           
ffc07490:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc07494:	39 61 00 10 	addi    r11,r1,16                              
ffc07498:	48 01 1c 44 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc24ae8 <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
ffc24ae8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc24aec:	7c 08 02 a6 	mflr    r0                                     
ffc24af0:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc24af4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc24af8:	7c 9f 23 78 	mr      r31,r4                                 
ffc24afc:	90 01 00 2c 	stw     r0,44(r1)                              
ffc24b00:	7c bd 2b 78 	mr      r29,r5                                 
  POSIX_signals_Siginfo_node  *psiginfo;                              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
ffc24b04:	4b ff fc 7d 	bl      ffc24780 <getpid>                      
ffc24b08:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc24b0c:	41 be 00 10 	beq+    cr7,ffc24b1c <killinfo+0x34>           
    rtems_set_errno_and_return_minus_one( ESRCH );                    
ffc24b10:	4b ff 14 69 	bl      ffc15f78 <__errno>                     
ffc24b14:	38 00 00 03 	li      r0,3                                   
ffc24b18:	48 00 00 14 	b       ffc24b2c <killinfo+0x44>               
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
ffc24b1c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc24b20:	40 be 00 18 	bne+    cr7,ffc24b38 <killinfo+0x50>           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc24b24:	4b ff 14 55 	bl      ffc15f78 <__errno>                     
ffc24b28:	38 00 00 16 	li      r0,22                                  
ffc24b2c:	90 03 00 00 	stw     r0,0(r3)                               
ffc24b30:	38 60 ff ff 	li      r3,-1                                  
ffc24b34:	48 00 02 24 	b       ffc24d58 <killinfo+0x270>              
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc24b38:	3b df ff ff 	addi    r30,r31,-1                             
                                                                      
  if ( !is_valid_signo(sig) )                                         
ffc24b3c:	2b 9e 00 1f 	cmplwi  cr7,r30,31                             
ffc24b40:	41 bd ff e4 	bgt-    cr7,ffc24b24 <killinfo+0x3c>           
    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 )          
ffc24b44:	1c 1f 00 0c 	mulli   r0,r31,12                              
ffc24b48:	3d 20 00 00 	lis     r9,0                                   
ffc24b4c:	39 29 32 ac 	addi    r9,r9,12972                            
ffc24b50:	7d 29 02 14 	add     r9,r9,r0                               
ffc24b54:	80 09 00 08 	lwz     r0,8(r9)                               
    return 0;                                                         
ffc24b58:	38 60 00 00 	li      r3,0                                   
    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 )          
ffc24b5c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc24b60:	41 9e 01 f8 	beq-    cr7,ffc24d58 <killinfo+0x270>          
  /*                                                                  
   *  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 ) )      
ffc24b64:	2f 9f 00 08 	cmpwi   cr7,r31,8                              
ffc24b68:	41 9e 00 14 	beq-    cr7,ffc24b7c <killinfo+0x94>           
ffc24b6c:	2f 9f 00 04 	cmpwi   cr7,r31,4                              
ffc24b70:	41 9e 00 0c 	beq-    cr7,ffc24b7c <killinfo+0x94>           
ffc24b74:	2f 9f 00 0b 	cmpwi   cr7,r31,11                             
ffc24b78:	40 be 00 14 	bne+    cr7,ffc24b8c <killinfo+0xa4>           
      return pthread_kill( pthread_self(), sig );                     
ffc24b7c:	48 00 04 1d 	bl      ffc24f98 <pthread_self>                
ffc24b80:	7f e4 fb 78 	mr      r4,r31                                 
ffc24b84:	48 00 03 35 	bl      ffc24eb8 <pthread_kill>                
ffc24b88:	48 00 01 d0 	b       ffc24d58 <killinfo+0x270>              
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
ffc24b8c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
ffc24b90:	93 e1 00 08 	stw     r31,8(r1)                              
                                                                      
static inline sigset_t signo_to_mask(                                 
  uint32_t sig                                                        
)                                                                     
{                                                                     
  return 1u << (sig - 1);                                             
ffc24b94:	38 00 00 01 	li      r0,1                                   
ffc24b98:	7c 1e f0 30 	slw     r30,r0,r30                             
  siginfo->si_code = SI_USER;                                         
ffc24b9c:	90 01 00 0c 	stw     r0,12(r1)                              
  if ( !value ) {                                                     
ffc24ba0:	40 be 00 0c 	bne+    cr7,ffc24bac <killinfo+0xc4>           
    siginfo->si_value.sival_int = 0;                                  
ffc24ba4:	93 a1 00 10 	stw     r29,16(r1)                             
ffc24ba8:	48 00 00 0c 	b       ffc24bb4 <killinfo+0xcc>               
  } else {                                                            
    siginfo->si_value = *value;                                       
ffc24bac:	80 1d 00 00 	lwz     r0,0(r29)                              
ffc24bb0:	90 01 00 10 	stw     r0,16(r1)                              
ffc24bb4:	3d 20 00 00 	lis     r9,0                                   
ffc24bb8:	81 69 27 f4 	lwz     r11,10228(r9)                          
ffc24bbc:	38 0b 00 01 	addi    r0,r11,1                               
ffc24bc0:	90 09 27 f4 	stw     r0,10228(r9)                           
                                                                      
  /*                                                                  
   *  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;                                     
ffc24bc4:	3d 20 00 00 	lis     r9,0                                   
ffc24bc8:	80 69 32 9c 	lwz     r3,12956(r9)                           
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
  if ( _POSIX_signals_Is_interested( api, mask ) ) {                  
ffc24bcc:	81 23 01 48 	lwz     r9,328(r3)                             
ffc24bd0:	80 09 00 d0 	lwz     r0,208(r9)                             
ffc24bd4:	7f c5 00 79 	andc.   r5,r30,r0                              
ffc24bd8:	40 82 01 00 	bne-    ffc24cd8 <killinfo+0x1f0>              
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
ffc24bdc:	3d 20 00 00 	lis     r9,0                                   
ffc24be0:	3d 60 00 00 	lis     r11,0                                  
ffc24be4:	81 29 34 38 	lwz     r9,13368(r9)                           
ffc24be8:	38 0b 34 3c 	addi    r0,r11,13372                           
ffc24bec:	48 00 00 28 	b       ffc24c14 <killinfo+0x12c>              
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc24bf0:	81 49 00 30 	lwz     r10,48(r9)                             
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
ffc24bf4:	7d 23 4b 78 	mr      r3,r9                                  
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
ffc24bf8:	81 69 01 48 	lwz     r11,328(r9)                            
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc24bfc:	7f c8 50 39 	and.    r8,r30,r10                             
ffc24c00:	40 82 00 d8 	bne-    ffc24cd8 <killinfo+0x1f0>              
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
ffc24c04:	81 6b 00 d0 	lwz     r11,208(r11)                           
ffc24c08:	7f ca 58 79 	andc.   r10,r30,r11                            
ffc24c0c:	40 82 00 cc 	bne-    ffc24cd8 <killinfo+0x1f0>              
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
ffc24c10:	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 = the_chain->first ;                                 
ffc24c14:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc24c18:	40 9e ff d8 	bne+    cr7,ffc24bf0 <killinfo+0x108>          
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
ffc24c1c:	3d 20 00 00 	lis     r9,0                                   
ffc24c20:	89 29 27 24 	lbz     r9,10020(r9)                           
ffc24c24:	3d 60 00 00 	lis     r11,0                                  
ffc24c28:	39 6b 2d 64 	addi    r11,r11,11620                          
ffc24c2c:	38 09 00 01 	addi    r0,r9,1                                
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
ffc24c30:	38 8b 00 08 	addi    r4,r11,8                               
   *                                                                  
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
ffc24c34:	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 ] )                     
ffc24c38:	85 2b 00 04 	lwzu    r9,4(r11)                              
ffc24c3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24c40:	41 9e 00 88 	beq-    cr7,ffc24cc8 <killinfo+0x1e0>          <== NEVER TAKEN
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
ffc24c44:	81 29 00 04 	lwz     r9,4(r9)                               
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
ffc24c48:	39 00 00 01 	li      r8,1                                   
       */                                                             
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
ffc24c4c:	a3 a9 00 10 	lhz     r29,16(r9)                             
ffc24c50:	80 e9 00 1c 	lwz     r7,28(r9)                              
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
ffc24c54:	48 00 00 6c 	b       ffc24cc0 <killinfo+0x1d8>              
      the_thread = (Thread_Control *) object_table[ index ];          
ffc24c58:	85 27 00 04 	lwzu    r9,4(r7)                               
                                                                      
      if ( !the_thread )                                              
ffc24c5c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24c60:	41 9e 00 5c 	beq-    cr7,ffc24cbc <killinfo+0x1d4>          
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
ffc24c64:	81 49 00 14 	lwz     r10,20(r9)                             
ffc24c68:	7f 8a 00 40 	cmplw   cr7,r10,r0                             
ffc24c6c:	41 9d 00 50 	bgt-    cr7,ffc24cbc <killinfo+0x1d4>          
      #if defined(RTEMS_DEBUG)                                        
        if ( !api )                                                   
          continue;                                                   
      #endif                                                          
                                                                      
      if ( !_POSIX_signals_Is_interested( api, mask ) )               
ffc24c70:	80 c9 01 48 	lwz     r6,328(r9)                             
ffc24c74:	80 c6 00 d0 	lwz     r6,208(r6)                             
ffc24c78:	7f dc 30 79 	andc.   r28,r30,r6                             
ffc24c7c:	41 82 00 40 	beq-    ffc24cbc <killinfo+0x1d4>              
       *                                                              
       *  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 ) {     
ffc24c80:	41 9c 00 34 	blt-    cr7,ffc24cb4 <killinfo+0x1cc>          
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
ffc24c84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24c88:	41 9e 00 34 	beq-    cr7,ffc24cbc <killinfo+0x1d4>          <== NEVER TAKEN
ffc24c8c:	80 a3 00 10 	lwz     r5,16(r3)                              
ffc24c90:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc24c94:	41 9e 00 28 	beq-    cr7,ffc24cbc <killinfo+0x1d4>          <== NEVER TAKEN
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
ffc24c98:	80 c9 00 10 	lwz     r6,16(r9)                              
ffc24c9c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc24ca0:	41 9e 00 14 	beq-    cr7,ffc24cb4 <killinfo+0x1cc>          
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
ffc24ca4:	74 bc 10 00 	andis.  r28,r5,4096                            
ffc24ca8:	40 82 00 14 	bne-    ffc24cbc <killinfo+0x1d4>              
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
ffc24cac:	74 c5 10 00 	andis.  r5,r6,4096                             
ffc24cb0:	41 82 00 0c 	beq-    ffc24cbc <killinfo+0x1d4>              
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
ffc24cb4:	7d 40 53 78 	mr      r0,r10                                 
ffc24cb8:	7d 23 4b 78 	mr      r3,r9                                  
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
ffc24cbc:	39 08 00 01 	addi    r8,r8,1                                
ffc24cc0:	7f 88 e8 40 	cmplw   cr7,r8,r29                             
ffc24cc4:	40 9d ff 94 	ble+    cr7,ffc24c58 <killinfo+0x170>          
   *    + 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++) {
ffc24cc8:	7f 8b 20 00 	cmpw    cr7,r11,r4                             
ffc24ccc:	40 be ff 6c 	bne-    cr7,ffc24c38 <killinfo+0x150>          
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
ffc24cd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24cd4:	41 9e 00 18 	beq-    cr7,ffc24cec <killinfo+0x204>          
                                                                      
  /*                                                                  
   *  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 ) ) {  
ffc24cd8:	7f e4 fb 78 	mr      r4,r31                                 
ffc24cdc:	38 a1 00 08 	addi    r5,r1,8                                
ffc24ce0:	48 00 00 a9 	bl      ffc24d88 <_POSIX_signals_Unblock_thread>
ffc24ce4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24ce8:	40 9e 00 68 	bne-    cr7,ffc24d50 <killinfo+0x268>          
                                                                      
  /*                                                                  
   *  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 );                         
ffc24cec:	7f c3 f3 78 	mr      r3,r30                                 
ffc24cf0:	48 00 00 71 	bl      ffc24d60 <_POSIX_signals_Set_process_signals>
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
ffc24cf4:	1f ff 00 0c 	mulli   r31,r31,12                             
ffc24cf8:	3d 20 00 00 	lis     r9,0                                   
ffc24cfc:	39 29 32 ac 	addi    r9,r9,12972                            
ffc24d00:	7c 09 f8 2e 	lwzx    r0,r9,r31                              
ffc24d04:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc24d08:	40 be 00 48 	bne+    cr7,ffc24d50 <killinfo+0x268>          
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
ffc24d0c:	3c 60 00 00 	lis     r3,0                                   
ffc24d10:	38 63 34 2c 	addi    r3,r3,13356                            
ffc24d14:	4b fe 94 4d 	bl      ffc0e160 <_Chain_Get>                  
    if ( !psiginfo ) {                                                
ffc24d18:	7c 64 1b 79 	mr.     r4,r3                                  
ffc24d1c:	40 a2 00 14 	bne+    ffc24d30 <killinfo+0x248>              
      _Thread_Enable_dispatch();                                      
ffc24d20:	4b fe ae 01 	bl      ffc0fb20 <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
ffc24d24:	4b ff 12 55 	bl      ffc15f78 <__errno>                     
ffc24d28:	38 00 00 0b 	li      r0,11                                  
ffc24d2c:	4b ff fe 00 	b       ffc24b2c <killinfo+0x44>               
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
ffc24d30:	39 24 00 08 	addi    r9,r4,8                                
ffc24d34:	39 61 00 08 	addi    r11,r1,8                               
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
ffc24d38:	3c 60 00 00 	lis     r3,0                                   
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
ffc24d3c:	7c ab 64 aa 	lswi    r5,r11,12                              
ffc24d40:	7c a9 65 aa 	stswi   r5,r9,12                               
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
ffc24d44:	38 63 34 a0 	addi    r3,r3,13472                            
ffc24d48:	7c 63 fa 14 	add     r3,r3,r31                              
ffc24d4c:	4b fe 93 bd 	bl      ffc0e108 <_Chain_Append>               
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
ffc24d50:	4b fe ad d1 	bl      ffc0fb20 <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc24d54:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc24d58:	39 61 00 28 	addi    r11,r1,40                              
ffc24d5c:	4b fd d2 28 	b       ffc01f84 <_restgpr_28_x>               
                                                                      

ffc196a0 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
ffc196a0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc196a4:	7c 08 02 a6 	mflr    r0                                     
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
ffc196a8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
extern void _wrapup_reent(struct _reent *);                           
extern void _reclaim_reent(struct _reent *);                          
                                                                      
void libc_wrapup(void)                                                
{                                                                     
ffc196ac:	90 01 00 14 	stw     r0,20(r1)                              
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
ffc196b0:	80 09 27 d4 	lwz     r0,10196(r9)                           
                                                                      
extern void _wrapup_reent(struct _reent *);                           
extern void _reclaim_reent(struct _reent *);                          
                                                                      
void libc_wrapup(void)                                                
{                                                                     
ffc196b4:	bf c1 00 08 	stmw    r30,8(r1)                              
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
ffc196b8:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc196bc:	40 be 00 50 	bne+    cr7,ffc1970c <libc_wrapup+0x6c>        <== NEVER TAKEN
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
ffc196c0:	3d 20 00 00 	lis     r9,0                                   
ffc196c4:	3f c0 00 00 	lis     r30,0                                  
ffc196c8:	83 e9 27 00 	lwz     r31,9984(r9)                           
ffc196cc:	80 1e 26 fc 	lwz     r0,9980(r30)                           
ffc196d0:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc196d4:	41 9e 00 10 	beq-    cr7,ffc196e4 <libc_wrapup+0x44>        
      _wrapup_reent(_global_impure_ptr);                              
ffc196d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc196dc:	48 00 04 31 	bl      ffc19b0c <_wrapup_reent>               
      /*  Don't reclaim this one, just in case we do printfs          
       *  on the way out to ROM.                                      
       */                                                             
      _reclaim_reent(&libc_global_reent);                             
#endif                                                                
      _REENT = _global_impure_ptr;                                    
ffc196e0:	93 fe 26 fc 	stw     r31,9980(r30)                          
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
ffc196e4:	3f e0 00 00 	lis     r31,0                                  
ffc196e8:	81 3f 26 fc 	lwz     r9,9980(r31)                           
ffc196ec:	80 69 00 04 	lwz     r3,4(r9)                               
ffc196f0:	4b ff ad b9 	bl      ffc144a8 <fclose>                      
  fclose (stdout);                                                    
ffc196f4:	81 3f 26 fc 	lwz     r9,9980(r31)                           
ffc196f8:	80 69 00 08 	lwz     r3,8(r9)                               
ffc196fc:	4b ff ad ad 	bl      ffc144a8 <fclose>                      
  fclose (stderr);                                                    
ffc19700:	81 3f 26 fc 	lwz     r9,9980(r31)                           
ffc19704:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc19708:	4b ff ad a1 	bl      ffc144a8 <fclose>                      
}                                                                     
ffc1970c:	39 61 00 10 	addi    r11,r1,16                              
ffc19710:	4b ff f9 cc 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc1957c <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
ffc1957c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc19580:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc19584:	3d 20 00 00 	lis     r9,0                                   
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
ffc19588:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1958c:	80 09 26 ac 	lwz     r0,9900(r9)                            
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
ffc19590:	bf a1 00 0c 	stmw    r29,12(r1)                             
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc19594:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc19598:	40 9c 00 20 	bge-    cr7,ffc195b8 <lseek+0x3c>              
  iop = rtems_libio_iop( fd );                                        
ffc1959c:	3d 20 00 00 	lis     r9,0                                   
ffc195a0:	83 a9 27 6c 	lwz     r29,10092(r9)                          
ffc195a4:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc195a8:	7f bd 1a 14 	add     r29,r29,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc195ac:	80 1d 00 18 	lwz     r0,24(r29)                             
ffc195b0:	70 09 01 00 	andi.   r9,r0,256                              
ffc195b4:	40 a2 00 10 	bne+    ffc195c4 <lseek+0x48>                  
ffc195b8:	4b ff ad 51 	bl      ffc14308 <__errno>                     
ffc195bc:	38 00 00 09 	li      r0,9                                   
ffc195c0:	48 00 00 60 	b       ffc19620 <lseek+0xa4>                  
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
  switch ( whence ) {                                                 
ffc195c4:	2f 87 00 01 	cmpwi   cr7,r7,1                               
                                                                      
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
ffc195c8:	83 dd 00 10 	lwz     r30,16(r29)                            
ffc195cc:	83 fd 00 14 	lwz     r31,20(r29)                            
  switch ( whence ) {                                                 
ffc195d0:	41 9e 00 20 	beq-    cr7,ffc195f0 <lseek+0x74>              
ffc195d4:	2f 87 00 02 	cmpwi   cr7,r7,2                               
ffc195d8:	41 9e 00 24 	beq-    cr7,ffc195fc <lseek+0x80>              
ffc195dc:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc195e0:	40 9e 00 38 	bne-    cr7,ffc19618 <lseek+0x9c>              
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
ffc195e4:	90 bd 00 10 	stw     r5,16(r29)                             
ffc195e8:	90 dd 00 14 	stw     r6,20(r29)                             
      break;                                                          
ffc195ec:	48 00 00 44 	b       ffc19630 <lseek+0xb4>                  
                                                                      
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
ffc195f0:	7d 46 f8 14 	addc    r10,r6,r31                             
ffc195f4:	7d 25 f1 14 	adde    r9,r5,r30                              
ffc195f8:	48 00 00 14 	b       ffc1960c <lseek+0x90>                  
      break;                                                          
                                                                      
    case SEEK_END:                                                    
      iop->offset = iop->size + offset;                               
ffc195fc:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc19600:	81 5d 00 0c 	lwz     r10,12(r29)                            
ffc19604:	7d 4a 30 14 	addc    r10,r10,r6                             
ffc19608:	7d 29 29 14 	adde    r9,r9,r5                               
ffc1960c:	91 3d 00 10 	stw     r9,16(r29)                             
ffc19610:	91 5d 00 14 	stw     r10,20(r29)                            
      break;                                                          
ffc19614:	48 00 00 1c 	b       ffc19630 <lseek+0xb4>                  
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc19618:	4b ff ac f1 	bl      ffc14308 <__errno>                     
ffc1961c:	38 00 00 16 	li      r0,22                                  
ffc19620:	90 03 00 00 	stw     r0,0(r3)                               
ffc19624:	39 20 ff ff 	li      r9,-1                                  
ffc19628:	39 40 ff ff 	li      r10,-1                                 
ffc1962c:	48 00 00 38 	b       ffc19664 <lseek+0xe8>                  
  /*                                                                  
   *  At this time, handlers assume iop->offset has the desired       
   *  new offset.                                                     
   */                                                                 
                                                                      
  status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence ); 
ffc19630:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc19634:	7f a3 eb 78 	mr      r3,r29                                 
ffc19638:	80 09 00 14 	lwz     r0,20(r9)                              
ffc1963c:	7c 09 03 a6 	mtctr   r0                                     
ffc19640:	4e 80 04 21 	bctrl                                          
ffc19644:	7c 69 1b 78 	mr      r9,r3                                  
  if ( status == (off_t) -1 )                                         
ffc19648:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
  /*                                                                  
   *  At this time, handlers assume iop->offset has the desired       
   *  new offset.                                                     
   */                                                                 
                                                                      
  status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence ); 
ffc1964c:	7c 8a 23 78 	mr      r10,r4                                 
  if ( status == (off_t) -1 )                                         
ffc19650:	40 be 00 14 	bne+    cr7,ffc19664 <lseek+0xe8>              
ffc19654:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc19658:	40 be 00 0c 	bne+    cr7,ffc19664 <lseek+0xe8>              <== NEVER TAKEN
    iop->offset = old_offset;                                         
ffc1965c:	93 dd 00 10 	stw     r30,16(r29)                            
ffc19660:	93 fd 00 14 	stw     r31,20(r29)                            
  /*                                                                  
   *  So if the operation failed, we have to restore iop->offset.     
   */                                                                 
                                                                      
  return status;                                                      
}                                                                     
ffc19664:	39 61 00 18 	addi    r11,r1,24                              
ffc19668:	7d 23 4b 78 	mr      r3,r9                                  
ffc1966c:	7d 44 53 78 	mr      r4,r10                                 
ffc19670:	4b ff fa 68 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc055e8 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
ffc055e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc055ec:	7c 08 02 a6 	mflr    r0                                     
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc055f0:	3d 20 00 00 	lis     r9,0                                   
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc055f4:	90 01 00 14 	stw     r0,20(r1)                              
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc055f8:	39 29 2b 78 	addi    r9,r9,11128                            
ffc055fc:	81 69 00 04 	lwz     r11,4(r9)                              
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc05600:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc05604:	7c 7f 1b 78 	mr      r31,r3                                 
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc05608:	38 0b 00 01 	addi    r0,r11,1                               
ffc0560c:	90 09 00 04 	stw     r0,4(r9)                               
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    return (void *) 0;                                                
ffc05610:	3b c0 00 00 	li      r30,0                                  
  MSBUMP(malloc_calls, 1);                                            
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc05614:	4b ff fe 79 	bl      ffc0548c <malloc_deferred_frees_process>
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
ffc05618:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0561c:	41 9e 00 bc 	beq-    cr7,ffc056d8 <malloc+0xf0>             
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc05620:	3d 20 00 00 	lis     r9,0                                   
ffc05624:	80 09 27 d4 	lwz     r0,10196(r9)                           
ffc05628:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc0562c:	40 be 00 10 	bne+    cr7,ffc0563c <malloc+0x54>             
       !malloc_is_system_state_OK() )                                 
ffc05630:	4b ff fe 15 	bl      ffc05444 <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()) &&                    
ffc05634:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05638:	41 9e 00 a0 	beq-    cr7,ffc056d8 <malloc+0xf0>             <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
ffc0563c:	3d 20 00 00 	lis     r9,0                                   
ffc05640:	80 69 26 bc 	lwz     r3,9916(r9)                            
ffc05644:	7f e4 fb 78 	mr      r4,r31                                 
ffc05648:	38 a0 00 00 	li      r5,0                                   
ffc0564c:	38 c0 00 00 	li      r6,0                                   
ffc05650:	48 00 53 d1 	bl      ffc0aa20 <_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 ) {                                               
ffc05654:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc05658:	40 a2 00 40 	bne+    ffc05698 <malloc+0xb0>                 
    if (rtems_malloc_sbrk_helpers)                                    
ffc0565c:	3d 20 00 00 	lis     r9,0                                   
ffc05660:	81 29 27 2c 	lwz     r9,10028(r9)                           
ffc05664:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05668:	41 9e 00 1c 	beq-    cr7,ffc05684 <malloc+0x9c>             
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
ffc0566c:	80 09 00 04 	lwz     r0,4(r9)                               
ffc05670:	7f e3 fb 78 	mr      r3,r31                                 
ffc05674:	7c 09 03 a6 	mtctr   r0                                     
ffc05678:	4e 80 04 21 	bctrl                                          
    if ( !return_this ) {                                             
ffc0567c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc05680:	40 a2 00 18 	bne+    ffc05698 <malloc+0xb0>                 <== NEVER TAKEN
      errno = ENOMEM;                                                 
ffc05684:	48 00 ec 85 	bl      ffc14308 <__errno>                     
ffc05688:	38 00 00 0c 	li      r0,12                                  
ffc0568c:	90 03 00 00 	stw     r0,0(r3)                               
      return (void *) 0;                                              
ffc05690:	3b c0 00 00 	li      r30,0                                  
ffc05694:	48 00 00 44 	b       ffc056d8 <malloc+0xf0>                 
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
ffc05698:	3d 20 00 00 	lis     r9,0                                   
ffc0569c:	80 09 27 30 	lwz     r0,10032(r9)                           
ffc056a0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc056a4:	41 9e 00 14 	beq-    cr7,ffc056b8 <malloc+0xd0>             
    (*rtems_malloc_dirty_helper)( return_this, size );                
ffc056a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc056ac:	7c 09 03 a6 	mtctr   r0                                     
ffc056b0:	7f e4 fb 78 	mr      r4,r31                                 
ffc056b4:	4e 80 04 21 	bctrl                                          
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc056b8:	3d 20 00 00 	lis     r9,0                                   
ffc056bc:	81 29 27 28 	lwz     r9,10024(r9)                           
ffc056c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc056c4:	41 9e 00 14 	beq-    cr7,ffc056d8 <malloc+0xf0>             
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
ffc056c8:	80 09 00 04 	lwz     r0,4(r9)                               
ffc056cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc056d0:	7c 09 03 a6 	mtctr   r0                                     
ffc056d4:	4e 80 04 21 	bctrl                                          
                                                                      
  return return_this;                                                 
}                                                                     
ffc056d8:	39 61 00 10 	addi    r11,r1,16                              
ffc056dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc056e0:	48 01 39 fc 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc04afc <malloc_sbrk_extend_and_allocate>: } void *malloc_sbrk_extend_and_allocate( size_t size ) {
ffc04afc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04b00:	7c 08 02 a6 	mflr    r0                                     
   *  Round to the "requested sbrk amount" so hopefully we won't have 
   *  to grow again for a while.  This effectively does sbrk() calls  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
ffc04b04:	3d 20 00 00 	lis     r9,0                                   
}                                                                     
                                                                      
void *malloc_sbrk_extend_and_allocate(                                
  size_t size                                                         
)                                                                     
{                                                                     
ffc04b08:	90 01 00 1c 	stw     r0,28(r1)                              
   *  Round to the "requested sbrk amount" so hopefully we won't have 
   *  to grow again for a while.  This effectively does sbrk() calls  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
ffc04b0c:	80 09 27 64 	lwz     r0,10084(r9)                           
}                                                                     
                                                                      
void *malloc_sbrk_extend_and_allocate(                                
  size_t size                                                         
)                                                                     
{                                                                     
ffc04b10:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc04b14:	7c 7d 1b 78 	mr      r29,r3                                 
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
ffc04b18:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return (void *) 0;                                                
ffc04b1c:	3b c0 00 00 	li      r30,0                                  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
ffc04b20:	41 be 00 7c 	beq+    cr7,ffc04b9c <malloc_sbrk_extend_and_allocate+0xa0><== NEVER TAKEN
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
ffc04b24:	7f e3 02 14 	add     r31,r3,r0                              
ffc04b28:	7f ff 03 96 	divwu   r31,r31,r0                             
ffc04b2c:	7f ff 01 d6 	mullw   r31,r31,r0                             
                                                                      
  starting_address = (void *) sbrk(the_size);                         
ffc04b30:	7f e3 fb 78 	mr      r3,r31                                 
ffc04b34:	4b ff b9 55 	bl      ffc00488 <sbrk>                        
  if ( starting_address == (void*) -1 )                               
ffc04b38:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
  if ( sbrk_amount == 0 )                                             
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
                                                                      
  starting_address = (void *) sbrk(the_size);                         
ffc04b3c:	7c 64 1b 78 	mr      r4,r3                                  
  if ( starting_address == (void*) -1 )                               
ffc04b40:	41 9e 00 5c 	beq-    cr7,ffc04b9c <malloc_sbrk_extend_and_allocate+0xa0>
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
ffc04b44:	3f 80 00 00 	lis     r28,0                                  
ffc04b48:	80 7c 26 9c 	lwz     r3,9884(r28)                           
ffc04b4c:	7f e5 fb 78 	mr      r5,r31                                 
ffc04b50:	48 00 50 cd 	bl      ffc09c1c <_Protected_heap_Extend>      
ffc04b54:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04b58:	40 be 00 1c 	bne+    cr7,ffc04b74 <malloc_sbrk_extend_and_allocate+0x78>
          RTEMS_Malloc_Heap, starting_address, the_size) ) {          
    sbrk(-the_size);                                                  
ffc04b5c:	7c 7f 00 d0 	neg     r3,r31                                 
ffc04b60:	4b ff b9 29 	bl      ffc00488 <sbrk>                        
    errno = ENOMEM;                                                   
ffc04b64:	48 00 bd d5 	bl      ffc10938 <__errno>                     
ffc04b68:	38 00 00 0c 	li      r0,12                                  
ffc04b6c:	90 03 00 00 	stw     r0,0(r3)                               
    return (void *) 0;                                                
ffc04b70:	48 00 00 2c 	b       ffc04b9c <malloc_sbrk_extend_and_allocate+0xa0>
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
ffc04b74:	3d 20 00 00 	lis     r9,0                                   
ffc04b78:	80 7c 26 9c 	lwz     r3,9884(r28)                           
ffc04b7c:	80 09 2c 28 	lwz     r0,11304(r9)                           
ffc04b80:	7f a4 eb 78 	mr      r4,r29                                 
ffc04b84:	38 a0 00 00 	li      r5,0                                   
ffc04b88:	7f ff 02 14 	add     r31,r31,r0                             
ffc04b8c:	38 c0 00 00 	li      r6,0                                   
ffc04b90:	93 e9 2c 28 	stw     r31,11304(r9)                          
ffc04b94:	48 00 50 31 	bl      ffc09bc4 <_Protected_heap_Allocate_aligned_with_boundary>
ffc04b98:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
ffc04b9c:	39 61 00 18 	addi    r11,r1,24                              
ffc04ba0:	7f c3 f3 78 	mr      r3,r30                                 
ffc04ba4:	4b ff ba 14 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc13308 <memfile_ftruncate>: */ int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
ffc13308:	7c 08 02 a6 	mflr    r0                                     
ffc1330c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc13310:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc13314:	90 01 00 24 	stw     r0,36(r1)                              
ffc13318:	48 00 5d 7d 	bl      ffc19094 <_savegpr_31>                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc1331c:	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 )                           
ffc13320:	80 1f 00 50 	lwz     r0,80(r31)                             
ffc13324:	7f 80 28 00 	cmpw    cr7,r0,r5                              
ffc13328:	41 9c 00 14 	blt-    cr7,ffc1333c <memfile_ftruncate+0x34>  <== NEVER TAKEN
ffc1332c:	40 be 00 1c 	bne+    cr7,ffc13348 <memfile_ftruncate+0x40>  <== NEVER TAKEN
ffc13330:	80 1f 00 54 	lwz     r0,84(r31)                             
ffc13334:	7f 80 30 40 	cmplw   cr7,r0,r6                              
ffc13338:	40 bc 00 10 	bge+    cr7,ffc13348 <memfile_ftruncate+0x40>  
    return IMFS_memfile_extend( the_jnode, length );                  
ffc1333c:	7f e3 fb 78 	mr      r3,r31                                 
ffc13340:	4b ff fb fd 	bl      ffc12f3c <IMFS_memfile_extend>         
ffc13344:	48 00 00 2c 	b       ffc13370 <memfile_ftruncate+0x68>      
  /*                                                                  
   *  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;                                 
ffc13348:	90 bf 00 50 	stw     r5,80(r31)                             
  iop->size = the_jnode->info.file.size;                              
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc1334c:	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;                                 
ffc13350:	90 df 00 54 	stw     r6,84(r31)                             
  iop->size = the_jnode->info.file.size;                              
ffc13354:	90 a3 00 08 	stw     r5,8(r3)                               
ffc13358:	90 c3 00 0c 	stw     r6,12(r3)                              
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc1335c:	38 61 00 08 	addi    r3,r1,8                                
ffc13360:	4b ff 1f a1 	bl      ffc05300 <gettimeofday>                
ffc13364:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
  return 0;                                                           
ffc13368:	38 60 00 00 	li      r3,0                                   
   *  future use and just set the length.                             
   */                                                                 
  the_jnode->info.file.size = length;                                 
  iop->size = the_jnode->info.file.size;                              
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc1336c:	90 1f 00 40 	stw     r0,64(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc13370:	39 61 00 20 	addi    r11,r1,32                              
ffc13374:	48 00 5d 6c 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc13378 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
ffc13378:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1337c:	7c 08 02 a6 	mflr    r0                                     
ffc13380:	90 01 00 14 	stw     r0,20(r1)                              
ffc13384:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc13388:	7c 7f 1b 78 	mr      r31,r3                                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc1338c:	83 c3 00 1c 	lwz     r30,28(r3)                             
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
ffc13390:	80 1e 00 4c 	lwz     r0,76(r30)                             
ffc13394:	2f 80 00 06 	cmpwi   cr7,r0,6                               
ffc13398:	40 9e 00 34 	bne-    cr7,ffc133cc <memfile_lseek+0x54>      
    if (iop->offset > the_jnode->info.linearfile.size)                
ffc1339c:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc133a0:	81 63 00 10 	lwz     r11,16(r3)                             
ffc133a4:	80 1e 00 54 	lwz     r0,84(r30)                             
ffc133a8:	7f 8b 48 00 	cmpw    cr7,r11,r9                             
ffc133ac:	41 9d 00 14 	bgt-    cr7,ffc133c0 <memfile_lseek+0x48>      <== NEVER TAKEN
ffc133b0:	40 9e 00 5c 	bne-    cr7,ffc1340c <memfile_lseek+0x94>      <== NEVER TAKEN
ffc133b4:	81 63 00 14 	lwz     r11,20(r3)                             
ffc133b8:	7f 8b 00 40 	cmplw   cr7,r11,r0                             
ffc133bc:	40 9d 00 50 	ble-    cr7,ffc1340c <memfile_lseek+0x94>      <== ALWAYS TAKEN
      iop->offset = the_jnode->info.linearfile.size;                  
ffc133c0:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
ffc133c4:	90 1f 00 14 	stw     r0,20(r31)                             <== NOT EXECUTED
ffc133c8:	48 00 00 44 	b       ffc1340c <memfile_lseek+0x94>          <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
ffc133cc:	80 bf 00 10 	lwz     r5,16(r31)                             
ffc133d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc133d4:	80 df 00 14 	lwz     r6,20(r31)                             
ffc133d8:	4b ff fb 65 	bl      ffc12f3c <IMFS_memfile_extend>         
ffc133dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc133e0:	41 be 00 1c 	beq+    cr7,ffc133fc <memfile_lseek+0x84>      
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
ffc133e4:	48 00 0f 25 	bl      ffc14308 <__errno>                     
ffc133e8:	38 00 00 1c 	li      r0,28                                  
ffc133ec:	90 03 00 00 	stw     r0,0(r3)                               
ffc133f0:	39 20 ff ff 	li      r9,-1                                  
ffc133f4:	39 40 ff ff 	li      r10,-1                                 
ffc133f8:	48 00 00 1c 	b       ffc13414 <memfile_lseek+0x9c>          
                                                                      
    iop->size = the_jnode->info.file.size;                            
ffc133fc:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc13400:	81 5e 00 54 	lwz     r10,84(r30)                            
ffc13404:	91 3f 00 08 	stw     r9,8(r31)                              
ffc13408:	91 5f 00 0c 	stw     r10,12(r31)                            
  }                                                                   
  return iop->offset;                                                 
ffc1340c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc13410:	81 5f 00 14 	lwz     r10,20(r31)                            
}                                                                     
ffc13414:	39 61 00 10 	addi    r11,r1,16                              
ffc13418:	7d 23 4b 78 	mr      r3,r9                                  
ffc1341c:	7d 44 53 78 	mr      r4,r10                                 
ffc13420:	48 00 5c bc 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc13248 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
ffc13248:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1324c:	7c 08 02 a6 	mflr    r0                                     
ffc13250:	90 01 00 14 	stw     r0,20(r1)                              
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
ffc13254:	80 03 00 18 	lwz     r0,24(r3)                              
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
ffc13258:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1325c:	7c 7e 1b 78 	mr      r30,r3                                 
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
ffc13260:	70 09 02 04 	andi.   r9,r0,516                              
  uint32_t       mode                                                 
)                                                                     
{                                                                     
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc13264:	83 e3 00 1c 	lwz     r31,28(r3)                             
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
ffc13268:	41 82 00 64 	beq-    ffc132cc <memfile_open+0x84>           
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
ffc1326c:	80 1f 00 4c 	lwz     r0,76(r31)                             
ffc13270:	2f 80 00 06 	cmpwi   cr7,r0,6                               
ffc13274:	40 be 00 58 	bne+    cr7,ffc132cc <memfile_open+0x84>       <== ALWAYS TAKEN
    uint32_t   count = the_jnode->info.linearfile.size;               
ffc13278:	81 1f 00 54 	lwz     r8,84(r31)                             <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
ffc1327c:	38 00 00 05 	li      r0,5                                   <== NOT EXECUTED
ffc13280:	90 1f 00 4c 	stw     r0,76(r31)                             <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
ffc13284:	39 20 00 00 	li      r9,0                                   <== 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)                                                  
ffc13288:	2f 88 00 00 	cmpwi   cr7,r8,0                               <== NOT EXECUTED
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
ffc1328c:	38 00 00 00 	li      r0,0                                   <== NOT EXECUTED
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
ffc13290:	80 ff 00 58 	lwz     r7,88(r31)                             <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
ffc13294:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc13298:	91 3f 00 50 	stw     r9,80(r31)                             <== NOT EXECUTED
ffc1329c:	91 5f 00 54 	stw     r10,84(r31)                            <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
ffc132a0:	90 1f 00 58 	stw     r0,88(r31)                             <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
ffc132a4:	90 1f 00 5c 	stw     r0,92(r31)                             <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
ffc132a8:	90 1f 00 60 	stw     r0,96(r31)                             <== NOT EXECUTED
    if ((count != 0)                                                  
ffc132ac:	41 be 00 20 	beq+    cr7,ffc132cc <memfile_open+0x84>       <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
ffc132b0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc132b4:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc132b8:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc132bc:	4b ff fd a1 	bl      ffc1305c <IMFS_memfile_write>          <== NOT EXECUTED
        return -1;                                                    
ffc132c0:	38 00 ff ff 	li      r0,-1                                  <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
ffc132c4:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              <== NOT EXECUTED
ffc132c8:	41 9e 00 34 	beq-    cr7,ffc132fc <memfile_open+0xb4>       <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
ffc132cc:	80 1e 00 18 	lwz     r0,24(r30)                             
ffc132d0:	70 09 02 00 	andi.   r9,r0,512                              
ffc132d4:	41 82 00 14 	beq-    ffc132e8 <memfile_open+0xa0>           
    iop->offset = the_jnode->info.file.size;                          
ffc132d8:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc132dc:	81 5f 00 54 	lwz     r10,84(r31)                            
ffc132e0:	91 3e 00 10 	stw     r9,16(r30)                             
ffc132e4:	91 5e 00 14 	stw     r10,20(r30)                            
                                                                      
  iop->size = the_jnode->info.file.size;                              
ffc132e8:	81 3f 00 50 	lwz     r9,80(r31)                             
  return 0;                                                           
ffc132ec:	38 00 00 00 	li      r0,0                                   
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
    iop->offset = the_jnode->info.file.size;                          
                                                                      
  iop->size = the_jnode->info.file.size;                              
ffc132f0:	81 5f 00 54 	lwz     r10,84(r31)                            
ffc132f4:	91 3e 00 08 	stw     r9,8(r30)                              
ffc132f8:	91 5e 00 0c 	stw     r10,12(r30)                            
  return 0;                                                           
}                                                                     
ffc132fc:	39 61 00 10 	addi    r11,r1,16                              
ffc13300:	7c 03 03 78 	mr      r3,r0                                  
ffc13304:	48 00 5d d8 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc0589c <mount>: /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
ffc0589c:	2b 86 00 01 	cmplwi  cr7,r6,1                               
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
ffc058a0:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc058a4:	7c 08 02 a6 	mflr    r0                                     
ffc058a8:	be 41 00 28 	stmw    r18,40(r1)                             
ffc058ac:	7c 7c 1b 78 	mr      r28,r3                                 
ffc058b0:	7c 9f 23 78 	mr      r31,r4                                 
ffc058b4:	90 01 00 64 	stw     r0,100(r1)                             
ffc058b8:	7c b9 2b 78 	mr      r25,r5                                 
ffc058bc:	7c d8 33 78 	mr      r24,r6                                 
ffc058c0:	7c fa 3b 78 	mr      r26,r7                                 
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
ffc058c4:	41 9d 00 14 	bgt-    cr7,ffc058d8 <mount+0x3c>              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
ffc058c8:	7c a3 2b 78 	mr      r3,r5                                  
ffc058cc:	48 00 af bd 	bl      ffc10888 <rtems_filesystem_get_mount_handler>
  if ( !mount_h )                                                     
ffc058d0:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc058d4:	40 a2 00 10 	bne+    ffc058e4 <mount+0x48>                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc058d8:	48 00 ea 31 	bl      ffc14308 <__errno>                     
ffc058dc:	38 00 00 16 	li      r0,22                                  
ffc058e0:	48 00 00 ec 	b       ffc059cc <mount+0x130>                 
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
  bool has_target = target != NULL;                                   
ffc058e4:	7f fd 00 34 	cntlzw  r29,r31                                
ffc058e8:	57 bd d9 7e 	rlwinm  r29,r29,27,5,31                        
ffc058ec:	6b bd 00 01 	xori    r29,r29,1                              
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
ffc058f0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc058f4:	7f f6 fb 78 	mr      r22,r31                                
ffc058f8:	40 be 00 0c 	bne+    cr7,ffc05904 <mount+0x68>              
ffc058fc:	3e c0 ff c2 	lis     r22,-62                                
ffc05900:	3a d6 a9 c8 	addi    r22,r22,-22072                         
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
ffc05904:	7f 23 cb 78 	mr      r3,r25                                 
ffc05908:	48 00 fb a1 	bl      ffc154a8 <strlen>                      
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc0590c:	2f 9c 00 00 	cmpwi   cr7,r28,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;          
ffc05910:	3a a3 00 01 	addi    r21,r3,1                               
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc05914:	3a e0 00 00 	li      r23,0                                  
ffc05918:	41 9e 00 10 	beq-    cr7,ffc05928 <mount+0x8c>              
ffc0591c:	7f 83 e3 78 	mr      r3,r28                                 
ffc05920:	48 00 fb 89 	bl      ffc154a8 <strlen>                      
ffc05924:	3a e3 00 01 	addi    r23,r3,1                               
  size_t target_size = strlen( target ) + 1;                          
ffc05928:	7e c3 b3 78 	mr      r3,r22                                 
ffc0592c:	48 00 fb 7d 	bl      ffc154a8 <strlen>                      
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
ffc05930:	38 95 00 74 	addi    r4,r21,116                             
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
ffc05934:	3a 43 00 01 	addi    r18,r3,1                               
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
ffc05938:	7c 84 ba 14 	add     r4,r4,r23                              
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
ffc0593c:	7c 73 1b 78 	mr      r19,r3                                 
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
ffc05940:	7c 84 92 14 	add     r4,r4,r18                              
ffc05944:	38 60 00 01 	li      r3,1                                   
ffc05948:	4b ff f6 fd 	bl      ffc05044 <calloc>                      
                                                                      
  if ( mt_entry != NULL ) {                                           
ffc0594c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc05950:	41 82 00 74 	beq-    ffc059c4 <mount+0x128>                 <== NEVER TAKEN
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
ffc05954:	3a 9e 00 74 	addi    r20,r30,116                            
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
ffc05958:	7f 24 cb 78 	mr      r4,r25                                 
ffc0595c:	7e a5 ab 78 	mr      r5,r21                                 
ffc05960:	7e 83 a3 78 	mr      r3,r20                                 
ffc05964:	48 00 f6 05 	bl      ffc14f68 <memcpy>                      
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
ffc05968:	7f 34 aa 14 	add     r25,r20,r21                            
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
ffc0596c:	92 9e 00 6c 	stw     r20,108(r30)                           
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
ffc05970:	7e e5 bb 78 	mr      r5,r23                                 
ffc05974:	7f 84 e3 78 	mr      r4,r28                                 
ffc05978:	7f 23 cb 78 	mr      r3,r25                                 
ffc0597c:	48 00 f5 ed 	bl      ffc14f68 <memcpy>                      
    mt_entry->dev = str;                                              
    str += source_size;                                               
ffc05980:	7e f9 ba 14 	add     r23,r25,r23                            
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
ffc05984:	93 3e 00 70 	stw     r25,112(r30)                           
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
ffc05988:	7e c4 b3 78 	mr      r4,r22                                 
ffc0598c:	7e 45 93 78 	mr      r5,r18                                 
ffc05990:	7e e3 bb 78 	mr      r3,r23                                 
ffc05994:	48 00 f5 d5 	bl      ffc14f68 <memcpy>                      
    mt_entry->target = str;                                           
ffc05998:	92 fe 00 68 	stw     r23,104(r30)                           
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
ffc0599c:	3c 80 ff c2 	lis     r4,-62                                 
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
ffc059a0:	93 de 00 2c 	stw     r30,44(r30)                            
  mt_entry->options = options;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
ffc059a4:	38 7e 00 38 	addi    r3,r30,56                              
ffc059a8:	38 84 aa 08 	addi    r4,r4,-22008                           
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
ffc059ac:	93 1e 00 30 	stw     r24,48(r30)                            
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
ffc059b0:	38 a0 00 30 	li      r5,48                                  
ffc059b4:	48 00 f5 b5 	bl      ffc14f68 <memcpy>                      
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
ffc059b8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc059bc:	41 be 00 d0 	beq+    cr7,ffc05a8c <mount+0x1f0>             
ffc059c0:	48 00 00 18 	b       ffc059d8 <mount+0x13c>                 
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
ffc059c4:	48 00 e9 45 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc059c8:	38 00 00 0c 	li      r0,12                                  <== NOT EXECUTED
ffc059cc:	90 03 00 00 	stw     r0,0(r3)                               
ffc059d0:	3b e0 ff ff 	li      r31,-1                                 
ffc059d4:	48 00 01 7c 	b       ffc05b50 <mount+0x2b4>                 
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
ffc059d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc059dc:	3b e1 00 08 	addi    r31,r1,8                               
ffc059e0:	7e 64 9b 78 	mr      r4,r19                                 
ffc059e4:	38 a0 00 07 	li      r5,7                                   
ffc059e8:	7f e6 fb 78 	mr      r6,r31                                 
ffc059ec:	38 e0 00 01 	li      r7,1                                   
ffc059f0:	4b ff f7 3d 	bl      ffc0512c <rtems_filesystem_evaluate_path>
ffc059f4:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc059f8:	41 9e 01 30 	beq-    cr7,ffc05b28 <mount+0x28c>             <== NEVER TAKEN
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc059fc:	81 21 00 14 	lwz     r9,20(r1)                              
ffc05a00:	7f e3 fb 78 	mr      r3,r31                                 
ffc05a04:	80 09 00 10 	lwz     r0,16(r9)                              
ffc05a08:	7c 09 03 a6 	mtctr   r0                                     
ffc05a0c:	4e 80 04 21 	bctrl                                          
ffc05a10:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc05a14:	41 be 00 10 	beq+    cr7,ffc05a24 <mount+0x188>             
      errno = ENOTDIR;                                                
ffc05a18:	48 00 e8 f1 	bl      ffc14308 <__errno>                     
ffc05a1c:	38 00 00 14 	li      r0,20                                  
ffc05a20:	48 00 00 24 	b       ffc05a44 <mount+0x1a8>                 
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
ffc05a24:	3c 60 ff c0 	lis     r3,-64                                 
ffc05a28:	80 81 00 08 	lwz     r4,8(r1)                               
ffc05a2c:	38 63 57 c4 	addi    r3,r3,22468                            
ffc05a30:	4b ff fe 01 	bl      ffc05830 <rtems_filesystem_mount_iterate>
ffc05a34:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05a38:	41 be 00 14 	beq+    cr7,ffc05a4c <mount+0x1b0>             
      errno = EBUSY;                                                  
ffc05a3c:	48 00 e8 cd 	bl      ffc14308 <__errno>                     
ffc05a40:	38 00 00 10 	li      r0,16                                  
ffc05a44:	90 03 00 00 	stw     r0,0(r3)                               
ffc05a48:	48 00 00 e8 	b       ffc05b30 <mount+0x294>                 
     *  may have been allocated in loc should not be sent to freenode 
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
ffc05a4c:	80 01 00 08 	lwz     r0,8(r1)                               
    /*                                                                
     *  This link to the parent is only done when we are dealing with system
     *  below the base file system                                    
     */                                                               
                                                                      
    if ( loc.ops->mount_h( mt_entry ) ) {                             
ffc05a50:	7f c3 f3 78 	mr      r3,r30                                 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
ffc05a54:	81 21 00 14 	lwz     r9,20(r1)                              
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
           target, target_length, RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
      goto cleanup_and_bail;                                          
                                                                      
    loc_to_free = &loc;                                               
ffc05a58:	7f fc fb 78 	mr      r28,r31                                
     *  may have been allocated in loc should not be sent to freenode 
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
ffc05a5c:	90 1e 00 08 	stw     r0,8(r30)                              
    mt_entry->mt_point_node.handlers = loc.handlers;                  
ffc05a60:	80 01 00 10 	lwz     r0,16(r1)                              
    mt_entry->mt_point_node.ops = loc.ops;                            
ffc05a64:	91 3e 00 14 	stw     r9,20(r30)                             
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
ffc05a68:	90 1e 00 10 	stw     r0,16(r30)                             
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
ffc05a6c:	80 01 00 18 	lwz     r0,24(r1)                              
ffc05a70:	90 1e 00 18 	stw     r0,24(r30)                             
    /*                                                                
     *  This link to the parent is only done when we are dealing with system
     *  below the base file system                                    
     */                                                               
                                                                      
    if ( loc.ops->mount_h( mt_entry ) ) {                             
ffc05a74:	80 09 00 20 	lwz     r0,32(r9)                              
ffc05a78:	7c 09 03 a6 	mtctr   r0                                     
ffc05a7c:	4e 80 04 21 	bctrl                                          
ffc05a80:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05a84:	41 be 00 34 	beq+    cr7,ffc05ab8 <mount+0x21c>             <== ALWAYS TAKEN
ffc05a88:	48 00 00 a8 	b       ffc05b30 <mount+0x294>                 <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
ffc05a8c:	3d 20 00 00 	lis     r9,0                                   
ffc05a90:	39 69 21 48 	addi    r11,r9,8520                            
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
ffc05a94:	81 29 21 48 	lwz     r9,8520(r9)                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc05a98:	38 0b 00 04 	addi    r0,r11,4                               
ffc05a9c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
)                                                                     
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
ffc05aa0:	3b 80 00 00 	li      r28,0                                  
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
ffc05aa4:	41 be 00 14 	beq+    cr7,ffc05ab8 <mount+0x21c>             <== ALWAYS TAKEN
      errno = EINVAL;                                                 
ffc05aa8:	48 00 e8 61 	bl      ffc14308 <__errno>                     <== NOT EXECUTED
ffc05aac:	38 00 00 16 	li      r0,22                                  <== NOT EXECUTED
ffc05ab0:	90 03 00 00 	stw     r0,0(r3)                               <== NOT EXECUTED
      goto cleanup_and_bail;                                          
ffc05ab4:	48 00 00 80 	b       ffc05b34 <mount+0x298>                 <== NOT EXECUTED
     *  mt_point_node.node_access will be left to null to indicate that this
     *  is the root of the entire file system.                        
     */                                                               
  }                                                                   
                                                                      
  if ( (*mount_h)( mt_entry, data ) ) {                               
ffc05ab8:	7f c3 f3 78 	mr      r3,r30                                 
ffc05abc:	7f 69 03 a6 	mtctr   r27                                    
ffc05ac0:	7f 44 d3 78 	mr      r4,r26                                 
ffc05ac4:	4e 80 04 21 	bctrl                                          
ffc05ac8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05acc:	41 be 00 1c 	beq+    cr7,ffc05ae8 <mount+0x24c>             
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
ffc05ad0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc05ad4:	7f c3 f3 78 	mr      r3,r30                                 
ffc05ad8:	80 09 00 28 	lwz     r0,40(r9)                              
ffc05adc:	7c 09 03 a6 	mtctr   r0                                     
ffc05ae0:	4e 80 04 21 	bctrl                                          
    goto cleanup_and_bail;                                            
ffc05ae4:	48 00 00 50 	b       ffc05b34 <mount+0x298>                 
  }                                                                   
                                                                      
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
ffc05ae8:	4b ff fc f1 	bl      ffc057d8 <rtems_libio_lock>            
ffc05aec:	3c 60 00 00 	lis     r3,0                                   
ffc05af0:	38 63 21 48 	addi    r3,r3,8520                             
ffc05af4:	7f c4 f3 78 	mr      r4,r30                                 
ffc05af8:	48 00 3d 35 	bl      ffc0982c <_Chain_Append>               
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
ffc05afc:	3b e0 00 00 	li      r31,0                                  
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
ffc05b00:	4b ff fd 09 	bl      ffc05808 <rtems_libio_unlock>          
                                                                      
  if ( !has_target )                                                  
ffc05b04:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc05b08:	40 9e 00 48 	bne-    cr7,ffc05b50 <mount+0x2b4>             
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
ffc05b0c:	3d 20 00 00 	lis     r9,0                                   
ffc05b10:	81 69 26 f4 	lwz     r11,9972(r9)                           
ffc05b14:	38 7e 00 1c 	addi    r3,r30,28                              
ffc05b18:	39 6b 00 18 	addi    r11,r11,24                             
ffc05b1c:	7c a3 a4 aa 	lswi    r5,r3,20                               
ffc05b20:	7c ab a5 aa 	stswi   r5,r11,20                              
ffc05b24:	48 00 00 2c 	b       ffc05b50 <mount+0x2b4>                 
)                                                                     
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
ffc05b28:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc05b2c:	48 00 00 08 	b       ffc05b34 <mount+0x298>                 <== NOT EXECUTED
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
           target, target_length, RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
      goto cleanup_and_bail;                                          
                                                                      
    loc_to_free = &loc;                                               
ffc05b30:	7f fc fb 78 	mr      r28,r31                                
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
ffc05b34:	7f c3 f3 78 	mr      r3,r30                                 
ffc05b38:	4b ff f7 15 	bl      ffc0524c <free>                        
                                                                      
  if ( loc_to_free )                                                  
ffc05b3c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
ffc05b40:	3b e0 ff ff 	li      r31,-1                                 
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
ffc05b44:	41 be 00 0c 	beq+    cr7,ffc05b50 <mount+0x2b4>             <== NEVER TAKEN
    rtems_filesystem_freenode( loc_to_free );                         
ffc05b48:	7f 83 e3 78 	mr      r3,r28                                 
ffc05b4c:	4b ff f6 d5 	bl      ffc05220 <rtems_filesystem_freenode>   
                                                                      
  return -1;                                                          
}                                                                     
ffc05b50:	39 61 00 60 	addi    r11,r1,96                              
ffc05b54:	7f e3 fb 78 	mr      r3,r31                                 
ffc05b58:	48 01 35 54 	b       ffc190ac <_restgpr_18_x>               
                                                                      

ffc04e34 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
ffc04e34:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04e38:	7c 08 02 a6 	mflr    r0                                     
ffc04e3c:	bf c1 00 18 	stmw    r30,24(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc04e40:	7c 9e 23 79 	mr.     r30,r4                                 
  const char *target,                                                 
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
ffc04e44:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04e48:	90 01 00 24 	stw     r0,36(r1)                              
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc04e4c:	41 82 00 40 	beq-    ffc04e8c <mount_and_make_target_path+0x58>
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
ffc04e50:	7f c3 f3 78 	mr      r3,r30                                 
ffc04e54:	90 a1 00 08 	stw     r5,8(r1)                               
ffc04e58:	38 80 01 ff 	li      r4,511                                 
ffc04e5c:	90 c1 00 0c 	stw     r6,12(r1)                              
ffc04e60:	90 e1 00 10 	stw     r7,16(r1)                              
ffc04e64:	48 00 09 d5 	bl      ffc05838 <rtems_mkdir>                 
    if (rv == 0) {                                                    
ffc04e68:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04e6c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc04e70:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc04e74:	80 e1 00 10 	lwz     r7,16(r1)                              
ffc04e78:	40 a2 00 24 	bne+    ffc04e9c <mount_and_make_target_path+0x68><== NEVER TAKEN
      rv = mount(                                                     
ffc04e7c:	7f e3 fb 78 	mr      r3,r31                                 
ffc04e80:	7f c4 f3 78 	mr      r4,r30                                 
ffc04e84:	48 00 00 f9 	bl      ffc04f7c <mount>                       
ffc04e88:	48 00 00 14 	b       ffc04e9c <mount_and_make_target_path+0x68>
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc04e8c:	48 00 b6 ed 	bl      ffc10578 <__errno>                     
ffc04e90:	38 00 00 16 	li      r0,22                                  
ffc04e94:	90 03 00 00 	stw     r0,0(r3)                               
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
ffc04e98:	38 60 ff ff 	li      r3,-1                                  
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04e9c:	39 61 00 20 	addi    r11,r1,32                              
ffc04ea0:	48 01 04 ac 	b       ffc1534c <_restgpr_30_x>               
                                                                      

ffc05d78 <newlib_delete_hook>: /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) {
ffc05d78:	7f 83 20 00 	cmpw    cr7,r3,r4                              
                                                                      
void newlib_delete_hook(                                              
  rtems_tcb *current_task,                                            
  rtems_tcb *deleted_task                                             
)                                                                     
{                                                                     
ffc05d7c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05d80:	7c 08 02 a6 	mflr    r0                                     
ffc05d84:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc05d88:	7c 7d 1b 78 	mr      r29,r3                                 
ffc05d8c:	7c 9e 23 78 	mr      r30,r4                                 
ffc05d90:	90 01 00 1c 	stw     r0,28(r1)                              
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
ffc05d94:	40 be 00 10 	bne+    cr7,ffc05da4 <newlib_delete_hook+0x2c> 
    ptr = _REENT;                                                     
ffc05d98:	3d 20 00 00 	lis     r9,0                                   
ffc05d9c:	83 e9 26 fc 	lwz     r31,9980(r9)                           
ffc05da0:	48 00 00 08 	b       ffc05da8 <newlib_delete_hook+0x30>     
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
ffc05da4:	83 e4 01 40 	lwz     r31,320(r4)                            
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
ffc05da8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05dac:	41 9e 00 2c 	beq-    cr7,ffc05dd8 <newlib_delete_hook+0x60> <== NEVER TAKEN
ffc05db0:	3d 20 00 00 	lis     r9,0                                   
ffc05db4:	80 09 27 00 	lwz     r0,9984(r9)                            
ffc05db8:	7f 9f 00 00 	cmpw    cr7,r31,r0                             
ffc05dbc:	41 9e 00 1c 	beq-    cr7,ffc05dd8 <newlib_delete_hook+0x60> 
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
ffc05dc0:	3c 80 ff c0 	lis     r4,-64                                 
ffc05dc4:	7f e3 fb 78 	mr      r3,r31                                 
ffc05dc8:	38 84 5b 60 	addi    r4,r4,23392                            
ffc05dcc:	48 00 ef 99 	bl      ffc14d64 <_fwalk>                      
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
ffc05dd0:	7f e3 fb 78 	mr      r3,r31                                 
ffc05dd4:	48 00 68 e1 	bl      ffc0c6b4 <_Workspace_Free>             
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
ffc05dd8:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
#else                                                                 
    _Workspace_Free(ptr);                                             
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
ffc05ddc:	38 00 00 00 	li      r0,0                                   
ffc05de0:	90 1e 01 40 	stw     r0,320(r30)                            
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
ffc05de4:	40 be 00 0c 	bne+    cr7,ffc05df0 <newlib_delete_hook+0x78> 
    _REENT = 0;                                                       
ffc05de8:	3d 20 00 00 	lis     r9,0                                   
ffc05dec:	90 09 26 fc 	stw     r0,9980(r9)                            
  }                                                                   
}                                                                     
ffc05df0:	39 61 00 18 	addi    r11,r1,24                              
ffc05df4:	48 01 32 e4 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc05b60 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
ffc05b60:	7c 2b 0b 78 	mr      r11,r1                                 
ffc05b64:	7c 08 02 a6 	mflr    r0                                     
ffc05b68:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05b6c:	48 01 35 29 	bl      ffc19094 <_savegpr_31>                 
ffc05b70:	90 01 00 14 	stw     r0,20(r1)                              
ffc05b74:	7c 7f 1b 78 	mr      r31,r3                                 
  switch ( fileno(fp) ) {                                             
ffc05b78:	48 00 ec 75 	bl      ffc147ec <fileno>                      
ffc05b7c:	2b 83 00 02 	cmplwi  cr7,r3,2                               
ffc05b80:	41 9d 00 34 	bgt-    cr7,ffc05bb4 <newlib_free_buffers+0x54><== NEVER TAKEN
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
ffc05b84:	a0 1f 00 0c 	lhz     r0,12(r31)                             
ffc05b88:	70 09 00 80 	andi.   r9,r0,128                              
ffc05b8c:	41 a2 00 30 	beq+    ffc05bbc <newlib_free_buffers+0x5c>    <== ALWAYS TAKEN
        free( fp->_bf._base );                                        
ffc05b90:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc05b94:	4b ff f6 b9 	bl      ffc0524c <free>                        <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
ffc05b98:	a0 1f 00 0c 	lhz     r0,12(r31)                             <== NOT EXECUTED
ffc05b9c:	54 00 06 6e 	rlwinm  r0,r0,0,25,23                          <== NOT EXECUTED
ffc05ba0:	b0 1f 00 0c 	sth     r0,12(r31)                             <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
ffc05ba4:	38 00 00 00 	li      r0,0                                   <== NOT EXECUTED
ffc05ba8:	90 1f 00 00 	stw     r0,0(r31)                              <== NOT EXECUTED
ffc05bac:	90 1f 00 10 	stw     r0,16(r31)                             <== NOT EXECUTED
ffc05bb0:	48 00 00 0c 	b       ffc05bbc <newlib_free_buffers+0x5c>    <== NOT EXECUTED
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
ffc05bb4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc05bb8:	48 00 e8 f1 	bl      ffc144a8 <fclose>                      <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
ffc05bbc:	39 61 00 10 	addi    r11,r1,16                              
ffc05bc0:	38 60 00 00 	li      r3,0                                   
ffc05bc4:	48 01 35 1c 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc05e88 <open>: int open( const char *pathname, int flags, ... ) {
ffc05e88:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc05e8c:	7c 08 02 a6 	mflr    r0                                     
ffc05e90:	90 01 00 54 	stw     r0,84(r1)                              
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
ffc05e94:	38 04 00 01 	addi    r0,r4,1                                
  if ( ( status & _FREAD ) == _FREAD )                                
ffc05e98:	70 09 00 01 	andi.   r9,r0,1                                
int open(                                                             
  const char   *pathname,                                             
  int           flags,                                                
  ...                                                                 
)                                                                     
{                                                                     
ffc05e9c:	bf 21 00 34 	stmw    r25,52(r1)                             
ffc05ea0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc05ea4:	7c 9e 23 78 	mr      r30,r4                                 
ffc05ea8:	90 a1 00 28 	stw     r5,40(r1)                              
  int                                 eval_flags;                     
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
ffc05eac:	3b 80 00 00 	li      r28,0                                  
  status = flags + 1;                                                 
  if ( ( status & _FREAD ) == _FREAD )                                
ffc05eb0:	41 82 00 08 	beq-    ffc05eb8 <open+0x30>                   
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
ffc05eb4:	3b 80 00 04 	li      r28,4                                  
  if ( ( status & _FWRITE ) == _FWRITE )                              
ffc05eb8:	70 09 00 02 	andi.   r9,r0,2                                
ffc05ebc:	41 82 00 08 	beq-    ffc05ec4 <open+0x3c>                   
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
ffc05ec0:	63 9c 00 02 	ori     r28,r28,2                              
                                                                      
  va_start(ap, flags);                                                
ffc05ec4:	38 01 00 58 	addi    r0,r1,88                               
ffc05ec8:	90 01 00 0c 	stw     r0,12(r1)                              
ffc05ecc:	39 21 00 20 	addi    r9,r1,32                               
                                                                      
  mode = va_arg( ap, int );                                           
ffc05ed0:	38 00 00 03 	li      r0,3                                   
  if ( ( status & _FREAD ) == _FREAD )                                
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  if ( ( status & _FWRITE ) == _FWRITE )                              
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
                                                                      
  va_start(ap, flags);                                                
ffc05ed4:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
  mode = va_arg( ap, int );                                           
ffc05ed8:	98 01 00 08 	stb     r0,8(r1)                               
ffc05edc:	83 69 00 08 	lwz     r27,8(r9)                              
   *             code does not require changes here since network file
   *             descriptors are obtained using socket(), not open(). 
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
ffc05ee0:	48 00 a6 61 	bl      ffc10540 <rtems_libio_allocate>        
  if ( iop == 0 ) {                                                   
ffc05ee4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05ee8:	41 82 01 74 	beq-    ffc0605c <open+0x1d4>                  
  }                                                                   
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
ffc05eec:	7f a3 eb 78 	mr      r3,r29                                 
ffc05ef0:	48 00 f5 b9 	bl      ffc154a8 <strlen>                      
ffc05ef4:	3b 41 00 14 	addi    r26,r1,20                              
ffc05ef8:	7c 64 1b 78 	mr      r4,r3                                  
ffc05efc:	7f 85 e3 78 	mr      r5,r28                                 
ffc05f00:	7f a3 eb 78 	mr      r3,r29                                 
ffc05f04:	7f 46 d3 78 	mr      r6,r26                                 
ffc05f08:	38 e0 00 01 	li      r7,1                                   
ffc05f0c:	4b ff f2 21 	bl      ffc0512c <rtems_filesystem_evaluate_path>
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
ffc05f10:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc05f14:	40 be 00 80 	bne+    cr7,ffc05f94 <open+0x10c>              
    if ( errno != ENOENT ) {                                          
ffc05f18:	48 00 e3 f1 	bl      ffc14308 <__errno>                     
ffc05f1c:	80 03 00 00 	lwz     r0,0(r3)                               
ffc05f20:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc05f24:	41 9e 00 14 	beq-    cr7,ffc05f38 <open+0xb0>               
      rc = errno;                                                     
ffc05f28:	48 00 e3 e1 	bl      ffc14308 <__errno>                     
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
ffc05f2c:	3b 80 00 00 	li      r28,0                                  
  status = rtems_filesystem_evaluate_path(                            
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
    if ( errno != ENOENT ) {                                          
      rc = errno;                                                     
ffc05f30:	83 23 00 00 	lwz     r25,0(r3)                              
      goto done;                                                      
ffc05f34:	48 00 01 3c 	b       ffc06070 <open+0x1e8>                  
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
ffc05f38:	73 c0 02 00 	andi.   r0,r30,512                             
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
ffc05f3c:	3b 80 00 00 	li      r28,0                                  
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
      rc = ENOENT;                                                    
ffc05f40:	3b 20 00 02 	li      r25,2                                  
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
ffc05f44:	41 a2 01 34 	beq+    ffc06078 <open+0x1f0>                  
      rc = ENOENT;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
ffc05f48:	7f a3 eb 78 	mr      r3,r29                                 
ffc05f4c:	63 64 80 00 	ori     r4,r27,32768                           
ffc05f50:	38 a0 00 00 	li      r5,0                                   
ffc05f54:	38 c0 00 00 	li      r6,0                                   
ffc05f58:	4b ff f7 b9 	bl      ffc05710 <mknod>                       
    if ( rc ) {                                                       
ffc05f5c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05f60:	40 9e 00 8c 	bne-    cr7,ffc05fec <open+0x164>              <== NEVER TAKEN
    /*                                                                
     * After we do the mknod(), we have to evaluate the path to get the
     * "loc" structure needed to actually have the file itself open.  
     * So we created it, and then we need to have "look it up."       
     */                                                               
    status = rtems_filesystem_evaluate_path(                          
ffc05f64:	7f a3 eb 78 	mr      r3,r29                                 
ffc05f68:	48 00 f5 41 	bl      ffc154a8 <strlen>                      
ffc05f6c:	38 a0 00 00 	li      r5,0                                   
ffc05f70:	7c 64 1b 78 	mr      r4,r3                                  
ffc05f74:	7f 46 d3 78 	mr      r6,r26                                 
ffc05f78:	7f a3 eb 78 	mr      r3,r29                                 
ffc05f7c:	38 e0 00 01 	li      r7,1                                   
ffc05f80:	4b ff f1 ad 	bl      ffc0512c <rtems_filesystem_evaluate_path>
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
ffc05f84:	3b 20 00 0d 	li      r25,13                                 
     * "loc" structure needed to actually have the file itself open.  
     * So we created it, and then we need to have "look it up."       
     */                                                               
    status = rtems_filesystem_evaluate_path(                          
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
ffc05f88:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05f8c:	40 9e 00 ec 	bne-    cr7,ffc06078 <open+0x1f0>              <== NEVER TAKEN
ffc05f90:	48 00 00 10 	b       ffc05fa0 <open+0x118>                  
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
ffc05f94:	73 c0 0a 00 	andi.   r0,r30,2560                            
ffc05f98:	2f 80 0a 00 	cmpwi   cr7,r0,2560                            
ffc05f9c:	41 9e 00 c8 	beq-    cr7,ffc06064 <open+0x1dc>              
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
ffc05fa0:	83 9f 00 18 	lwz     r28,24(r31)                            
ffc05fa4:	7f c3 f3 78 	mr      r3,r30                                 
ffc05fa8:	48 00 a5 09 	bl      ffc104b0 <rtems_libio_fcntl_flags>     
  iop->pathinfo   = loc;                                              
ffc05fac:	39 7f 00 1c 	addi    r11,r31,28                             
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
ffc05fb0:	7c 63 e3 78 	or      r3,r3,r28                              
  iop->pathinfo   = loc;                                              
ffc05fb4:	3b 81 00 14 	addi    r28,r1,20                              
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
ffc05fb8:	90 7f 00 18 	stw     r3,24(r31)                             
  iop->pathinfo   = loc;                                              
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
ffc05fbc:	7f a4 eb 78 	mr      r4,r29                                 
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
  iop->pathinfo   = loc;                                              
ffc05fc0:	7c bc a4 aa 	lswi    r5,r28,20                              
ffc05fc4:	7c ab a5 aa 	stswi   r5,r11,20                              
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
ffc05fc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc05fcc:	7f c5 f3 78 	mr      r5,r30                                 
ffc05fd0:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc05fd4:	7f 66 db 78 	mr      r6,r27                                 
ffc05fd8:	80 09 00 00 	lwz     r0,0(r9)                               
ffc05fdc:	7c 09 03 a6 	mtctr   r0                                     
ffc05fe0:	4e 80 04 21 	bctrl                                          
  if ( rc ) {                                                         
ffc05fe4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05fe8:	41 be 00 10 	beq+    cr7,ffc05ff8 <open+0x170>              
    rc = errno;                                                       
ffc05fec:	48 00 e3 1d 	bl      ffc14308 <__errno>                     
ffc05ff0:	83 23 00 00 	lwz     r25,0(r3)                              
    goto done;                                                        
ffc05ff4:	48 00 00 7c 	b       ffc06070 <open+0x1e8>                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
ffc05ff8:	73 c0 04 00 	andi.   r0,r30,1024                            
ffc05ffc:	41 a2 00 ac 	beq+    ffc060a8 <open+0x220>                  
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
ffc06000:	3d 20 00 00 	lis     r9,0                                   
ffc06004:	80 69 27 6c 	lwz     r3,10092(r9)                           
ffc06008:	38 a0 00 00 	li      r5,0                                   
ffc0600c:	38 c0 00 00 	li      r6,0                                   
ffc06010:	7c 63 f8 50 	subf    r3,r3,r31                              
ffc06014:	7c 63 36 70 	srawi   r3,r3,6                                
ffc06018:	48 00 a3 59 	bl      ffc10370 <ftruncate>                   
    if ( rc ) {                                                       
ffc0601c:	7c 79 1b 79 	mr.     r25,r3                                 
ffc06020:	41 a2 00 88 	beq+    ffc060a8 <open+0x220>                  
      if(errno) rc = errno;                                           
ffc06024:	48 00 e2 e5 	bl      ffc14308 <__errno>                     
ffc06028:	80 03 00 00 	lwz     r0,0(r3)                               
ffc0602c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06030:	41 be 00 0c 	beq+    cr7,ffc0603c <open+0x1b4>              <== NEVER TAKEN
ffc06034:	48 00 e2 d5 	bl      ffc14308 <__errno>                     
ffc06038:	83 23 00 00 	lwz     r25,0(r3)                              
      close( iop - rtems_libio_iops );                                
ffc0603c:	3d 20 00 00 	lis     r9,0                                   
ffc06040:	80 09 27 6c 	lwz     r0,10092(r9)                           
      /* those are released by close(): */                            
      iop = 0;                                                        
      loc_to_free = NULL;                                             
ffc06044:	3b 80 00 00 	li      r28,0                                  
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
      close( iop - rtems_libio_iops );                                
ffc06048:	7f e0 f8 50 	subf    r31,r0,r31                             
ffc0604c:	7f e3 36 70 	srawi   r3,r31,6                               
ffc06050:	48 00 a2 95 	bl      ffc102e4 <close>                       
      /* those are released by close(): */                            
      iop = 0;                                                        
ffc06054:	3b e0 00 00 	li      r31,0                                  
ffc06058:	48 00 00 18 	b       ffc06070 <open+0x1e8>                  
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
  if ( iop == 0 ) {                                                   
    rc = ENFILE;                                                      
ffc0605c:	3b 20 00 17 	li      r25,23                                 
ffc06060:	48 00 00 38 	b       ffc06098 <open+0x210>                  
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
ffc06064:	7f 5c d3 78 	mr      r28,r26                                
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
ffc06068:	3b 20 00 11 	li      r25,17                                 
ffc0606c:	48 00 00 0c 	b       ffc06078 <open+0x1f0>                  
   *  Single exit and clean up path.                                  
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
ffc06070:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc06074:	41 be 00 34 	beq+    cr7,ffc060a8 <open+0x220>              <== NEVER TAKEN
    if ( iop )                                                        
ffc06078:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0607c:	41 9e 00 0c 	beq-    cr7,ffc06088 <open+0x200>              
      rtems_libio_free( iop );                                        
ffc06080:	7f e3 fb 78 	mr      r3,r31                                 
ffc06084:	48 00 a5 55 	bl      ffc105d8 <rtems_libio_free>            
    if ( loc_to_free )                                                
ffc06088:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0608c:	41 9e 00 0c 	beq-    cr7,ffc06098 <open+0x210>              
      rtems_filesystem_freenode( loc_to_free );                       
ffc06090:	7f 83 e3 78 	mr      r3,r28                                 
ffc06094:	4b ff f1 8d 	bl      ffc05220 <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( rc );                       
ffc06098:	48 00 e2 71 	bl      ffc14308 <__errno>                     
ffc0609c:	93 23 00 00 	stw     r25,0(r3)                              
ffc060a0:	38 60 ff ff 	li      r3,-1                                  
ffc060a4:	48 00 00 14 	b       ffc060b8 <open+0x230>                  
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
ffc060a8:	3d 20 00 00 	lis     r9,0                                   
ffc060ac:	80 69 27 6c 	lwz     r3,10092(r9)                           
ffc060b0:	7f e3 f8 50 	subf    r31,r3,r31                             
ffc060b4:	7f e3 36 70 	srawi   r3,r31,6                               
}                                                                     
ffc060b8:	39 61 00 50 	addi    r11,r1,80                              
ffc060bc:	48 01 30 0c 	b       ffc190c8 <_restgpr_25_x>               
                                                                      

ffc06ee8 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc06ee8:	7c 08 02 a6 	mflr    r0                                     
ffc06eec:	7c 2b 0b 78 	mr      r11,r1                                 
ffc06ef0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06ef4:	90 01 00 1c 	stw     r0,28(r1)                              
ffc06ef8:	48 01 21 9d 	bl      ffc19094 <_savegpr_31>                 
ffc06efc:	7c 9f 23 78 	mr      r31,r4                                 
ffc06f00:	98 61 00 08 	stb     r3,8(r1)                               
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc06f04:	80 04 00 34 	lwz     r0,52(r4)                              
ffc06f08:	70 09 00 01 	andi.   r9,r0,1                                
ffc06f0c:	41 82 01 30 	beq-    ffc0703c <oproc+0x154>                 <== NEVER TAKEN
    switch (c) {                                                      
ffc06f10:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc06f14:	41 9e 00 90 	beq-    cr7,ffc06fa4 <oproc+0xbc>              
ffc06f18:	2b 83 00 09 	cmplwi  cr7,r3,9                               
ffc06f1c:	41 9d 00 10 	bgt-    cr7,ffc06f2c <oproc+0x44>              <== ALWAYS TAKEN
ffc06f20:	2f 83 00 08 	cmpwi   cr7,r3,8                               <== NOT EXECUTED
ffc06f24:	40 be 00 c4 	bne+    cr7,ffc06fe8 <oproc+0x100>             <== NOT EXECUTED
ffc06f28:	48 00 00 a8 	b       ffc06fd0 <oproc+0xe8>                  <== NOT EXECUTED
ffc06f2c:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc06f30:	41 9e 00 10 	beq-    cr7,ffc06f40 <oproc+0x58>              
ffc06f34:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc06f38:	40 be 00 b0 	bne+    cr7,ffc06fe8 <oproc+0x100>             <== ALWAYS TAKEN
ffc06f3c:	48 00 00 34 	b       ffc06f70 <oproc+0x88>                  <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
ffc06f40:	70 09 00 20 	andi.   r9,r0,32                               
ffc06f44:	41 82 00 0c 	beq-    ffc06f50 <oproc+0x68>                  <== ALWAYS TAKEN
        tty->column = 0;                                              
ffc06f48:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc06f4c:	91 24 00 28 	stw     r9,40(r4)                              <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
ffc06f50:	70 09 00 04 	andi.   r9,r0,4                                
ffc06f54:	41 a2 00 e8 	beq+    ffc0703c <oproc+0x154>                 <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
ffc06f58:	3c 60 ff c2 	lis     r3,-62                                 
ffc06f5c:	38 63 aa 3a 	addi    r3,r3,-21958                           
ffc06f60:	38 80 00 01 	li      r4,1                                   
ffc06f64:	7f e5 fb 78 	mr      r5,r31                                 
ffc06f68:	4b ff fe 59 	bl      ffc06dc0 <rtems_termios_puts>          
ffc06f6c:	48 00 00 30 	b       ffc06f9c <oproc+0xb4>                  
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
ffc06f70:	70 09 00 10 	andi.   r9,r0,16                               <== NOT EXECUTED
ffc06f74:	41 82 00 10 	beq-    ffc06f84 <oproc+0x9c>                  <== NOT EXECUTED
ffc06f78:	81 24 00 28 	lwz     r9,40(r4)                              <== NOT EXECUTED
ffc06f7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06f80:	41 9e 00 cc 	beq-    cr7,ffc0704c <oproc+0x164>             <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
ffc06f84:	70 09 00 08 	andi.   r9,r0,8                                <== NOT EXECUTED
ffc06f88:	41 82 00 58 	beq-    ffc06fe0 <oproc+0xf8>                  <== NOT EXECUTED
        c = '\n';                                                     
ffc06f8c:	39 20 00 0a 	li      r9,10                                  <== NOT EXECUTED
ffc06f90:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
ffc06f94:	70 09 00 20 	andi.   r9,r0,32                               <== NOT EXECUTED
ffc06f98:	41 82 00 a4 	beq-    ffc0703c <oproc+0x154>                 <== NOT EXECUTED
          tty->column = 0;                                            
ffc06f9c:	38 00 00 00 	li      r0,0                                   
ffc06fa0:	48 00 00 98 	b       ffc07038 <oproc+0x150>                 
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc06fa4:	54 00 04 e8 	rlwinm  r0,r0,0,19,20                          
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc06fa8:	81 24 00 28 	lwz     r9,40(r4)                              
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc06fac:	2f 80 18 00 	cmpwi   cr7,r0,6144                            
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc06fb0:	55 24 07 7e 	clrlwi  r4,r9,29                               
ffc06fb4:	20 84 00 08 	subfic  r4,r4,8                                
ffc06fb8:	7c 04 4a 14 	add     r0,r4,r9                               
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc06fbc:	40 be 00 7c 	bne+    cr7,ffc07038 <oproc+0x150>             <== NEVER TAKEN
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
ffc06fc0:	3c 60 ff c2 	lis     r3,-62                                 
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
ffc06fc4:	90 1f 00 28 	stw     r0,40(r31)                             
        rtems_termios_puts ( "        ",  i, tty);                    
ffc06fc8:	38 63 a6 de 	addi    r3,r3,-22818                           
ffc06fcc:	48 00 00 78 	b       ffc07044 <oproc+0x15c>                 
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
ffc06fd0:	81 24 00 28 	lwz     r9,40(r4)                              <== NOT EXECUTED
ffc06fd4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06fd8:	40 9d 00 64 	ble-    cr7,ffc0703c <oproc+0x154>             <== NOT EXECUTED
        tty->column--;                                                
ffc06fdc:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc06fe0:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
ffc06fe4:	48 00 00 58 	b       ffc0703c <oproc+0x154>                 <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
ffc06fe8:	70 09 00 02 	andi.   r9,r0,2                                
ffc06fec:	41 82 00 28 	beq-    ffc07014 <oproc+0x12c>                 <== ALWAYS TAKEN
        c = toupper(c);                                               
ffc06ff0:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc06ff4:	81 29 26 f8 	lwz     r9,9976(r9)                            <== NOT EXECUTED
ffc06ff8:	7d 29 1a 14 	add     r9,r9,r3                               <== NOT EXECUTED
ffc06ffc:	88 09 00 01 	lbz     r0,1(r9)                               <== NOT EXECUTED
ffc07000:	54 00 07 be 	clrlwi  r0,r0,30                               <== NOT EXECUTED
ffc07004:	2f 80 00 02 	cmpwi   cr7,r0,2                               <== NOT EXECUTED
ffc07008:	40 be 00 08 	bne+    cr7,ffc07010 <oproc+0x128>             <== NOT EXECUTED
ffc0700c:	38 63 ff e0 	addi    r3,r3,-32                              <== NOT EXECUTED
ffc07010:	98 61 00 08 	stb     r3,8(r1)                               <== NOT EXECUTED
      if (!iscntrl(c))                                                
ffc07014:	3d 20 00 00 	lis     r9,0                                   
ffc07018:	88 01 00 08 	lbz     r0,8(r1)                               
ffc0701c:	81 29 26 f8 	lwz     r9,9976(r9)                            
ffc07020:	7d 29 02 14 	add     r9,r9,r0                               
ffc07024:	88 09 00 01 	lbz     r0,1(r9)                               
ffc07028:	70 09 00 20 	andi.   r9,r0,32                               
ffc0702c:	40 82 00 10 	bne-    ffc0703c <oproc+0x154>                 <== NEVER TAKEN
        tty->column++;                                                
ffc07030:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07034:	38 09 00 01 	addi    r0,r9,1                                
ffc07038:	90 1f 00 28 	stw     r0,40(r31)                             
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
ffc0703c:	38 61 00 08 	addi    r3,r1,8                                
ffc07040:	38 80 00 01 	li      r4,1                                   
ffc07044:	7f e5 fb 78 	mr      r5,r31                                 
ffc07048:	4b ff fd 79 	bl      ffc06dc0 <rtems_termios_puts>          
}                                                                     
ffc0704c:	39 61 00 18 	addi    r11,r1,24                              
ffc07050:	48 01 20 90 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc0d8dc <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
ffc0d8dc:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0d8e0:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0d8e4:	38 80 01 ff 	li      r4,511                                 
 * Called by pipe() to create an anonymous pipe.                      
 */                                                                   
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc0d8e8:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc0d8ec:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0d8f0:	3c 60 ff c2 	lis     r3,-62                                 
ffc0d8f4:	38 63 f3 1c 	addi    r3,r3,-3300                            
 * Called by pipe() to create an anonymous pipe.                      
 */                                                                   
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc0d8f8:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0d8fc:	48 00 18 91 	bl      ffc0f18c <rtems_mkdir>                 
    return -1;                                                        
ffc0d900:	3b c0 ff ff 	li      r30,-1                                 
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0d904:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d908:	40 be 01 04 	bne+    cr7,ffc0da0c <pipe_create+0x130>       <== NEVER TAKEN
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc0d90c:	3d 20 ff c2 	lis     r9,-62                                 
ffc0d910:	3b e1 00 08 	addi    r31,r1,8                               
ffc0d914:	39 29 f3 21 	addi    r9,r9,-3295                            
ffc0d918:	7c a9 54 aa 	lswi    r5,r9,10                               
ffc0d91c:	7c bf 55 aa 	stswi   r5,r31,10                              
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc0d920:	3d 20 00 00 	lis     r9,0                                   
ffc0d924:	3c 80 ff c2 	lis     r4,-62                                 
ffc0d928:	a0 a9 29 94 	lhz     r5,10644(r9)                           
ffc0d92c:	38 84 f3 2c 	addi    r4,r4,-3284                            
ffc0d930:	38 61 00 12 	addi    r3,r1,18                               
ffc0d934:	38 05 00 01 	addi    r0,r5,1                                
ffc0d938:	b0 09 29 94 	sth     r0,10644(r9)                           
ffc0d93c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0d940:	48 00 55 31 	bl      ffc12e70 <sprintf>                     
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
ffc0d944:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d948:	38 80 01 80 	li      r4,384                                 
ffc0d94c:	48 00 15 3d 	bl      ffc0ee88 <mkfifo>                      
ffc0d950:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d954:	41 be 00 0c 	beq+    cr7,ffc0d960 <pipe_create+0x84>        
    if (errno != EEXIST){                                             
ffc0d958:	48 00 46 11 	bl      ffc11f68 <__errno>                     
ffc0d95c:	48 00 00 b0 	b       ffc0da0c <pipe_create+0x130>           
    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);                 
ffc0d960:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d964:	38 80 40 00 	li      r4,16384                               
ffc0d968:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0d96c:	4b ff 8b bd 	bl      ffc06528 <open>                        
  if (filsdes[0] < 0) {                                               
ffc0d970:	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);                 
ffc0d974:	90 7d 00 00 	stw     r3,0(r29)                              
  if (filsdes[0] < 0) {                                               
ffc0d978:	40 bc 00 14 	bge+    cr7,ffc0d98c <pipe_create+0xb0>        
    err = errno;                                                      
ffc0d97c:	48 00 45 ed 	bl      ffc11f68 <__errno>                     
ffc0d980:	83 83 00 00 	lwz     r28,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);                                                 
ffc0d984:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d988:	48 00 00 68 	b       ffc0d9f0 <pipe_create+0x114>           
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
ffc0d98c:	3d 20 00 00 	lis     r9,0                                   
ffc0d990:	80 09 26 ac 	lwz     r0,9900(r9)                            
ffc0d994:	39 20 00 00 	li      r9,0                                   
ffc0d998:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc0d99c:	40 9c 00 14 	bge-    cr7,ffc0d9b0 <pipe_create+0xd4>        <== NEVER TAKEN
ffc0d9a0:	3d 20 00 00 	lis     r9,0                                   
ffc0d9a4:	81 29 27 70 	lwz     r9,10096(r9)                           
ffc0d9a8:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc0d9ac:	7d 29 1a 14 	add     r9,r9,r3                               
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
ffc0d9b0:	80 09 00 18 	lwz     r0,24(r9)                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
ffc0d9b4:	38 61 00 08 	addi    r3,r1,8                                
ffc0d9b8:	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;                              
ffc0d9bc:	54 00 00 3c 	rlwinm  r0,r0,0,0,30                           
ffc0d9c0:	90 09 00 18 	stw     r0,24(r9)                              
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
ffc0d9c4:	3b 80 00 00 	li      r28,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);                            
ffc0d9c8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0d9cc:	4b ff 8b 5d 	bl      ffc06528 <open>                        
                                                                      
    if (filsdes[1] < 0) {                                             
ffc0d9d0:	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);                            
ffc0d9d4:	90 7d 00 04 	stw     r3,4(r29)                              
                                                                      
    if (filsdes[1] < 0) {                                             
ffc0d9d8:	40 bc 00 14 	bge+    cr7,ffc0d9ec <pipe_create+0x110>       
    err = errno;                                                      
ffc0d9dc:	48 00 45 8d 	bl      ffc11f68 <__errno>                     
ffc0d9e0:	83 83 00 00 	lwz     r28,0(r3)                              
    close(filsdes[0]);                                                
ffc0d9e4:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc0d9e8:	4b ff 79 a9 	bl      ffc05390 <close>                       
    }                                                                 
  unlink(fifopath);                                                   
ffc0d9ec:	38 61 00 08 	addi    r3,r1,8                                
ffc0d9f0:	4b ff ab d9 	bl      ffc085c8 <unlink>                      
  }                                                                   
  if(err != 0)                                                        
ffc0d9f4:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
ffc0d9f8:	3b c0 00 00 	li      r30,0                                  
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
ffc0d9fc:	41 be 00 10 	beq+    cr7,ffc0da0c <pipe_create+0x130>       
    rtems_set_errno_and_return_minus_one(err);                        
ffc0da00:	48 00 45 69 	bl      ffc11f68 <__errno>                     
ffc0da04:	3b c0 ff ff 	li      r30,-1                                 
ffc0da08:	93 83 00 00 	stw     r28,0(r3)                              
  return 0;                                                           
}                                                                     
ffc0da0c:	39 61 00 28 	addi    r11,r1,40                              
ffc0da10:	7f c3 f3 78 	mr      r3,r30                                 
ffc0da14:	48 00 f8 e4 	b       ffc1d2f8 <_restgpr_28_x>               
                                                                      

ffc0f108 <pipe_ioctl>: uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
ffc0f108:	6c 89 40 04 	xoris   r9,r4,16388                            
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0f10c:	94 21 ff f0 	stwu    r1,-16(r1)                             
  if (cmd == FIONREAD) {                                              
ffc0f110:	2f 89 66 7f 	cmpwi   cr7,r9,26239                           
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0f114:	7c 08 02 a6 	mflr    r0                                     
ffc0f118:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0f11c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0f120:	7c be 2b 78 	mr      r30,r5                                 
ffc0f124:	90 01 00 14 	stw     r0,20(r1)                              
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
ffc0f128:	38 00 ff ea 	li      r0,-22                                 
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
ffc0f12c:	40 9e 00 40 	bne-    cr7,ffc0f16c <pipe_ioctl+0x64>         
    if (buffer == NULL)                                               
ffc0f130:	2f 85 00 00 	cmpwi   cr7,r5,0                               
      return -EFAULT;                                                 
ffc0f134:	38 00 ff f2 	li      r0,-14                                 
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
ffc0f138:	41 be 00 34 	beq+    cr7,ffc0f16c <pipe_ioctl+0x64>         
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
ffc0f13c:	80 63 00 28 	lwz     r3,40(r3)                              
ffc0f140:	38 80 00 00 	li      r4,0                                   
ffc0f144:	38 a0 00 00 	li      r5,0                                   
ffc0f148:	4b ff ab b1 	bl      ffc09cf8 <rtems_semaphore_obtain>      
      return -EINTR;                                                  
ffc0f14c:	38 00 ff fc 	li      r0,-4                                  
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
ffc0f150:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f154:	40 be 00 18 	bne+    cr7,ffc0f16c <pipe_ioctl+0x64>         <== NEVER TAKEN
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc0f158:	80 1f 00 0c 	lwz     r0,12(r31)                             
    PIPE_UNLOCK(pipe);                                                
ffc0f15c:	80 7f 00 28 	lwz     r3,40(r31)                             
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc0f160:	90 1e 00 00 	stw     r0,0(r30)                              
    PIPE_UNLOCK(pipe);                                                
ffc0f164:	4b ff ac bd 	bl      ffc09e20 <rtems_semaphore_release>     
    return 0;                                                         
ffc0f168:	38 00 00 00 	li      r0,0                                   
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
ffc0f16c:	39 61 00 10 	addi    r11,r1,16                              
ffc0f170:	7c 03 03 78 	mr      r3,r0                                  
ffc0f174:	48 01 16 38 	b       ffc207ac <_restgpr_30_x>               
                                                                      

ffc0ed70 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
ffc0ed70:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0ed74:	7c 08 02 a6 	mflr    r0                                     
ffc0ed78:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0ed7c:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc0ed80:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ed84:	7c 9e 23 78 	mr      r30,r4                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ed88:	80 63 00 28 	lwz     r3,40(r3)                              
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ed8c:	7c bd 2b 78 	mr      r29,r5                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ed90:	38 80 00 00 	li      r4,0                                   
ffc0ed94:	38 a0 00 00 	li      r5,0                                   
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ed98:	7c d8 33 78 	mr      r24,r6                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ed9c:	4b ff af 5d 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0eda0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    return -EINTR;                                                    
ffc0eda4:	3b 80 ff fc 	li      r28,-4                                 
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0eda8:	40 9e 01 68 	bne-    cr7,ffc0ef10 <pipe_read+0x1a0>         <== NEVER TAKEN
ffc0edac:	3b 80 00 00 	li      r28,0                                  
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
ffc0edb0:	3b 21 00 08 	addi    r25,r1,8                               
ffc0edb4:	48 00 01 2c 	b       ffc0eee0 <pipe_read+0x170>             
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
ffc0edb8:	80 1f 00 14 	lwz     r0,20(r31)                             
ffc0edbc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0edc0:	41 9e 01 28 	beq-    cr7,ffc0eee8 <pipe_read+0x178>         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
ffc0edc4:	80 18 00 18 	lwz     r0,24(r24)                             
ffc0edc8:	70 09 00 01 	andi.   r9,r0,1                                
ffc0edcc:	40 82 01 24 	bne-    ffc0eef0 <pipe_read+0x180>             
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
ffc0edd0:	81 3f 00 18 	lwz     r9,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
ffc0edd4:	3b 60 ff fc 	li      r27,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc0edd8:	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 ++;                                        
ffc0eddc:	38 09 00 01 	addi    r0,r9,1                                
ffc0ede0:	90 1f 00 18 	stw     r0,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc0ede4:	4b ff b0 3d 	bl      ffc09e20 <rtems_semaphore_release>     
      if (! PIPE_READWAIT(pipe))                                      
ffc0ede8:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0edec:	38 80 00 00 	li      r4,0                                   
ffc0edf0:	48 00 19 89 	bl      ffc10778 <rtems_barrier_wait>          
ffc0edf4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0edf8:	40 9e 00 08 	bne-    cr7,ffc0ee00 <pipe_read+0x90>          <== NEVER TAKEN
ffc0edfc:	3b 60 00 00 	li      r27,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc0ee00:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ee04:	38 80 00 00 	li      r4,0                                   
ffc0ee08:	38 a0 00 00 	li      r5,0                                   
ffc0ee0c:	4b ff ae ed 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0ee10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ee14:	40 9e 00 ec 	bne-    cr7,ffc0ef00 <pipe_read+0x190>         <== NEVER TAKEN
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
      if (ret != 0)                                                   
ffc0ee18:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
ffc0ee1c:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0ee20:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0ee24:	90 1f 00 18 	stw     r0,24(r31)                             
      if (ret != 0)                                                   
ffc0ee28:	40 9e 00 cc 	bne-    cr7,ffc0eef4 <pipe_read+0x184>         <== NEVER TAKEN
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
ffc0ee2c:	83 7f 00 0c 	lwz     r27,12(r31)                            
ffc0ee30:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0ee34:	41 9e ff 84 	beq+    cr7,ffc0edb8 <pipe_read+0x48>          
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
ffc0ee38:	7c 1c e8 50 	subf    r0,r28,r29                             
ffc0ee3c:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc0ee40:	40 9d 00 08 	ble-    cr7,ffc0ee48 <pipe_read+0xd8>          
ffc0ee44:	7c 1b 03 78 	mr      r27,r0                                 
    chunk1 = pipe->Size - pipe->Start;                                
ffc0ee48:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc0ee4c:	7c 7e e2 14 	add     r3,r30,r28                             
ffc0ee50:	83 5f 00 04 	lwz     r26,4(r31)                             
ffc0ee54:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0ee58:	7f 40 d0 50 	subf    r26,r0,r26                             
    if (chunk > chunk1) {                                             
ffc0ee5c:	7f 9b d0 00 	cmpw    cr7,r27,r26                            
ffc0ee60:	40 9d 00 24 	ble-    cr7,ffc0ee84 <pipe_read+0x114>         
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
ffc0ee64:	7c 84 02 14 	add     r4,r4,r0                               
ffc0ee68:	7f 45 d3 78 	mr      r5,r26                                 
ffc0ee6c:	48 00 4e 9d 	bl      ffc13d08 <memcpy>                      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
ffc0ee70:	7c 7c d2 14 	add     r3,r28,r26                             
ffc0ee74:	7c 7e 1a 14 	add     r3,r30,r3                              
ffc0ee78:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0ee7c:	7c ba d8 50 	subf    r5,r26,r27                             
ffc0ee80:	48 00 00 0c 	b       ffc0ee8c <pipe_read+0x11c>             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
ffc0ee84:	7c 84 02 14 	add     r4,r4,r0                               
ffc0ee88:	7f 65 db 78 	mr      r5,r27                                 
ffc0ee8c:	48 00 4e 7d 	bl      ffc13d08 <memcpy>                      
                                                                      
    pipe->Start += chunk;                                             
ffc0ee90:	80 1f 00 08 	lwz     r0,8(r31)                              
    pipe->Start %= pipe->Size;                                        
ffc0ee94:	81 3f 00 04 	lwz     r9,4(r31)                              
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
ffc0ee98:	7c 1b 02 14 	add     r0,r27,r0                              
    pipe->Start %= pipe->Size;                                        
ffc0ee9c:	7d 60 4b 96 	divwu   r11,r0,r9                              
ffc0eea0:	7d 2b 49 d6 	mullw   r9,r11,r9                              
ffc0eea4:	7c 09 00 50 	subf    r0,r9,r0                               
ffc0eea8:	90 1f 00 08 	stw     r0,8(r31)                              
    pipe->Length -= chunk;                                            
ffc0eeac:	80 1f 00 0c 	lwz     r0,12(r31)                             
ffc0eeb0:	7c 1b 00 50 	subf    r0,r27,r0                              
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc0eeb4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
    pipe->Length -= chunk;                                            
ffc0eeb8:	90 1f 00 0c 	stw     r0,12(r31)                             
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc0eebc:	40 9e 00 08 	bne-    cr7,ffc0eec4 <pipe_read+0x154>         
      pipe->Start = 0;                                                
ffc0eec0:	90 1f 00 08 	stw     r0,8(r31)                              
                                                                      
    if (pipe->waitingWriters > 0)                                     
ffc0eec4:	80 1f 00 1c 	lwz     r0,28(r31)                             
ffc0eec8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0eecc:	41 be 00 10 	beq+    cr7,ffc0eedc <pipe_read+0x16c>         
      PIPE_WAKEUPWRITERS(pipe);                                       
ffc0eed0:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0eed4:	7f 24 cb 78 	mr      r4,r25                                 
ffc0eed8:	48 00 18 35 	bl      ffc1070c <rtems_barrier_release>       
    read += chunk;                                                    
ffc0eedc:	7f 9c da 14 	add     r28,r28,r27                            
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
ffc0eee0:	7f 9c e8 40 	cmplw   cr7,r28,r29                            
ffc0eee4:	41 9c ff 48 	blt+    cr7,ffc0ee2c <pipe_read+0xbc>          
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
ffc0eee8:	3b 60 00 00 	li      r27,0                                  
ffc0eeec:	48 00 00 08 	b       ffc0eef4 <pipe_read+0x184>             
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc0eef0:	3b 60 ff f5 	li      r27,-11                                
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc0eef4:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0eef8:	4b ff af 29 	bl      ffc09e20 <rtems_semaphore_release>     
ffc0eefc:	48 00 00 08 	b       ffc0ef04 <pipe_read+0x194>             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
ffc0ef00:	3b 60 ff fc 	li      r27,-4                                 <== NOT EXECUTED
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
ffc0ef04:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0ef08:	41 bd 00 08 	bgt+    cr7,ffc0ef10 <pipe_read+0x1a0>         
    return read;                                                      
  return ret;                                                         
ffc0ef0c:	7f 7c db 78 	mr      r28,r27                                
}                                                                     
ffc0ef10:	39 61 00 38 	addi    r11,r1,56                              
ffc0ef14:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ef18:	48 01 18 7c 	b       ffc20794 <_restgpr_24_x>               
                                                                      

ffc0e8a0 <pipe_release>: */ void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc0e8a0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e8a4:	7c 08 02 a6 	mflr    r0                                     
ffc0e8a8:	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);                                          
ffc0e8ac:	80 04 00 18 	lwz     r0,24(r4)                              
 */                                                                   
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc0e8b0:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc0e8b4:	7c 7e 1b 78 	mr      r30,r3                                 
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  if (mode & LIBIO_FLAGS_READ)                                        
ffc0e8b8:	70 09 00 02 	andi.   r9,r0,2                                
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  pipe_control_t *pipe = *pipep;                                      
ffc0e8bc:	83 e3 00 00 	lwz     r31,0(r3)                              
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
ffc0e8c0:	54 1d 07 7c 	rlwinm  r29,r0,0,29,30                         
  if (mode & LIBIO_FLAGS_READ)                                        
ffc0e8c4:	41 82 00 10 	beq-    ffc0e8d4 <pipe_release+0x34>           
     pipe->Readers --;                                                
ffc0e8c8:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0e8cc:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0e8d0:	90 1f 00 10 	stw     r0,16(r31)                             
  if (mode & LIBIO_FLAGS_WRITE)                                       
ffc0e8d4:	73 a0 00 04 	andi.   r0,r29,4                               
ffc0e8d8:	41 82 00 10 	beq-    ffc0e8e8 <pipe_release+0x48>           
     pipe->Writers --;                                                
ffc0e8dc:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0e8e0:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0e8e4:	90 1f 00 14 	stw     r0,20(r31)                             
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc0e8e8:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0e8ec:	4b ff b5 35 	bl      ffc09e20 <rtems_semaphore_release>     
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
ffc0e8f0:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0e8f4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e8f8:	40 9e 00 30 	bne-    cr7,ffc0e928 <pipe_release+0x88>       
ffc0e8fc:	83 9f 00 14 	lwz     r28,20(r31)                            
ffc0e900:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0e904:	40 be 00 14 	bne+    cr7,ffc0e918 <pipe_release+0x78>       
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
ffc0e908:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e90c:	4b ff ff 4d 	bl      ffc0e858 <pipe_free>                   
    *pipep = NULL;                                                    
ffc0e910:	93 9e 00 00 	stw     r28,0(r30)                             
ffc0e914:	48 00 00 34 	b       ffc0e948 <pipe_release+0xa8>           
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
ffc0e918:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc0e91c:	41 be 00 0c 	beq+    cr7,ffc0e928 <pipe_release+0x88>       <== NEVER TAKEN
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
ffc0e920:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0e924:	48 00 00 1c 	b       ffc0e940 <pipe_release+0xa0>           
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
ffc0e928:	80 1f 00 14 	lwz     r0,20(r31)                             
ffc0e92c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0e930:	40 9e 00 18 	bne-    cr7,ffc0e948 <pipe_release+0xa8>       <== NEVER TAKEN
ffc0e934:	2f 9d 00 02 	cmpwi   cr7,r29,2                              
ffc0e938:	41 9e 00 10 	beq-    cr7,ffc0e948 <pipe_release+0xa8>       <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
ffc0e93c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0e940:	38 81 00 08 	addi    r4,r1,8                                
ffc0e944:	48 00 1d c9 	bl      ffc1070c <rtems_barrier_release>       
                                                                      
  pipe_unlock();                                                      
ffc0e948:	4b ff fe e9 	bl      ffc0e830 <pipe_unlock>                 
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
ffc0e94c:	39 61 00 28 	addi    r11,r1,40                              
ffc0e950:	48 01 1e 54 	b       ffc207a4 <_restgpr_28_x>               
                                                                      

ffc0ef1c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
ffc0ef1c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0ef20:	7c 08 02 a6 	mflr    r0                                     
ffc0ef24:	be e1 00 1c 	stmw    r23,28(r1)                             
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc0ef28:	7c bb 2b 79 	mr.     r27,r5                                 
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ef2c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ef30:	90 01 00 44 	stw     r0,68(r1)                              
ffc0ef34:	7c 9e 23 78 	mr      r30,r4                                 
ffc0ef38:	7c d7 33 78 	mr      r23,r6                                 
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
ffc0ef3c:	3b a0 00 00 	li      r29,0                                  
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc0ef40:	41 a2 01 bc 	beq+    ffc0f0fc <pipe_write+0x1e0>            <== NEVER TAKEN
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ef44:	80 63 00 28 	lwz     r3,40(r3)                              
ffc0ef48:	38 80 00 00 	li      r4,0                                   
ffc0ef4c:	38 a0 00 00 	li      r5,0                                   
ffc0ef50:	4b ff ad a9 	bl      ffc09cf8 <rtems_semaphore_obtain>      
    return -EINTR;                                                    
ffc0ef54:	3b a0 ff fc 	li      r29,-4                                 
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ef58:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ef5c:	40 9e 01 a0 	bne-    cr7,ffc0f0fc <pipe_write+0x1e0>        <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
ffc0ef60:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0ef64:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0ef68:	41 9e 01 4c 	beq-    cr7,ffc0f0b4 <pipe_write+0x198>        
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
ffc0ef6c:	80 1f 00 04 	lwz     r0,4(r31)                              
ffc0ef70:	3b 20 00 01 	li      r25,1                                  
ffc0ef74:	7f 9b 00 40 	cmplw   cr7,r27,r0                             
ffc0ef78:	41 9d 00 08 	bgt-    cr7,ffc0ef80 <pipe_write+0x64>         <== NEVER TAKEN
ffc0ef7c:	7f 79 db 78 	mr      r25,r27                                
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
ffc0ef80:	3b a0 00 00 	li      r29,0                                  
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
ffc0ef84:	3b 01 00 08 	addi    r24,r1,8                               
ffc0ef88:	48 00 01 1c 	b       ffc0f0a4 <pipe_write+0x188>            
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
ffc0ef8c:	80 17 00 18 	lwz     r0,24(r23)                             
ffc0ef90:	70 09 00 01 	andi.   r9,r0,1                                
ffc0ef94:	40 82 01 2c 	bne-    ffc0f0c0 <pipe_write+0x1a4>            
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
ffc0ef98:	81 3f 00 1c 	lwz     r9,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
ffc0ef9c:	3b 80 ff fc 	li      r28,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc0efa0:	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 ++;                                        
ffc0efa4:	38 09 00 01 	addi    r0,r9,1                                
ffc0efa8:	90 1f 00 1c 	stw     r0,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc0efac:	4b ff ae 75 	bl      ffc09e20 <rtems_semaphore_release>     
      if (! PIPE_WRITEWAIT(pipe))                                     
ffc0efb0:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0efb4:	38 80 00 00 	li      r4,0                                   
ffc0efb8:	48 00 17 c1 	bl      ffc10778 <rtems_barrier_wait>          
ffc0efbc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0efc0:	40 9e 00 08 	bne-    cr7,ffc0efc8 <pipe_write+0xac>         <== NEVER TAKEN
ffc0efc4:	3b 80 00 00 	li      r28,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc0efc8:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0efcc:	38 80 00 00 	li      r4,0                                   
ffc0efd0:	38 a0 00 00 	li      r5,0                                   
ffc0efd4:	4b ff ad 25 	bl      ffc09cf8 <rtems_semaphore_obtain>      
ffc0efd8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0efdc:	40 9e 01 10 	bne-    cr7,ffc0f0ec <pipe_write+0x1d0>        <== NEVER TAKEN
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
ffc0efe0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
ffc0efe4:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc0efe8:	38 09 ff ff 	addi    r0,r9,-1                               
ffc0efec:	90 1f 00 1c 	stw     r0,28(r31)                             
      if (ret != 0)                                                   
ffc0eff0:	40 9e 00 dc 	bne-    cr7,ffc0f0cc <pipe_write+0x1b0>        <== NEVER TAKEN
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
ffc0eff4:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc0eff8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0effc:	41 9e 00 cc 	beq-    cr7,ffc0f0c8 <pipe_write+0x1ac>        <== NEVER TAKEN
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
ffc0f000:	83 5f 00 04 	lwz     r26,4(r31)                             
ffc0f004:	80 1f 00 0c 	lwz     r0,12(r31)                             
ffc0f008:	7f 80 d0 50 	subf    r28,r0,r26                             
ffc0f00c:	7f 9c c8 40 	cmplw   cr7,r28,r25                            
ffc0f010:	41 9c ff 7c 	blt+    cr7,ffc0ef8c <pipe_write+0x70>         
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
ffc0f014:	7d 3d d8 50 	subf    r9,r29,r27                             
ffc0f018:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0f01c:	40 9d 00 08 	ble-    cr7,ffc0f024 <pipe_write+0x108>        
ffc0f020:	7d 3c 4b 78 	mr      r28,r9                                 
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
ffc0f024:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0f028:	7c 9e ea 14 	add     r4,r30,r29                             
ffc0f02c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0f030:	7d 20 4a 14 	add     r9,r0,r9                               
ffc0f034:	7c 09 d3 96 	divwu   r0,r9,r26                              
ffc0f038:	7c 00 d1 d6 	mullw   r0,r0,r26                              
ffc0f03c:	7c 00 48 50 	subf    r0,r0,r9                               
ffc0f040:	7f 40 d0 50 	subf    r26,r0,r26                             
    if (chunk > chunk1) {                                             
ffc0f044:	7f 9c d0 00 	cmpw    cr7,r28,r26                            
ffc0f048:	40 9d 00 24 	ble-    cr7,ffc0f06c <pipe_write+0x150>        
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc0f04c:	7f 45 d3 78 	mr      r5,r26                                 
ffc0f050:	7c 63 02 14 	add     r3,r3,r0                               
ffc0f054:	48 00 4c b5 	bl      ffc13d08 <memcpy>                      
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
ffc0f058:	7c 9a ea 14 	add     r4,r26,r29                             
ffc0f05c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0f060:	7c 9e 22 14 	add     r4,r30,r4                              
ffc0f064:	7c ba e0 50 	subf    r5,r26,r28                             
ffc0f068:	48 00 00 0c 	b       ffc0f074 <pipe_write+0x158>            
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc0f06c:	7c 63 02 14 	add     r3,r3,r0                               
ffc0f070:	7f 85 e3 78 	mr      r5,r28                                 
ffc0f074:	48 00 4c 95 	bl      ffc13d08 <memcpy>                      
                                                                      
    pipe->Length += chunk;                                            
ffc0f078:	80 1f 00 0c 	lwz     r0,12(r31)                             
ffc0f07c:	7c 00 e2 14 	add     r0,r0,r28                              
ffc0f080:	90 1f 00 0c 	stw     r0,12(r31)                             
    if (pipe->waitingReaders > 0)                                     
ffc0f084:	80 1f 00 18 	lwz     r0,24(r31)                             
ffc0f088:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f08c:	41 be 00 10 	beq+    cr7,ffc0f09c <pipe_write+0x180>        
      PIPE_WAKEUPREADERS(pipe);                                       
ffc0f090:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0f094:	7f 04 c3 78 	mr      r4,r24                                 
ffc0f098:	48 00 16 75 	bl      ffc1070c <rtems_barrier_release>       
    written += chunk;                                                 
ffc0f09c:	7f bd e2 14 	add     r29,r29,r28                            
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
ffc0f0a0:	3b 20 00 01 	li      r25,1                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
ffc0f0a4:	7f 9d d8 40 	cmplw   cr7,r29,r27                            
ffc0f0a8:	41 9c ff 58 	blt+    cr7,ffc0f000 <pipe_write+0xe4>         
ffc0f0ac:	3b 80 00 00 	li      r28,0                                  
ffc0f0b0:	48 00 00 1c 	b       ffc0f0cc <pipe_write+0x1b0>            
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    ret = -EPIPE;                                                     
ffc0f0b4:	3b 80 ff e0 	li      r28,-32                                
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
ffc0f0b8:	3b a0 00 00 	li      r29,0                                  
ffc0f0bc:	48 00 00 10 	b       ffc0f0cc <pipe_write+0x1b0>            
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc0f0c0:	3b 80 ff f5 	li      r28,-11                                
ffc0f0c4:	48 00 00 08 	b       ffc0f0cc <pipe_write+0x1b0>            
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
ffc0f0c8:	3b 80 ff e0 	li      r28,-32                                <== NOT EXECUTED
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc0f0cc:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0f0d0:	4b ff ad 51 	bl      ffc09e20 <rtems_semaphore_release>     
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
ffc0f0d4:	2f 9c ff e0 	cmpwi   cr7,r28,-32                            
ffc0f0d8:	40 be 00 18 	bne+    cr7,ffc0f0f0 <pipe_write+0x1d4>        
    kill(getpid(), SIGPIPE);                                          
ffc0f0dc:	48 00 08 69 	bl      ffc0f944 <getpid>                      
ffc0f0e0:	38 80 00 0d 	li      r4,13                                  
ffc0f0e4:	48 00 0b d1 	bl      ffc0fcb4 <kill>                        
ffc0f0e8:	48 00 00 08 	b       ffc0f0f0 <pipe_write+0x1d4>            
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
ffc0f0ec:	3b 80 ff fc 	li      r28,-4                                 <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
ffc0f0f0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0f0f4:	41 bd 00 08 	bgt+    cr7,ffc0f0fc <pipe_write+0x1e0>        
ffc0f0f8:	7f 9d e3 78 	mr      r29,r28                                
    return written;                                                   
  return ret;                                                         
}                                                                     
ffc0f0fc:	39 61 00 40 	addi    r11,r1,64                              
ffc0f100:	7f a3 eb 78 	mr      r3,r29                                 
ffc0f104:	48 01 16 8c 	b       ffc20790 <_restgpr_23_x>               
                                                                      

ffc0885c <posix_memalign>: int posix_memalign( void **pointer, size_t alignment, size_t size ) {
ffc0885c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc08860:	7c 08 02 a6 	mflr    r0                                     
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
ffc08864:	3d 60 00 00 	lis     r11,0                                  
int posix_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
ffc08868:	90 01 00 0c 	stw     r0,12(r1)                              
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
ffc0886c:	39 6b 34 08 	addi    r11,r11,13320                          
ffc08870:	81 4b 00 08 	lwz     r10,8(r11)                             
ffc08874:	38 0a 00 01 	addi    r0,r10,1                               
ffc08878:	90 0b 00 08 	stw     r0,8(r11)                              
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc0887c:	39 64 ff ff 	addi    r11,r4,-1                              
ffc08880:	7d 6a 20 39 	and.    r10,r11,r4                             
    return EINVAL;                                                    
ffc08884:	38 00 00 16 	li      r0,22                                  
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc08888:	40 82 00 14 	bne-    ffc0889c <posix_memalign+0x40>         <== NEVER TAKEN
ffc0888c:	2b 84 00 03 	cmplwi  cr7,r4,3                               
ffc08890:	40 bd 00 0c 	ble+    cr7,ffc0889c <posix_memalign+0x40>     
                                                                      
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
ffc08894:	48 00 02 e9 	bl      ffc08b7c <rtems_memalign>              
ffc08898:	7c 60 1b 78 	mr      r0,r3                                  
}                                                                     
ffc0889c:	7c 03 03 78 	mr      r3,r0                                  
ffc088a0:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc088a4:	38 21 00 08 	addi    r1,r1,8                                
ffc088a8:	7c 08 03 a6 	mtlr    r0                                     
ffc088ac:	4e 80 00 20 	blr                                            
                                                                      

ffc060d4 <printk>: * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) {
ffc060d4:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc060d8:	7c 08 02 a6 	mflr    r0                                     
ffc060dc:	90 81 00 1c 	stw     r4,28(r1)                              
ffc060e0:	90 01 00 7c 	stw     r0,124(r1)                             
ffc060e4:	90 a1 00 20 	stw     r5,32(r1)                              
ffc060e8:	90 c1 00 24 	stw     r6,36(r1)                              
ffc060ec:	90 e1 00 28 	stw     r7,40(r1)                              
ffc060f0:	91 01 00 2c 	stw     r8,44(r1)                              
ffc060f4:	91 21 00 30 	stw     r9,48(r1)                              
ffc060f8:	91 41 00 34 	stw     r10,52(r1)                             
ffc060fc:	40 86 00 24 	bne-    cr1,ffc06120 <printk+0x4c>             <== ALWAYS TAKEN
ffc06100:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc06104:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc06108:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc0610c:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc06110:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc06114:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc06118:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc0611c:	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 */           
ffc06120:	38 00 00 01 	li      r0,1                                   
ffc06124:	98 01 00 08 	stb     r0,8(r1)                               
ffc06128:	38 00 00 00 	li      r0,0                                   
  vprintk(fmt, ap);                                                   
ffc0612c:	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 */           
ffc06130:	98 01 00 09 	stb     r0,9(r1)                               
ffc06134:	38 01 00 80 	addi    r0,r1,128                              
ffc06138:	90 01 00 0c 	stw     r0,12(r1)                              
ffc0613c:	38 01 00 18 	addi    r0,r1,24                               
ffc06140:	90 01 00 10 	stw     r0,16(r1)                              
  vprintk(fmt, ap);                                                   
ffc06144:	48 00 1f e5 	bl      ffc08128 <vprintk>                     
  va_end(ap);        /* clean up when done */                         
}                                                                     
ffc06148:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc0614c:	38 21 00 78 	addi    r1,r1,120                              
ffc06150:	7c 08 03 a6 	mtlr    r0                                     
ffc06154:	4e 80 00 20 	blr                                            
                                                                      

ffc068d4 <printk_plugin>: int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) {
ffc068d4:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc068d8:	7c 08 02 a6 	mflr    r0                                     
ffc068dc:	90 a1 00 18 	stw     r5,24(r1)                              
ffc068e0:	90 01 00 74 	stw     r0,116(r1)                             
ffc068e4:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc068e8:	90 e1 00 20 	stw     r7,32(r1)                              
ffc068ec:	91 01 00 24 	stw     r8,36(r1)                              
ffc068f0:	91 21 00 28 	stw     r9,40(r1)                              
ffc068f4:	91 41 00 2c 	stw     r10,44(r1)                             
ffc068f8:	40 86 00 24 	bne-    cr1,ffc0691c <printk_plugin+0x48>      <== ALWAYS TAKEN
ffc068fc:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc06900:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc06904:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc06908:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0690c:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc06910:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc06914:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc06918:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc0691c:	38 00 00 02 	li      r0,2                                   
ffc06920:	98 01 00 08 	stb     r0,8(r1)                               
ffc06924:	38 00 00 00 	li      r0,0                                   
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06928:	7c 83 23 78 	mr      r3,r4                                  
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc0692c:	98 01 00 09 	stb     r0,9(r1)                               
ffc06930:	38 01 00 78 	addi    r0,r1,120                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06934:	38 81 00 08 	addi    r4,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc06938:	90 01 00 0c 	stw     r0,12(r1)                              
ffc0693c:	38 01 00 10 	addi    r0,r1,16                               
ffc06940:	90 01 00 10 	stw     r0,16(r1)                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06944:	48 00 1d 59 	bl      ffc0869c <vprintk>                     
                                                                      
  va_end(arg_pointer); /* clean up when done */                       
                                                                      
  return 0;                                                           
}                                                                     
ffc06948:	38 60 00 00 	li      r3,0                                   
ffc0694c:	80 01 00 74 	lwz     r0,116(r1)                             
ffc06950:	38 21 00 70 	addi    r1,r1,112                              
ffc06954:	7c 08 03 a6 	mtlr    r0                                     
ffc06958:	4e 80 00 20 	blr                                            
                                                                      

ffc0d738 <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
ffc0d738:	2c 03 00 00 	cmpwi   r3,0                                   
    return EINVAL;                                                    
ffc0d73c:	38 00 00 16 	li      r0,22                                  
int pthread_attr_setschedpolicy(                                      
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
ffc0d740:	41 82 00 38 	beq-    ffc0d778 <pthread_attr_setschedpolicy+0x40>
ffc0d744:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0d748:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d74c:	41 9e 00 2c 	beq-    cr7,ffc0d778 <pthread_attr_setschedpolicy+0x40>
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
ffc0d750:	2b 84 00 04 	cmplwi  cr7,r4,4                               
ffc0d754:	41 9d 00 20 	bgt-    cr7,ffc0d774 <pthread_attr_setschedpolicy+0x3c>
ffc0d758:	38 00 00 01 	li      r0,1                                   
ffc0d75c:	7c 00 20 30 	slw     r0,r0,r4                               
ffc0d760:	70 09 00 17 	andi.   r9,r0,23                               
ffc0d764:	41 82 00 10 	beq-    ffc0d774 <pthread_attr_setschedpolicy+0x3c><== NEVER TAKEN
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
ffc0d768:	90 83 00 14 	stw     r4,20(r3)                              
      return 0;                                                       
ffc0d76c:	38 00 00 00 	li      r0,0                                   
ffc0d770:	48 00 00 08 	b       ffc0d778 <pthread_attr_setschedpolicy+0x40>
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
ffc0d774:	38 00 00 86 	li      r0,134                                 
  }                                                                   
}                                                                     
ffc0d778:	7c 03 03 78 	mr      r3,r0                                  
ffc0d77c:	4e 80 00 20 	blr                                            
                                                                      

ffc080a8 <pthread_barrier_init>: int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) {
ffc080a8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc080ac:	7c 08 02 a6 	mflr    r0                                     
ffc080b0:	bf 81 00 18 	stmw    r28,24(r1)                             
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
ffc080b4:	7c 7c 1b 79 	mr.     r28,r3                                 
int pthread_barrier_init(                                             
  pthread_barrier_t           *barrier,                               
  const pthread_barrierattr_t *attr,                                  
  unsigned int                 count                                  
)                                                                     
{                                                                     
ffc080b8:	7c bf 2b 78 	mr      r31,r5                                 
ffc080bc:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
    return EINVAL;                                                    
ffc080c0:	38 00 00 16 	li      r0,22                                  
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
ffc080c4:	41 82 00 a8 	beq-    ffc0816c <pthread_barrier_init+0xc4>   
    return EINVAL;                                                    
                                                                      
  if ( count == 0 )                                                   
ffc080c8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc080cc:	41 9e 00 a0 	beq-    cr7,ffc0816c <pthread_barrier_init+0xc4>
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
ffc080d0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc080d4:	7c 9e 23 78 	mr      r30,r4                                 
ffc080d8:	40 be 00 10 	bne+    cr7,ffc080e8 <pthread_barrier_init+0x40>
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_barrierattr_init( &my_attr );                      
ffc080dc:	3b c1 00 10 	addi    r30,r1,16                              
ffc080e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc080e4:	4b ff fe e9 	bl      ffc07fcc <pthread_barrierattr_init>    
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc080e8:	81 3e 00 00 	lwz     r9,0(r30)                              
    return EINVAL;                                                    
ffc080ec:	38 00 00 16 	li      r0,22                                  
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc080f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc080f4:	41 9e 00 78 	beq-    cr7,ffc0816c <pthread_barrier_init+0xc4>
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
ffc080f8:	83 de 00 04 	lwz     r30,4(r30)                             
ffc080fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc08100:	40 9e 00 6c 	bne-    cr7,ffc0816c <pthread_barrier_init+0xc4><== NEVER TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc08104:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
ffc08108:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0810c:	81 69 27 bc 	lwz     r11,10172(r9)                          
  the_attributes.maximum_count = count;                               
ffc08110:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc08114:	38 0b 00 01 	addi    r0,r11,1                               
ffc08118:	90 09 27 bc 	stw     r0,10172(r9)                           
 *  the inactive chain of free barrier control blocks.                
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{                                                                     
  return (POSIX_Barrier_Control *)                                    
    _Objects_Allocate( &_POSIX_Barrier_Information );                 
ffc0811c:	3f a0 00 00 	lis     r29,0                                  
ffc08120:	3b bd 2f 98 	addi    r29,r29,12184                          
ffc08124:	7f a3 eb 78 	mr      r3,r29                                 
ffc08128:	48 00 23 9d 	bl      ffc0a4c4 <_Objects_Allocate>           
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
ffc0812c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc08130:	40 a2 00 10 	bne+    ffc08140 <pthread_barrier_init+0x98>   
    _Thread_Enable_dispatch();                                        
ffc08134:	48 00 32 71 	bl      ffc0b3a4 <_Thread_Enable_dispatch>     
    return EAGAIN;                                                    
ffc08138:	38 00 00 0b 	li      r0,11                                  
ffc0813c:	48 00 00 30 	b       ffc0816c <pthread_barrier_init+0xc4>   
  }                                                                   
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
ffc08140:	38 7f 00 10 	addi    r3,r31,16                              
ffc08144:	38 81 00 08 	addi    r4,r1,8                                
ffc08148:	48 00 18 e5 	bl      ffc09a2c <_CORE_barrier_Initialize>    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc0814c:	80 1f 00 08 	lwz     r0,8(r31)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc08150:	81 7d 00 1c 	lwz     r11,28(r29)                            
ffc08154:	54 09 13 ba 	rlwinm  r9,r0,2,14,29                          
ffc08158:	7f eb 49 2e 	stwx    r31,r11,r9                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc0815c:	93 df 00 0c 	stw     r30,12(r31)                            
  );                                                                  
                                                                      
  /*                                                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
ffc08160:	90 1c 00 00 	stw     r0,0(r28)                              
  _Thread_Enable_dispatch();                                          
ffc08164:	48 00 32 41 	bl      ffc0b3a4 <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc08168:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc0816c:	39 61 00 28 	addi    r11,r1,40                              
ffc08170:	7c 03 03 78 	mr      r3,r0                                  
ffc08174:	4b ff 8d b8 	b       ffc00f2c <_restgpr_28_x>               
                                                                      

ffc07724 <pthread_cleanup_push>: void pthread_cleanup_push( void (*routine)( void * ), void *arg ) {
ffc07724:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc07728:	7c 08 02 a6 	mflr    r0                                     
ffc0772c:	bf c1 00 08 	stmw    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 )                                                     
ffc07730:	7c 7e 1b 79 	mr.     r30,r3                                 
                                                                      
void pthread_cleanup_push(                                            
  void   (*routine)( void * ),                                        
  void    *arg                                                        
)                                                                     
{                                                                     
ffc07734:	7c 9f 23 78 	mr      r31,r4                                 
ffc07738:	90 01 00 14 	stw     r0,20(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 )                                                     
ffc0773c:	41 82 00 48 	beq-    ffc07784 <pthread_cleanup_push+0x60>   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc07740:	3d 20 00 00 	lis     r9,0                                   
ffc07744:	81 69 27 94 	lwz     r11,10132(r9)                          
ffc07748:	38 0b 00 01 	addi    r0,r11,1                               
ffc0774c:	90 09 27 94 	stw     r0,10132(r9)                           
    return;                                                           
                                                                      
  _Thread_Disable_dispatch();                                         
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
ffc07750:	38 60 00 10 	li      r3,16                                  
ffc07754:	48 00 4a 49 	bl      ffc0c19c <_Workspace_Allocate>         
                                                                      
  if ( handler ) {                                                    
ffc07758:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0775c:	41 82 00 24 	beq-    ffc07780 <pthread_cleanup_push+0x5c>   <== NEVER TAKEN
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
ffc07760:	3d 60 00 00 	lis     r11,0                                  
ffc07764:	81 6b 30 fc 	lwz     r11,12540(r11)                         
    handler_stack = &thread_support->Cancellation_Handlers;           
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc07768:	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;           
ffc0776c:	80 6b 01 48 	lwz     r3,328(r11)                            
                                                                      
    handler->routine = routine;                                       
ffc07770:	93 c9 00 08 	stw     r30,8(r9)                              
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc07774:	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;                                               
ffc07778:	93 e9 00 0c 	stw     r31,12(r9)                             
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc0777c:	48 00 19 f1 	bl      ffc0916c <_Chain_Append>               
  }                                                                   
  _Thread_Enable_dispatch();                                          
ffc07780:	48 00 33 1d 	bl      ffc0aa9c <_Thread_Enable_dispatch>     
}                                                                     
ffc07784:	39 61 00 10 	addi    r11,r1,16                              
ffc07788:	48 00 eb 90 	b       ffc16318 <_restgpr_30_x>               
                                                                      

ffc08a40 <pthread_cond_init>: int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
ffc08a40:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc08a44:	7c 08 02 a6 	mflr    r0                                     
ffc08a48:	bf 81 00 08 	stmw    r28,8(r1)                              
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
ffc08a4c:	7c 9e 23 79 	mr.     r30,r4                                 
                                                                      
int pthread_cond_init(                                                
  pthread_cond_t           *cond,                                     
  const pthread_condattr_t *attr                                      
)                                                                     
{                                                                     
ffc08a50:	7c 7c 1b 78 	mr      r28,r3                                 
ffc08a54:	90 01 00 1c 	stw     r0,28(r1)                              
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
ffc08a58:	40 a2 00 0c 	bne+    ffc08a64 <pthread_cond_init+0x24>      
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
ffc08a5c:	3f c0 00 00 	lis     r30,0                                  
ffc08a60:	3b de 27 08 	addi    r30,r30,9992                           
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
ffc08a64:	80 1e 00 04 	lwz     r0,4(r30)                              
    return EINVAL;                                                    
ffc08a68:	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 )           
ffc08a6c:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc08a70:	41 9e 00 8c 	beq-    cr7,ffc08afc <pthread_cond_init+0xbc>  <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
ffc08a74:	80 1e 00 00 	lwz     r0,0(r30)                              
ffc08a78:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08a7c:	41 be 00 80 	beq+    cr7,ffc08afc <pthread_cond_init+0xbc>  
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc08a80:	3d 20 00 00 	lis     r9,0                                   
ffc08a84:	81 69 27 c8 	lwz     r11,10184(r9)                          
ffc08a88:	38 0b 00 01 	addi    r0,r11,1                               
ffc08a8c:	90 09 27 c8 	stw     r0,10184(r9)                           
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
    _Objects_Allocate( &_POSIX_Condition_variables_Information );     
ffc08a90:	3f a0 00 00 	lis     r29,0                                  
ffc08a94:	3b bd 30 30 	addi    r29,r29,12336                          
ffc08a98:	7f a3 eb 78 	mr      r3,r29                                 
ffc08a9c:	48 00 29 ed 	bl      ffc0b488 <_Objects_Allocate>           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
ffc08aa0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc08aa4:	40 a2 00 10 	bne+    ffc08ab4 <pthread_cond_init+0x74>      
    _Thread_Enable_dispatch();                                        
ffc08aa8:	48 00 38 c1 	bl      ffc0c368 <_Thread_Enable_dispatch>     
    return ENOMEM;                                                    
ffc08aac:	38 60 00 0c 	li      r3,12                                  
ffc08ab0:	48 00 00 4c 	b       ffc08afc <pthread_cond_init+0xbc>      
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
ffc08ab4:	80 1e 00 04 	lwz     r0,4(r30)                              
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
ffc08ab8:	3b c0 00 00 	li      r30,0                                  
ffc08abc:	93 df 00 14 	stw     r30,20(r31)                            
                                                                      
  _Thread_queue_Initialize(                                           
ffc08ac0:	3c a0 10 00 	lis     r5,4096                                
ffc08ac4:	38 7f 00 18 	addi    r3,r31,24                              
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
ffc08ac8:	90 1f 00 10 	stw     r0,16(r31)                             
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
  _Thread_queue_Initialize(                                           
ffc08acc:	38 80 00 00 	li      r4,0                                   
ffc08ad0:	60 a5 08 00 	ori     r5,r5,2048                             
ffc08ad4:	38 c0 00 74 	li      r6,116                                 
ffc08ad8:	48 00 41 51 	bl      ffc0cc28 <_Thread_queue_Initialize>    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc08adc:	80 1f 00 08 	lwz     r0,8(r31)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc08ae0:	81 7d 00 1c 	lwz     r11,28(r29)                            
ffc08ae4:	54 09 13 ba 	rlwinm  r9,r0,2,14,29                          
ffc08ae8:	7f eb 49 2e 	stwx    r31,r11,r9                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc08aec:	93 df 00 0c 	stw     r30,12(r31)                            
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
ffc08af0:	90 1c 00 00 	stw     r0,0(r28)                              
                                                                      
  _Thread_Enable_dispatch();                                          
ffc08af4:	48 00 38 75 	bl      ffc0c368 <_Thread_Enable_dispatch>     
                                                                      
  return 0;                                                           
ffc08af8:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc08afc:	39 61 00 18 	addi    r11,r1,24                              
ffc08b00:	4b ff 8c d4 	b       ffc017d4 <_restgpr_28_x>               
                                                                      

ffc08898 <pthread_condattr_destroy>: int pthread_condattr_destroy( pthread_condattr_t *attr ) { if ( !attr || attr->is_initialized == false )
ffc08898:	2c 03 00 00 	cmpwi   r3,0                                   
    return EINVAL;                                                    
ffc0889c:	38 00 00 16 	li      r0,22                                  
                                                                      
int pthread_condattr_destroy(                                         
  pthread_condattr_t *attr                                            
)                                                                     
{                                                                     
  if ( !attr || attr->is_initialized == false )                       
ffc088a0:	41 82 00 18 	beq-    ffc088b8 <pthread_condattr_destroy+0x20>
ffc088a4:	81 23 00 00 	lwz     r9,0(r3)                               
ffc088a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc088ac:	41 9e 00 0c 	beq-    cr7,ffc088b8 <pthread_condattr_destroy+0x20><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  attr->is_initialized = false;                                       
ffc088b0:	38 00 00 00 	li      r0,0                                   
ffc088b4:	90 03 00 00 	stw     r0,0(r3)                               
  return 0;                                                           
}                                                                     
ffc088b8:	7c 03 03 78 	mr      r3,r0                                  
ffc088bc:	4e 80 00 20 	blr                                            
                                                                      

ffc07cec <pthread_create>: pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) {
ffc07cec:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc07cf0:	7c 08 02 a6 	mflr    r0                                     
ffc07cf4:	be c1 00 50 	stmw    r22,80(r1)                             
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
ffc07cf8:	7c b8 2b 79 	mr.     r24,r5                                 
  pthread_t              *thread,                                     
  const pthread_attr_t   *attr,                                       
  void                 *(*start_routine)( void * ),                   
  void                   *arg                                         
)                                                                     
{                                                                     
ffc07cfc:	7c 7a 1b 78 	mr      r26,r3                                 
ffc07d00:	90 01 00 7c 	stw     r0,124(r1)                             
ffc07d04:	7c d9 33 78 	mr      r25,r6                                 
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
ffc07d08:	3b c0 00 0e 	li      r30,14                                 
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
ffc07d0c:	41 82 02 0c 	beq-    ffc07f18 <pthread_create+0x22c>        
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
ffc07d10:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc07d14:	7c 9f 23 78 	mr      r31,r4                                 
ffc07d18:	40 be 00 0c 	bne+    cr7,ffc07d24 <pthread_create+0x38>     
ffc07d1c:	3f e0 ff c2 	lis     r31,-62                                
ffc07d20:	3b ff e7 d4 	addi    r31,r31,-6188                          
                                                                      
  if ( !the_attr->is_initialized )                                    
ffc07d24:	80 1f 00 00 	lwz     r0,0(r31)                              
    return EINVAL;                                                    
ffc07d28:	3b c0 00 16 	li      r30,22                                 
  if ( !start_routine )                                               
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
                                                                      
  if ( !the_attr->is_initialized )                                    
ffc07d2c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07d30:	41 9e 01 e8 	beq-    cr7,ffc07f18 <pthread_create+0x22c>    
   *  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) )
ffc07d34:	80 1f 00 04 	lwz     r0,4(r31)                              
ffc07d38:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07d3c:	41 9e 00 18 	beq-    cr7,ffc07d54 <pthread_create+0x68>     
ffc07d40:	3d 60 00 00 	lis     r11,0                                  
ffc07d44:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc07d48:	80 0b 26 c8 	lwz     r0,9928(r11)                           
ffc07d4c:	7f 89 00 40 	cmplw   cr7,r9,r0                              
ffc07d50:	41 9c 01 c8 	blt-    cr7,ffc07f18 <pthread_create+0x22c>    
   *  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 ) {                                 
ffc07d54:	80 1f 00 10 	lwz     r0,16(r31)                             
ffc07d58:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc07d5c:	41 9e 00 14 	beq-    cr7,ffc07d70 <pthread_create+0x84>     
ffc07d60:	2f 80 00 02 	cmpwi   cr7,r0,2                               
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
      break;                                                          
                                                                      
    default:                                                          
      return EINVAL;                                                  
ffc07d64:	3b c0 00 16 	li      r30,22                                 
   *  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 ) {                                 
ffc07d68:	40 be 01 b0 	bne+    cr7,ffc07f18 <pthread_create+0x22c>    
ffc07d6c:	48 00 00 1c 	b       ffc07d88 <pthread_create+0x9c>         
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
ffc07d70:	3d 20 00 00 	lis     r9,0                                   
ffc07d74:	81 29 30 fc 	lwz     r9,12540(r9)                           
ffc07d78:	80 69 01 48 	lwz     r3,328(r9)                             
      schedpolicy = api->schedpolicy;                                 
ffc07d7c:	83 63 00 84 	lwz     r27,132(r3)                            
      schedparam  = api->schedparam;                                  
ffc07d80:	38 63 00 88 	addi    r3,r3,136                              
ffc07d84:	48 00 00 0c 	b       ffc07d90 <pthread_create+0xa4>         
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
ffc07d88:	83 7f 00 14 	lwz     r27,20(r31)                            
      schedparam  = the_attr->schedparam;                             
ffc07d8c:	38 7f 00 18 	addi    r3,r31,24                              
ffc07d90:	38 81 00 20 	addi    r4,r1,32                               
ffc07d94:	7c a3 e4 aa 	lswi    r5,r3,28                               
ffc07d98:	7c a4 e5 aa 	stswi   r5,r4,28                               
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
    return ENOTSUP;                                                   
ffc07d9c:	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 )           
ffc07da0:	80 1f 00 0c 	lwz     r0,12(r31)                             
ffc07da4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07da8:	40 9e 01 70 	bne-    cr7,ffc07f18 <pthread_create+0x22c>    
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
ffc07dac:	80 61 00 20 	lwz     r3,32(r1)                              
    return EINVAL;                                                    
ffc07db0:	3b c0 00 16 	li      r30,22                                 
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
ffc07db4:	48 00 69 49 	bl      ffc0e6fc <_POSIX_Priority_Is_valid>    
ffc07db8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07dbc:	41 be 01 5c 	beq+    cr7,ffc07f18 <pthread_create+0x22c>    <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
ffc07dc0:	7c 24 0b 78 	mr      r4,r1                                  
ffc07dc4:	86 e4 00 20 	lwzu    r23,32(r4)                             
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
ffc07dc8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
ffc07dcc:	7f 63 db 78 	mr      r3,r27                                 
ffc07dd0:	8a c9 26 cc 	lbz     r22,9932(r9)                           
ffc07dd4:	38 a1 00 18 	addi    r5,r1,24                               
ffc07dd8:	38 c1 00 1c 	addi    r6,r1,28                               
ffc07ddc:	48 00 69 49 	bl      ffc0e724 <_POSIX_Thread_Translate_sched_param>
    schedpolicy,                                                      
    &schedparam,                                                      
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
ffc07de0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc07de4:	40 a2 01 34 	bne+    ffc07f18 <pthread_create+0x22c>        
  #endif                                                              
                                                                      
  /*                                                                  
   *  Lock the allocator mutex for protection                         
   */                                                                 
  _RTEMS_Lock_allocator();                                            
ffc07de8:	3f a0 00 00 	lis     r29,0                                  
ffc07dec:	80 7d 27 c0 	lwz     r3,10176(r29)                          
ffc07df0:	48 00 19 fd 	bl      ffc097ec <_API_Mutex_Lock>             
 *  _POSIX_Threads_Allocate                                           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )  
{                                                                     
  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
ffc07df4:	3c 60 00 00 	lis     r3,0                                   
ffc07df8:	38 63 2d f8 	addi    r3,r3,11768                            
ffc07dfc:	48 00 25 09 	bl      ffc0a304 <_Objects_Allocate>           
   *  Allocate the thread control block.                              
   *                                                                  
   *  NOTE:  Global threads are not currently supported.              
   */                                                                 
  the_thread = _POSIX_Threads_Allocate();                             
  if ( !the_thread ) {                                                
ffc07e00:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc07e04:	40 a2 00 0c 	bne+    ffc07e10 <pthread_create+0x124>        
    _RTEMS_Unlock_allocator();                                        
ffc07e08:	80 7d 27 c0 	lwz     r3,10176(r29)                          
ffc07e0c:	48 00 00 80 	b       ffc07e8c <pthread_create+0x1a0>        
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
ffc07e10:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
ffc07e14:	80 1f 00 08 	lwz     r0,8(r31)                              
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
ffc07e18:	80 c9 26 c8 	lwz     r6,9928(r9)                            
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
ffc07e1c:	80 bf 00 04 	lwz     r5,4(r31)                              
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
ffc07e20:	54 c6 08 3c 	rlwinm  r6,r6,1,0,30                           
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
ffc07e24:	7f 86 00 40 	cmplw   cr7,r6,r0                              
ffc07e28:	40 9c 00 08 	bge-    cr7,ffc07e30 <pthread_create+0x144>    
ffc07e2c:	7c 06 03 78 	mr      r6,r0                                  
ffc07e30:	38 00 00 00 	li      r0,0                                   
ffc07e34:	81 61 00 1c 	lwz     r11,28(r1)                             
ffc07e38:	7c 29 0b 78 	mr      r9,r1                                  
ffc07e3c:	81 41 00 18 	lwz     r10,24(r1)                             
ffc07e40:	94 09 00 48 	stwu    r0,72(r9)                              
ffc07e44:	3f a0 00 00 	lis     r29,0                                  
ffc07e48:	3b bd 2d f8 	addi    r29,r29,11768                          
ffc07e4c:	91 21 00 10 	stw     r9,16(r1)                              
ffc07e50:	7f a3 eb 78 	mr      r3,r29                                 
ffc07e54:	7f 84 e3 78 	mr      r4,r28                                 
ffc07e58:	38 e0 00 01 	li      r7,1                                   
ffc07e5c:	91 61 00 08 	stw     r11,8(r1)                              
ffc07e60:	7d 17 b0 50 	subf    r8,r23,r22                             
ffc07e64:	39 20 00 01 	li      r9,1                                   
ffc07e68:	90 01 00 0c 	stw     r0,12(r1)                              
ffc07e6c:	48 00 34 39 	bl      ffc0b2a4 <_Thread_Initialize>          
    budget_callout,                                                   
    0,                    /* isr level */                             
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
ffc07e70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07e74:	40 9e 00 24 	bne-    cr7,ffc07e98 <pthread_create+0x1ac>    
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (                       
  Thread_Control *the_pthread                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 
ffc07e78:	7f a3 eb 78 	mr      r3,r29                                 
ffc07e7c:	7f 84 e3 78 	mr      r4,r28                                 
ffc07e80:	48 00 27 fd 	bl      ffc0a67c <_Objects_Free>               
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
ffc07e84:	3d 20 00 00 	lis     r9,0                                   
ffc07e88:	80 69 27 c0 	lwz     r3,10176(r9)                           
ffc07e8c:	48 00 19 e5 	bl      ffc09870 <_API_Mutex_Unlock>           
    return EAGAIN;                                                    
ffc07e90:	3b c0 00 0b 	li      r30,11                                 
ffc07e94:	48 00 00 84 	b       ffc07f18 <pthread_create+0x22c>        
  }                                                                   
                                                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc07e98:	83 bc 01 48 	lwz     r29,328(r28)                           
                                                                      
  api->Attributes  = *the_attr;                                       
ffc07e9c:	38 a0 00 40 	li      r5,64                                  
ffc07ea0:	7f e4 fb 78 	mr      r4,r31                                 
ffc07ea4:	7f a3 eb 78 	mr      r3,r29                                 
ffc07ea8:	48 00 9f b5 	bl      ffc11e5c <memcpy>                      
  api->detachstate = the_attr->detachstate;                           
ffc07eac:	80 1f 00 3c 	lwz     r0,60(r31)                             
  api->schedpolicy = schedpolicy;                                     
ffc07eb0:	93 7d 00 84 	stw     r27,132(r29)                           
  api->schedparam  = schedparam;                                      
ffc07eb4:	38 9d 00 88 	addi    r4,r29,136                             
ffc07eb8:	38 61 00 20 	addi    r3,r1,32                               
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
ffc07ebc:	90 1d 00 40 	stw     r0,64(r29)                             
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
ffc07ec0:	7c a3 e4 aa 	lswi    r5,r3,28                               
ffc07ec4:	7c a4 e5 aa 	stswi   r5,r4,28                               
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
ffc07ec8:	7f 83 e3 78 	mr      r3,r28                                 
ffc07ecc:	38 80 00 01 	li      r4,1                                   
ffc07ed0:	7f 05 c3 78 	mr      r5,r24                                 
ffc07ed4:	7f 26 cb 78 	mr      r6,r25                                 
ffc07ed8:	38 e0 00 00 	li      r7,0                                   
ffc07edc:	48 00 3f a1 	bl      ffc0be7c <_Thread_Start>               
      _RTEMS_Unlock_allocator();                                      
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
ffc07ee0:	2f 9b 00 04 	cmpwi   cr7,r27,4                              
ffc07ee4:	40 be 00 20 	bne+    cr7,ffc07f04 <pthread_create+0x218>    
    _Watchdog_Insert_ticks(                                           
ffc07ee8:	38 7d 00 90 	addi    r3,r29,144                             
ffc07eec:	48 00 43 29 	bl      ffc0c214 <_Timespec_To_ticks>          
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc07ef0:	38 9d 00 a8 	addi    r4,r29,168                             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc07ef4:	90 7d 00 b4 	stw     r3,180(r29)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc07ef8:	3c 60 00 00 	lis     r3,0                                   
ffc07efc:	38 63 2c c8 	addi    r3,r3,11464                            
ffc07f00:	48 00 47 01 	bl      ffc0c600 <_Watchdog_Insert>            
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
ffc07f04:	80 1c 00 08 	lwz     r0,8(r28)                              
                                                                      
  _RTEMS_Unlock_allocator();                                          
ffc07f08:	3d 20 00 00 	lis     r9,0                                   
ffc07f0c:	80 69 27 c0 	lwz     r3,10176(r9)                           
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
ffc07f10:	90 1a 00 00 	stw     r0,0(r26)                              
                                                                      
  _RTEMS_Unlock_allocator();                                          
ffc07f14:	48 00 19 5d 	bl      ffc09870 <_API_Mutex_Unlock>           
  return 0;                                                           
}                                                                     
ffc07f18:	39 61 00 78 	addi    r11,r1,120                             
ffc07f1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc07f20:	4b ff 8c a0 	b       ffc00bc0 <_restgpr_22_x>               
                                                                      

ffc0a248 <pthread_mutex_timedlock>: int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) {
ffc0a248:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0a24c:	7c 08 02 a6 	mflr    r0                                     
ffc0a250:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc0a254:	7c 7d 1b 78 	mr      r29,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 );       
ffc0a258:	7c 83 23 78 	mr      r3,r4                                  
ffc0a25c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
int pthread_mutex_timedlock(                                          
  pthread_mutex_t       *mutex,                                       
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc0a260:	90 01 00 2c 	stw     r0,44(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 );       
ffc0a264:	48 00 00 f5 	bl      ffc0a358 <_POSIX_Absolute_timeout_to_ticks>
int	_EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex));        
int	_EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));         
                                                                      
#if defined(_POSIX_TIMEOUTS)                                          
                                                                      
int	_EXFUN(pthread_mutex_timedlock,                                   
ffc0a268:	68 7f 00 03 	xori    r31,r3,3                               
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
ffc0a26c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc0a270:	7f ff 00 34 	cntlzw  r31,r31                                
ffc0a274:	57 ff d9 7e 	rlwinm  r31,r31,27,5,31                        
   *                                                                  
   *  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 );       
ffc0a278:	7c 7e 1b 78 	mr      r30,r3                                 
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
ffc0a27c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0a280:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a284:	4b ff fe c1 	bl      ffc0a144 <_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) ) {                         
ffc0a288:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0a28c:	40 9e 00 30 	bne-    cr7,ffc0a2bc <pthread_mutex_timedlock+0x74>
ffc0a290:	2f 83 00 10 	cmpwi   cr7,r3,16                              
ffc0a294:	40 be 00 28 	bne+    cr7,ffc0a2bc <pthread_mutex_timedlock+0x74><== NEVER TAKEN
    if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                   
ffc0a298:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a29c:	41 9e 00 14 	beq-    cr7,ffc0a2b0 <pthread_mutex_timedlock+0x68><== NEVER TAKEN
      return EINVAL;                                                  
    if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||               
ffc0a2a0:	3b de ff ff 	addi    r30,r30,-1                             
ffc0a2a4:	2b 9e 00 01 	cmplwi  cr7,r30,1                              
ffc0a2a8:	41 bd 00 14 	bgt+    cr7,ffc0a2bc <pthread_mutex_timedlock+0x74><== NEVER TAKEN
ffc0a2ac:	48 00 00 0c 	b       ffc0a2b8 <pthread_mutex_timedlock+0x70>
   *  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 )                   
      return EINVAL;                                                  
ffc0a2b0:	38 60 00 16 	li      r3,22                                  <== NOT EXECUTED
ffc0a2b4:	48 00 00 08 	b       ffc0a2bc <pthread_mutex_timedlock+0x74><== NOT EXECUTED
    if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||               
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
ffc0a2b8:	38 60 00 74 	li      r3,116                                 
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
ffc0a2bc:	39 61 00 28 	addi    r11,r1,40                              
ffc0a2c0:	4b ff 88 c4 	b       ffc02b84 <_restgpr_29_x>               
                                                                      

ffc09dc8 <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
ffc09dc8:	2c 03 00 00 	cmpwi   r3,0                                   
    return EINVAL;                                                    
ffc09dcc:	38 00 00 16 	li      r0,22                                  
int pthread_mutexattr_setpshared(                                     
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
ffc09dd0:	41 82 00 20 	beq-    ffc09df0 <pthread_mutexattr_setpshared+0x28>
ffc09dd4:	81 23 00 00 	lwz     r9,0(r3)                               
ffc09dd8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09ddc:	41 9e 00 14 	beq-    cr7,ffc09df0 <pthread_mutexattr_setpshared+0x28>
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
ffc09de0:	2b 84 00 01 	cmplwi  cr7,r4,1                               
ffc09de4:	41 9d 00 0c 	bgt-    cr7,ffc09df0 <pthread_mutexattr_setpshared+0x28><== NEVER TAKEN
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
ffc09de8:	90 83 00 04 	stw     r4,4(r3)                               
      return 0;                                                       
ffc09dec:	38 00 00 00 	li      r0,0                                   
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
ffc09df0:	7c 03 03 78 	mr      r3,r0                                  
ffc09df4:	4e 80 00 20 	blr                                            
                                                                      

ffc07360 <pthread_mutexattr_settype>: int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) { if ( !attr || !attr->is_initialized )
ffc07360:	2c 03 00 00 	cmpwi   r3,0                                   
    return EINVAL;                                                    
ffc07364:	38 00 00 16 	li      r0,22                                  
int pthread_mutexattr_settype(                                        
  pthread_mutexattr_t *attr,                                          
  int                  type                                           
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
ffc07368:	41 82 00 20 	beq-    ffc07388 <pthread_mutexattr_settype+0x28>
ffc0736c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc07370:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07374:	41 9e 00 14 	beq-    cr7,ffc07388 <pthread_mutexattr_settype+0x28><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  switch ( type ) {                                                   
ffc07378:	2b 84 00 03 	cmplwi  cr7,r4,3                               
ffc0737c:	41 9d 00 0c 	bgt-    cr7,ffc07388 <pthread_mutexattr_settype+0x28>
    case PTHREAD_MUTEX_NORMAL:                                        
    case PTHREAD_MUTEX_RECURSIVE:                                     
    case PTHREAD_MUTEX_ERRORCHECK:                                    
    case PTHREAD_MUTEX_DEFAULT:                                       
      attr->type = type;                                              
ffc07380:	90 83 00 10 	stw     r4,16(r3)                              
      return 0;                                                       
ffc07384:	38 00 00 00 	li      r0,0                                   
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
ffc07388:	7c 03 03 78 	mr      r3,r0                                  
ffc0738c:	4e 80 00 20 	blr                                            
                                                                      

ffc0838c <pthread_once>: int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) {
ffc0838c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08390:	7c 08 02 a6 	mflr    r0                                     
ffc08394:	bf c1 00 18 	stmw    r30,24(r1)                             
  if ( !once_control || !init_routine )                               
ffc08398:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
ffc0839c:	7c 9e 23 78 	mr      r30,r4                                 
ffc083a0:	90 01 00 24 	stw     r0,36(r1)                              
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
ffc083a4:	38 00 00 16 	li      r0,22                                  
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
ffc083a8:	41 82 00 60 	beq-    ffc08408 <pthread_once+0x7c>           
ffc083ac:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc083b0:	41 9e 00 58 	beq-    cr7,ffc08408 <pthread_once+0x7c>       
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
ffc083b4:	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;                                                           
ffc083b8:	38 00 00 00 	li      r0,0                                   
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
ffc083bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc083c0:	40 be 00 48 	bne+    cr7,ffc08408 <pthread_once+0x7c>       
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
ffc083c4:	38 60 01 00 	li      r3,256                                 
ffc083c8:	38 80 01 00 	li      r4,256                                 
ffc083cc:	38 a1 00 08 	addi    r5,r1,8                                
ffc083d0:	48 00 0c a9 	bl      ffc09078 <rtems_task_mode>             
    if ( !once_control->init_executed ) {                             
ffc083d4:	80 1f 00 04 	lwz     r0,4(r31)                              
ffc083d8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc083dc:	40 be 00 18 	bne+    cr7,ffc083f4 <pthread_once+0x68>       <== NEVER TAKEN
      once_control->is_initialized = true;                            
ffc083e0:	38 00 00 01 	li      r0,1                                   
      once_control->init_executed = true;                             
      (*init_routine)();                                              
ffc083e4:	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;                            
ffc083e8:	90 1f 00 00 	stw     r0,0(r31)                              
      once_control->init_executed = true;                             
ffc083ec:	90 1f 00 04 	stw     r0,4(r31)                              
      (*init_routine)();                                              
ffc083f0:	4e 80 04 21 	bctrl                                          
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc083f4:	7c 25 0b 78 	mr      r5,r1                                  
ffc083f8:	84 65 00 08 	lwzu    r3,8(r5)                               
ffc083fc:	38 80 01 00 	li      r4,256                                 
ffc08400:	48 00 0c 79 	bl      ffc09078 <rtems_task_mode>             
  }                                                                   
  return 0;                                                           
ffc08404:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc08408:	39 61 00 20 	addi    r11,r1,32                              
ffc0840c:	7c 03 03 78 	mr      r3,r0                                  
ffc08410:	4b ff 87 d0 	b       ffc00be0 <_restgpr_30_x>               
                                                                      

ffc08d54 <pthread_rwlock_init>: int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) {
ffc08d54:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc08d58:	7c 08 02 a6 	mflr    r0                                     
ffc08d5c:	bf 81 00 18 	stmw    r28,24(r1)                             
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
ffc08d60:	7c 7c 1b 79 	mr.     r28,r3                                 
                                                                      
int pthread_rwlock_init(                                              
  pthread_rwlock_t           *rwlock,                                 
  const pthread_rwlockattr_t *attr                                    
)                                                                     
{                                                                     
ffc08d64:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
    return EINVAL;                                                    
ffc08d68:	38 00 00 16 	li      r0,22                                  
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
ffc08d6c:	41 82 00 9c 	beq-    ffc08e08 <pthread_rwlock_init+0xb4>    
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
ffc08d70:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc08d74:	7c 9f 23 78 	mr      r31,r4                                 
ffc08d78:	40 be 00 10 	bne+    cr7,ffc08d88 <pthread_rwlock_init+0x34>
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_rwlockattr_init( &default_attr );                  
ffc08d7c:	3b e1 00 0c 	addi    r31,r1,12                              
ffc08d80:	7f e3 fb 78 	mr      r3,r31                                 
ffc08d84:	48 00 0a 41 	bl      ffc097c4 <pthread_rwlockattr_init>     
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc08d88:	81 3f 00 00 	lwz     r9,0(r31)                              
    return EINVAL;                                                    
ffc08d8c:	38 00 00 16 	li      r0,22                                  
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc08d90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08d94:	41 9e 00 74 	beq-    cr7,ffc08e08 <pthread_rwlock_init+0xb4><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
ffc08d98:	83 df 00 04 	lwz     r30,4(r31)                             
ffc08d9c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc08da0:	40 9e 00 68 	bne-    cr7,ffc08e08 <pthread_rwlock_init+0xb4><== NEVER TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc08da4:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(         
  CORE_RWLock_Attributes *the_attributes                              
)                                                                     
{                                                                     
  the_attributes->XXX = 0;                                            
ffc08da8:	93 c1 00 08 	stw     r30,8(r1)                              
ffc08dac:	81 69 27 bc 	lwz     r11,10172(r9)                          
ffc08db0:	38 0b 00 01 	addi    r0,r11,1                               
ffc08db4:	90 09 27 bc 	stw     r0,10172(r9)                           
 *  the inactive chain of free RWLock control blocks.                 
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{                                                                     
  return (POSIX_RWLock_Control *)                                     
    _Objects_Allocate( &_POSIX_RWLock_Information );                  
ffc08db8:	3f a0 00 00 	lis     r29,0                                  
ffc08dbc:	3b bd 2d d8 	addi    r29,r29,11736                          
ffc08dc0:	7f a3 eb 78 	mr      r3,r29                                 
ffc08dc4:	48 00 2a 05 	bl      ffc0b7c8 <_Objects_Allocate>           
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
ffc08dc8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc08dcc:	40 a2 00 10 	bne+    ffc08ddc <pthread_rwlock_init+0x88>    
    _Thread_Enable_dispatch();                                        
ffc08dd0:	48 00 38 d9 	bl      ffc0c6a8 <_Thread_Enable_dispatch>     
    return EAGAIN;                                                    
ffc08dd4:	38 00 00 0b 	li      r0,11                                  
ffc08dd8:	48 00 00 30 	b       ffc08e08 <pthread_rwlock_init+0xb4>    
  }                                                                   
                                                                      
  _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );    
ffc08ddc:	38 7f 00 10 	addi    r3,r31,16                              
ffc08de0:	38 81 00 08 	addi    r4,r1,8                                
ffc08de4:	48 00 20 5d 	bl      ffc0ae40 <_CORE_RWLock_Initialize>     
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc08de8:	80 1f 00 08 	lwz     r0,8(r31)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc08dec:	81 7d 00 1c 	lwz     r11,28(r29)                            
ffc08df0:	54 09 13 ba 	rlwinm  r9,r0,2,14,29                          
ffc08df4:	7f eb 49 2e 	stwx    r31,r11,r9                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc08df8:	93 df 00 0c 	stw     r30,12(r31)                            
    &_POSIX_RWLock_Information,                                       
    &the_rwlock->Object,                                              
    0                                                                 
  );                                                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
ffc08dfc:	90 1c 00 00 	stw     r0,0(r28)                              
                                                                      
  _Thread_Enable_dispatch();                                          
ffc08e00:	48 00 38 a9 	bl      ffc0c6a8 <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc08e04:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc08e08:	39 61 00 28 	addi    r11,r1,40                              
ffc08e0c:	7c 03 03 78 	mr      r3,r0                                  
ffc08e10:	4b ff 8d f4 	b       ffc01c04 <_restgpr_28_x>               
                                                                      

ffc08e8c <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
ffc08e8c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc08e90:	7c 08 02 a6 	mflr    r0                                     
ffc08e94:	bf 81 00 18 	stmw    r28,24(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc08e98:	7c 7c 1b 79 	mr.     r28,r3                                 
    return EINVAL;                                                    
ffc08e9c:	3b c0 00 16 	li      r30,22                                 
                                                                      
int pthread_rwlock_timedrdlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc08ea0:	90 01 00 2c 	stw     r0,44(r1)                              
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc08ea4:	41 82 00 a4 	beq-    ffc08f48 <pthread_rwlock_timedrdlock+0xbc>
   *                                                                  
   *  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 );       
ffc08ea8:	7c 83 23 78 	mr      r3,r4                                  
ffc08eac:	38 81 00 0c 	addi    r4,r1,12                               
ffc08eb0:	48 00 6b 6d 	bl      ffc0fa1c <_POSIX_Absolute_timeout_to_ticks>
ffc08eb4:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc08eb8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc08ebc:	3c 60 00 00 	lis     r3,0                                   
ffc08ec0:	38 63 2d d8 	addi    r3,r3,11736                            
ffc08ec4:	38 a1 00 08 	addi    r5,r1,8                                
ffc08ec8:	48 00 2e 15 	bl      ffc0bcdc <_Objects_Get>                
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
ffc08ecc:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08ed0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08ed4:	40 9e 00 74 	bne-    cr7,ffc08f48 <pthread_rwlock_timedrdlock+0xbc>
int	_EXFUN(pthread_rwlock_init,                                       
	(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));  
int	_EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));     
int	_EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedrdlock,                                
ffc08ed8:	6b bf 00 03 	xori    r31,r29,3                              
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
ffc08edc:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc08ee0:	7f ff 00 34 	cntlzw  r31,r31                                
ffc08ee4:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc08ee8:	57 ff d9 7e 	rlwinm  r31,r31,27,5,31                        
ffc08eec:	38 63 00 10 	addi    r3,r3,16                               
ffc08ef0:	7f e5 fb 78 	mr      r5,r31                                 
ffc08ef4:	38 e0 00 00 	li      r7,0                                   
ffc08ef8:	48 00 1f 89 	bl      ffc0ae80 <_CORE_RWLock_Obtain_for_reading>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc08efc:	48 00 37 ad 	bl      ffc0c6a8 <_Thread_Enable_dispatch>     
      if ( !do_wait ) {                                               
ffc08f00:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08f04:	40 9e 00 30 	bne-    cr7,ffc08f34 <pthread_rwlock_timedrdlock+0xa8>
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
ffc08f08:	3d 20 00 00 	lis     r9,0                                   
ffc08f0c:	81 29 31 1c 	lwz     r9,12572(r9)                           
ffc08f10:	80 09 00 34 	lwz     r0,52(r9)                              
ffc08f14:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc08f18:	40 be 00 1c 	bne+    cr7,ffc08f34 <pthread_rwlock_timedrdlock+0xa8>
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
ffc08f1c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc08f20:	41 9e 00 28 	beq-    cr7,ffc08f48 <pthread_rwlock_timedrdlock+0xbc><== NEVER TAKEN
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
ffc08f24:	3b bd ff ff 	addi    r29,r29,-1                             
ffc08f28:	2b 9d 00 01 	cmplwi  cr7,r29,1                              
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
ffc08f2c:	3b c0 00 74 	li      r30,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 ||                
ffc08f30:	40 9d 00 18 	ble-    cr7,ffc08f48 <pthread_rwlock_timedrdlock+0xbc><== ALWAYS TAKEN
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
        (CORE_RWLock_Status) _Thread_Executing->Wait.return_code      
ffc08f34:	3d 20 00 00 	lis     r9,0                                   
ffc08f38:	81 29 31 1c 	lwz     r9,12572(r9)                           
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
ffc08f3c:	80 69 00 34 	lwz     r3,52(r9)                              
ffc08f40:	48 00 00 dd 	bl      ffc0901c <_POSIX_RWLock_Translate_core_RWLock_return_code>
ffc08f44:	7c 7e 1b 78 	mr      r30,r3                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc08f48:	39 61 00 28 	addi    r11,r1,40                              
ffc08f4c:	7f c3 f3 78 	mr      r3,r30                                 
ffc08f50:	4b ff 8c b4 	b       ffc01c04 <_restgpr_28_x>               
                                                                      

ffc08f54 <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
ffc08f54:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc08f58:	7c 08 02 a6 	mflr    r0                                     
ffc08f5c:	bf 81 00 18 	stmw    r28,24(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc08f60:	7c 7c 1b 79 	mr.     r28,r3                                 
    return EINVAL;                                                    
ffc08f64:	3b c0 00 16 	li      r30,22                                 
                                                                      
int pthread_rwlock_timedwrlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc08f68:	90 01 00 2c 	stw     r0,44(r1)                              
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc08f6c:	41 82 00 a4 	beq-    ffc09010 <pthread_rwlock_timedwrlock+0xbc>
   *                                                                  
   *  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 );       
ffc08f70:	7c 83 23 78 	mr      r3,r4                                  
ffc08f74:	38 81 00 0c 	addi    r4,r1,12                               
ffc08f78:	48 00 6a a5 	bl      ffc0fa1c <_POSIX_Absolute_timeout_to_ticks>
ffc08f7c:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc08f80:	7c 7d 1b 78 	mr      r29,r3                                 
ffc08f84:	3c 60 00 00 	lis     r3,0                                   
ffc08f88:	38 63 2d d8 	addi    r3,r3,11736                            
ffc08f8c:	38 a1 00 08 	addi    r5,r1,8                                
ffc08f90:	48 00 2d 4d 	bl      ffc0bcdc <_Objects_Get>                
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
ffc08f94:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08f98:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08f9c:	40 9e 00 74 	bne-    cr7,ffc09010 <pthread_rwlock_timedwrlock+0xbc>
        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int	_EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedwrlock,                                
ffc08fa0:	6b bf 00 03 	xori    r31,r29,3                              
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
ffc08fa4:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc08fa8:	7f ff 00 34 	cntlzw  r31,r31                                
ffc08fac:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc08fb0:	57 ff d9 7e 	rlwinm  r31,r31,27,5,31                        
ffc08fb4:	38 63 00 10 	addi    r3,r3,16                               
ffc08fb8:	7f e5 fb 78 	mr      r5,r31                                 
ffc08fbc:	38 e0 00 00 	li      r7,0                                   
ffc08fc0:	48 00 1f a1 	bl      ffc0af60 <_CORE_RWLock_Obtain_for_writing>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc08fc4:	48 00 36 e5 	bl      ffc0c6a8 <_Thread_Enable_dispatch>     
      if ( !do_wait &&                                                
ffc08fc8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08fcc:	40 9e 00 30 	bne-    cr7,ffc08ffc <pthread_rwlock_timedwrlock+0xa8>
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
ffc08fd0:	3d 20 00 00 	lis     r9,0                                   
ffc08fd4:	81 29 31 1c 	lwz     r9,12572(r9)                           
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
ffc08fd8:	80 09 00 34 	lwz     r0,52(r9)                              
ffc08fdc:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc08fe0:	40 be 00 1c 	bne+    cr7,ffc08ffc <pthread_rwlock_timedwrlock+0xa8>
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
ffc08fe4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc08fe8:	41 9e 00 28 	beq-    cr7,ffc09010 <pthread_rwlock_timedwrlock+0xbc><== NEVER TAKEN
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
ffc08fec:	3b bd ff ff 	addi    r29,r29,-1                             
ffc08ff0:	2b 9d 00 01 	cmplwi  cr7,r29,1                              
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
ffc08ff4:	3b c0 00 74 	li      r30,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 ||                  
ffc08ff8:	40 9d 00 18 	ble-    cr7,ffc09010 <pthread_rwlock_timedwrlock+0xbc><== ALWAYS TAKEN
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
        (CORE_RWLock_Status) _Thread_Executing->Wait.return_code      
ffc08ffc:	3d 20 00 00 	lis     r9,0                                   
ffc09000:	81 29 31 1c 	lwz     r9,12572(r9)                           
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
ffc09004:	80 69 00 34 	lwz     r3,52(r9)                              
ffc09008:	48 00 00 15 	bl      ffc0901c <_POSIX_RWLock_Translate_core_RWLock_return_code>
ffc0900c:	7c 7e 1b 78 	mr      r30,r3                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc09010:	39 61 00 28 	addi    r11,r1,40                              
ffc09014:	7f c3 f3 78 	mr      r3,r30                                 
ffc09018:	4b ff 8b ec 	b       ffc01c04 <_restgpr_28_x>               
                                                                      

ffc097e8 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
ffc097e8:	2c 03 00 00 	cmpwi   r3,0                                   
    return EINVAL;                                                    
ffc097ec:	38 00 00 16 	li      r0,22                                  
int pthread_rwlockattr_setpshared(                                    
  pthread_rwlockattr_t *attr,                                         
  int                    pshared                                      
)                                                                     
{                                                                     
  if ( !attr )                                                        
ffc097f0:	41 82 00 20 	beq-    ffc09810 <pthread_rwlockattr_setpshared+0x28>
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
ffc097f4:	81 23 00 00 	lwz     r9,0(r3)                               
ffc097f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc097fc:	41 9e 00 14 	beq-    cr7,ffc09810 <pthread_rwlockattr_setpshared+0x28>
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
ffc09800:	2b 84 00 01 	cmplwi  cr7,r4,1                               
ffc09804:	41 9d 00 0c 	bgt-    cr7,ffc09810 <pthread_rwlockattr_setpshared+0x28><== NEVER TAKEN
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
ffc09808:	90 83 00 04 	stw     r4,4(r3)                               
      return 0;                                                       
ffc0980c:	38 00 00 00 	li      r0,0                                   
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
ffc09810:	7c 03 03 78 	mr      r3,r0                                  
ffc09814:	4e 80 00 20 	blr                                            
                                                                      

ffc0ab40 <pthread_setschedparam>: int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) {
ffc0ab40:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0ab44:	7c 08 02 a6 	mflr    r0                                     
ffc0ab48:	bf 61 00 1c 	stmw    r27,28(r1)                             
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
ffc0ab4c:	7c bd 2b 79 	mr.     r29,r5                                 
int pthread_setschedparam(                                            
  pthread_t           thread,                                         
  int                 policy,                                         
  struct sched_param *param                                           
)                                                                     
{                                                                     
ffc0ab50:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0ab54:	90 01 00 34 	stw     r0,52(r1)                              
ffc0ab58:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
    return EINVAL;                                                    
ffc0ab5c:	3b c0 00 16 	li      r30,22                                 
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
ffc0ab60:	41 82 00 f0 	beq-    ffc0ac50 <pthread_setschedparam+0x110> 
    return EINVAL;                                                    
                                                                      
  rc = _POSIX_Thread_Translate_sched_param(                           
ffc0ab64:	7c 83 23 78 	mr      r3,r4                                  
ffc0ab68:	38 a1 00 08 	addi    r5,r1,8                                
ffc0ab6c:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ab70:	38 c1 00 0c 	addi    r6,r1,12                               
ffc0ab74:	48 00 62 ad 	bl      ffc10e20 <_POSIX_Thread_Translate_sched_param>
    policy,                                                           
    param,                                                            
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
ffc0ab78:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ab7c:	40 82 00 d4 	bne-    ffc0ac50 <pthread_setschedparam+0x110> 
ffc0ab80:	3c 60 00 00 	lis     r3,0                                   
ffc0ab84:	38 63 2e 78 	addi    r3,r3,11896                            
ffc0ab88:	7f 84 e3 78 	mr      r4,r28                                 
ffc0ab8c:	38 a1 00 10 	addi    r5,r1,16                               
ffc0ab90:	48 00 22 a9 	bl      ffc0ce38 <_Objects_Get>                
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _POSIX_Threads_Get( thread, &location );               
  switch ( location ) {                                               
ffc0ab94:	80 01 00 10 	lwz     r0,16(r1)                              
ffc0ab98:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0ab9c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0aba0:	40 9e 00 ac 	bne-    cr7,ffc0ac4c <pthread_setschedparam+0x10c>
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
ffc0aba4:	83 83 01 48 	lwz     r28,328(r3)                            
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
ffc0aba8:	80 1c 00 84 	lwz     r0,132(r28)                            
ffc0abac:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc0abb0:	40 be 00 0c 	bne+    cr7,ffc0abbc <pthread_setschedparam+0x7c>
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
ffc0abb4:	38 7c 00 a8 	addi    r3,r28,168                             
ffc0abb8:	48 00 42 c1 	bl      ffc0ee78 <_Watchdog_Remove>            
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
      the_thread->budget_algorithm = budget_algorithm;                
      the_thread->budget_callout   = budget_callout;                  
                                                                      
      switch ( api->schedpolicy ) {                                   
ffc0abbc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
ffc0abc0:	93 fc 00 84 	stw     r31,132(r28)                           
      api->schedparam  = *param;                                      
ffc0abc4:	38 9c 00 88 	addi    r4,r28,136                             
      the_thread->budget_algorithm = budget_algorithm;                
ffc0abc8:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
ffc0abcc:	7c bd e4 aa 	lswi    r5,r29,28                              
ffc0abd0:	7c a4 e5 aa 	stswi   r5,r4,28                               
      the_thread->budget_algorithm = budget_algorithm;                
ffc0abd4:	90 1b 00 7c 	stw     r0,124(r27)                            
      the_thread->budget_callout   = budget_callout;                  
ffc0abd8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0abdc:	90 1b 00 80 	stw     r0,128(r27)                            
                                                                      
      switch ( api->schedpolicy ) {                                   
ffc0abe0:	41 9c 00 64 	blt-    cr7,ffc0ac44 <pthread_setschedparam+0x104><== NEVER TAKEN
ffc0abe4:	2f 9f 00 02 	cmpwi   cr7,r31,2                              
ffc0abe8:	40 9d 00 10 	ble-    cr7,ffc0abf8 <pthread_setschedparam+0xb8>
ffc0abec:	2f 9f 00 04 	cmpwi   cr7,r31,4                              
ffc0abf0:	40 be 00 54 	bne+    cr7,ffc0ac44 <pthread_setschedparam+0x104><== NEVER TAKEN
ffc0abf4:	48 00 00 34 	b       ffc0ac28 <pthread_setschedparam+0xe8>  
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
ffc0abf8:	3d 20 00 00 	lis     r9,0                                   
ffc0abfc:	80 09 28 0c 	lwz     r0,10252(r9)                           
ffc0ac00:	3d 20 00 00 	lis     r9,0                                   
ffc0ac04:	88 89 27 0c 	lbz     r4,9996(r9)                            
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0ac08:	7f 63 db 78 	mr      r3,r27                                 
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
ffc0ac0c:	90 1b 00 78 	stw     r0,120(r27)                            
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0ac10:	38 a0 00 01 	li      r5,1                                   
ffc0ac14:	80 1c 00 88 	lwz     r0,136(r28)                            
ffc0ac18:	7c 80 20 50 	subf    r4,r0,r4                               
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
                                                                      
          the_thread->real_priority =                                 
ffc0ac1c:	90 9b 00 18 	stw     r4,24(r27)                             
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0ac20:	48 00 26 39 	bl      ffc0d258 <_Thread_Change_priority>     
             the_thread,                                              
             the_thread->real_priority,                               
             true                                                     
          );                                                          
          break;                                                      
ffc0ac24:	48 00 00 20 	b       ffc0ac44 <pthread_setschedparam+0x104> 
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
ffc0ac28:	80 1c 00 88 	lwz     r0,136(r28)                            
          _Watchdog_Remove( &api->Sporadic_timer );                   
ffc0ac2c:	38 7c 00 a8 	addi    r3,r28,168                             
             true                                                     
          );                                                          
          break;                                                      
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
ffc0ac30:	90 1c 00 a4 	stw     r0,164(r28)                            
          _Watchdog_Remove( &api->Sporadic_timer );                   
ffc0ac34:	48 00 42 45 	bl      ffc0ee78 <_Watchdog_Remove>            
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
ffc0ac38:	38 60 00 00 	li      r3,0                                   
ffc0ac3c:	7f 64 db 78 	mr      r4,r27                                 
ffc0ac40:	4b ff fd b9 	bl      ffc0a9f8 <_POSIX_Threads_Sporadic_budget_TSR>
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0ac44:	48 00 2b c1 	bl      ffc0d804 <_Thread_Enable_dispatch>     
      return 0;                                                       
ffc0ac48:	48 00 00 08 	b       ffc0ac50 <pthread_setschedparam+0x110> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
ffc0ac4c:	3b c0 00 03 	li      r30,3                                  
}                                                                     
ffc0ac50:	39 61 00 30 	addi    r11,r1,48                              
ffc0ac54:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ac58:	4b ff 7f 24 	b       ffc02b7c <_restgpr_27_x>               
                                                                      

ffc07f50 <pthread_testcancel>: * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) {
ffc07f50:	7c 08 02 a6 	mflr    r0                                     
ffc07f54:	7c 2b 0b 78 	mr      r11,r1                                 
ffc07f58:	94 21 ff f0 	stwu    r1,-16(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() )                                        
ffc07f5c:	3d 20 00 00 	lis     r9,0                                   
ffc07f60:	39 29 30 f0 	addi    r9,r9,12528                            
 *                                                                    
 *  18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183     
 */                                                                   
                                                                      
void pthread_testcancel( void )                                       
{                                                                     
ffc07f64:	90 01 00 14 	stw     r0,20(r1)                              
ffc07f68:	48 00 e3 69 	bl      ffc162d0 <_savegpr_31>                 
   *  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() )                                        
ffc07f6c:	80 09 00 08 	lwz     r0,8(r9)                               
ffc07f70:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07f74:	40 9e 00 58 	bne-    cr7,ffc07fcc <pthread_testcancel+0x7c> <== NEVER TAKEN
ffc07f78:	3d 60 00 00 	lis     r11,0                                  
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
ffc07f7c:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc07f80:	81 4b 27 94 	lwz     r10,10132(r11)                         
ffc07f84:	81 29 01 48 	lwz     r9,328(r9)                             
ffc07f88:	38 0a 00 01 	addi    r0,r10,1                               
ffc07f8c:	90 0b 27 94 	stw     r0,10132(r11)                          
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
ffc07f90:	80 09 00 d8 	lwz     r0,216(r9)                             
 */                                                                   
                                                                      
void pthread_testcancel( void )                                       
{                                                                     
  POSIX_API_Control *thread_support;                                  
  bool               cancel = false;                                  
ffc07f94:	3b e0 00 00 	li      r31,0                                  
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
ffc07f98:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07f9c:	40 9e 00 14 	bne-    cr7,ffc07fb0 <pthread_testcancel+0x60> <== NEVER TAKEN
                                                                      
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */          
                                                                      
int	_EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));   
int	_EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));      
void 	_EXFUN(pthread_testcancel, (void));                             
ffc07fa0:	80 09 00 e0 	lwz     r0,224(r9)                             
ffc07fa4:	7c 00 00 34 	cntlzw  r0,r0                                  
ffc07fa8:	54 00 d9 7e 	rlwinm  r0,r0,27,5,31                          
ffc07fac:	68 1f 00 01 	xori    r31,r0,1                               
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
ffc07fb0:	48 00 2a ed 	bl      ffc0aa9c <_Thread_Enable_dispatch>     
                                                                      
  if ( cancel )                                                       
ffc07fb4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc07fb8:	41 be 00 14 	beq+    cr7,ffc07fcc <pthread_testcancel+0x7c> 
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
ffc07fbc:	3d 20 00 00 	lis     r9,0                                   
ffc07fc0:	80 69 30 fc 	lwz     r3,12540(r9)                           
ffc07fc4:	38 80 ff ff 	li      r4,-1                                  
ffc07fc8:	48 00 62 09 	bl      ffc0e1d0 <_POSIX_Thread_Exit>          
}                                                                     
ffc07fcc:	39 61 00 10 	addi    r11,r1,16                              
ffc07fd0:	48 00 e3 4c 	b       ffc1631c <_restgpr_31_x>               
                                                                      

ffc19734 <read>: ssize_t read( int fd, void *buffer, size_t count ) {
ffc19734:	7c 08 02 a6 	mflr    r0                                     
ffc19738:	7c 2b 0b 78 	mr      r11,r1                                 
ffc1973c:	94 21 ff f0 	stwu    r1,-16(r1)                             
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc19740:	3d 40 00 00 	lis     r10,0                                  
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc19744:	90 01 00 14 	stw     r0,20(r1)                              
ffc19748:	4b ff f9 4d 	bl      ffc19094 <_savegpr_31>                 
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1974c:	80 0a 26 ac 	lwz     r0,9900(r10)                           
ffc19750:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc19754:	40 9c 00 20 	bge-    cr7,ffc19774 <read+0x40>               <== NEVER TAKEN
  iop = rtems_libio_iop( fd );                                        
ffc19758:	3d 40 00 00 	lis     r10,0                                  
ffc1975c:	83 ea 27 6c 	lwz     r31,10092(r10)                         
ffc19760:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc19764:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc19768:	80 1f 00 18 	lwz     r0,24(r31)                             
ffc1976c:	70 0a 01 00 	andi.   r10,r0,256                             
ffc19770:	40 a2 00 10 	bne+    ffc19780 <read+0x4c>                   
ffc19774:	4b ff ab 95 	bl      ffc14308 <__errno>                     
ffc19778:	38 00 00 09 	li      r0,9                                   
ffc1977c:	48 00 00 28 	b       ffc197a4 <read+0x70>                   
  rtems_libio_check_buffer( buffer );                                 
ffc19780:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc19784:	41 9e 00 18 	beq-    cr7,ffc1979c <read+0x68>               <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
ffc19788:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1978c:	38 60 00 00 	li      r3,0                                   
ffc19790:	41 9e 00 5c 	beq-    cr7,ffc197ec <read+0xb8>               
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
ffc19794:	70 09 00 02 	andi.   r9,r0,2                                
ffc19798:	40 a2 00 18 	bne+    ffc197b0 <read+0x7c>                   
ffc1979c:	4b ff ab 6d 	bl      ffc14308 <__errno>                     
ffc197a0:	38 00 00 16 	li      r0,22                                  
ffc197a4:	90 03 00 00 	stw     r0,0(r3)                               
ffc197a8:	38 60 ff ff 	li      r3,-1                                  
ffc197ac:	48 00 00 40 	b       ffc197ec <read+0xb8>                   
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
ffc197b0:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc197b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc197b8:	80 09 00 08 	lwz     r0,8(r9)                               
ffc197bc:	7c 09 03 a6 	mtctr   r0                                     
ffc197c0:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( rc > 0 )                                                       
ffc197c4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc197c8:	40 81 00 24 	ble-    ffc197ec <read+0xb8>                   
    iop->offset += rc;                                                
ffc197cc:	81 7f 00 10 	lwz     r11,16(r31)                            
ffc197d0:	7c 6a 1b 78 	mr      r10,r3                                 
ffc197d4:	81 9f 00 14 	lwz     r12,20(r31)                            
ffc197d8:	7c 69 fe 70 	srawi   r9,r3,31                               
ffc197dc:	7d 4a 60 14 	addc    r10,r10,r12                            
ffc197e0:	7d 29 59 14 	adde    r9,r9,r11                              
ffc197e4:	91 3f 00 10 	stw     r9,16(r31)                             
ffc197e8:	91 5f 00 14 	stw     r10,20(r31)                            
                                                                      
  return rc;                                                          
}                                                                     
ffc197ec:	39 61 00 10 	addi    r11,r1,16                              
ffc197f0:	4b ff f8 f0 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc07acc <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
ffc07acc:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc07ad0:	7c 08 02 a6 	mflr    r0                                     
ffc07ad4:	bf 81 00 28 	stmw    r28,40(r1)                             
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
ffc07ad8:	7c 9d 23 79 	mr.     r29,r4                                 
ssize_t readlink(                                                     
  const char *pathname,                                               
  char       *buf,                                                    
  size_t      bufsize                                                 
)                                                                     
{                                                                     
ffc07adc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07ae0:	90 01 00 3c 	stw     r0,60(r1)                              
ffc07ae4:	7c be 2b 78 	mr      r30,r5                                 
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
ffc07ae8:	40 a2 00 18 	bne+    ffc07b00 <readlink+0x34>               
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc07aec:	48 00 b9 cd 	bl      ffc134b8 <__errno>                     
ffc07af0:	38 00 00 0e 	li      r0,14                                  
ffc07af4:	90 03 00 00 	stw     r0,0(r3)                               
ffc07af8:	3b 80 ff ff 	li      r28,-1                                 
ffc07afc:	48 00 00 8c 	b       ffc07b88 <readlink+0xbc>               
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
ffc07b00:	48 00 d9 dd 	bl      ffc154dc <strlen>                      
ffc07b04:	38 a0 00 00 	li      r5,0                                   
ffc07b08:	7c 64 1b 78 	mr      r4,r3                                  
ffc07b0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc07b10:	3b e1 00 08 	addi    r31,r1,8                               
ffc07b14:	7f e6 fb 78 	mr      r6,r31                                 
ffc07b18:	38 e0 00 00 	li      r7,0                                   
ffc07b1c:	4b ff ec f9 	bl      ffc06814 <rtems_filesystem_evaluate_path>
                                           0, &loc, false );          
  if ( result != 0 )                                                  
     return -1;                                                       
ffc07b20:	3b 80 ff ff 	li      r28,-1                                 
  if (!buf)                                                           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
                                           0, &loc, false );          
  if ( result != 0 )                                                  
ffc07b24:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07b28:	40 be 00 60 	bne+    cr7,ffc07b88 <readlink+0xbc>           <== NEVER TAKEN
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
ffc07b2c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc07b30:	7f e3 fb 78 	mr      r3,r31                                 
ffc07b34:	80 09 00 10 	lwz     r0,16(r9)                              
ffc07b38:	7c 09 03 a6 	mtctr   r0                                     
ffc07b3c:	4e 80 04 21 	bctrl                                          
ffc07b40:	2f 83 00 04 	cmpwi   cr7,r3,4                               
ffc07b44:	41 be 00 1c 	beq+    cr7,ffc07b60 <readlink+0x94>           
    rtems_filesystem_freenode( &loc );                                
ffc07b48:	7f e3 fb 78 	mr      r3,r31                                 
ffc07b4c:	4b ff ed bd 	bl      ffc06908 <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc07b50:	48 00 b9 69 	bl      ffc134b8 <__errno>                     
ffc07b54:	38 00 00 16 	li      r0,22                                  
ffc07b58:	90 03 00 00 	stw     r0,0(r3)                               
ffc07b5c:	48 00 00 2c 	b       ffc07b88 <readlink+0xbc>               
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
ffc07b60:	81 21 00 14 	lwz     r9,20(r1)                              
ffc07b64:	7f e3 fb 78 	mr      r3,r31                                 
ffc07b68:	7f a4 eb 78 	mr      r4,r29                                 
ffc07b6c:	80 09 00 3c 	lwz     r0,60(r9)                              
ffc07b70:	7f c5 f3 78 	mr      r5,r30                                 
ffc07b74:	7c 09 03 a6 	mtctr   r0                                     
ffc07b78:	4e 80 04 21 	bctrl                                          
ffc07b7c:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc07b80:	7f e3 fb 78 	mr      r3,r31                                 
ffc07b84:	4b ff ed 85 	bl      ffc06908 <rtems_filesystem_freenode>   
                                                                      
  return result;                                                      
}                                                                     
ffc07b88:	39 61 00 38 	addi    r11,r1,56                              
ffc07b8c:	7f 83 e3 78 	mr      r3,r28                                 
ffc07b90:	4b ff aa cc 	b       ffc0265c <_restgpr_28_x>               
                                                                      

ffc0653c <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
ffc0653c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06540:	7c 08 02 a6 	mflr    r0                                     
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc06544:	3d 20 00 00 	lis     r9,0                                   
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc06548:	90 01 00 2c 	stw     r0,44(r1)                              
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc0654c:	80 09 26 8c 	lwz     r0,9868(r9)                            
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc06550:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc06554:	7c ba 2b 78 	mr      r26,r5                                 
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc06558:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc0655c:	40 9c 00 20 	bge-    cr7,ffc0657c <readv+0x40>              
  iop = rtems_libio_iop( fd );                                        
ffc06560:	3d 20 00 00 	lis     r9,0                                   
ffc06564:	83 69 27 50 	lwz     r27,10064(r9)                          
ffc06568:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc0656c:	7f 7b 1a 14 	add     r27,r27,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc06570:	80 1b 00 18 	lwz     r0,24(r27)                             
ffc06574:	70 09 01 00 	andi.   r9,r0,256                              
ffc06578:	40 a2 00 10 	bne+    ffc06588 <readv+0x4c>                  
ffc0657c:	48 00 ae 75 	bl      ffc113f0 <__errno>                     
ffc06580:	38 00 00 09 	li      r0,9                                   
ffc06584:	48 00 00 64 	b       ffc065e8 <readv+0xac>                  
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
ffc06588:	70 09 00 02 	andi.   r9,r0,2                                
ffc0658c:	41 82 00 54 	beq-    ffc065e0 <readv+0xa4>                  <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc06590:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06594:	41 9e 00 4c 	beq-    cr7,ffc065e0 <readv+0xa4>              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc06598:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0659c:	40 9d 00 44 	ble-    cr7,ffc065e0 <readv+0xa4>              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc065a0:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc065a4:	41 9d 00 3c 	bgt-    cr7,ffc065e0 <readv+0xa4>              <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc065a8:	7c 9c 23 78 	mr      r28,r4                                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc065ac:	7c a9 03 a6 	mtctr   r5                                     
ffc065b0:	7c 89 23 78 	mr      r9,r4                                  
ffc065b4:	38 00 00 01 	li      r0,1                                   
ffc065b8:	39 60 00 00 	li      r11,0                                  
ffc065bc:	48 00 00 08 	b       ffc065c4 <readv+0x88>                  
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc065c0:	7d 0b 43 78 	mr      r11,r8                                 
                                                                      
    /*                                                                
     *  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 )                                       
ffc065c4:	81 49 00 00 	lwz     r10,0(r9)                              
ffc065c8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc065cc:	41 9e 00 14 	beq-    cr7,ffc065e0 <readv+0xa4>              
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc065d0:	81 49 00 04 	lwz     r10,4(r9)                              
ffc065d4:	7d 0b 52 14 	add     r8,r11,r10                             
    if ( total < old )                                                
ffc065d8:	7f 88 58 00 	cmpw    cr7,r8,r11                             
ffc065dc:	40 bc 00 14 	bge+    cr7,ffc065f0 <readv+0xb4>              
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc065e0:	48 00 ae 11 	bl      ffc113f0 <__errno>                     
ffc065e4:	38 00 00 16 	li      r0,22                                  
ffc065e8:	90 03 00 00 	stw     r0,0(r3)                               
ffc065ec:	48 00 00 94 	b       ffc06680 <readv+0x144>                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc065f0:	31 4a ff ff 	addic   r10,r10,-1                             
ffc065f4:	7d 4a 51 10 	subfe   r10,r10,r10                            
ffc065f8:	7c 00 50 38 	and     r0,r0,r10                              
   *  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++ ) {                           
ffc065fc:	39 29 00 08 	addi    r9,r9,8                                
ffc06600:	42 00 ff c0 	bdnz+   ffc065c0 <readv+0x84>                  
  /*                                                                  
   *  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 ) {                                          
ffc06604:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return 0;                                                         
ffc06608:	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 ) {                                          
ffc0660c:	40 9e 00 78 	bne-    cr7,ffc06684 <readv+0x148>             
ffc06610:	3b 20 00 00 	li      r25,0                                  
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
ffc06614:	81 3b 00 24 	lwz     r9,36(r27)                             
ffc06618:	7f 63 db 78 	mr      r3,r27                                 
ffc0661c:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc06620:	80 09 00 08 	lwz     r0,8(r9)                               
ffc06624:	80 bc 00 04 	lwz     r5,4(r28)                              
ffc06628:	7c 09 03 a6 	mtctr   r0                                     
ffc0662c:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc06630:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06634:	41 80 00 4c 	blt-    ffc06680 <readv+0x144>                 <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc06638:	41 82 00 28 	beq-    ffc06660 <readv+0x124>                 <== NEVER TAKEN
      iop->offset += bytes;                                           
ffc0663c:	81 3b 00 10 	lwz     r9,16(r27)                             
ffc06640:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06644:	81 5b 00 14 	lwz     r10,20(r27)                            
ffc06648:	7c 7e fe 70 	srawi   r30,r3,31                              
      total       += bytes;                                           
ffc0664c:	7f bd 1a 14 	add     r29,r29,r3                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
ffc06650:	7d 4a f8 14 	addc    r10,r10,r31                            
ffc06654:	7d 29 f1 14 	adde    r9,r9,r30                              
ffc06658:	91 3b 00 10 	stw     r9,16(r27)                             
ffc0665c:	91 5b 00 14 	stw     r10,20(r27)                            
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc06660:	80 1c 00 04 	lwz     r0,4(r28)                              
ffc06664:	7f 83 00 00 	cmpw    cr7,r3,r0                              
ffc06668:	40 9e 00 1c 	bne-    cr7,ffc06684 <readv+0x148>             <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc0666c:	3b 39 00 01 	addi    r25,r25,1                              
ffc06670:	7f 99 d0 00 	cmpw    cr7,r25,r26                            
ffc06674:	3b 9c 00 08 	addi    r28,r28,8                              
ffc06678:	41 9c ff 9c 	blt+    cr7,ffc06614 <readv+0xd8>              
ffc0667c:	48 00 00 08 	b       ffc06684 <readv+0x148>                 
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
ffc06680:	3b a0 ff ff 	li      r29,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc06684:	39 61 00 28 	addi    r11,r1,40                              
ffc06688:	7f a3 eb 78 	mr      r3,r29                                 
ffc0668c:	4b ff a5 54 	b       ffc00be0 <_restgpr_25_x>               
                                                                      

ffc06158 <realloc>: void *realloc( void *ptr, size_t size ) {
ffc06158:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0615c:	7c 08 02 a6 	mflr    r0                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc06160:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc06164:	90 01 00 2c 	stw     r0,44(r1)                              
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc06168:	39 29 2b 78 	addi    r9,r9,11128                            
ffc0616c:	81 69 00 10 	lwz     r11,16(r9)                             
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc06170:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc06174:	7c 7f 1b 78 	mr      r31,r3                                 
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc06178:	38 0b 00 01 	addi    r0,r11,1                               
ffc0617c:	90 09 00 10 	stw     r0,16(r9)                              
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc06180:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc06184:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc06188:	80 09 27 d4 	lwz     r0,10196(r9)                           
ffc0618c:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc06190:	40 be 00 24 	bne+    cr7,ffc061b4 <realloc+0x5c>            <== NEVER TAKEN
    if (_Thread_Dispatch_disable_level > 0)                           
ffc06194:	3d 20 00 00 	lis     r9,0                                   
ffc06198:	80 09 27 8c 	lwz     r0,10124(r9)                           
ffc0619c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc061a0:	40 be 00 d8 	bne+    cr7,ffc06278 <realloc+0x120>           <== NEVER TAKEN
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
ffc061a4:	3d 20 00 00 	lis     r9,0                                   
ffc061a8:	80 09 31 b8 	lwz     r0,12728(r9)                           
ffc061ac:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc061b0:	40 9e 00 c8 	bne-    cr7,ffc06278 <realloc+0x120>           <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
ffc061b4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc061b8:	40 be 00 14 	bne+    cr7,ffc061cc <realloc+0x74>            
    return malloc( size );                                            
ffc061bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc061c0:	4b ff f4 29 	bl      ffc055e8 <malloc>                      
ffc061c4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc061c8:	48 00 00 b4 	b       ffc0627c <realloc+0x124>               
                                                                      
  if ( !size ) {                                                      
ffc061cc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc061d0:	40 be 00 10 	bne+    cr7,ffc061e0 <realloc+0x88>            <== ALWAYS TAKEN
    free( ptr );                                                      
ffc061d4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc061d8:	4b ff f0 75 	bl      ffc0524c <free>                        <== NOT EXECUTED
ffc061dc:	48 00 00 9c 	b       ffc06278 <realloc+0x120>               <== NOT EXECUTED
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
ffc061e0:	3f a0 00 00 	lis     r29,0                                  
ffc061e4:	80 7d 26 bc 	lwz     r3,9916(r29)                           
ffc061e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc061ec:	38 a1 00 08 	addi    r5,r1,8                                
ffc061f0:	48 00 48 d1 	bl      ffc0aac0 <_Protected_heap_Get_block_size>
ffc061f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc061f8:	40 be 00 14 	bne+    cr7,ffc0620c <realloc+0xb4>            
    errno = EINVAL;                                                   
ffc061fc:	48 00 e1 0d 	bl      ffc14308 <__errno>                     
ffc06200:	38 00 00 16 	li      r0,22                                  
ffc06204:	90 03 00 00 	stw     r0,0(r3)                               
ffc06208:	48 00 00 70 	b       ffc06278 <realloc+0x120>               
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
ffc0620c:	80 7d 26 bc 	lwz     r3,9916(r29)                           
ffc06210:	7f e4 fb 78 	mr      r4,r31                                 
ffc06214:	7f c5 f3 78 	mr      r5,r30                                 
ffc06218:	48 00 49 01 	bl      ffc0ab18 <_Protected_heap_Resize_block>
ffc0621c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06220:	40 be 00 5c 	bne+    cr7,ffc0627c <realloc+0x124>           
   *  There used to be a free on this error case but it is wrong to   
   *  free the memory per OpenGroup Single UNIX Specification V2      
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
ffc06224:	7f c3 f3 78 	mr      r3,r30                                 
ffc06228:	4b ff f3 c1 	bl      ffc055e8 <malloc>                      
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc0622c:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  if ( !new_area ) {                                                  
ffc06230:	7c 7d 1b 79 	mr.     r29,r3                                 
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc06234:	39 29 2b 78 	addi    r9,r9,11128                            
ffc06238:	81 69 00 04 	lwz     r11,4(r9)                              
ffc0623c:	38 0b ff ff 	addi    r0,r11,-1                              
ffc06240:	90 09 00 04 	stw     r0,4(r9)                               
                                                                      
  if ( !new_area ) {                                                  
ffc06244:	41 82 00 34 	beq-    ffc06278 <realloc+0x120>               
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
ffc06248:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0624c:	7f c5 f3 78 	mr      r5,r30                                 
ffc06250:	7f 9e 00 40 	cmplw   cr7,r30,r0                             
ffc06254:	40 9d 00 08 	ble-    cr7,ffc0625c <realloc+0x104>           <== NEVER TAKEN
ffc06258:	7c 05 03 78 	mr      r5,r0                                  
ffc0625c:	7f e4 fb 78 	mr      r4,r31                                 
ffc06260:	7f a3 eb 78 	mr      r3,r29                                 
ffc06264:	48 00 ed 05 	bl      ffc14f68 <memcpy>                      
  free( ptr );                                                        
ffc06268:	7f e3 fb 78 	mr      r3,r31                                 
ffc0626c:	4b ff ef e1 	bl      ffc0524c <free>                        
                                                                      
  return new_area;                                                    
ffc06270:	7f bf eb 78 	mr      r31,r29                                
ffc06274:	48 00 00 08 	b       ffc0627c <realloc+0x124>               
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
ffc06278:	3b e0 00 00 	li      r31,0                                  
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc0627c:	39 61 00 28 	addi    r11,r1,40                              
ffc06280:	7f e3 fb 78 	mr      r3,r31                                 
ffc06284:	48 01 2e 54 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc056e4 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
ffc056e4:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc056e8:	7d 80 00 26 	mfcr    r12                                    
ffc056ec:	7c 08 02 a6 	mflr    r0                                     
ffc056f0:	bf 41 00 40 	stmw    r26,64(r1)                             
ffc056f4:	7c 7c 1b 78 	mr      r28,r3                                 
ffc056f8:	90 01 00 5c 	stw     r0,92(r1)                              
ffc056fc:	91 81 00 3c 	stw     r12,60(r1)                             
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
ffc05700:	4b ff f0 15 	bl      ffc04714 <rtems_filesystem_dirname>    
                                                                      
  if ( parentpathlen == 0 )                                           
ffc05704:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc05708:	38 c1 00 0c 	addi    r6,r1,12                               
ffc0570c:	40 82 00 1c 	bne-    ffc05728 <rmdir+0x44>                  
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
ffc05710:	7f 83 e3 78 	mr      r3,r28                                 
ffc05714:	38 81 00 08 	addi    r4,r1,8                                
ffc05718:	7c c5 33 78 	mr      r5,r6                                  
ffc0571c:	48 00 01 21 	bl      ffc0583c <rtems_filesystem_get_start_loc>
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
ffc05720:	3b a0 00 00 	li      r29,0                                  
ffc05724:	48 00 00 28 	b       ffc0574c <rmdir+0x68>                  
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
ffc05728:	7f 83 e3 78 	mr      r3,r28                                 
ffc0572c:	7f 64 db 78 	mr      r4,r27                                 
ffc05730:	38 a0 00 02 	li      r5,2                                   
ffc05734:	38 e0 00 00 	li      r7,0                                   
ffc05738:	4b ff ef 81 	bl      ffc046b8 <rtems_filesystem_evaluate_path>
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
      return -1;                                                      
ffc0573c:	3b 40 ff ff 	li      r26,-1                                 
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
ffc05740:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05744:	40 9e 00 e4 	bne-    cr7,ffc05828 <rmdir+0x144>             <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
ffc05748:	3b a0 00 01 	li      r29,1                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
ffc0574c:	3b e1 00 20 	addi    r31,r1,32                              
ffc05750:	3b c1 00 0c 	addi    r30,r1,12                              
ffc05754:	7c be a4 aa 	lswi    r5,r30,20                              
ffc05758:	7c bf a5 aa 	stswi   r5,r31,20                              
  name = pathname + parentpathlen;                                    
ffc0575c:	7f 9c da 14 	add     r28,r28,r27                            
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
ffc05760:	7f 83 e3 78 	mr      r3,r28                                 
ffc05764:	48 00 c6 2d 	bl      ffc11d90 <strlen>                      
ffc05768:	7c 64 1b 78 	mr      r4,r3                                  
ffc0576c:	7f 83 e3 78 	mr      r3,r28                                 
ffc05770:	4b ff ef ed 	bl      ffc0475c <rtems_filesystem_prefix_separators>
ffc05774:	7f 9c 1a 14 	add     r28,r28,r3                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc05778:	7f 83 e3 78 	mr      r3,r28                                 
ffc0577c:	48 00 c6 15 	bl      ffc11d90 <strlen>                      
ffc05780:	38 a0 00 00 	li      r5,0                                   
ffc05784:	7c 64 1b 78 	mr      r4,r3                                  
ffc05788:	7f e6 fb 78 	mr      r6,r31                                 
ffc0578c:	7f 83 e3 78 	mr      r3,r28                                 
ffc05790:	38 e0 00 00 	li      r7,0                                   
ffc05794:	4b ff ee a1 	bl      ffc04634 <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
ffc05798:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0579c:	41 be 00 14 	beq+    cr7,ffc057b0 <rmdir+0xcc>              
    if ( free_parentloc )                                             
ffc057a0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
ffc057a4:	3b 40 ff ff 	li      r26,-1                                 
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
ffc057a8:	41 be 00 80 	beq+    cr7,ffc05828 <rmdir+0x144>             
ffc057ac:	48 00 00 74 	b       ffc05820 <rmdir+0x13c>                 
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc057b0:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc057b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc057b8:	2e 1d 00 00 	cmpwi   cr4,r29,0                              
ffc057bc:	80 09 00 10 	lwz     r0,16(r9)                              
ffc057c0:	7c 09 03 a6 	mtctr   r0                                     
ffc057c4:	4e 80 04 21 	bctrl                                          
ffc057c8:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc057cc:	41 be 00 2c 	beq+    cr7,ffc057f8 <rmdir+0x114>             
    rtems_filesystem_freenode( &loc );                                
ffc057d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc057d4:	4b ff ef d9 	bl      ffc047ac <rtems_filesystem_freenode>   
    if ( free_parentloc )                                             
ffc057d8:	41 b2 00 0c 	beq+    cr4,ffc057e4 <rmdir+0x100>             <== NEVER TAKEN
      rtems_filesystem_freenode( &parentloc );                        
ffc057dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc057e0:	4b ff ef cd 	bl      ffc047ac <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc057e4:	48 00 b4 0d 	bl      ffc10bf0 <__errno>                     
ffc057e8:	38 00 00 14 	li      r0,20                                  
ffc057ec:	90 03 00 00 	stw     r0,0(r3)                               
ffc057f0:	3b 40 ff ff 	li      r26,-1                                 
ffc057f4:	48 00 00 34 	b       ffc05828 <rmdir+0x144>                 
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
ffc057f8:	81 21 00 28 	lwz     r9,40(r1)                              
ffc057fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc05800:	7f e4 fb 78 	mr      r4,r31                                 
ffc05804:	80 09 00 34 	lwz     r0,52(r9)                              
ffc05808:	7c 09 03 a6 	mtctr   r0                                     
ffc0580c:	4e 80 04 21 	bctrl                                          
ffc05810:	7c 7a 1b 78 	mr      r26,r3                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc05814:	7f e3 fb 78 	mr      r3,r31                                 
ffc05818:	4b ff ef 95 	bl      ffc047ac <rtems_filesystem_freenode>   
  if ( free_parentloc )                                               
ffc0581c:	41 b2 00 0c 	beq+    cr4,ffc05828 <rmdir+0x144>             
    rtems_filesystem_freenode( &parentloc );                          
ffc05820:	7f c3 f3 78 	mr      r3,r30                                 
ffc05824:	4b ff ef 89 	bl      ffc047ac <rtems_filesystem_freenode>   
                                                                      
  return result;                                                      
}                                                                     
ffc05828:	81 81 00 3c 	lwz     r12,60(r1)                             
ffc0582c:	39 61 00 58 	addi    r11,r1,88                              
ffc05830:	7f 43 d3 78 	mr      r3,r26                                 
ffc05834:	7d 80 81 20 	mtcrf   8,r12                                  
ffc05838:	48 01 02 c4 	b       ffc15afc <_restgpr_26_x>               
                                                                      

ffc08624 <rtems_chain_append_with_notification>: rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) {
ffc08624:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc08628:	7c 08 02 a6 	mflr    r0                                     
ffc0862c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc08630:	7c bf 2b 78 	mr      r31,r5                                 
ffc08634:	7c de 33 78 	mr      r30,r6                                 
ffc08638:	90 01 00 14 	stw     r0,20(r1)                              
RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check(        
  rtems_chain_control *chain,                                         
  rtems_chain_node *node                                              
)                                                                     
{                                                                     
  return _Chain_Append_with_empty_check( chain, node );               
ffc0863c:	48 00 06 41 	bl      ffc08c7c <_Chain_Append_with_empty_check>
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_append_with_empty_check( chain, node );
                                                                      
  if ( was_empty ) {                                                  
ffc08640:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  rtems_chain_node *node,                                             
  rtems_id task,                                                      
  rtems_event_set events                                              
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc08644:	38 00 00 00 	li      r0,0                                   
  bool was_empty = rtems_chain_append_with_empty_check( chain, node );
                                                                      
  if ( was_empty ) {                                                  
ffc08648:	41 be 00 14 	beq+    cr7,ffc0865c <rtems_chain_append_with_notification+0x38><== NEVER TAKEN
    sc = rtems_event_send( task, events );                            
ffc0864c:	7f e3 fb 78 	mr      r3,r31                                 
ffc08650:	7f c4 f3 78 	mr      r4,r30                                 
ffc08654:	4b ff f4 ed 	bl      ffc07b40 <rtems_event_send>            
ffc08658:	7c 60 1b 78 	mr      r0,r3                                  
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0865c:	39 61 00 10 	addi    r11,r1,16                              
ffc08660:	7c 03 03 78 	mr      r3,r0                                  
ffc08664:	48 00 d1 90 	b       ffc157f4 <_restgpr_30_x>               
                                                                      

ffc08668 <rtems_chain_get_with_notification>: rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) {
ffc08668:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0866c:	7c 08 02 a6 	mflr    r0                                     
ffc08670:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc08674:	7c 9f 23 78 	mr      r31,r4                                 
RTEMS_INLINE_ROUTINE bool rtems_chain_get_with_empty_check(           
  rtems_chain_control *chain,                                         
  rtems_chain_node **node                                             
)                                                                     
{                                                                     
  return _Chain_Get_with_empty_check( chain, node );                  
ffc08678:	7c c4 33 78 	mr      r4,r6                                  
ffc0867c:	90 01 00 14 	stw     r0,20(r1)                              
ffc08680:	7c be 2b 78 	mr      r30,r5                                 
ffc08684:	48 00 06 95 	bl      ffc08d18 <_Chain_Get_with_empty_check> 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc08688:	38 00 00 00 	li      r0,0                                   
  bool is_empty = rtems_chain_get_with_empty_check( chain, node );    
                                                                      
  if ( is_empty ) {                                                   
ffc0868c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08690:	41 be 00 14 	beq+    cr7,ffc086a4 <rtems_chain_get_with_notification+0x3c><== NEVER TAKEN
    sc = rtems_event_send( task, events );                            
ffc08694:	7f e3 fb 78 	mr      r3,r31                                 
ffc08698:	7f c4 f3 78 	mr      r4,r30                                 
ffc0869c:	4b ff f4 a5 	bl      ffc07b40 <rtems_event_send>            
ffc086a0:	7c 60 1b 78 	mr      r0,r3                                  
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc086a4:	39 61 00 10 	addi    r11,r1,16                              
ffc086a8:	7c 03 03 78 	mr      r3,r0                                  
ffc086ac:	48 00 d1 48 	b       ffc157f4 <_restgpr_30_x>               
                                                                      

ffc086b0 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
ffc086b0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc086b4:	7c 08 02 a6 	mflr    r0                                     
ffc086b8:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc086bc:	7c 7a 1b 78 	mr      r26,r3                                 
ffc086c0:	7c 9b 23 78 	mr      r27,r4                                 
ffc086c4:	90 01 00 34 	stw     r0,52(r1)                              
ffc086c8:	7c bc 2b 78 	mr      r28,r5                                 
ffc086cc:	7c df 33 78 	mr      r31,r6                                 
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
ffc086d0:	3b a1 00 08 	addi    r29,r1,8                               
ffc086d4:	48 00 00 20 	b       ffc086f4 <rtems_chain_get_with_wait+0x44>
ffc086d8:	7f 63 db 78 	mr      r3,r27                                 
ffc086dc:	38 80 00 00 	li      r4,0                                   
ffc086e0:	7f 85 e3 78 	mr      r5,r28                                 
ffc086e4:	7f a6 eb 78 	mr      r6,r29                                 
ffc086e8:	4b ff f2 c1 	bl      ffc079a8 <rtems_event_receive>         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
ffc086ec:	2c 03 00 00 	cmpwi   r3,0                                   
ffc086f0:	40 82 00 18 	bne-    ffc08708 <rtems_chain_get_with_wait+0x58><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc086f4:	7f 43 d3 78 	mr      r3,r26                                 
ffc086f8:	48 00 06 75 	bl      ffc08d6c <_Chain_Get>                  
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
ffc086fc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc08700:	41 82 ff d8 	beq+    ffc086d8 <rtems_chain_get_with_wait+0x28>
ffc08704:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc08708:	39 61 00 30 	addi    r11,r1,48                              
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
ffc0870c:	93 df 00 00 	stw     r30,0(r31)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc08710:	48 00 d0 d4 	b       ffc157e4 <_restgpr_26_x>               
                                                                      

ffc08714 <rtems_chain_prepend_with_notification>: rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) {
ffc08714:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc08718:	7c 08 02 a6 	mflr    r0                                     
ffc0871c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc08720:	7c bf 2b 78 	mr      r31,r5                                 
ffc08724:	7c de 33 78 	mr      r30,r6                                 
ffc08728:	90 01 00 14 	stw     r0,20(r1)                              
RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check(       
  rtems_chain_control *chain,                                         
  rtems_chain_node *node                                              
)                                                                     
{                                                                     
  return _Chain_Prepend_with_empty_check( chain, node );              
ffc0872c:	48 00 06 ad 	bl      ffc08dd8 <_Chain_Prepend_with_empty_check>
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
                                                                      
  if (was_empty) {                                                    
ffc08730:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  rtems_chain_node *node,                                             
  rtems_id task,                                                      
  rtems_event_set events                                              
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc08734:	38 00 00 00 	li      r0,0                                   
  bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
                                                                      
  if (was_empty) {                                                    
ffc08738:	41 be 00 14 	beq+    cr7,ffc0874c <rtems_chain_prepend_with_notification+0x38><== NEVER TAKEN
    sc = rtems_event_send( task, events );                            
ffc0873c:	7f e3 fb 78 	mr      r3,r31                                 
ffc08740:	7f c4 f3 78 	mr      r4,r30                                 
ffc08744:	4b ff f3 fd 	bl      ffc07b40 <rtems_event_send>            
ffc08748:	7c 60 1b 78 	mr      r0,r3                                  
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0874c:	39 61 00 10 	addi    r11,r1,16                              
ffc08750:	7c 03 03 78 	mr      r3,r0                                  
ffc08754:	48 00 d0 a0 	b       ffc157f4 <_restgpr_30_x>               
                                                                      

ffc049c8 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc049c8:	94 21 ff 68 	stwu    r1,-152(r1)                            
ffc049cc:	7c 08 02 a6 	mflr    r0                                     
ffc049d0:	90 01 00 9c 	stw     r0,156(r1)                             
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc049d4:	7c 80 23 79 	mr.     r0,r4                                  
                                                                      
void rtems_cpu_usage_report_with_plugin(                              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc049d8:	bd c1 00 50 	stmw    r14,80(r1)                             
ffc049dc:	7c 7f 1b 78 	mr      r31,r3                                 
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc049e0:	90 01 00 48 	stw     r0,72(r1)                              
ffc049e4:	41 82 01 a8 	beq-    ffc04b8c <rtems_cpu_usage_report_with_plugin+0x1c4><== NEVER TAKEN
   *  When not using nanosecond CPU usage resolution, we have to count
   *  the number of "ticks" we gave credit for to give the user a rough
   *  guideline as to what each number means proportionally.          
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _TOD_Get_uptime( &uptime );                                       
ffc049e8:	3b 01 00 10 	addi    r24,r1,16                              
ffc049ec:	7f 03 c3 78 	mr      r3,r24                                 
ffc049f0:	48 00 5d 65 	bl      ffc0a754 <_TOD_Get_uptime>             
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
ffc049f4:	3a 41 00 18 	addi    r18,r1,24                              
ffc049f8:	3c 60 00 00 	lis     r3,0                                   
ffc049fc:	38 63 28 8c 	addi    r3,r3,10380                            
ffc04a00:	7f 04 c3 78 	mr      r4,r24                                 
ffc04a04:	7e 45 93 78 	mr      r5,r18                                 
ffc04a08:	48 00 85 11 	bl      ffc0cf18 <_Timespec_Subtract>          
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc04a0c:	80 01 00 48 	lwz     r0,72(r1)                              
ffc04a10:	3c 80 ff c2 	lis     r4,-62                                 
ffc04a14:	7f e3 fb 78 	mr      r3,r31                                 
ffc04a18:	7c 09 03 a6 	mtctr   r0                                     
ffc04a1c:	38 84 ee c7 	addi    r4,r4,-4409                            
ffc04a20:	3f c0 00 01 	lis     r30,1                                  
ffc04a24:	3b de aa 00 	addi    r30,r30,-22016                         
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
ffc04a28:	3e 00 ff c2 	lis     r16,-62                                
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
ffc04a2c:	3e a0 ff c2 	lis     r21,-62                                
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc04a30:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04a34:	4e 80 04 21 	bctrl                                          
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
ffc04a38:	3e e0 00 00 	lis     r23,0                                  
/*PAGE                                                                
 *                                                                    
 *  rtems_cpu_usage_report                                            
 */                                                                   
                                                                      
void rtems_cpu_usage_report_with_plugin(                              
ffc04a3c:	39 fe 00 0c 	addi    r15,r30,12                             
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc04a40:	3b 21 00 30 	addi    r25,r1,48                              
                                                                      
        (*print)(                                                     
ffc04a44:	3a 10 f0 39 	addi    r16,r16,-4039                          
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
ffc04a48:	3e 20 00 01 	lis     r17,1                                  
            _Timestamp_Subtract(                                      
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
ffc04a4c:	3b 41 00 20 	addi    r26,r1,32                              
ffc04a50:	3a 61 00 0c 	addi    r19,r1,12                              
ffc04a54:	3a 81 00 08 	addi    r20,r1,8                               
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
ffc04a58:	3a b5 f0 4c 	addi    r21,r21,-4020                          
ffc04a5c:	3a c0 03 e8 	li      r22,1000                               
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
ffc04a60:	3a f7 28 70 	addi    r23,r23,10352                          
ffc04a64:	3b 61 00 28 	addi    r27,r1,40                              
    #if defined(RTEMS_DEBUG)                                          
      if ( !_Objects_Information_table[ api_index ] )                 
	continue;                                                            
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc04a68:	85 3e 00 04 	lwzu    r9,4(r30)                              
    if ( information ) {                                              
ffc04a6c:	3b a0 00 01 	li      r29,1                                  
    #if defined(RTEMS_DEBUG)                                          
      if ( !_Objects_Information_table[ api_index ] )                 
	continue;                                                            
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc04a70:	83 89 00 04 	lwz     r28,4(r9)                              
    if ( information ) {                                              
ffc04a74:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc04a78:	40 be 00 d4 	bne+    cr7,ffc04b4c <rtems_cpu_usage_report_with_plugin+0x184><== ALWAYS TAKEN
ffc04a7c:	48 00 00 dc 	b       ffc04b58 <rtems_cpu_usage_report_with_plugin+0x190><== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
ffc04a80:	81 3c 00 1c 	lwz     r9,28(r28)                             
ffc04a84:	57 a0 10 3a 	rlwinm  r0,r29,2,0,29                          
ffc04a88:	7d c9 00 2e 	lwzx    r14,r9,r0                              
                                                                      
        if ( !the_thread )                                            
ffc04a8c:	2f 8e 00 00 	cmpwi   cr7,r14,0                              
ffc04a90:	41 9e 00 b8 	beq-    cr7,ffc04b48 <rtems_cpu_usage_report_with_plugin+0x180><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc04a94:	80 6e 00 08 	lwz     r3,8(r14)                              
ffc04a98:	38 80 00 0d 	li      r4,13                                  
ffc04a9c:	7f 25 cb 78 	mr      r5,r25                                 
ffc04aa0:	48 00 46 8d 	bl      ffc0912c <rtems_object_get_name>       
                                                                      
        (*print)(                                                     
ffc04aa4:	80 01 00 48 	lwz     r0,72(r1)                              
ffc04aa8:	7f e3 fb 78 	mr      r3,r31                                 
ffc04aac:	80 ae 00 08 	lwz     r5,8(r14)                              
ffc04ab0:	7c 09 03 a6 	mtctr   r0                                     
ffc04ab4:	7e 04 83 78 	mr      r4,r16                                 
ffc04ab8:	7f 26 cb 78 	mr      r6,r25                                 
ffc04abc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04ac0:	4e 80 04 21 	bctrl                                          
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc04ac4:	81 2e 00 84 	lwz     r9,132(r14)                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
ffc04ac8:	80 0e 00 08 	lwz     r0,8(r14)                              
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc04acc:	91 21 00 20 	stw     r9,32(r1)                              
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
ffc04ad0:	39 31 af 70 	addi    r9,r17,-20624                          
ffc04ad4:	81 29 00 0c 	lwz     r9,12(r9)                              
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc04ad8:	81 4e 00 88 	lwz     r10,136(r14)                           
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
ffc04adc:	81 29 00 08 	lwz     r9,8(r9)                               
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc04ae0:	91 41 00 24 	stw     r10,36(r1)                             
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
ffc04ae4:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc04ae8:	40 be 00 20 	bne+    cr7,ffc04b08 <rtems_cpu_usage_report_with_plugin+0x140>
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
ffc04aec:	7e e3 bb 78 	mr      r3,r23                                 
ffc04af0:	7f 04 c3 78 	mr      r4,r24                                 
ffc04af4:	7f 65 db 78 	mr      r5,r27                                 
ffc04af8:	48 00 84 21 	bl      ffc0cf18 <_Timespec_Subtract>          
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
ffc04afc:	7f 43 d3 78 	mr      r3,r26                                 
ffc04b00:	7f 64 db 78 	mr      r4,r27                                 
ffc04b04:	48 00 82 f5 	bl      ffc0cdf8 <_Timespec_Add_to>            
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
ffc04b08:	7f 43 d3 78 	mr      r3,r26                                 
ffc04b0c:	7e 44 93 78 	mr      r4,r18                                 
ffc04b10:	7e 85 a3 78 	mr      r5,r20                                 
ffc04b14:	7e 66 9b 78 	mr      r6,r19                                 
ffc04b18:	48 00 83 3d 	bl      ffc0ce54 <_Timespec_Divide>            
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
ffc04b1c:	80 c1 00 24 	lwz     r6,36(r1)                              
ffc04b20:	80 01 00 48 	lwz     r0,72(r1)                              
ffc04b24:	7f e3 fb 78 	mr      r3,r31                                 
ffc04b28:	7e a4 ab 78 	mr      r4,r21                                 
ffc04b2c:	80 a1 00 20 	lwz     r5,32(r1)                              
ffc04b30:	7c c6 b3 96 	divwu   r6,r6,r22                              
ffc04b34:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc04b38:	81 01 00 0c 	lwz     r8,12(r1)                              
ffc04b3c:	7c 09 03 a6 	mtctr   r0                                     
ffc04b40:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04b44:	4e 80 04 21 	bctrl                                          
	continue;                                                            
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
ffc04b48:	3b bd 00 01 	addi    r29,r29,1                              
ffc04b4c:	a0 1c 00 10 	lhz     r0,16(r28)                             
ffc04b50:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc04b54:	40 9d ff 2c 	ble+    cr7,ffc04a80 <rtems_cpu_usage_report_with_plugin+0xb8>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc04b58:	7f 9e 78 00 	cmpw    cr7,r30,r15                            
ffc04b5c:	40 9e ff 0c 	bne+    cr7,ffc04a68 <rtems_cpu_usage_report_with_plugin+0xa0>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
ffc04b60:	80 c1 00 1c 	lwz     r6,28(r1)                              
ffc04b64:	38 00 03 e8 	li      r0,1000                                
ffc04b68:	3c 80 ff c2 	lis     r4,-62                                 
ffc04b6c:	80 a1 00 18 	lwz     r5,24(r1)                              
ffc04b70:	7c c6 03 96 	divwu   r6,r6,r0                               
ffc04b74:	80 01 00 48 	lwz     r0,72(r1)                              
ffc04b78:	7c 09 03 a6 	mtctr   r0                                     
ffc04b7c:	7f e3 fb 78 	mr      r3,r31                                 
ffc04b80:	38 84 f0 64 	addi    r4,r4,-3996                            
ffc04b84:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04b88:	4e 80 04 21 	bctrl                                          
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
ffc04b8c:	39 61 00 98 	addi    r11,r1,152                             
ffc04b90:	4b ff c7 7c 	b       ffc0130c <_restgpr_14_x>               
                                                                      

ffc1424c <rtems_deviceio_errno>: [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) { if (sc == RTEMS_SUCCESSFUL) {
ffc1424c:	2c 03 00 00 	cmpwi   r3,0                                   
  [RTEMS_IO_ERROR]                 = EIO,                             
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
ffc14250:	7c 08 02 a6 	mflr    r0                                     
ffc14254:	7c 2b 0b 78 	mr      r11,r1                                 
ffc14258:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1425c:	90 01 00 14 	stw     r0,20(r1)                              
ffc14260:	48 00 4e 35 	bl      ffc19094 <_savegpr_31>                 
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
ffc14264:	38 00 00 00 	li      r0,0                                   
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc14268:	41 a2 00 2c 	beq+    ffc14294 <rtems_deviceio_errno+0x48>   
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc1426c:	2b 83 00 1c 	cmplwi  cr7,r3,28                              
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
ffc14270:	3b e0 00 16 	li      r31,22                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc14274:	41 9d 00 14 	bgt-    cr7,ffc14288 <rtems_deviceio_errno+0x3c><== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
ffc14278:	3d 20 ff c2 	lis     r9,-62                                 
ffc1427c:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc14280:	39 29 af 74 	addi    r9,r9,-20620                           
ffc14284:	7f e9 18 2e 	lwzx    r31,r9,r3                              
    }                                                                 
                                                                      
    errno = eno;                                                      
ffc14288:	48 00 00 81 	bl      ffc14308 <__errno>                     
                                                                      
    return -1;                                                        
ffc1428c:	38 00 ff ff 	li      r0,-1                                  
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
      eno = status_code_to_errno [sc];                                
    }                                                                 
                                                                      
    errno = eno;                                                      
ffc14290:	93 e3 00 00 	stw     r31,0(r3)                              
                                                                      
    return -1;                                                        
  }                                                                   
}                                                                     
ffc14294:	39 61 00 10 	addi    r11,r1,16                              
ffc14298:	7c 03 03 78 	mr      r3,r0                                  
ffc1429c:	48 00 4e 44 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc093c4 <rtems_error>: int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) {
ffc093c4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc093c8:	7c 08 02 a6 	mflr    r0                                     
ffc093cc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc093d0:	4b ff 8b 75 	bl      ffc01f44 <_savegpr_31>                 
ffc093d4:	90 01 00 7c 	stw     r0,124(r1)                             
ffc093d8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc093dc:	90 a1 00 18 	stw     r5,24(r1)                              
ffc093e0:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc093e4:	90 e1 00 20 	stw     r7,32(r1)                              
ffc093e8:	91 01 00 24 	stw     r8,36(r1)                              
ffc093ec:	91 21 00 28 	stw     r9,40(r1)                              
ffc093f0:	91 41 00 2c 	stw     r10,44(r1)                             
ffc093f4:	40 86 00 24 	bne-    cr1,ffc09418 <rtems_error+0x54>        <== ALWAYS TAKEN
ffc093f8:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc093fc:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc09400:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc09404:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc09408:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0940c:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc09410:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc09414:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc09418:	38 00 00 02 	li      r0,2                                   
ffc0941c:	98 01 00 08 	stb     r0,8(r1)                               
ffc09420:	38 00 00 00 	li      r0,0                                   
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc09424:	7f e3 fb 78 	mr      r3,r31                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc09428:	98 01 00 09 	stb     r0,9(r1)                               
ffc0942c:	38 01 00 80 	addi    r0,r1,128                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc09430:	38 a1 00 08 	addi    r5,r1,8                                
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc09434:	90 01 00 0c 	stw     r0,12(r1)                              
ffc09438:	38 01 00 10 	addi    r0,r1,16                               
ffc0943c:	90 01 00 10 	stw     r0,16(r1)                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc09440:	4b ff fe 09 	bl      ffc09248 <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc09444:	77 e0 20 00 	andis.  r0,r31,8192                            
ffc09448:	41 a2 00 24 	beq+    ffc0946c <rtems_error+0xa8>            
    rtems_error(0, "fatal error, exiting");                           
ffc0944c:	3c 80 ff c2 	lis     r4,-62                                 
ffc09450:	38 84 67 5b 	addi    r4,r4,26459                            
ffc09454:	38 60 00 00 	li      r3,0                                   
ffc09458:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0945c:	4b ff ff 69 	bl      ffc093c4 <rtems_error>                 
    _exit(errno);                                                     
ffc09460:	48 00 cb 19 	bl      ffc15f78 <__errno>                     
ffc09464:	80 63 00 00 	lwz     r3,0(r3)                               
ffc09468:	48 00 0b f1 	bl      ffc0a058 <_exit>                       
  }                                                                   
  if (error_flag & RTEMS_ERROR_ABORT) {                               
ffc0946c:	77 e0 10 00 	andis.  r0,r31,4096                            
ffc09470:	41 a2 00 1c 	beq+    ffc0948c <rtems_error+0xc8>            
    rtems_error(0, "fatal error, aborting");                          
ffc09474:	3c 80 ff c2 	lis     r4,-62                                 
ffc09478:	38 84 67 70 	addi    r4,r4,26480                            
ffc0947c:	38 60 00 00 	li      r3,0                                   
ffc09480:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09484:	4b ff ff 41 	bl      ffc093c4 <rtems_error>                 
    abort();                                                          
ffc09488:	48 00 ca d5 	bl      ffc15f5c <abort>                       
  }                                                                   
                                                                      
  return chars_written;                                               
}                                                                     
ffc0948c:	39 61 00 78 	addi    r11,r1,120                             
ffc09490:	4b ff 8b 00 	b       ffc01f90 <_restgpr_31_x>               
                                                                      

ffc10888 <rtems_filesystem_get_mount_handler>: find_arg fa = { .type = type, .mount_h = NULL }; if ( type != NULL ) {
ffc10888:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc1088c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc10890:	7c 08 02 a6 	mflr    r0                                     
  find_arg fa = {                                                     
ffc10894:	90 61 00 08 	stw     r3,8(r1)                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc10898:	90 01 00 1c 	stw     r0,28(r1)                              
  find_arg fa = {                                                     
ffc1089c:	38 00 00 00 	li      r0,0                                   
ffc108a0:	90 01 00 0c 	stw     r0,12(r1)                              
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
ffc108a4:	41 9e 00 14 	beq-    cr7,ffc108b8 <rtems_filesystem_get_mount_handler+0x30><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
ffc108a8:	3c 60 ff c1 	lis     r3,-63                                 
ffc108ac:	38 63 07 34 	addi    r3,r3,1844                             
ffc108b0:	38 81 00 08 	addi    r4,r1,8                                
ffc108b4:	4b ff ff 21 	bl      ffc107d4 <rtems_filesystem_iterate>    
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
ffc108b8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc108bc:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc108c0:	38 21 00 18 	addi    r1,r1,24                               
ffc108c4:	7c 08 03 a6 	mtlr    r0                                     
ffc108c8:	4e 80 00 20 	blr                                            
                                                                      

ffc04f44 <rtems_filesystem_initialize>: * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) {
ffc04f44:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04f48:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
ffc04f4c:	3c 60 ab cd 	lis     r3,-21555                              
 *  configuration is a single instantiation of the IMFS or miniIMFS with
 *  a single "/dev" directory in it.                                  
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04f50:	bf a1 00 2c 	stmw    r29,44(r1)                             
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
ffc04f54:	3f c0 00 00 	lis     r30,0                                  
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
ffc04f58:	60 63 00 01 	ori     r3,r3,1                                
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
ffc04f5c:	81 3e 26 f4 	lwz     r9,9972(r30)                           
 *  configuration is a single instantiation of the IMFS or miniIMFS with
 *  a single "/dev" directory in it.                                  
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04f60:	90 01 00 3c 	stw     r0,60(r1)                              
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
ffc04f64:	38 00 00 12 	li      r0,18                                  
ffc04f68:	90 09 00 2c 	stw     r0,44(r9)                              
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
ffc04f6c:	3d 20 00 00 	lis     r9,0                                   
ffc04f70:	80 09 26 b8 	lwz     r0,9912(r9)                            
ffc04f74:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04f78:	41 9e 00 34 	beq-    cr7,ffc04fac <rtems_filesystem_initialize+0x68><== NEVER TAKEN
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
ffc04f7c:	3d 20 00 00 	lis     r9,0                                   
ffc04f80:	81 29 26 b4 	lwz     r9,9908(r9)                            
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
ffc04f84:	38 e0 00 00 	li      r7,0                                   
ffc04f88:	80 69 00 08 	lwz     r3,8(r9)                               
ffc04f8c:	80 89 00 0c 	lwz     r4,12(r9)                              
ffc04f90:	80 a9 00 00 	lwz     r5,0(r9)                               
ffc04f94:	80 c9 00 04 	lwz     r6,4(r9)                               
ffc04f98:	48 00 09 05 	bl      ffc0589c <mount>                       
  if ( status == -1 )                                                 
ffc04f9c:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc04fa0:	40 be 00 10 	bne+    cr7,ffc04fb0 <rtems_filesystem_initialize+0x6c><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0002 );                         
ffc04fa4:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc04fa8:	60 63 00 02 	ori     r3,r3,2                                <== NOT EXECUTED
ffc04fac:	48 00 42 c5 	bl      ffc09270 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      
  rtems_filesystem_link_counts = 0;                                   
ffc04fb0:	81 3e 26 f4 	lwz     r9,9972(r30)                           
ffc04fb4:	38 00 00 00 	li      r0,0                                   
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
ffc04fb8:	3f a0 ff c2 	lis     r29,-62                                
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
                                                                      
  rtems_filesystem_link_counts = 0;                                   
ffc04fbc:	b0 09 00 30 	sth     r0,48(r9)                              
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
ffc04fc0:	3b e1 00 08 	addi    r31,r1,8                               
ffc04fc4:	3b bd a9 c8 	addi    r29,r29,-22072                         
ffc04fc8:	38 a0 00 00 	li      r5,0                                   
ffc04fcc:	7f e6 fb 78 	mr      r6,r31                                 
ffc04fd0:	38 e0 00 00 	li      r7,0                                   
ffc04fd4:	38 80 00 01 	li      r4,1                                   
ffc04fd8:	7f a3 eb 78 	mr      r3,r29                                 
ffc04fdc:	48 00 01 51 	bl      ffc0512c <rtems_filesystem_evaluate_path>
  rtems_filesystem_root        = loc;                                 
ffc04fe0:	81 7e 26 f4 	lwz     r11,9972(r30)                          
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
ffc04fe4:	38 80 00 01 	li      r4,1                                   
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
ffc04fe8:	39 6b 00 18 	addi    r11,r11,24                             
ffc04fec:	7c bf a4 aa 	lswi    r5,r31,20                              
ffc04ff0:	7c ab a5 aa 	stswi   r5,r11,20                              
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
ffc04ff4:	7f a3 eb 78 	mr      r3,r29                                 
ffc04ff8:	38 a0 00 00 	li      r5,0                                   
ffc04ffc:	7f e6 fb 78 	mr      r6,r31                                 
ffc05000:	38 e0 00 00 	li      r7,0                                   
ffc05004:	48 00 01 29 	bl      ffc0512c <rtems_filesystem_evaluate_path>
  rtems_filesystem_current     = loc;                                 
ffc05008:	81 7e 26 f4 	lwz     r11,9972(r30)                          
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
ffc0500c:	3c 60 ff c2 	lis     r3,-62                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_current     = loc;                                 
ffc05010:	39 6b 00 04 	addi    r11,r11,4                              
ffc05014:	7c bf a4 aa 	lswi    r5,r31,20                              
ffc05018:	7c ab a5 aa 	stswi   r5,r11,20                              
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
ffc0501c:	38 63 a9 ca 	addi    r3,r3,-22070                           
ffc05020:	38 80 01 ff 	li      r4,511                                 
ffc05024:	48 00 06 c1 	bl      ffc056e4 <mkdir>                       
  if ( status != 0 )                                                  
ffc05028:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0502c:	41 be 00 10 	beq+    cr7,ffc0503c <rtems_filesystem_initialize+0xf8><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0003 );                         
ffc05030:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc05034:	60 63 00 03 	ori     r3,r3,3                                <== NOT EXECUTED
ffc05038:	4b ff ff 74 	b       ffc04fac <rtems_filesystem_initialize+0x68><== NOT EXECUTED
   *  it will be mounted onto is created.  Moreover, if it is going to
   *  use a device, then it is REALLY unfair to attempt this          
   *  before device drivers are initialized.  So we return via a base 
   *  filesystem image and nothing auto-mounted at this point.        
   */                                                                 
}                                                                     
ffc0503c:	39 61 00 38 	addi    r11,r1,56                              
ffc05040:	48 01 40 98 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc107d4 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
ffc107d4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc107d8:	7c 08 02 a6 	mflr    r0                                     
ffc107dc:	bf 81 00 10 	stmw    r28,16(r1)                             
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
ffc107e0:	3f e0 ff c2 	lis     r31,-62                                
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc107e4:	7c 9e 23 78 	mr      r30,r4                                 
ffc107e8:	90 61 00 08 	stw     r3,8(r1)                               
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
ffc107ec:	3b ff 9e 54 	addi    r31,r31,-25004                         
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
ffc107f0:	38 60 00 00 	li      r3,0                                   
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc107f4:	90 01 00 24 	stw     r0,36(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 ) {                              
ffc107f8:	48 00 00 1c 	b       ffc10814 <rtems_filesystem_iterate+0x40>
    stop = (*routine)( table_entry, routine_arg );                    
ffc107fc:	80 01 00 08 	lwz     r0,8(r1)                               
ffc10800:	7f e3 fb 78 	mr      r3,r31                                 
ffc10804:	7f c4 f3 78 	mr      r4,r30                                 
ffc10808:	7c 09 03 a6 	mtctr   r0                                     
    ++table_entry;                                                    
ffc1080c:	3b ff 00 08 	addi    r31,r31,8                              
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    stop = (*routine)( table_entry, routine_arg );                    
ffc10810:	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 ) {                              
ffc10814:	80 1f 00 00 	lwz     r0,0(r31)                              
ffc10818:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1081c:	2f 00 00 00 	cmpwi   cr6,r0,0                               
ffc10820:	41 9a 00 0c 	beq-    cr6,ffc1082c <rtems_filesystem_iterate+0x58>
ffc10824:	41 9e ff d8 	beq+    cr7,ffc107fc <rtems_filesystem_iterate+0x28>
ffc10828:	48 00 00 58 	b       ffc10880 <rtems_filesystem_iterate+0xac>
ffc1082c:	7c 7c 1b 78 	mr      r28,r3                                 
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
ffc10830:	40 9e 00 50 	bne-    cr7,ffc10880 <rtems_filesystem_iterate+0xac>
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc10834:	3f a0 00 00 	lis     r29,0                                  
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
ffc10838:	4b ff ff 45 	bl      ffc1077c <rtems_libio_lock>            
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc1083c:	83 fd 21 a0 	lwz     r31,8608(r29)                          
ffc10840:	3b bd 21 a0 	addi    r29,r29,8608                           
ffc10844:	3b bd 00 04 	addi    r29,r29,4                              
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
ffc10848:	48 00 00 20 	b       ffc10868 <rtems_filesystem_iterate+0x94>
      !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 );                  
ffc1084c:	80 01 00 08 	lwz     r0,8(r1)                               
ffc10850:	38 7f 00 08 	addi    r3,r31,8                               
ffc10854:	7f c4 f3 78 	mr      r4,r30                                 
ffc10858:	7c 09 03 a6 	mtctr   r0                                     
ffc1085c:	4e 80 04 21 	bctrl                                          
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc10860:	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 );                  
ffc10864:	7c 7c 1b 78 	mr      r28,r3                                 
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
ffc10868:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
ffc1086c:	41 9e 00 0c 	beq-    cr7,ffc10878 <rtems_filesystem_iterate+0xa4>
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
ffc10870:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc10874:	41 9e ff d8 	beq+    cr7,ffc1084c <rtems_filesystem_iterate+0x78><== ALWAYS TAKEN
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
ffc10878:	4b ff ff 35 	bl      ffc107ac <rtems_libio_unlock>          
ffc1087c:	7f 83 e3 78 	mr      r3,r28                                 
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
ffc10880:	39 61 00 20 	addi    r11,r1,32                              
ffc10884:	48 00 88 50 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc05830 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
ffc05830:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05834:	7c 08 02 a6 	mflr    r0                                     
ffc05838:	bf 81 00 10 	stmw    r28,16(r1)                             
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
ffc0583c:	3f c0 00 00 	lis     r30,0                                  
                                                                      
bool rtems_filesystem_mount_iterate(                                  
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc05840:	7c 7c 1b 78 	mr      r28,r3                                 
ffc05844:	90 01 00 24 	stw     r0,36(r1)                              
ffc05848:	7c 9d 23 78 	mr      r29,r4                                 
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
ffc0584c:	4b ff ff 8d 	bl      ffc057d8 <rtems_libio_lock>            
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
ffc05850:	38 60 00 00 	li      r3,0                                   
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
ffc05854:	83 fe 21 48 	lwz     r31,8520(r30)                          
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
ffc05858:	3b de 21 48 	addi    r30,r30,8520                           
ffc0585c:	3b de 00 04 	addi    r30,r30,4                              
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
ffc05860:	48 00 00 18 	b       ffc05878 <rtems_filesystem_mount_iterate+0x48>
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
ffc05864:	7f e3 fb 78 	mr      r3,r31                                 
ffc05868:	7f 89 03 a6 	mtctr   r28                                    
ffc0586c:	7f a4 eb 78 	mr      r4,r29                                 
ffc05870:	4e 80 04 21 	bctrl                                          
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
ffc05874:	83 ff 00 00 	lwz     r31,0(r31)                             
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
ffc05878:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0587c:	41 9e 00 0c 	beq-    cr7,ffc05888 <rtems_filesystem_mount_iterate+0x58>
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
ffc05880:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05884:	41 9e ff e0 	beq+    cr7,ffc05864 <rtems_filesystem_mount_iterate+0x34><== ALWAYS TAKEN
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
ffc05888:	90 61 00 08 	stw     r3,8(r1)                               
ffc0588c:	4b ff ff 7d 	bl      ffc05808 <rtems_libio_unlock>          
                                                                      
  return stop;                                                        
}                                                                     
ffc05890:	39 61 00 20 	addi    r11,r1,32                              
ffc05894:	80 61 00 08 	lwz     r3,8(r1)                               
ffc05898:	48 01 38 3c 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc051d0 <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
ffc051d0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc051d4:	7c 08 02 a6 	mflr    r0                                     
ffc051d8:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc051dc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc051e0:	7c 9d 23 78 	mr      r29,r4                                 
ffc051e4:	90 01 00 1c 	stw     r0,28(r1)                              
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
ffc051e8:	3b c0 00 00 	li      r30,0                                  
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc051ec:	48 00 00 08 	b       ffc051f4 <rtems_filesystem_prefix_separators+0x24>
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
ffc051f0:	3b de 00 01 	addi    r30,r30,1                              
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc051f4:	7c 7f f0 ae 	lbzx    r3,r31,r30                             
ffc051f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc051fc:	41 9e 00 18 	beq-    cr7,ffc05214 <rtems_filesystem_prefix_separators+0x44><== NEVER TAKEN
ffc05200:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
ffc05204:	41 9e 00 10 	beq-    cr7,ffc05214 <rtems_filesystem_prefix_separators+0x44><== NEVER TAKEN
ffc05208:	48 00 10 e5 	bl      ffc062ec <rtems_filesystem_is_separator>
ffc0520c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05210:	40 9e ff e0 	bne+    cr7,ffc051f0 <rtems_filesystem_prefix_separators+0x20>
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
ffc05214:	39 61 00 18 	addi    r11,r1,24                              
ffc05218:	7f c3 f3 78 	mr      r3,r30                                 
ffc0521c:	48 01 3e bc 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc04f2c <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
ffc04f2c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04f30:	7c 08 02 a6 	mflr    r0                                     
ffc04f34:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc04f38:	7c 7e 1b 78 	mr      r30,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 ) );
ffc04f3c:	38 60 00 08 	li      r3,8                                   
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
ffc04f40:	7c 9f 23 78 	mr      r31,r4                                 
ffc04f44:	90 01 00 14 	stw     r0,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 ) );
ffc04f48:	48 00 05 19 	bl      ffc05460 <malloc>                      
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
ffc04f4c:	38 00 00 00 	li      r0,0                                   
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
ffc04f50:	90 7e 00 00 	stw     r3,0(r30)                              
   * 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 ) );
ffc04f54:	7c 64 1b 78 	mr      r4,r3                                  
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
ffc04f58:	7f e5 fb 78 	mr      r5,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;                                               
ffc04f5c:	90 03 00 00 	stw     r0,0(r3)                               
  new_key->dtor = dtor;                                               
ffc04f60:	93 e3 00 04 	stw     r31,4(r3)                              
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
ffc04f64:	38 60 00 00 	li      r3,0                                   
ffc04f68:	48 00 3f 35 	bl      ffc08e9c <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc04f6c:	38 00 ff ff 	li      r0,-1                                  
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc04f70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f74:	40 9e 00 08 	bne-    cr7,ffc04f7c <rtems_gxx_key_create+0x50><== NEVER TAKEN
    return 0;                                                         
ffc04f78:	38 00 00 00 	li      r0,0                                   
  return -1;                                                          
}                                                                     
ffc04f7c:	39 61 00 10 	addi    r11,r1,16                              
ffc04f80:	7c 03 03 78 	mr      r3,r0                                  
ffc04f84:	4b ff bd 6c 	b       ffc00cf0 <_restgpr_30_x>               
                                                                      

ffc04f98 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
ffc04f98:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04f9c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04fa0:	7c 08 02 a6 	mflr    r0                                     
ffc04fa4:	48 01 0f 05 	bl      ffc15ea8 <_savegpr_31>                 
ffc04fa8:	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 );    
ffc04fac:	7f e4 fb 78 	mr      r4,r31                                 
  key->val  = 0;                                                      
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_delete (__gthread_key_t key)                        
{                                                                     
ffc04fb0:	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 );    
ffc04fb4:	38 60 00 00 	li      r3,0                                   
ffc04fb8:	48 00 3f 99 	bl      ffc08f50 <rtems_task_variable_delete>  
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc04fbc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04fc0:	40 9e 00 14 	bne-    cr7,ffc04fd4 <rtems_gxx_key_delete+0x3c><== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
ffc04fc4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04fc8:	41 9e 00 0c 	beq-    cr7,ffc04fd4 <rtems_gxx_key_delete+0x3c><== NEVER TAKEN
ffc04fcc:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc04fd0:	4b ff fd b9 	bl      ffc04d88 <free>                        
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
ffc04fd4:	39 61 00 10 	addi    r11,r1,16                              
ffc04fd8:	38 60 00 00 	li      r3,0                                   
ffc04fdc:	4b ff bd 18 	b       ffc00cf4 <_restgpr_31_x>               
                                                                      

ffc050f4 <rtems_gxx_mutex_lock>: int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex) {
ffc050f4:	7c 08 02 a6 	mflr    r0                                     
ffc050f8:	94 21 ff f8 	stwu    r1,-8(r1)                              
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: lock mutex=%X\n", *mutex );                
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain(                                    
ffc050fc:	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)                   
{                                                                     
ffc05100:	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(                                    
ffc05104:	38 a0 00 00 	li      r5,0                                   
ffc05108:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0510c:	48 00 36 59 	bl      ffc08764 <rtems_semaphore_obtain>      
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc05110:	38 00 ff ff 	li      r0,-1                                  
  status = rtems_semaphore_obtain(                                    
    *(rtems_id *)mutex,                                               
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc05114:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05118:	40 9e 00 08 	bne-    cr7,ffc05120 <rtems_gxx_mutex_lock+0x2c><== NEVER TAKEN
    return 0;                                                         
ffc0511c:	38 00 00 00 	li      r0,0                                   
  return -1;                                                          
}                                                                     
ffc05120:	7c 03 03 78 	mr      r3,r0                                  
ffc05124:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc05128:	38 21 00 08 	addi    r1,r1,8                                
ffc0512c:	7c 08 03 a6 	mtlr    r0                                     
ffc05130:	4e 80 00 20 	blr                                            
                                                                      

ffc0516c <rtems_gxx_mutex_trylock>: int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex) {
ffc0516c:	7c 08 02 a6 	mflr    r0                                     
ffc05170:	94 21 ff f8 	stwu    r1,-8(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);
ffc05174:	38 80 00 01 	li      r4,1                                   
    return 0;                                                         
  return -1;                                                          
}                                                                     
                                                                      
int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex)                
{                                                                     
ffc05178:	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);
ffc0517c:	38 a0 00 00 	li      r5,0                                   
ffc05180:	80 63 00 00 	lwz     r3,0(r3)                               
ffc05184:	48 00 35 e1 	bl      ffc08764 <rtems_semaphore_obtain>      
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc05188:	38 00 ff ff 	li      r0,-1                                  
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: trylock mutex=%X\n", *mutex );             
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain (*(rtems_id *)mutex, RTEMS_NO_WAIT, 0);
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc0518c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05190:	40 9e 00 08 	bne-    cr7,ffc05198 <rtems_gxx_mutex_trylock+0x2c><== NEVER TAKEN
    return 0;                                                         
ffc05194:	38 00 00 00 	li      r0,0                                   
  return -1;                                                          
}                                                                     
ffc05198:	7c 03 03 78 	mr      r3,r0                                  
ffc0519c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc051a0:	38 21 00 08 	addi    r1,r1,8                                
ffc051a4:	7c 08 03 a6 	mtlr    r0                                     
ffc051a8:	4e 80 00 20 	blr                                            
                                                                      

ffc051ac <rtems_gxx_mutex_unlock>: int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex) {
ffc051ac:	7c 08 02 a6 	mflr    r0                                     
ffc051b0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc051b4:	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 );             
ffc051b8:	80 63 00 00 	lwz     r3,0(r3)                               
ffc051bc:	48 00 36 d1 	bl      ffc0888c <rtems_semaphore_release>     
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc051c0:	38 00 ff ff 	li      r0,-1                                  
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: unlock mutex=%X\n", *mutex );              
  #endif                                                              
                                                                      
  status = rtems_semaphore_release( *(rtems_id *)mutex );             
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc051c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc051c8:	40 9e 00 08 	bne-    cr7,ffc051d0 <rtems_gxx_mutex_unlock+0x24><== NEVER TAKEN
    return 0;                                                         
ffc051cc:	38 00 00 00 	li      r0,0                                   
  return -1;                                                          
}                                                                     
ffc051d0:	7c 03 03 78 	mr      r3,r0                                  
ffc051d4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc051d8:	38 21 00 08 	addi    r1,r1,8                                
ffc051dc:	7c 08 03 a6 	mtlr    r0                                     
ffc051e0:	4e 80 00 20 	blr                                            
                                                                      

ffc04eb8 <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)) {
ffc04eb8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04ebc:	7c 08 02 a6 	mflr    r0                                     
ffc04ec0:	90 01 00 2c 	stw     r0,44(r1)                              
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc04ec4:	80 03 00 00 	lwz     r0,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))       
{                                                                     
ffc04ec8:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc04ecc:	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 ) {                    
ffc04ed0:	2f 80 00 00 	cmpwi   cr7,r0,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))       
{                                                                     
ffc04ed4:	7c 9d 23 78 	mr      r29,r4                                 
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc04ed8:	40 be 00 48 	bne+    cr7,ffc04f20 <rtems_gxx_once+0x68>     
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
ffc04edc:	38 60 01 00 	li      r3,256                                 
ffc04ee0:	38 80 01 00 	li      r4,256                                 
ffc04ee4:	38 a1 00 08 	addi    r5,r1,8                                
ffc04ee8:	48 00 3d 2d 	bl      ffc08c14 <rtems_task_mode>             
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
ffc04eec:	83 df 00 00 	lwz     r30,0(r31)                             
ffc04ef0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04ef4:	40 9e 00 0c 	bne-    cr7,ffc04f00 <rtems_gxx_once+0x48>     <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
ffc04ef8:	38 00 00 01 	li      r0,1                                   
ffc04efc:	90 1f 00 00 	stw     r0,0(r31)                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc04f00:	7c 25 0b 78 	mr      r5,r1                                  
ffc04f04:	84 65 00 08 	lwzu    r3,8(r5)                               
ffc04f08:	38 80 01 00 	li      r4,256                                 
ffc04f0c:	48 00 3d 09 	bl      ffc08c14 <rtems_task_mode>             
    if ( o == 0 )                                                     
ffc04f10:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04f14:	40 be 00 0c 	bne+    cr7,ffc04f20 <rtems_gxx_once+0x68>     <== NEVER TAKEN
      (*func)();                                                      
ffc04f18:	7f a9 03 a6 	mtctr   r29                                    
ffc04f1c:	4e 80 04 21 	bctrl                                          
  }                                                                   
  return 0;                                                           
}                                                                     
ffc04f20:	39 61 00 28 	addi    r11,r1,40                              
ffc04f24:	38 60 00 00 	li      r3,0                                   
ffc04f28:	4b ff bd c4 	b       ffc00cec <_restgpr_29_x>               
                                                                      

ffc0505c <rtems_gxx_setspecific>: int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
ffc0505c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05060:	7c 08 02 a6 	mflr    r0                                     
ffc05064:	90 01 00 14 	stw     r0,20(r1)                              
ffc05068:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0506c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc05070:	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 );
ffc05074:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc05078:	38 60 00 00 	li      r3,0                                   
ffc0507c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05080:	48 00 3e 1d 	bl      ffc08e9c <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
    return 0;                                                         
  }                                                                   
  return -1;                                                          
ffc05084:	38 00 ff ff 	li      r0,-1                                  
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc05088:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0508c:	40 9e 00 0c 	bne-    cr7,ffc05098 <rtems_gxx_setspecific+0x3c><== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
ffc05090:	93 df 00 00 	stw     r30,0(r31)                             
    return 0;                                                         
ffc05094:	38 00 00 00 	li      r0,0                                   
  }                                                                   
  return -1;                                                          
}                                                                     
ffc05098:	39 61 00 10 	addi    r11,r1,16                              
ffc0509c:	7c 03 03 78 	mr      r3,r0                                  
ffc050a0:	4b ff bc 50 	b       ffc00cf0 <_restgpr_30_x>               
                                                                      

ffc08b14 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
ffc08b14:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc08b18:	7c 08 02 a6 	mflr    r0                                     
  if (                                                                
ffc08b1c:	3d 20 00 00 	lis     r9,0                                   
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc08b20:	90 01 00 1c 	stw     r0,28(r1)                              
  if (                                                                
ffc08b24:	80 09 28 58 	lwz     r0,10328(r9)                           
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc08b28:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc08b2c:	7c 7d 1b 78 	mr      r29,r3                                 
  if (                                                                
ffc08b30:	2f 80 00 03 	cmpwi   cr7,r0,3                               
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc08b34:	7c 9e 23 78 	mr      r30,r4                                 
ffc08b38:	7c bf 2b 78 	mr      r31,r5                                 
  if (                                                                
ffc08b3c:	40 be 00 14 	bne+    cr7,ffc08b50 <rtems_heap_allocate_aligned_with_boundary+0x3c><== NEVER TAKEN
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
ffc08b40:	4b ff ed 09 	bl      ffc07848 <malloc_is_system_state_OK>   
  ) {                                                                 
    return NULL;                                                      
ffc08b44:	38 00 00 00 	li      r0,0                                   
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
ffc08b48:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08b4c:	41 9e 00 24 	beq-    cr7,ffc08b70 <rtems_heap_allocate_aligned_with_boundary+0x5c>
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
ffc08b50:	4b ff ed 41 	bl      ffc07890 <malloc_deferred_frees_process>
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc08b54:	3d 20 00 00 	lis     r9,0                                   
ffc08b58:	80 69 27 1c 	lwz     r3,10012(r9)                           
ffc08b5c:	7f a4 eb 78 	mr      r4,r29                                 
ffc08b60:	7f c5 f3 78 	mr      r5,r30                                 
ffc08b64:	7f e6 fb 78 	mr      r6,r31                                 
ffc08b68:	48 00 54 11 	bl      ffc0df78 <_Protected_heap_Allocate_aligned_with_boundary>
ffc08b6c:	7c 60 1b 78 	mr      r0,r3                                  
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc08b70:	39 61 00 18 	addi    r11,r1,24                              
ffc08b74:	7c 03 03 78 	mr      r3,r0                                  
ffc08b78:	4b ff a7 28 	b       ffc032a0 <_restgpr_29_x>               
                                                                      

ffc04e44 <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
ffc04e44:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc04e48:	7c 08 02 a6 	mflr    r0                                     
ffc04e4c:	bf 61 00 2c 	stmw    r27,44(r1)                             
ffc04e50:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04e54:	7c 9f 23 78 	mr      r31,r4                                 
ffc04e58:	90 01 00 44 	stw     r0,68(r1)                              
  IMFS_jnode_t                      *the_jnode;                       
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path(                            
ffc04e5c:	3b c1 00 08 	addi    r30,r1,8                               
ffc04e60:	48 01 06 49 	bl      ffc154a8 <strlen>                      
ffc04e64:	38 a0 00 00 	li      r5,0                                   
ffc04e68:	7c 64 1b 78 	mr      r4,r3                                  
ffc04e6c:	7f c6 f3 78 	mr      r6,r30                                 
ffc04e70:	38 e0 00 01 	li      r7,1                                   
ffc04e74:	7f a3 eb 78 	mr      r3,r29                                 
ffc04e78:	48 00 02 b5 	bl      ffc0512c <rtems_filesystem_evaluate_path>
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
ffc04e7c:	81 21 00 14 	lwz     r9,20(r1)                              
  IMFS_jnode_t                      *the_jnode;                       
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path(                            
ffc04e80:	7c 7b 1b 78 	mr      r27,r3                                 
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
ffc04e84:	83 81 00 08 	lwz     r28,8(r1)                              
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
ffc04e88:	80 09 00 10 	lwz     r0,16(r9)                              
ffc04e8c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04e90:	7c 09 03 a6 	mtctr   r0                                     
ffc04e94:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
ffc04e98:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc04e9c:	40 9e 00 0c 	bne-    cr7,ffc04ea8 <rtems_io_lookup_name+0x64><== NEVER TAKEN
ffc04ea0:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc04ea4:	41 9e 00 14 	beq-    cr7,ffc04eb8 <rtems_io_lookup_name+0x74>
    rtems_filesystem_freenode( &loc );                                
ffc04ea8:	38 61 00 08 	addi    r3,r1,8                                
ffc04eac:	48 00 03 75 	bl      ffc05220 <rtems_filesystem_freenode>   
    return RTEMS_UNSATISFIED;                                         
ffc04eb0:	38 60 00 0d 	li      r3,13                                  
ffc04eb4:	48 00 00 30 	b       ffc04ee4 <rtems_io_lookup_name+0xa0>   
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
ffc04eb8:	93 bf 00 00 	stw     r29,0(r31)                             
  device_info->device_name_length = strlen( name );                   
ffc04ebc:	7f a3 eb 78 	mr      r3,r29                                 
ffc04ec0:	48 01 05 e9 	bl      ffc154a8 <strlen>                      
ffc04ec4:	90 7f 00 04 	stw     r3,4(r31)                              
  device_info->major              = the_jnode->info.device.major;     
  device_info->minor              = the_jnode->info.device.minor;     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc04ec8:	7f c3 f3 78 	mr      r3,r30                                 
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
  device_info->device_name_length = strlen( name );                   
  device_info->major              = the_jnode->info.device.major;     
ffc04ecc:	80 1c 00 50 	lwz     r0,80(r28)                             
ffc04ed0:	90 1f 00 08 	stw     r0,8(r31)                              
  device_info->minor              = the_jnode->info.device.minor;     
ffc04ed4:	80 1c 00 54 	lwz     r0,84(r28)                             
ffc04ed8:	90 1f 00 0c 	stw     r0,12(r31)                             
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc04edc:	48 00 03 45 	bl      ffc05220 <rtems_filesystem_freenode>   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04ee0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc04ee4:	39 61 00 40 	addi    r11,r1,64                              
ffc04ee8:	48 01 41 e8 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

ffc09374 <rtems_io_register_driver>: rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) {
ffc09374:	7c 08 02 a6 	mflr    r0                                     
ffc09378:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0937c:	94 21 ff f0 	stwu    r1,-16(r1)                             
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
ffc09380:	3d 20 00 00 	lis     r9,0                                   
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                  
)                                                                     
{                                                                     
ffc09384:	90 01 00 14 	stw     r0,20(r1)                              
ffc09388:	48 00 fd 0d 	bl      ffc19094 <_savegpr_31>                 
ffc0938c:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
ffc09390:	80 09 27 e4 	lwz     r0,10212(r9)                           
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
ffc09394:	3d 20 00 00 	lis     r9,0                                   
ffc09398:	81 29 31 b8 	lwz     r9,12728(r9)                           
    return RTEMS_CALLED_FROM_ISR;                                     
ffc0939c:	38 60 00 12 	li      r3,18                                  
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
ffc093a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc093a4:	40 9e 01 14 	bne-    cr7,ffc094b8 <rtems_io_register_driver+0x144>
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
ffc093a8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc093ac:	38 60 00 09 	li      r3,9                                   
  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 )                                     
ffc093b0:	41 9e 01 08 	beq-    cr7,ffc094b8 <rtems_io_register_driver+0x144>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
                                                                      
  if ( driver_table == NULL )                                         
ffc093b4:	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;                                    
ffc093b8:	90 05 00 00 	stw     r0,0(r5)                               
                                                                      
  if ( driver_table == NULL )                                         
ffc093bc:	41 9e 00 fc 	beq-    cr7,ffc094b8 <rtems_io_register_driver+0x144>
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc093c0:	81 24 00 00 	lwz     r9,0(r4)                               
ffc093c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc093c8:	40 be 00 f8 	bne+    cr7,ffc094c0 <rtems_io_register_driver+0x14c>
ffc093cc:	81 24 00 04 	lwz     r9,4(r4)                               
ffc093d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc093d4:	40 be 00 ec 	bne+    cr7,ffc094c0 <rtems_io_register_driver+0x14c>
ffc093d8:	48 00 00 e0 	b       ffc094b8 <rtems_io_register_driver+0x144>
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc093dc:	3d 20 00 00 	lis     r9,0                                   
ffc093e0:	81 69 27 8c 	lwz     r11,10124(r9)                          
ffc093e4:	38 0b 00 01 	addi    r0,r11,1                               
ffc093e8:	90 09 27 8c 	stw     r0,10124(r9)                           
  if ( major >= major_limit )                                         
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
ffc093ec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc093f0:	3d 20 00 00 	lis     r9,0                                   
ffc093f4:	40 9e 00 58 	bne-    cr7,ffc0944c <rtems_io_register_driver+0xd8>
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
ffc093f8:	3d 60 00 00 	lis     r11,0                                  
ffc093fc:	81 29 27 e8 	lwz     r9,10216(r9)                           
ffc09400:	81 6b 27 e4 	lwz     r11,10212(r11)                         
ffc09404:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc09408:	38 0b 00 01 	addi    r0,r11,1                               
ffc0940c:	40 be 00 28 	bne+    cr7,ffc09434 <rtems_io_register_driver+0xc0><== ALWAYS TAKEN
ffc09410:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc09414:	48 00 00 20 	b       ffc09434 <rtems_io_register_driver+0xc0><== NOT EXECUTED
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc09418:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0941c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc09420:	40 be 00 b0 	bne+    cr7,ffc094d0 <rtems_io_register_driver+0x15c>
ffc09424:	81 49 00 04 	lwz     r10,4(r9)                              
ffc09428:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0942c:	40 be 00 a4 	bne+    cr7,ffc094d0 <rtems_io_register_driver+0x15c>
ffc09430:	48 00 00 0c 	b       ffc0943c <rtems_io_register_driver+0xc8>
  rtems_device_major_number n = _IO_Number_of_drivers;                
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
ffc09434:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc09438:	40 82 ff e0 	bne+    ffc09418 <rtems_io_register_driver+0xa4>
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
ffc0943c:	7f 9f 58 00 	cmpw    cr7,r31,r11                            
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
ffc09440:	93 e5 00 00 	stw     r31,0(r5)                              
                                                                      
  if ( m != n )                                                       
ffc09444:	40 be 00 48 	bne+    cr7,ffc0948c <rtems_io_register_driver+0x118>
ffc09448:	48 00 00 94 	b       ffc094dc <rtems_io_register_driver+0x168>
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0944c:	1c 1f 00 18 	mulli   r0,r31,24                              
ffc09450:	81 29 27 e8 	lwz     r9,10216(r9)                           
ffc09454:	7d 69 02 14 	add     r11,r9,r0                              
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc09458:	7d 29 00 2e 	lwzx    r9,r9,r0                               
ffc0945c:	38 00 00 00 	li      r0,0                                   
ffc09460:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09464:	40 be 00 10 	bne+    cr7,ffc09474 <rtems_io_register_driver+0x100>
    return RTEMS_SUCCESSFUL;                                          
                                                                      
  return RTEMS_TOO_MANY;                                              
}                                                                     
                                                                      
rtems_status_code rtems_io_register_driver(                           
ffc09468:	80 0b 00 04 	lwz     r0,4(r11)                              
ffc0946c:	7c 00 00 34 	cntlzw  r0,r0                                  
ffc09470:	54 00 d9 7e 	rlwinm  r0,r0,27,5,31                          
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
                                                                      
    if ( !rtems_io_is_empty_table( table ) ) {                        
ffc09474:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc09478:	40 9e 00 10 	bne-    cr7,ffc09488 <rtems_io_register_driver+0x114>
      _Thread_Enable_dispatch();                                      
ffc0947c:	48 00 1d 05 	bl      ffc0b180 <_Thread_Enable_dispatch>     
      return RTEMS_RESOURCE_IN_USE;                                   
ffc09480:	38 60 00 0c 	li      r3,12                                  
ffc09484:	48 00 00 34 	b       ffc094b8 <rtems_io_register_driver+0x144>
    }                                                                 
                                                                      
    *registered_major = major;                                        
ffc09488:	93 e5 00 00 	stw     r31,0(r5)                              
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
ffc0948c:	3d 20 00 00 	lis     r9,0                                   
ffc09490:	81 69 27 e8 	lwz     r11,10216(r9)                          
ffc09494:	1c 1f 00 18 	mulli   r0,r31,24                              
ffc09498:	7d 6b 02 14 	add     r11,r11,r0                             
ffc0949c:	7c a4 c4 aa 	lswi    r5,r4,24                               
ffc094a0:	7c ab c5 aa 	stswi   r5,r11,24                              
                                                                      
  _Thread_Enable_dispatch();                                          
ffc094a4:	48 00 1c dd 	bl      ffc0b180 <_Thread_Enable_dispatch>     
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
ffc094a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc094ac:	38 80 00 00 	li      r4,0                                   
ffc094b0:	38 a0 00 00 	li      r5,0                                   
ffc094b4:	48 00 87 3d 	bl      ffc11bf0 <rtems_io_initialize>         
}                                                                     
ffc094b8:	39 61 00 10 	addi    r11,r1,16                              
ffc094bc:	48 00 fc 24 	b       ffc190e0 <_restgpr_31_x>               
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
ffc094c0:	7f 9f 00 40 	cmplw   cr7,r31,r0                             
    return RTEMS_INVALID_NUMBER;                                      
ffc094c4:	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 )                                         
ffc094c8:	41 9c ff 14 	blt+    cr7,ffc093dc <rtems_io_register_driver+0x68>
ffc094cc:	4b ff ff ec 	b       ffc094b8 <rtems_io_register_driver+0x144>
  rtems_device_major_number n = _IO_Number_of_drivers;                
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
ffc094d0:	3b ff 00 01 	addi    r31,r31,1                              
ffc094d4:	39 29 00 18 	addi    r9,r9,24                               
ffc094d8:	4b ff ff 5c 	b       ffc09434 <rtems_io_register_driver+0xc0>
                                                                      
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
ffc094dc:	48 00 1c a5 	bl      ffc0b180 <_Thread_Enable_dispatch>     
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
    return RTEMS_SUCCESSFUL;                                          
                                                                      
  return RTEMS_TOO_MANY;                                              
ffc094e0:	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;                                                      
ffc094e4:	4b ff ff d4 	b       ffc094b8 <rtems_io_register_driver+0x144>
                                                                      

ffc0ad60 <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) {
ffc0ad60:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ad64:	7c 08 02 a6 	mflr    r0                                     
ffc0ad68:	bf 61 00 0c 	stmw    r27,12(r1)                             
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0ad6c:	7c 7b 1b 79 	mr.     r27,r3                                 
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
{                                                                     
ffc0ad70:	90 01 00 24 	stw     r0,36(r1)                              
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0ad74:	41 82 00 5c 	beq-    ffc0add0 <rtems_iterate_over_all_threads+0x70><== NEVER TAKEN
ffc0ad78:	3f e0 00 01 	lis     r31,1                                  
ffc0ad7c:	3b ff aa 00 	addi    r31,r31,-22016                         
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
ffc0ad80:	3b 9f 00 0c 	addi    r28,r31,12                             
    #if defined(RTEMS_DEBUG)                                          
      if ( !_Objects_Information_table[ api_index ] )                 
	continue;                                                            
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc0ad84:	85 3f 00 04 	lwzu    r9,4(r31)                              
    if ( !information )                                               
ffc0ad88:	3b c0 00 01 	li      r30,1                                  
    #if defined(RTEMS_DEBUG)                                          
      if ( !_Objects_Information_table[ api_index ] )                 
	continue;                                                            
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc0ad8c:	83 a9 00 04 	lwz     r29,4(r9)                              
    if ( !information )                                               
ffc0ad90:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0ad94:	40 be 00 28 	bne+    cr7,ffc0adbc <rtems_iterate_over_all_threads+0x5c>
ffc0ad98:	48 00 00 30 	b       ffc0adc8 <rtems_iterate_over_all_threads+0x68>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
ffc0ad9c:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc0ada0:	57 c0 10 3a 	rlwinm  r0,r30,2,0,29                          
ffc0ada4:	7c 69 00 2e 	lwzx    r3,r9,r0                               
                                                                      
      if ( !the_thread )                                              
ffc0ada8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0adac:	41 9e 00 0c 	beq-    cr7,ffc0adb8 <rtems_iterate_over_all_threads+0x58>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
ffc0adb0:	7f 69 03 a6 	mtctr   r27                                    
ffc0adb4:	4e 80 04 21 	bctrl                                          
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
ffc0adb8:	3b de 00 01 	addi    r30,r30,1                              
ffc0adbc:	a0 1d 00 10 	lhz     r0,16(r29)                             
ffc0adc0:	7f 9e 00 40 	cmplw   cr7,r30,r0                             
ffc0adc4:	40 9d ff d8 	ble+    cr7,ffc0ad9c <rtems_iterate_over_all_threads+0x3c>
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0adc8:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc0adcc:	40 9e ff b8 	bne+    cr7,ffc0ad84 <rtems_iterate_over_all_threads+0x24>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
ffc0add0:	39 61 00 20 	addi    r11,r1,32                              
ffc0add4:	4b ff 65 6c 	b       ffc01340 <_restgpr_27_x>               
                                                                      

ffc105d8 <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
ffc105d8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc105dc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc105e0:	7c 08 02 a6 	mflr    r0                                     
ffc105e4:	48 00 8a b1 	bl      ffc19094 <_savegpr_31>                 
ffc105e8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc105ec:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_libio_lock();                                                 
ffc105f0:	4b ff fe 69 	bl      ffc10458 <rtems_libio_lock>            
                                                                      
    if (iop->sem)                                                     
ffc105f4:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc105f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc105fc:	41 be 00 08 	beq+    cr7,ffc10604 <rtems_libio_free+0x2c>   <== NEVER TAKEN
      rtems_semaphore_delete(iop->sem);                               
ffc10600:	4b ff 84 4d 	bl      ffc08a4c <rtems_semaphore_delete>      
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
ffc10604:	80 1f 00 18 	lwz     r0,24(r31)                             
    iop->data1 = rtems_libio_iop_freelist;                            
ffc10608:	3d 20 00 00 	lis     r9,0                                   
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
ffc1060c:	54 00 06 2c 	rlwinm  r0,r0,0,24,22                          
ffc10610:	90 1f 00 18 	stw     r0,24(r31)                             
    iop->data1 = rtems_libio_iop_freelist;                            
ffc10614:	80 09 27 70 	lwz     r0,10096(r9)                           
    rtems_libio_iop_freelist = iop;                                   
ffc10618:	93 e9 27 70 	stw     r31,10096(r9)                          
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
    iop->data1 = rtems_libio_iop_freelist;                            
ffc1061c:	90 1f 00 38 	stw     r0,56(r31)                             
    rtems_libio_iop_freelist = iop;                                   
                                                                      
  rtems_libio_unlock();                                               
}                                                                     
ffc10620:	80 01 00 14 	lwz     r0,20(r1)                              
ffc10624:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc10628:	38 21 00 10 	addi    r1,r1,16                               
ffc1062c:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
    iop->data1 = rtems_libio_iop_freelist;                            
    rtems_libio_iop_freelist = iop;                                   
                                                                      
  rtems_libio_unlock();                                               
ffc10630:	4b ff fe 58 	b       ffc10488 <rtems_libio_unlock>          
                                                                      

ffc0537c <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
ffc0537c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc05380:	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)                                  
ffc05384:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
ffc05388:	7c 08 02 a6 	mflr    r0                                     
ffc0538c:	48 01 3d 09 	bl      ffc19094 <_savegpr_31>                 
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
ffc05390:	83 e9 26 ac 	lwz     r31,9900(r9)                           
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
ffc05394:	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)                                  
ffc05398:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0539c:	41 9e 00 5c 	beq-    cr7,ffc053f8 <rtems_libio_init+0x7c>   <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc053a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc053a4:	38 80 00 40 	li      r4,64                                  
ffc053a8:	4b ff fc 9d 	bl      ffc05044 <calloc>                      
ffc053ac:	3d 20 00 00 	lis     r9,0                                   
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc053b0:	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,
ffc053b4:	90 69 27 6c 	stw     r3,10092(r9)                           
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc053b8:	40 be 00 0c 	bne+    cr7,ffc053c4 <rtems_libio_init+0x48>   
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
ffc053bc:	38 60 00 1a 	li      r3,26                                  
ffc053c0:	48 00 00 60 	b       ffc05420 <rtems_libio_init+0xa4>       
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
ffc053c4:	3d 20 00 00 	lis     r9,0                                   
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
ffc053c8:	7f e9 03 a6 	mtctr   r31                                    
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
ffc053cc:	90 69 27 70 	stw     r3,10096(r9)                           
ffc053d0:	7c 69 1b 78 	mr      r9,r3                                  
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
ffc053d4:	48 00 00 08 	b       ffc053dc <rtems_libio_init+0x60>       
          iop->data1 = iop + 1;                                       
ffc053d8:	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++)  
ffc053dc:	39 29 00 40 	addi    r9,r9,64                               
ffc053e0:	42 00 ff f8 	bdnz+   ffc053d8 <rtems_libio_init+0x5c>       
 *  rtems_libio_init                                                  
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
ffc053e4:	57 ff 30 32 	rlwinm  r31,r31,6,0,25                         
            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;                                            
ffc053e8:	3b ff ff c0 	addi    r31,r31,-64                            
ffc053ec:	7c 63 fa 14 	add     r3,r3,r31                              
ffc053f0:	38 00 00 00 	li      r0,0                                   
ffc053f4:	90 03 00 38 	stw     r0,56(r3)                              
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
ffc053f8:	3c 60 4c 42 	lis     r3,19522                               
ffc053fc:	3c e0 00 00 	lis     r7,0                                   
ffc05400:	60 63 49 4f 	ori     r3,r3,18767                            
ffc05404:	38 80 00 01 	li      r4,1                                   
ffc05408:	38 a0 00 54 	li      r5,84                                  
ffc0540c:	38 c0 00 00 	li      r6,0                                   
ffc05410:	38 e7 27 74 	addi    r7,r7,10100                            
ffc05414:	48 00 34 71 	bl      ffc08884 <rtems_semaphore_create>      
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
ffc05418:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0541c:	41 be 00 08 	beq+    cr7,ffc05424 <rtems_libio_init+0xa8>   <== ALWAYS TAKEN
    rtems_fatal_error_occurred( rc );                                 
ffc05420:	48 00 3e 51 	bl      ffc09270 <rtems_fatal_error_occurred>  
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
ffc05424:	3d 20 00 00 	lis     r9,0                                   
ffc05428:	80 09 26 a8 	lwz     r0,9896(r9)                            
ffc0542c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc05430:	41 9e 00 0c 	beq-    cr7,ffc0543c <rtems_libio_init+0xc0>   <== NEVER TAKEN
     (* rtems_fs_init_helper)();                                      
ffc05434:	7c 09 03 a6 	mtctr   r0                                     
ffc05438:	4e 80 04 21 	bctrl                                          
}                                                                     
ffc0543c:	39 61 00 10 	addi    r11,r1,16                              
ffc05440:	48 01 3c a0 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc106b4 <rtems_libio_is_file_open>: */ int rtems_libio_is_file_open( void *node_access ) {
ffc106b4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc106b8:	7c 08 02 a6 	mflr    r0                                     
ffc106bc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc106c0:	48 00 89 d5 	bl      ffc19094 <_savegpr_31>                 
ffc106c4:	90 01 00 14 	stw     r0,20(r1)                              
ffc106c8:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
  uint32_t           i;                                               
                                                                      
  rtems_libio_lock();                                                 
ffc106cc:	4b ff fd 8d 	bl      ffc10458 <rtems_libio_lock>            
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc106d0:	3d 60 00 00 	lis     r11,0                                  
ffc106d4:	81 6b 26 ac 	lwz     r11,9900(r11)                          
ffc106d8:	3d 20 00 00 	lis     r9,0                                   
ffc106dc:	81 29 27 6c 	lwz     r9,10092(r9)                           
ffc106e0:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc106e4:	38 0b 00 01 	addi    r0,r11,1                               
ffc106e8:	40 be 00 28 	bne+    cr7,ffc10710 <rtems_libio_is_file_open+0x5c><== ALWAYS TAKEN
ffc106ec:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc106f0:	48 00 00 20 	b       ffc10710 <rtems_libio_is_file_open+0x5c><== NOT EXECUTED
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
ffc106f4:	81 69 00 18 	lwz     r11,24(r9)                             
ffc106f8:	71 6a 01 00 	andi.   r10,r11,256                            
ffc106fc:	41 82 00 10 	beq-    ffc1070c <rtems_libio_is_file_open+0x58>
       /*                                                             
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.node_access == node_access ) {              
ffc10700:	81 69 00 1c 	lwz     r11,28(r9)                             
ffc10704:	7f 8b f8 00 	cmpw    cr7,r11,r31                            
ffc10708:	41 9e 00 18 	beq-    cr7,ffc10720 <rtems_libio_is_file_open+0x6c>
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc1070c:	39 29 00 40 	addi    r9,r9,64                               
ffc10710:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc10714:	40 82 ff e0 	bne+    ffc106f4 <rtems_libio_is_file_open+0x40>
int rtems_libio_is_file_open(                                         
  void         *node_access                                           
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
ffc10718:	3b e0 00 00 	li      r31,0                                  
ffc1071c:	48 00 00 08 	b       ffc10724 <rtems_libio_is_file_open+0x70>
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.node_access == node_access ) {              
          result = 1;                                                 
ffc10720:	3b e0 00 01 	li      r31,1                                  
          break;                                                      
       }                                                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
ffc10724:	4b ff fd 65 	bl      ffc10488 <rtems_libio_unlock>          
                                                                      
  return result;                                                      
}                                                                     
ffc10728:	39 61 00 10 	addi    r11,r1,16                              
ffc1072c:	7f e3 fb 78 	mr      r3,r31                                 
ffc10730:	48 00 89 b0 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc10634 <rtems_libio_is_open_files_in_fs>: */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) {
ffc10634:	7c 2b 0b 78 	mr      r11,r1                                 
ffc10638:	7c 08 02 a6 	mflr    r0                                     
ffc1063c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc10640:	48 00 8a 55 	bl      ffc19094 <_savegpr_31>                 
ffc10644:	90 01 00 14 	stw     r0,20(r1)                              
ffc10648:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_libio_t     *iop;                                             
  int                result = 0;                                      
  uint32_t           i;                                               
                                                                      
  rtems_libio_lock();                                                 
ffc1064c:	4b ff fe 0d 	bl      ffc10458 <rtems_libio_lock>            
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc10650:	3d 60 00 00 	lis     r11,0                                  
ffc10654:	81 6b 26 ac 	lwz     r11,9900(r11)                          
ffc10658:	3d 20 00 00 	lis     r9,0                                   
ffc1065c:	81 29 27 6c 	lwz     r9,10092(r9)                           
ffc10660:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc10664:	38 0b 00 01 	addi    r0,r11,1                               
ffc10668:	40 be 00 28 	bne+    cr7,ffc10690 <rtems_libio_is_open_files_in_fs+0x5c><== ALWAYS TAKEN
ffc1066c:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc10670:	48 00 00 20 	b       ffc10690 <rtems_libio_is_open_files_in_fs+0x5c><== NOT EXECUTED
                                                                      
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
ffc10674:	81 69 00 18 	lwz     r11,24(r9)                             
ffc10678:	71 6a 01 00 	andi.   r10,r11,256                            
ffc1067c:	41 82 00 10 	beq-    ffc1068c <rtems_libio_is_open_files_in_fs+0x58>
       /*                                                             
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.mt_entry == fs_mt_entry ) {                 
ffc10680:	81 69 00 2c 	lwz     r11,44(r9)                             
ffc10684:	7f 8b f8 00 	cmpw    cr7,r11,r31                            
ffc10688:	41 9e 00 18 	beq-    cr7,ffc106a0 <rtems_libio_is_open_files_in_fs+0x6c>
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc1068c:	39 29 00 40 	addi    r9,r9,64                               
ffc10690:	34 00 ff ff 	addic.  r0,r0,-1                               
ffc10694:	40 82 ff e0 	bne+    ffc10674 <rtems_libio_is_open_files_in_fs+0x40>
int rtems_libio_is_open_files_in_fs(                                  
  rtems_filesystem_mount_table_entry_t * fs_mt_entry                  
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result = 0;                                      
ffc10698:	3b e0 00 00 	li      r31,0                                  
ffc1069c:	48 00 00 08 	b       ffc106a4 <rtems_libio_is_open_files_in_fs+0x70>
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.mt_entry == fs_mt_entry ) {                 
          result = 1;                                                 
ffc106a0:	3b e0 00 01 	li      r31,1                                  
          break;                                                      
       }                                                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
ffc106a4:	4b ff fd e5 	bl      ffc10488 <rtems_libio_unlock>          
                                                                      
  return result;                                                      
}                                                                     
ffc106a8:	39 61 00 10 	addi    r11,r1,16                              
ffc106ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc106b0:	48 00 8a 30 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc05810 <rtems_libio_set_private_env>: rtems_status_code rtems_libio_set_private_env(void) {
ffc05810:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc05814:	7c 08 02 a6 	mflr    r0                                     
ffc05818:	bf a1 00 3c 	stmw    r29,60(r1)                             
  rtems_filesystem_location_info_t root_loc;                          
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
ffc0581c:	3f e0 ff c1 	lis     r31,-63                                
ffc05820:	3b ff 71 40 	addi    r31,r31,28992                          
    free(env);                                                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
ffc05824:	90 01 00 4c 	stw     r0,76(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
ffc05828:	48 00 2d f9 	bl      ffc08620 <rtems_task_self>             
ffc0582c:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_filesystem_location_info_t root_loc;                          
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
ffc05830:	38 80 00 01 	li      r4,1                                   
ffc05834:	7f e3 fb 78 	mr      r3,r31                                 
ffc05838:	38 a0 00 00 	li      r5,0                                   
ffc0583c:	38 c1 00 08 	addi    r6,r1,8                                
ffc05840:	38 e0 00 00 	li      r7,0                                   
ffc05844:	4b ff ec 4d 	bl      ffc04490 <rtems_filesystem_evaluate_path>
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
ffc05848:	38 00 00 1a 	li      r0,26                                  
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
  if (rv != 0)                                                        
ffc0584c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05850:	40 be 00 e0 	bne+    cr7,ffc05930 <rtems_libio_set_private_env+0x120><== NEVER TAKEN
    goto error_0;                                                     
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);    
ffc05854:	7f e3 fb 78 	mr      r3,r31                                 
ffc05858:	38 80 00 01 	li      r4,1                                   
ffc0585c:	38 a0 00 00 	li      r5,0                                   
ffc05860:	38 c1 00 1c 	addi    r6,r1,28                               
ffc05864:	38 e0 00 00 	li      r7,0                                   
ffc05868:	4b ff ec 29 	bl      ffc04490 <rtems_filesystem_evaluate_path>
  if (rv != 0)                                                        
ffc0586c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05870:	40 9e 00 b4 	bne-    cr7,ffc05924 <rtems_libio_set_private_env+0x114><== NEVER TAKEN
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
    rtems_current_user_env == &rtems_global_user_env                  
ffc05874:	3d 20 00 00 	lis     r9,0                                   
ffc05878:	81 29 26 b4 	lwz     r9,9908(r9)                            
  /*                                                                  
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
ffc0587c:	3d 60 00 00 	lis     r11,0                                  
ffc05880:	38 0b 2a c8 	addi    r0,r11,10952                           
ffc05884:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc05888:	41 9e 00 10 	beq-    cr7,ffc05898 <rtems_libio_set_private_env+0x88>
    rtems_current_user_env == &rtems_global_user_env                  
      || rtems_current_user_env->task_id != task_id                   
ffc0588c:	80 09 00 00 	lwz     r0,0(r9)                               
ffc05890:	7f 80 f0 00 	cmpw    cr7,r0,r30                             
ffc05894:	41 9e 00 38 	beq-    cr7,ffc058cc <rtems_libio_set_private_env+0xbc>
  ) {                                                                 
    new_env = malloc(sizeof(rtems_user_env_t));                       
ffc05898:	38 60 00 48 	li      r3,72                                  
ffc0589c:	4b ff f3 bd 	bl      ffc04c58 <malloc>                      
    if (new_env == NULL)                                              
ffc058a0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc058a4:	41 82 00 78 	beq-    ffc0591c <rtems_libio_set_private_env+0x10c>
                                                                      
    #ifdef HAVE_USERENV_REFCNT                                        
      new_env->refcnt = 1;                                            
    #endif                                                            
                                                                      
    sc = rtems_task_variable_add(                                     
ffc058a8:	3f a0 00 00 	lis     r29,0                                  
ffc058ac:	3c a0 ff c0 	lis     r5,-64                                 
ffc058b0:	38 60 00 00 	li      r3,0                                   
ffc058b4:	38 9d 26 b4 	addi    r4,r29,9908                            
ffc058b8:	38 a5 57 c8 	addi    r5,r5,22472                            
ffc058bc:	48 00 2e 49 	bl      ffc08704 <rtems_task_variable_add>     
      RTEMS_SELF,                                                     
      (void*)&rtems_current_user_env,                                 
      (void(*)(void *))free_user_env                                  
    );                                                                
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc058c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc058c4:	40 9e 00 50 	bne-    cr7,ffc05914 <rtems_libio_set_private_env+0x104>
      goto error_3;                                                   
                                                                      
    rtems_current_user_env = new_env;                                 
ffc058c8:	93 fd 26 b4 	stw     r31,9908(r29)                          
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
ffc058cc:	3d 20 00 00 	lis     r9,0                                   
ffc058d0:	83 e9 26 b4 	lwz     r31,9908(r9)                           
ffc058d4:	3c 80 00 00 	lis     r4,0                                   
ffc058d8:	38 a0 00 48 	li      r5,72                                  
ffc058dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc058e0:	38 84 2a c8 	addi    r4,r4,10952                            
ffc058e4:	48 00 ba 2d 	bl      ffc11310 <memcpy>                      
   * Clone the pathlocs. In contrast to most other code we must _not_ free the
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
ffc058e8:	39 7f 00 18 	addi    r11,r31,24                             
ffc058ec:	38 81 00 08 	addi    r4,r1,8                                
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
                                                                      
  rtems_current_user_env->task_id = task_id;                          
ffc058f0:	93 df 00 00 	stw     r30,0(r31)                             
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
  rtems_filesystem_current = current_loc;                             
ffc058f4:	3b ff 00 04 	addi    r31,r31,4                              
   * Clone the pathlocs. In contrast to most other code we must _not_ free the
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
ffc058f8:	7c a4 a4 aa 	lswi    r5,r4,20                               
ffc058fc:	7c ab a5 aa 	stswi   r5,r11,20                              
  rtems_filesystem_current = current_loc;                             
ffc05900:	39 61 00 1c 	addi    r11,r1,28                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc05904:	38 00 00 00 	li      r0,0                                   
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
  rtems_filesystem_current = current_loc;                             
ffc05908:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc0590c:	7c bf a5 aa 	stswi   r5,r31,20                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc05910:	48 00 00 20 	b       ffc05930 <rtems_libio_set_private_env+0x120>
                                                                      
error_3:                                                              
  free(new_env);                                                      
ffc05914:	7f e3 fb 78 	mr      r3,r31                                 
ffc05918:	4b ff ec 99 	bl      ffc045b0 <free>                        
                                                                      
error_2:                                                              
  rtems_filesystem_freenode(¤t_loc);                            
ffc0591c:	38 61 00 1c 	addi    r3,r1,28                               
ffc05920:	4b ff ec 65 	bl      ffc04584 <rtems_filesystem_freenode>   
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
ffc05924:	38 61 00 08 	addi    r3,r1,8                                
ffc05928:	4b ff ec 5d 	bl      ffc04584 <rtems_filesystem_freenode>   
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
ffc0592c:	38 00 00 1a 	li      r0,26                                  
}                                                                     
ffc05930:	39 61 00 48 	addi    r11,r1,72                              
ffc05934:	7c 03 03 78 	mr      r3,r0                                  
ffc05938:	48 00 fb 48 	b       ffc15480 <_restgpr_29_x>               
                                                                      

ffc0593c <rtems_libio_share_private_env>: * b) mutex access to rtems_filesystem_current, rtems_filesytem_root * while changing any of those (chdir(), chroot()). */ rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
ffc0593c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc05940:	7c 08 02 a6 	mflr    r0                                     
ffc05944:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc05948:	7c 7c 1b 78 	mr      r28,r3                                 
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
    return RTEMS_SUCCESSFUL;                                          
ffc0594c:	3b a0 00 00 	li      r29,0                                  
 *  b) mutex access to rtems_filesystem_current, rtems_filesytem_root 
 *     while changing any of those (chdir(), chroot()).               
 */                                                                   
                                                                      
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)     
{                                                                     
ffc05950:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
ffc05954:	48 00 2c cd 	bl      ffc08620 <rtems_task_self>             
  /*                                                                  
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
ffc05958:	7f 9c 18 00 	cmpw    cr7,r28,r3                             
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
ffc0595c:	7c 7f 1b 78 	mr      r31,r3                                 
  /*                                                                  
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
ffc05960:	41 9e 00 40 	beq-    cr7,ffc059a0 <rtems_libio_share_private_env+0x64><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
ffc05964:	3f c0 00 00 	lis     r30,0                                  
ffc05968:	7f 83 e3 78 	mr      r3,r28                                 
ffc0596c:	38 9e 26 b4 	addi    r4,r30,9908                            
ffc05970:	38 a1 00 08 	addi    r5,r1,8                                
ffc05974:	48 00 2e 45 	bl      ffc087b8 <rtems_task_variable_get>     
	 (void*)&shared_user_env );                                          
                                                                      
  /*                                                                  
   * If it was not successful, return the error code                  
   */                                                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc05978:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0597c:	40 82 00 24 	bne-    ffc059a0 <rtems_libio_share_private_env+0x64>
     * If we have a current environment in place, we need to          
     * free it, since we will be sharing the variable with the        
     * shared_user_env                                                
     */                                                               
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
ffc05980:	80 7e 26 b4 	lwz     r3,9908(r30)                           
ffc05984:	80 03 00 00 	lwz     r0,0(r3)                               
ffc05988:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc0598c:	40 be 00 08 	bne+    cr7,ffc05994 <rtems_libio_share_private_env+0x58>
    rtems_user_env_t  *tmp = rtems_current_user_env;                  
    free_user_env( tmp );                                             
ffc05990:	4b ff fe 39 	bl      ffc057c8 <free_user_env>               
  }                                                                   
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
ffc05994:	80 01 00 08 	lwz     r0,8(r1)                               
ffc05998:	3d 20 00 00 	lis     r9,0                                   
ffc0599c:	90 09 26 b4 	stw     r0,9908(r9)                            
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc059a0:	39 61 00 28 	addi    r11,r1,40                              
ffc059a4:	7f a3 eb 78 	mr      r3,r29                                 
ffc059a8:	48 00 fa d4 	b       ffc1547c <_restgpr_28_x>               
                                                                      

ffc104f4 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
ffc104f4:	54 69 07 7c 	rlwinm  r9,r3,0,29,30                          
ffc104f8:	2f 89 00 06 	cmpwi   cr7,r9,6                               
    fcntl_flags |= O_RDWR;                                            
ffc104fc:	38 00 00 02 	li      r0,2                                   
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
ffc10500:	41 9e 00 14 	beq-    cr7,ffc10514 <rtems_libio_to_fcntl_flags+0x20>
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
ffc10504:	70 69 00 02 	andi.   r9,r3,2                                
    fcntl_flags |= O_RDONLY;                                          
ffc10508:	38 00 00 00 	li      r0,0                                   
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
ffc1050c:	40 82 00 08 	bne-    ffc10514 <rtems_libio_to_fcntl_flags+0x20><== ALWAYS TAKEN
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
ffc10510:	54 60 f7 fe 	rlwinm  r0,r3,30,31,31                         <== NOT EXECUTED
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
    fcntl_flags |= O_WRONLY;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) {     
ffc10514:	70 69 00 01 	andi.   r9,r3,1                                
ffc10518:	41 82 00 08 	beq-    ffc10520 <rtems_libio_to_fcntl_flags+0x2c>
    fcntl_flags |= O_NONBLOCK;                                        
ffc1051c:	60 00 40 00 	ori     r0,r0,16384                            
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
ffc10520:	70 69 02 00 	andi.   r9,r3,512                              
ffc10524:	41 82 00 08 	beq-    ffc1052c <rtems_libio_to_fcntl_flags+0x38>
    fcntl_flags |= O_APPEND;                                          
ffc10528:	60 00 00 08 	ori     r0,r0,8                                
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
ffc1052c:	70 69 04 00 	andi.   r9,r3,1024                             
ffc10530:	41 82 00 08 	beq-    ffc10538 <rtems_libio_to_fcntl_flags+0x44>
    fcntl_flags |= O_CREAT;                                           
ffc10534:	60 00 02 00 	ori     r0,r0,512                              
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
ffc10538:	7c 03 03 78 	mr      r3,r0                                  
ffc1053c:	4e 80 00 20 	blr                                            
                                                                      

ffc07c90 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
ffc07c90:	94 21 ff e8 	stwu    r1,-24(r1)                             
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07c94:	3d 20 00 00 	lis     r9,0                                   
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07c98:	7c 08 02 a6 	mflr    r0                                     
ffc07c9c:	7c 64 1b 78 	mr      r4,r3                                  
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07ca0:	80 69 27 1c 	lwz     r3,10012(r9)                           
ffc07ca4:	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                                                       
)                                                                     
{                                                                     
ffc07ca8:	90 01 00 1c 	stw     r0,28(r1)                              
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07cac:	48 00 63 c1 	bl      ffc0e06c <_Protected_heap_Get_block_size>
ffc07cb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07cb4:	41 9e 00 2c 	beq-    cr7,ffc07ce0 <rtems_malloc_statistics_at_free+0x50><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
ffc07cb8:	3d 00 00 00 	lis     r8,0                                   
ffc07cbc:	81 41 00 08 	lwz     r10,8(r1)                              
ffc07cc0:	39 08 34 08 	addi    r8,r8,13320                            
ffc07cc4:	81 68 00 28 	lwz     r11,40(r8)                             
ffc07cc8:	39 20 00 00 	li      r9,0                                   
ffc07ccc:	81 88 00 2c 	lwz     r12,44(r8)                             
ffc07cd0:	7d 4a 60 14 	addc    r10,r10,r12                            
ffc07cd4:	7d 29 59 14 	adde    r9,r9,r11                              
ffc07cd8:	91 28 00 28 	stw     r9,40(r8)                              
ffc07cdc:	91 48 00 2c 	stw     r10,44(r8)                             
  }                                                                   
}                                                                     
ffc07ce0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07ce4:	38 21 00 18 	addi    r1,r1,24                               
ffc07ce8:	7c 08 03 a6 	mtlr    r0                                     
ffc07cec:	4e 80 00 20 	blr                                            
                                                                      

ffc07cf0 <rtems_malloc_statistics_at_malloc>: { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer )
ffc07cf0:	7c 64 1b 79 	mr.     r4,r3                                  
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07cf4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc07cf8:	7c 08 02 a6 	mflr    r0                                     
ffc07cfc:	90 01 00 1c 	stw     r0,28(r1)                              
  uintptr_t actual_size = 0;                                          
ffc07d00:	38 00 00 00 	li      r0,0                                   
ffc07d04:	90 01 00 08 	stw     r0,8(r1)                               
  uint32_t current_depth;                                             
  rtems_malloc_statistics_t *s = &rtems_malloc_statistics;            
                                                                      
  if ( !pointer )                                                     
ffc07d08:	41 82 00 54 	beq-    ffc07d5c <rtems_malloc_statistics_at_malloc+0x6c><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
ffc07d0c:	3d 20 00 00 	lis     r9,0                                   
ffc07d10:	80 69 27 1c 	lwz     r3,10012(r9)                           
ffc07d14:	38 a1 00 08 	addi    r5,r1,8                                
ffc07d18:	48 00 63 55 	bl      ffc0e06c <_Protected_heap_Get_block_size>
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07d1c:	3d 00 00 00 	lis     r8,0                                   
ffc07d20:	39 08 34 08 	addi    r8,r8,13320                            
ffc07d24:	81 41 00 08 	lwz     r10,8(r1)                              
ffc07d28:	81 68 00 20 	lwz     r11,32(r8)                             
ffc07d2c:	39 20 00 00 	li      r9,0                                   
ffc07d30:	81 88 00 24 	lwz     r12,36(r8)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07d34:	80 08 00 2c 	lwz     r0,44(r8)                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07d38:	7d 4a 60 14 	addc    r10,r10,r12                            
ffc07d3c:	7d 29 59 14 	adde    r9,r9,r11                              
ffc07d40:	91 28 00 20 	stw     r9,32(r8)                              
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07d44:	7c 00 50 50 	subf    r0,r0,r10                              
  if (current_depth > s->max_depth)                                   
ffc07d48:	81 28 00 18 	lwz     r9,24(r8)                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07d4c:	91 48 00 24 	stw     r10,36(r8)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
  if (current_depth > s->max_depth)                                   
ffc07d50:	7f 80 48 40 	cmplw   cr7,r0,r9                              
ffc07d54:	40 9d 00 08 	ble-    cr7,ffc07d5c <rtems_malloc_statistics_at_malloc+0x6c>
      s->max_depth = current_depth;                                   
ffc07d58:	90 08 00 18 	stw     r0,24(r8)                              
}                                                                     
ffc07d5c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07d60:	38 21 00 18 	addi    r1,r1,24                               
ffc07d64:	7c 08 03 a6 	mtlr    r0                                     
ffc07d68:	4e 80 00 20 	blr                                            
                                                                      

ffc10a0c <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
ffc10a0c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc10a10:	7c 08 02 a6 	mflr    r0                                     
ffc10a14:	bf 81 00 08 	stmw    r28,8(r1)                              
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc10a18:	7c 7f 1b 79 	mr.     r31,r3                                 
int rtems_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
ffc10a1c:	7c 9e 23 78 	mr      r30,r4                                 
ffc10a20:	90 01 00 1c 	stw     r0,28(r1)                              
ffc10a24:	7c bc 2b 78 	mr      r28,r5                                 
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
ffc10a28:	3b a0 00 16 	li      r29,22                                 
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc10a2c:	41 82 00 78 	beq-    ffc10aa4 <rtems_memalign+0x98>         
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
ffc10a30:	38 00 00 00 	li      r0,0                                   
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc10a34:	3d 20 00 00 	lis     r9,0                                   
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
ffc10a38:	90 1f 00 00 	stw     r0,0(r31)                              
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc10a3c:	80 09 27 d4 	lwz     r0,10196(r9)                           
ffc10a40:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc10a44:	40 be 00 10 	bne+    cr7,ffc10a54 <rtems_memalign+0x48>     <== NEVER TAKEN
       !malloc_is_system_state_OK() )                                 
ffc10a48:	4b ff 49 fd 	bl      ffc05444 <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()) &&                    
ffc10a4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10a50:	41 9e 00 54 	beq-    cr7,ffc10aa4 <rtems_memalign+0x98>     <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc10a54:	4b ff 4a 39 	bl      ffc0548c <malloc_deferred_frees_process>
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
ffc10a58:	3d 20 00 00 	lis     r9,0                                   
ffc10a5c:	80 69 26 bc 	lwz     r3,9916(r9)                            
ffc10a60:	7f c5 f3 78 	mr      r5,r30                                 
ffc10a64:	7f 84 e3 78 	mr      r4,r28                                 
ffc10a68:	38 c0 00 00 	li      r6,0                                   
ffc10a6c:	4b ff 9f b5 	bl      ffc0aa20 <_Protected_heap_Allocate_aligned_with_boundary>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
    return ENOMEM;                                                    
ffc10a70:	3b a0 00 0c 	li      r29,12                                 
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
ffc10a74:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc10a78:	41 82 00 2c 	beq-    ffc10aa4 <rtems_memalign+0x98>         
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc10a7c:	3d 20 00 00 	lis     r9,0                                   
ffc10a80:	81 29 27 28 	lwz     r9,10024(r9)                           
ffc10a84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10a88:	41 9e 00 14 	beq-    cr7,ffc10a9c <rtems_memalign+0x90>     
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
ffc10a8c:	80 09 00 04 	lwz     r0,4(r9)                               
ffc10a90:	7f e3 fb 78 	mr      r3,r31                                 
ffc10a94:	7c 09 03 a6 	mtctr   r0                                     
ffc10a98:	4e 80 04 21 	bctrl                                          
                                                                      
  *pointer = return_this;                                             
ffc10a9c:	93 df 00 00 	stw     r30,0(r31)                             
  return 0;                                                           
ffc10aa0:	3b a0 00 00 	li      r29,0                                  
}                                                                     
ffc10aa4:	39 61 00 18 	addi    r11,r1,24                              
ffc10aa8:	7f a3 eb 78 	mr      r3,r29                                 
ffc10aac:	48 00 86 28 	b       ffc190d4 <_restgpr_28_x>               
                                                                      

ffc0f18c <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
ffc0f18c:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0f190:	7c 08 02 a6 	mflr    r0                                     
ffc0f194:	bf 01 00 58 	stmw    r24,88(r1)                             
ffc0f198:	7c 98 23 78 	mr      r24,r4                                 
ffc0f19c:	90 01 00 7c 	stw     r0,124(r1)                             
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
ffc0f1a0:	48 00 40 59 	bl      ffc131f8 <strdup>                      
                                                                      
  if (dup_path != NULL) {                                             
ffc0f1a4:	7c 7e 1b 79 	mr.     r30,r3                                 
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0f1a8:	38 00 ff ff 	li      r0,-1                                  
rtems_mkdir(const char *path, mode_t mode)                            
{                                                                     
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
ffc0f1ac:	41 82 01 64 	beq-    ffc0f310 <rtems_mkdir+0x184>           <== NEVER TAKEN
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
ffc0f1b0:	88 1e 00 00 	lbz     r0,0(r30)                              
    (void)umask(oumask);                                              
  return (retval);                                                    
}                                                                     
                                                                      
int                                                                   
rtems_mkdir(const char *path, mode_t mode)                            
ffc0f1b4:	3b 80 00 00 	li      r28,0                                  
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0f1b8:	3b 20 00 00 	li      r25,0                                  
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
ffc0f1bc:	68 1d 00 2f 	xori    r29,r0,47                              
ffc0f1c0:	23 bd 00 00 	subfic  r29,r29,0                              
ffc0f1c4:	7f be 01 94 	addze   r29,r30                                
    (void)umask(oumask);                                              
  return (retval);                                                    
}                                                                     
                                                                      
int                                                                   
rtems_mkdir(const char *path, mode_t mode)                            
ffc0f1c8:	3b bd ff ff 	addi    r29,r29,-1                             
ffc0f1cc:	38 00 00 01 	li      r0,1                                   
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
ffc0f1d0:	3b 40 00 2f 	li      r26,47                                 
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
ffc0f1d4:	3b 61 00 08 	addi    r27,r1,8                               
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0f1d8:	8d 7d 00 01 	lbzu    r11,1(r29)                             
      last = 1;                                                       
ffc0f1dc:	39 20 00 01 	li      r9,1                                   
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0f1e0:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0f1e4:	41 9e 00 10 	beq-    cr7,ffc0f1f4 <rtems_mkdir+0x68>        
      last = 1;                                                       
    else if (p[0] != '/')                                             
ffc0f1e8:	2f 8b 00 2f 	cmpwi   cr7,r11,47                             
ffc0f1ec:	40 9e ff ec 	bne+    cr7,ffc0f1d8 <rtems_mkdir+0x4c>        
ffc0f1f0:	39 20 00 00 	li      r9,0                                   
      continue;                                                       
    *p = '\0';                                                        
    if (!last && p[1] == '\0')                                        
ffc0f1f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0f1f8:	9b 3d 00 00 	stb     r25,0(r29)                             
    if (!last && p[1] == '\0')                                        
ffc0f1fc:	3b e0 00 01 	li      r31,1                                  
ffc0f200:	40 9e 00 10 	bne-    cr7,ffc0f210 <rtems_mkdir+0x84>        
ffc0f204:	8b fd 00 01 	lbz     r31,1(r29)                             
ffc0f208:	7f ff 00 34 	cntlzw  r31,r31                                
ffc0f20c:	57 ff d9 7e 	rlwinm  r31,r31,27,5,31                        
      last = 1;                                                       
    if (first) {                                                      
ffc0f210:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0f214:	41 be 00 18 	beq+    cr7,ffc0f22c <rtems_mkdir+0xa0>        
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
ffc0f218:	38 60 00 00 	li      r3,0                                   
ffc0f21c:	48 00 01 b9 	bl      ffc0f3d4 <umask>                       
ffc0f220:	7c 7c 1b 78 	mr      r28,r3                                 
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
ffc0f224:	54 63 06 ae 	rlwinm  r3,r3,0,26,23                          
ffc0f228:	48 00 01 ad 	bl      ffc0f3d4 <umask>                       
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0f22c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0f230:	38 80 01 ff 	li      r4,511                                 
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0f234:	41 be 00 10 	beq+    cr7,ffc0f244 <rtems_mkdir+0xb8>        
      (void)umask(oumask);                                            
ffc0f238:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f23c:	48 00 01 99 	bl      ffc0f3d4 <umask>                       
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0f240:	7f 04 c3 78 	mr      r4,r24                                 
ffc0f244:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f248:	4b ff 6b 3d 	bl      ffc05d84 <mkdir>                       
ffc0f24c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f250:	40 bc 00 80 	bge+    cr7,ffc0f2d0 <rtems_mkdir+0x144>       
      if (errno == EEXIST || errno == EISDIR) {                       
ffc0f254:	48 00 2d 15 	bl      ffc11f68 <__errno>                     
ffc0f258:	80 03 00 00 	lwz     r0,0(r3)                               
ffc0f25c:	2f 80 00 11 	cmpwi   cr7,r0,17                              
ffc0f260:	41 9e 00 14 	beq-    cr7,ffc0f274 <rtems_mkdir+0xe8>        
ffc0f264:	48 00 2d 05 	bl      ffc11f68 <__errno>                     
ffc0f268:	80 03 00 00 	lwz     r0,0(r3)                               
ffc0f26c:	2f 80 00 15 	cmpwi   cr7,r0,21                              
ffc0f270:	40 9e 00 74 	bne-    cr7,ffc0f2e4 <rtems_mkdir+0x158>       <== ALWAYS TAKEN
        if (stat(path, &sb) < 0) {                                    
ffc0f274:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f278:	7f 64 db 78 	mr      r4,r27                                 
ffc0f27c:	48 00 00 b1 	bl      ffc0f32c <stat>                        
ffc0f280:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f284:	41 9c 00 60 	blt-    cr7,ffc0f2e4 <rtems_mkdir+0x158>       <== NEVER TAKEN
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
ffc0f288:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0f28c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0f290:	54 00 04 26 	rlwinm  r0,r0,0,16,19                          
ffc0f294:	2f 00 40 00 	cmpwi   cr6,r0,16384                           
ffc0f298:	41 ba 00 30 	beq+    cr6,ffc0f2c8 <rtems_mkdir+0x13c>       
          if (last)                                                   
ffc0f29c:	41 9e 00 18 	beq-    cr7,ffc0f2b4 <rtems_mkdir+0x128>       
            errno = EEXIST;                                           
ffc0f2a0:	48 00 2c c9 	bl      ffc11f68 <__errno>                     
ffc0f2a4:	38 00 00 11 	li      r0,17                                  
ffc0f2a8:	90 03 00 00 	stw     r0,0(r3)                               
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
ffc0f2ac:	3b a0 00 00 	li      r29,0                                  
ffc0f2b0:	48 00 00 48 	b       ffc0f2f8 <rtems_mkdir+0x16c>           
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
ffc0f2b4:	48 00 2c b5 	bl      ffc11f68 <__errno>                     
ffc0f2b8:	38 00 00 14 	li      r0,20                                  
ffc0f2bc:	90 03 00 00 	stw     r0,0(r3)                               
          retval = 0;                                                 
ffc0f2c0:	3b a0 00 00 	li      r29,0                                  
ffc0f2c4:	48 00 00 2c 	b       ffc0f2f0 <rtems_mkdir+0x164>           
          break;                                                      
        }                                                             
        if (last)                                                     
ffc0f2c8:	40 9e 00 54 	bne-    cr7,ffc0f31c <rtems_mkdir+0x190>       
ffc0f2cc:	48 00 00 0c 	b       ffc0f2d8 <rtems_mkdir+0x14c>           
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
ffc0f2d0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0f2d4:	40 9e 00 50 	bne-    cr7,ffc0f324 <rtems_mkdir+0x198>       
        *p = '/';                                                     
ffc0f2d8:	9b 5d 00 00 	stb     r26,0(r29)                             
ffc0f2dc:	38 00 00 00 	li      r0,0                                   
ffc0f2e0:	4b ff fe f8 	b       ffc0f1d8 <rtems_mkdir+0x4c>            
  }                                                                   
  if (!first && !last)                                                
ffc0f2e4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
ffc0f2e8:	3b a0 00 00 	li      r29,0                                  
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
ffc0f2ec:	40 be 00 0c 	bne+    cr7,ffc0f2f8 <rtems_mkdir+0x16c>       <== ALWAYS TAKEN
    (void)umask(oumask);                                              
ffc0f2f0:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f2f4:	48 00 00 e1 	bl      ffc0f3d4 <umask>                       
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
ffc0f2f8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f2fc:	4b ff 62 c5 	bl      ffc055c0 <free>                        
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0f300:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0f304:	38 00 00 00 	li      r0,0                                   
ffc0f308:	40 be 00 08 	bne+    cr7,ffc0f310 <rtems_mkdir+0x184>       
ffc0f30c:	38 00 ff ff 	li      r0,-1                                  
}                                                                     
ffc0f310:	39 61 00 78 	addi    r11,r1,120                             
ffc0f314:	7c 03 03 78 	mr      r3,r0                                  
ffc0f318:	48 00 df d0 	b       ffc1d2e8 <_restgpr_24_x>               
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
          retval = 2;                                                 
ffc0f31c:	3b a0 00 02 	li      r29,2                                  
ffc0f320:	4b ff ff d8 	b       ffc0f2f8 <rtems_mkdir+0x16c>           
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
ffc0f324:	3b a0 00 01 	li      r29,1                                  
ffc0f328:	4b ff ff d0 	b       ffc0f2f8 <rtems_mkdir+0x16c>           
                                                                      

ffc09494 <rtems_panic>: void rtems_panic( const char *printf_format, ... ) {
ffc09494:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc09498:	7c 08 02 a6 	mflr    r0                                     
ffc0949c:	90 81 00 1c 	stw     r4,28(r1)                              
ffc094a0:	90 01 00 7c 	stw     r0,124(r1)                             
ffc094a4:	90 a1 00 20 	stw     r5,32(r1)                              
ffc094a8:	90 c1 00 24 	stw     r6,36(r1)                              
ffc094ac:	90 e1 00 28 	stw     r7,40(r1)                              
ffc094b0:	91 01 00 2c 	stw     r8,44(r1)                              
ffc094b4:	91 21 00 30 	stw     r9,48(r1)                              
ffc094b8:	91 41 00 34 	stw     r10,52(r1)                             
ffc094bc:	40 86 00 24 	bne-    cr1,ffc094e0 <rtems_panic+0x4c>        <== ALWAYS TAKEN
ffc094c0:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc094c4:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc094c8:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc094cc:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc094d0:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc094d4:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc094d8:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc094dc:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc094e0:	38 00 00 01 	li      r0,1                                   
ffc094e4:	98 01 00 08 	stb     r0,8(r1)                               
ffc094e8:	38 00 00 00 	li      r0,0                                   
                                                                      
void rtems_panic(                                                     
  const char *printf_format,                                          
  ...                                                                 
)                                                                     
{                                                                     
ffc094ec:	7c 64 1b 78 	mr      r4,r3                                  
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc094f0:	98 01 00 09 	stb     r0,9(r1)                               
ffc094f4:	38 01 00 80 	addi    r0,r1,128                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc094f8:	38 a1 00 08 	addi    r5,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc094fc:	90 01 00 0c 	stw     r0,12(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc09500:	3c 60 20 00 	lis     r3,8192                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc09504:	38 01 00 18 	addi    r0,r1,24                               
ffc09508:	90 01 00 10 	stw     r0,16(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc0950c:	4b ff fd 3d 	bl      ffc09248 <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  rtems_error(0, "fatal error, exiting");                             
ffc09510:	3c 80 ff c2 	lis     r4,-62                                 
ffc09514:	38 84 67 5b 	addi    r4,r4,26459                            
ffc09518:	38 60 00 00 	li      r3,0                                   
ffc0951c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09520:	4b ff fe a5 	bl      ffc093c4 <rtems_error>                 
  _exit(errno);                                                       
ffc09524:	48 00 ca 55 	bl      ffc15f78 <__errno>                     
ffc09528:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0952c:	48 00 0b 2d 	bl      ffc0a058 <_exit>                       
                                                                      

ffc1664c <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
ffc1664c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc16650:	7c 08 02 a6 	mflr    r0                                     
ffc16654:	bf 21 00 14 	stmw    r25,20(r1)                             
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc16658:	7c 7b 1b 79 	mr.     r27,r3                                 
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
ffc1665c:	7c bf 2b 78 	mr      r31,r5                                 
ffc16660:	90 01 00 34 	stw     r0,52(r1)                              
ffc16664:	7c fa 3b 78 	mr      r26,r7                                 
ffc16668:	7d 1d 43 78 	mr      r29,r8                                 
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
ffc1666c:	38 00 00 03 	li      r0,3                                   
  rtems_id        *id                                                 
)                                                                     
{                                                                     
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc16670:	41 82 00 cc 	beq-    ffc1673c <rtems_partition_create+0xf0> 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
ffc16674:	2f 84 00 00 	cmpwi   cr7,r4,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc16678:	38 00 00 09 	li      r0,9                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
ffc1667c:	41 9e 00 c0 	beq-    cr7,ffc1673c <rtems_partition_create+0xf0>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
ffc16680:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc16684:	41 9e 00 b8 	beq-    cr7,ffc1673c <rtems_partition_create+0xf0><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
ffc16688:	2f 85 00 00 	cmpwi   cr7,r5,0                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
ffc1668c:	38 00 00 08 	li      r0,8                                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
ffc16690:	41 9e 00 ac 	beq-    cr7,ffc1673c <rtems_partition_create+0xf0>
ffc16694:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc16698:	41 9e 00 a4 	beq-    cr7,ffc1673c <rtems_partition_create+0xf0>
ffc1669c:	7f 85 30 40 	cmplw   cr7,r5,r6                              
ffc166a0:	41 9c 00 9c 	blt-    cr7,ffc1673c <rtems_partition_create+0xf0>
ffc166a4:	70 c9 00 07 	andi.   r9,r6,7                                
ffc166a8:	40 82 00 94 	bne-    ffc1673c <rtems_partition_create+0xf0> 
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
ffc166ac:	70 99 00 07 	andi.   r25,r4,7                               
     return RTEMS_INVALID_ADDRESS;                                    
ffc166b0:	38 00 00 09 	li      r0,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 ) )                   
ffc166b4:	40 a2 00 88 	bne+    ffc1673c <rtems_partition_create+0xf0> 
ffc166b8:	3d 20 00 00 	lis     r9,0                                   
ffc166bc:	81 69 28 88 	lwz     r11,10376(r9)                          
ffc166c0:	38 0b 00 01 	addi    r0,r11,1                               
ffc166c4:	90 09 28 88 	stw     r0,10376(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 );
ffc166c8:	3f 80 00 00 	lis     r28,0                                  
ffc166cc:	90 81 00 08 	stw     r4,8(r1)                               
ffc166d0:	3b 9c 6e e0 	addi    r28,r28,28384                          
ffc166d4:	7f 83 e3 78 	mr      r3,r28                                 
ffc166d8:	90 c1 00 0c 	stw     r6,12(r1)                              
ffc166dc:	48 00 4e bd 	bl      ffc1b598 <_Objects_Allocate>           
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
ffc166e0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc166e4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc166e8:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc166ec:	40 a2 00 10 	bne+    ffc166fc <rtems_partition_create+0xb0> 
    _Thread_Enable_dispatch();                                        
ffc166f0:	48 00 5d d1 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
    return RTEMS_TOO_MANY;                                            
ffc166f4:	38 00 00 05 	li      r0,5                                   
ffc166f8:	48 00 00 44 	b       ffc1673c <rtems_partition_create+0xf0> 
  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,        
ffc166fc:	7c bf 33 96 	divwu   r5,r31,r6                              
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
ffc16700:	90 9e 00 10 	stw     r4,16(r30)                             
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
ffc16704:	90 de 00 18 	stw     r6,24(r30)                             
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
ffc16708:	93 fe 00 14 	stw     r31,20(r30)                            
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
ffc1670c:	93 5e 00 1c 	stw     r26,28(r30)                            
  the_partition->number_of_used_blocks = 0;                           
ffc16710:	93 3e 00 20 	stw     r25,32(r30)                            
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
ffc16714:	38 7e 00 24 	addi    r3,r30,36                              
ffc16718:	48 00 35 69 	bl      ffc19c80 <_Chain_Initialize>           
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc1671c:	80 1e 00 08 	lwz     r0,8(r30)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc16720:	81 7c 00 1c 	lwz     r11,28(r28)                            
ffc16724:	54 09 13 ba 	rlwinm  r9,r0,2,14,29                          
ffc16728:	7f cb 49 2e 	stwx    r30,r11,r9                             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc1672c:	93 7e 00 0c 	stw     r27,12(r30)                            
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
ffc16730:	90 1d 00 00 	stw     r0,0(r29)                              
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
ffc16734:	48 00 5d 8d 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
  return RTEMS_SUCCESSFUL;                                            
ffc16738:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc1673c:	39 61 00 30 	addi    r11,r1,48                              
ffc16740:	7c 03 03 78 	mr      r3,r0                                  
ffc16744:	4b ff 7b 60 	b       ffc0e2a4 <_restgpr_25_x>               
                                                                      

ffc16894 <rtems_partition_return_buffer>: rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) {
ffc16894:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc16898:	7c 08 02 a6 	mflr    r0                                     
ffc1689c:	90 01 00 24 	stw     r0,36(r1)                              
ffc168a0:	7c 60 1b 78 	mr      r0,r3                                  
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Partition_Control *)                                        
    _Objects_Get( &_Partition_Information, id, location );            
ffc168a4:	3c 60 00 00 	lis     r3,0                                   
ffc168a8:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc168ac:	38 63 6e e0 	addi    r3,r3,28384                            
ffc168b0:	7c 9f 23 78 	mr      r31,r4                                 
ffc168b4:	38 a1 00 08 	addi    r5,r1,8                                
ffc168b8:	7c 04 03 78 	mr      r4,r0                                  
ffc168bc:	48 00 52 39 	bl      ffc1baf4 <_Objects_Get>                
  register Partition_Control *the_partition;                          
  Objects_Locations           location;                               
                                                                      
  the_partition = _Partition_Get( id, &location );                    
  switch ( location ) {                                               
ffc168c0:	80 01 00 08 	lwz     r0,8(r1)                               
ffc168c4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc168c8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc168cc:	38 60 00 04 	li      r3,4                                   
{                                                                     
  register Partition_Control *the_partition;                          
  Objects_Locations           location;                               
                                                                      
  the_partition = _Partition_Get( id, &location );                    
  switch ( location ) {                                               
ffc168d0:	40 9e 00 58 	bne-    cr7,ffc16928 <rtems_partition_return_buffer+0x94>
)                                                                     
{                                                                     
  void *starting;                                                     
  void *ending;                                                       
                                                                      
  starting = the_partition->starting_address;                         
ffc168d4:	80 1e 00 10 	lwz     r0,16(r30)                             
  ending   = _Addresses_Add_offset( starting, the_partition->length );
ffc168d8:	81 3e 00 14 	lwz     r9,20(r30)                             
  const void *address,                                                
  const void *base,                                                   
  const void *limit                                                   
)                                                                     
{                                                                     
  return (address >= base && address <= limit);                       
ffc168dc:	7f 9f 00 40 	cmplw   cr7,r31,r0                             
ffc168e0:	41 9c 00 50 	blt-    cr7,ffc16930 <rtems_partition_return_buffer+0x9c>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
ffc168e4:	7d 20 4a 14 	add     r9,r0,r9                               
  const void *address,                                                
  const void *base,                                                   
  const void *limit                                                   
)                                                                     
{                                                                     
  return (address >= base && address <= limit);                       
ffc168e8:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc168ec:	41 9d 00 44 	bgt-    cr7,ffc16930 <rtems_partition_return_buffer+0x9c><== NEVER TAKEN
  offset = (uint32_t) _Addresses_Subtract(                            
    the_buffer,                                                       
    the_partition->starting_address                                   
  );                                                                  
                                                                      
  return ((offset % the_partition->buffer_size) == 0);                
ffc168f0:	81 3e 00 18 	lwz     r9,24(r30)                             
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (                    
  const void *left,                                                   
  const void *right                                                   
)                                                                     
{                                                                     
  return (int32_t) ((const char *) left - (const char *) right);      
ffc168f4:	7c 00 f8 50 	subf    r0,r0,r31                              
ffc168f8:	7d 60 4b 96 	divwu   r11,r0,r9                              
ffc168fc:	7d 2b 49 d6 	mullw   r9,r11,r9                              
                                                                      
  starting = the_partition->starting_address;                         
  ending   = _Addresses_Add_offset( starting, the_partition->length );
                                                                      
  return (                                                            
    _Addresses_Is_in_range( the_buffer, starting, ending ) &&         
ffc16900:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc16904:	40 9e 00 2c 	bne-    cr7,ffc16930 <rtems_partition_return_buffer+0x9c>
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (                    
  Partition_Control *the_partition,                                   
  Chain_Node        *the_buffer                                       
)                                                                     
{                                                                     
  _Chain_Append( &the_partition->Memory, the_buffer );                
ffc16908:	38 7e 00 24 	addi    r3,r30,36                              
ffc1690c:	7f e4 fb 78 	mr      r4,r31                                 
ffc16910:	48 00 32 d9 	bl      ffc19be8 <_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;                    
ffc16914:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc16918:	38 09 ff ff 	addi    r0,r9,-1                               
ffc1691c:	90 1e 00 20 	stw     r0,32(r30)                             
        _Thread_Enable_dispatch();                                    
ffc16920:	48 00 5b a1 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc16924:	38 60 00 00 	li      r3,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc16928:	39 61 00 20 	addi    r11,r1,32                              
ffc1692c:	4b ff 79 8c 	b       ffc0e2b8 <_restgpr_30_x>               
        _Partition_Free_buffer( the_partition, buffer );              
        the_partition->number_of_used_blocks -= 1;                    
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc16930:	48 00 5b 91 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
      return RTEMS_INVALID_ADDRESS;                                   
ffc16934:	38 60 00 09 	li      r3,9                                   
ffc16938:	4b ff ff f0 	b       ffc16928 <rtems_partition_return_buffer+0x94>
                                                                      

ffc08d98 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
ffc08d98:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc08d9c:	7c 08 02 a6 	mflr    r0                                     
ffc08da0:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc08da4:	7c 7e 1b 78 	mr      r30,r3                                 
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
ffc08da8:	3c 60 00 00 	lis     r3,0                                   
ffc08dac:	7c 9f 23 78 	mr      r31,r4                                 
ffc08db0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc08db4:	38 63 2c 38 	addi    r3,r3,11320                            
ffc08db8:	7f c4 f3 78 	mr      r4,r30                                 
ffc08dbc:	38 a1 00 08 	addi    r5,r1,8                                
ffc08dc0:	48 00 26 1d 	bl      ffc0b3dc <_Objects_Get>                
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
ffc08dc4:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08dc8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc08dcc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08dd0:	40 9e 01 70 	bne-    cr7,ffc08f40 <rtems_rate_monotonic_period+0x1a8>
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
ffc08dd4:	3d 60 00 00 	lis     r11,0                                  
ffc08dd8:	81 23 00 40 	lwz     r9,64(r3)                              
ffc08ddc:	80 0b 32 3c 	lwz     r0,12860(r11)                          
ffc08de0:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc08de4:	41 9e 00 10 	beq-    cr7,ffc08df4 <rtems_rate_monotonic_period+0x5c>
        _Thread_Enable_dispatch();                                    
ffc08de8:	48 00 2f c1 	bl      ffc0bda8 <_Thread_Enable_dispatch>     
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
ffc08dec:	3b c0 00 17 	li      r30,23                                 
ffc08df0:	48 00 01 54 	b       ffc08f44 <rtems_rate_monotonic_period+0x1ac>
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
ffc08df4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08df8:	40 9e 00 2c 	bne-    cr7,ffc08e24 <rtems_rate_monotonic_period+0x8c>
        switch ( the_period->state ) {                                
ffc08dfc:	80 03 00 38 	lwz     r0,56(r3)                              
ffc08e00:	3b c0 00 00 	li      r30,0                                  
ffc08e04:	2b 80 00 04 	cmplwi  cr7,r0,4                               
ffc08e08:	41 9d 00 14 	bgt-    cr7,ffc08e1c <rtems_rate_monotonic_period+0x84><== NEVER TAKEN
ffc08e0c:	3d 20 ff c2 	lis     r9,-62                                 
ffc08e10:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc08e14:	39 29 ec 60 	addi    r9,r9,-5024                            
ffc08e18:	7f c9 00 2e 	lwzx    r30,r9,r0                              
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc08e1c:	48 00 2f 8d 	bl      ffc0bda8 <_Thread_Enable_dispatch>     
        return( return_value );                                       
ffc08e20:	48 00 01 24 	b       ffc08f44 <rtems_rate_monotonic_period+0x1ac>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc08e24:	7f 80 00 a6 	mfmsr   r28                                    
ffc08e28:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc08e2c:	7f 80 00 78 	andc    r0,r28,r0                              
ffc08e30:	7c 00 01 24 	mtmsr   r0                                     
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
ffc08e34:	80 03 00 38 	lwz     r0,56(r3)                              
ffc08e38:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08e3c:	40 be 00 4c 	bne+    cr7,ffc08e88 <rtems_rate_monotonic_period+0xf0>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08e40:	7f 80 01 24 	mtmsr   r28                                    
        _ISR_Enable( level );                                         
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc08e44:	4b ff fd cd 	bl      ffc08c10 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc08e48:	38 00 00 02 	li      r0,2                                   
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc08e4c:	3d 20 ff c1 	lis     r9,-63                                 
ffc08e50:	90 1d 00 38 	stw     r0,56(r29)                             
ffc08e54:	39 29 92 4c 	addi    r9,r9,-28084                           
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc08e58:	38 00 00 00 	li      r0,0                                   
  the_watchdog->routine   = routine;                                  
ffc08e5c:	91 3d 00 2c 	stw     r9,44(r29)                             
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc08e60:	3c 60 00 00 	lis     r3,0                                   
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc08e64:	90 1d 00 18 	stw     r0,24(r29)                             
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc08e68:	38 63 2e 08 	addi    r3,r3,11784                            
ffc08e6c:	38 9d 00 10 	addi    r4,r29,16                              
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
ffc08e70:	93 dd 00 30 	stw     r30,48(r29)                            
  the_watchdog->user_data = user_data;                                
ffc08e74:	90 1d 00 34 	stw     r0,52(r29)                             
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
ffc08e78:	93 fd 00 3c 	stw     r31,60(r29)                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc08e7c:	93 fd 00 1c 	stw     r31,28(r29)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc08e80:	48 00 43 6d 	bl      ffc0d1ec <_Watchdog_Insert>            
ffc08e84:	48 00 00 70 	b       ffc08ef4 <rtems_rate_monotonic_period+0x15c>
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
ffc08e88:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc08e8c:	40 be 00 74 	bne+    cr7,ffc08f00 <rtems_rate_monotonic_period+0x168>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc08e90:	4b ff fe 01 	bl      ffc08c90 <_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;         
ffc08e94:	38 00 00 01 	li      r0,1                                   
ffc08e98:	90 1d 00 38 	stw     r0,56(r29)                             
        the_period->next_length = length;                             
ffc08e9c:	93 fd 00 3c 	stw     r31,60(r29)                            
ffc08ea0:	7f 80 01 24 	mtmsr   r28                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
ffc08ea4:	3d 20 00 00 	lis     r9,0                                   
ffc08ea8:	80 1d 00 08 	lwz     r0,8(r29)                              
ffc08eac:	80 69 32 3c 	lwz     r3,12860(r9)                           
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc08eb0:	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;           
ffc08eb4:	90 03 00 20 	stw     r0,32(r3)                              
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc08eb8:	48 00 38 ad 	bl      ffc0c764 <_Thread_Set_state>           
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc08ebc:	7d 20 00 a6 	mfmsr   r9                                     
ffc08ec0:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc08ec4:	7d 20 00 78 	andc    r0,r9,r0                               
ffc08ec8:	7c 00 01 24 	mtmsr   r0                                     
         *  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;                  
ffc08ecc:	39 60 00 02 	li      r11,2                                  
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
          local_state = the_period->state;                            
ffc08ed0:	80 1d 00 38 	lwz     r0,56(r29)                             
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
ffc08ed4:	91 7d 00 38 	stw     r11,56(r29)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08ed8:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
        /*                                                            
         *  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 )   
ffc08edc:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc08ee0:	40 be 00 14 	bne+    cr7,ffc08ef4 <rtems_rate_monotonic_period+0x15c><== ALWAYS TAKEN
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc08ee4:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc08ee8:	80 69 32 3c 	lwz     r3,12860(r9)                           <== NOT EXECUTED
ffc08eec:	38 80 40 00 	li      r4,16384                               <== NOT EXECUTED
ffc08ef0:	48 00 2a 91 	bl      ffc0b980 <_Thread_Clear_state>         <== NOT EXECUTED
                                                                      
        _Thread_Enable_dispatch();                                    
ffc08ef4:	48 00 2e b5 	bl      ffc0bda8 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc08ef8:	3b c0 00 00 	li      r30,0                                  
ffc08efc:	48 00 00 48 	b       ffc08f44 <rtems_rate_monotonic_period+0x1ac>
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc08f00:	2f 80 00 04 	cmpwi   cr7,r0,4                               
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc08f04:	3b c0 00 04 	li      r30,4                                  
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc08f08:	40 be 00 3c 	bne+    cr7,ffc08f44 <rtems_rate_monotonic_period+0x1ac><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc08f0c:	4b ff fd 85 	bl      ffc08c90 <_Rate_monotonic_Update_statistics>
ffc08f10:	7f 80 01 24 	mtmsr   r28                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc08f14:	38 00 00 02 	li      r0,2                                   
        the_period->next_length = length;                             
ffc08f18:	93 fd 00 3c 	stw     r31,60(r29)                            
ffc08f1c:	3c 60 00 00 	lis     r3,0                                   
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc08f20:	90 1d 00 38 	stw     r0,56(r29)                             
ffc08f24:	38 63 2e 08 	addi    r3,r3,11784                            
ffc08f28:	38 9d 00 10 	addi    r4,r29,16                              
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc08f2c:	93 fd 00 1c 	stw     r31,28(r29)                            
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_TIMEOUT;                                         
ffc08f30:	3b c0 00 06 	li      r30,6                                  
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc08f34:	48 00 42 b9 	bl      ffc0d1ec <_Watchdog_Insert>            
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
ffc08f38:	48 00 2e 71 	bl      ffc0bda8 <_Thread_Enable_dispatch>     
        return RTEMS_TIMEOUT;                                         
ffc08f3c:	48 00 00 08 	b       ffc08f44 <rtems_rate_monotonic_period+0x1ac>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc08f40:	3b c0 00 04 	li      r30,4                                  
}                                                                     
ffc08f44:	39 61 00 28 	addi    r11,r1,40                              
ffc08f48:	7f c3 f3 78 	mr      r3,r30                                 
ffc08f4c:	4b ff 82 74 	b       ffc011c0 <_restgpr_28_x>               
                                                                      

ffc08f50 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc08f50:	94 21 ff 58 	stwu    r1,-168(r1)                            
ffc08f54:	7c 08 02 a6 	mflr    r0                                     
ffc08f58:	90 01 00 ac 	stw     r0,172(r1)                             
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc08f5c:	7c 80 23 79 	mr.     r0,r4                                  
 */                                                                   
void rtems_rate_monotonic_report_statistics_with_plugin(              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc08f60:	be 41 00 70 	stmw    r18,112(r1)                            
ffc08f64:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc08f68:	90 01 00 68 	stw     r0,104(r1)                             
ffc08f6c:	41 82 01 fc 	beq-    ffc09168 <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc08f70:	3c 80 ff c2 	lis     r4,-62                                 
ffc08f74:	7c 09 03 a6 	mtctr   r0                                     
ffc08f78:	38 84 ec 74 	addi    r4,r4,-5004                            
                                                                      
  /*                                                                  
   * 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 ;                   
ffc08f7c:	3e 60 00 00 	lis     r19,0                                  
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc08f80:	3e c0 ff c2 	lis     r22,-62                                
      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,                                              
ffc08f84:	3f 00 ff c2 	lis     r24,-62                                
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc08f88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08f8c:	4e 80 04 21 	bctrl                                          
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
ffc08f90:	80 01 00 68 	lwz     r0,104(r1)                             
ffc08f94:	3c 80 ff c2 	lis     r4,-62                                 
ffc08f98:	7c 09 03 a6 	mtctr   r0                                     
ffc08f9c:	38 84 ec 92 	addi    r4,r4,-4974                            
ffc08fa0:	7f e3 fb 78 	mr      r3,r31                                 
      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,                                              
ffc08fa4:	3f 40 ff c2 	lis     r26,-62                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc08fa8:	3e 40 ff c2 	lis     r18,-62                                
   * 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++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
ffc08fac:	3a 81 00 30 	addi    r20,r1,48                              
  if ( !print )                                                       
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
ffc08fb0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08fb4:	4e 80 04 21 	bctrl                                          
    (*print)( context, "--- Wall times are in seconds ---\n" );       
ffc08fb8:	80 01 00 68 	lwz     r0,104(r1)                             
ffc08fbc:	3c 80 ff c2 	lis     r4,-62                                 
ffc08fc0:	7c 09 03 a6 	mtctr   r0                                     
ffc08fc4:	38 84 ec b4 	addi    r4,r4,-4940                            
ffc08fc8:	7f e3 fb 78 	mr      r3,r31                                 
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
    if ( status != RTEMS_SUCCESSFUL )                                 
      continue;                                                       
                                                                      
    /* If the above passed, so should this but check it anyway */     
    status = rtems_rate_monotonic_get_status( id, &the_status );      
ffc08fcc:	3a a1 00 18 	addi    r21,r1,24                              
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
ffc08fd0:	3b 61 00 08 	addi    r27,r1,8                               
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc08fd4:	3a d6 ed 6e 	addi    r22,r22,-4754                          
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
    (*print)( context, "--- Wall times are in seconds ---\n" );       
ffc08fd8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08fdc:	4e 80 04 21 	bctrl                                          
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
ffc08fe0:	80 01 00 68 	lwz     r0,104(r1)                             
ffc08fe4:	3c 80 ff c2 	lis     r4,-62                                 
ffc08fe8:	7c 09 03 a6 	mtctr   r0                                     
ffc08fec:	38 84 ec d7 	addi    r4,r4,-4905                            
ffc08ff0:	7f e3 fb 78 	mr      r3,r31                                 
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
ffc08ff4:	3a e1 00 48 	addi    r23,r1,72                              
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
ffc08ff8:	3b 81 00 10 	addi    r28,r1,16                              
      (*print)( context,                                              
ffc08ffc:	3b 18 ed 85 	addi    r24,r24,-4731                          
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
ffc09000:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09004:	4e 80 04 21 	bctrl                                          
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
ffc09008:	80 01 00 68 	lwz     r0,104(r1)                             
ffc0900c:	3c 80 ff c2 	lis     r4,-62                                 
ffc09010:	7f e3 fb 78 	mr      r3,r31                                 
ffc09014:	7c 09 03 a6 	mtctr   r0                                     
ffc09018:	38 84 ed 22 	addi    r4,r4,-4830                            
      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,                                              
ffc0901c:	3b c0 03 e8 	li      r30,1000                               
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
ffc09020:	3b 21 00 60 	addi    r25,r1,96                              
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
ffc09024:	3b 5a ed a4 	addi    r26,r26,-4700                          
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
ffc09028:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0902c:	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 ;                   
ffc09030:	39 33 2c 38 	addi    r9,r19,11320                           
ffc09034:	83 a9 00 08 	lwz     r29,8(r9)                              
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc09038:	3a 52 ec 12 	addi    r18,r18,-5102                          
                                                                      
  /*                                                                  
   * 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 ;                   
ffc0903c:	48 00 01 1c 	b       ffc09158 <rtems_rate_monotonic_report_statistics_with_plugin+0x208>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
ffc09040:	7f a3 eb 78 	mr      r3,r29                                 
ffc09044:	7e 84 a3 78 	mr      r4,r20                                 
ffc09048:	48 00 67 dd 	bl      ffc0f824 <rtems_rate_monotonic_get_statistics>
    if ( status != RTEMS_SUCCESSFUL )                                 
ffc0904c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09050:	40 be 01 04 	bne+    cr7,ffc09154 <rtems_rate_monotonic_report_statistics_with_plugin+0x204>
      continue;                                                       
                                                                      
    /* If the above passed, so should this but check it anyway */     
    status = rtems_rate_monotonic_get_status( id, &the_status );      
ffc09054:	7e a4 ab 78 	mr      r4,r21                                 
ffc09058:	7f a3 eb 78 	mr      r3,r29                                 
ffc0905c:	48 00 68 95 	bl      ffc0f8f0 <rtems_rate_monotonic_get_status>
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
ffc09060:	80 61 00 18 	lwz     r3,24(r1)                              
ffc09064:	38 80 00 05 	li      r4,5                                   
ffc09068:	7f 65 db 78 	mr      r5,r27                                 
ffc0906c:	48 00 02 a1 	bl      ffc0930c <rtems_object_get_name>       
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc09070:	80 01 00 68 	lwz     r0,104(r1)                             
ffc09074:	7e c4 b3 78 	mr      r4,r22                                 
ffc09078:	80 e1 00 30 	lwz     r7,48(r1)                              
ffc0907c:	7f e3 fb 78 	mr      r3,r31                                 
ffc09080:	81 01 00 34 	lwz     r8,52(r1)                              
ffc09084:	7f a5 eb 78 	mr      r5,r29                                 
ffc09088:	7c 09 03 a6 	mtctr   r0                                     
ffc0908c:	7f 66 db 78 	mr      r6,r27                                 
ffc09090:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09094:	4e 80 04 21 	bctrl                                          
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
ffc09098:	80 81 00 30 	lwz     r4,48(r1)                              
ffc0909c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc090a0:	40 9e 00 20 	bne-    cr7,ffc090c0 <rtems_rate_monotonic_report_statistics_with_plugin+0x170>
      (*print)( context, "\n" );                                      
ffc090a4:	80 01 00 68 	lwz     r0,104(r1)                             
ffc090a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc090ac:	7e 44 93 78 	mr      r4,r18                                 
ffc090b0:	7c 09 03 a6 	mtctr   r0                                     
ffc090b4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc090b8:	4e 80 04 21 	bctrl                                          
      continue;                                                       
ffc090bc:	48 00 00 98 	b       ffc09154 <rtems_rate_monotonic_report_statistics_with_plugin+0x204>
      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 );
ffc090c0:	7e e3 bb 78 	mr      r3,r23                                 
ffc090c4:	7f 85 e3 78 	mr      r5,r28                                 
ffc090c8:	48 00 3c 9d 	bl      ffc0cd64 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc090cc:	80 01 00 68 	lwz     r0,104(r1)                             
ffc090d0:	80 c1 00 3c 	lwz     r6,60(r1)                              
ffc090d4:	7f 04 c3 78 	mr      r4,r24                                 
ffc090d8:	81 01 00 44 	lwz     r8,68(r1)                              
ffc090dc:	7c 09 03 a6 	mtctr   r0                                     
ffc090e0:	81 41 00 14 	lwz     r10,20(r1)                             
ffc090e4:	7c c6 f3 d6 	divw    r6,r6,r30                              
ffc090e8:	80 e1 00 40 	lwz     r7,64(r1)                              
ffc090ec:	81 21 00 10 	lwz     r9,16(r1)                              
ffc090f0:	80 a1 00 38 	lwz     r5,56(r1)                              
ffc090f4:	7d 08 f3 d6 	divw    r8,r8,r30                              
ffc090f8:	7d 4a f3 d6 	divw    r10,r10,r30                            
ffc090fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc09100:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09104:	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);
ffc09108:	80 81 00 30 	lwz     r4,48(r1)                              
ffc0910c:	7f 23 cb 78 	mr      r3,r25                                 
ffc09110:	7f 85 e3 78 	mr      r5,r28                                 
ffc09114:	48 00 3c 51 	bl      ffc0cd64 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc09118:	80 c1 00 54 	lwz     r6,84(r1)                              
ffc0911c:	81 01 00 5c 	lwz     r8,92(r1)                              
ffc09120:	7f e3 fb 78 	mr      r3,r31                                 
ffc09124:	81 41 00 14 	lwz     r10,20(r1)                             
ffc09128:	7f 44 d3 78 	mr      r4,r26                                 
ffc0912c:	80 01 00 68 	lwz     r0,104(r1)                             
ffc09130:	7c c6 f3 d6 	divw    r6,r6,r30                              
ffc09134:	80 a1 00 50 	lwz     r5,80(r1)                              
ffc09138:	80 e1 00 58 	lwz     r7,88(r1)                              
ffc0913c:	7c 09 03 a6 	mtctr   r0                                     
ffc09140:	81 21 00 10 	lwz     r9,16(r1)                              
ffc09144:	7d 08 f3 d6 	divw    r8,r8,r30                              
ffc09148:	7d 4a f3 d6 	divw    r10,r10,r30                            
ffc0914c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09150:	4e 80 04 21 	bctrl                                          
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
ffc09154:	3b bd 00 01 	addi    r29,r29,1                              
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
ffc09158:	39 33 2c 38 	addi    r9,r19,11320                           
                                                                      
  /*                                                                  
   * 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 ;                   
ffc0915c:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc09160:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc09164:	40 9d fe dc 	ble+    cr7,ffc09040 <rtems_rate_monotonic_report_statistics_with_plugin+0xf0>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
ffc09168:	39 61 00 a8 	addi    r11,r1,168                             
ffc0916c:	4b ff 80 2c 	b       ffc01198 <_restgpr_18_x>               
                                                                      

ffc17d7c <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
ffc17d7c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc17d80:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc17d84:	7c 08 02 a6 	mflr    r0                                     
ffc17d88:	48 01 95 21 	bl      ffc312a8 <_savegpr_31>                 
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
ffc17d8c:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
ffc17d90:	90 01 00 24 	stw     r0,36(r1)                              
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
ffc17d94:	38 00 00 0a 	li      r0,10                                  
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
ffc17d98:	41 82 00 bc 	beq-    ffc17e54 <rtems_signal_send+0xd8>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc17d9c:	38 81 00 08 	addi    r4,r1,8                                
ffc17da0:	48 00 47 41 	bl      ffc1c4e0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc17da4:	80 01 00 08 	lwz     r0,8(r1)                               
ffc17da8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc17dac:	40 9e 00 a4 	bne-    cr7,ffc17e50 <rtems_signal_send+0xd4>  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
ffc17db0:	81 23 01 44 	lwz     r9,324(r3)                             
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
ffc17db4:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc17db8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc17dbc:	41 9e 00 88 	beq-    cr7,ffc17e44 <rtems_signal_send+0xc8>  
        if ( asr->is_enabled ) {                                      
ffc17dc0:	88 09 00 08 	lbz     r0,8(r9)                               
ffc17dc4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc17dc8:	41 9e 00 50 	beq-    cr7,ffc17e18 <rtems_signal_send+0x9c>  
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc17dcc:	7c 00 00 a6 	mfmsr   r0                                     
ffc17dd0:	7d 70 42 a6 	mfsprg  r11,0                                  
ffc17dd4:	7c 0b 58 78 	andc    r11,r0,r11                             
ffc17dd8:	7d 60 01 24 	mtmsr   r11                                    
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
    *signal_set |= signals;                                           
ffc17ddc:	81 69 00 14 	lwz     r11,20(r9)                             
ffc17de0:	7d 7f fb 78 	or      r31,r11,r31                            
ffc17de4:	93 e9 00 14 	stw     r31,20(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc17de8:	7c 00 01 24 	mtmsr   r0                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc17dec:	3d 20 00 00 	lis     r9,0                                   
ffc17df0:	39 29 75 50 	addi    r9,r9,30032                            
ffc17df4:	80 09 00 08 	lwz     r0,8(r9)                               
ffc17df8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc17dfc:	41 9e 00 3c 	beq-    cr7,ffc17e38 <rtems_signal_send+0xbc>  
ffc17e00:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc17e04:	7f 83 00 00 	cmpw    cr7,r3,r0                              
ffc17e08:	40 be 00 30 	bne+    cr7,ffc17e38 <rtems_signal_send+0xbc>  <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
ffc17e0c:	38 00 00 01 	li      r0,1                                   
ffc17e10:	98 09 00 18 	stb     r0,24(r9)                              
ffc17e14:	48 00 00 24 	b       ffc17e38 <rtems_signal_send+0xbc>      
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc17e18:	7c 00 00 a6 	mfmsr   r0                                     
ffc17e1c:	7d 70 42 a6 	mfsprg  r11,0                                  
ffc17e20:	7c 0b 58 78 	andc    r11,r0,r11                             
ffc17e24:	7d 60 01 24 	mtmsr   r11                                    
ffc17e28:	81 69 00 18 	lwz     r11,24(r9)                             
ffc17e2c:	7d 7f fb 78 	or      r31,r11,r31                            
ffc17e30:	93 e9 00 18 	stw     r31,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc17e34:	7c 00 01 24 	mtmsr   r0                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc17e38:	48 00 46 89 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc17e3c:	38 00 00 00 	li      r0,0                                   
ffc17e40:	48 00 00 14 	b       ffc17e54 <rtems_signal_send+0xd8>      
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc17e44:	48 00 46 7d 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
      return RTEMS_NOT_DEFINED;                                       
ffc17e48:	38 00 00 0b 	li      r0,11                                  
ffc17e4c:	48 00 00 08 	b       ffc17e54 <rtems_signal_send+0xd8>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc17e50:	38 00 00 04 	li      r0,4                                   
}                                                                     
ffc17e54:	39 61 00 20 	addi    r11,r1,32                              
ffc17e58:	7c 03 03 78 	mr      r3,r0                                  
ffc17e5c:	4b ff 64 60 	b       ffc0e2bc <_restgpr_31_x>               
                                                                      

ffc03ffc <rtems_stack_checker_begin_extension>: * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) {
ffc03ffc:	7c 08 02 a6 	mflr    r0                                     
ffc04000:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04004:	90 01 00 0c 	stw     r0,12(r1)                              
  Stack_check_Control  *the_pattern;                                  
                                                                      
  if ( the_thread->Object.id == 0 )        /* skip system tasks */    
ffc04008:	80 03 00 08 	lwz     r0,8(r3)                               
ffc0400c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04010:	41 9e 00 1c 	beq-    cr7,ffc0402c <rtems_stack_checker_begin_extension+0x30><== NEVER TAKEN
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
ffc04014:	80 63 00 d0 	lwz     r3,208(r3)                             
ffc04018:	3c 80 00 00 	lis     r4,0                                   
ffc0401c:	38 84 2b 24 	addi    r4,r4,11044                            
ffc04020:	38 63 00 08 	addi    r3,r3,8                                
ffc04024:	38 a0 00 80 	li      r5,128                                 
ffc04028:	48 00 f9 7d 	bl      ffc139a4 <memcpy>                      
}                                                                     
ffc0402c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04030:	38 21 00 08 	addi    r1,r1,8                                
ffc04034:	7c 08 03 a6 	mtlr    r0                                     
ffc04038:	4e 80 00 20 	blr                                            
                                                                      

ffc03fbc <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
ffc03fbc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc03fc0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc03fc4:	7c 08 02 a6 	mflr    r0                                     
ffc03fc8:	4b ff c7 a1 	bl      ffc00768 <_savegpr_31>                 
ffc03fcc:	7c 9f 23 78 	mr      r31,r4                                 
ffc03fd0:	90 01 00 14 	stw     r0,20(r1)                              
  Stack_check_Initialize();                                           
ffc03fd4:	4b ff ff 99 	bl      ffc03f6c <Stack_check_Initialize>      
                                                                      
  if (the_thread)                                                     
ffc03fd8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc03fdc:	41 9e 00 14 	beq-    cr7,ffc03ff0 <rtems_stack_checker_create_extension+0x34><== NEVER TAKEN
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
ffc03fe0:	80 7f 00 d0 	lwz     r3,208(r31)                            
ffc03fe4:	38 80 00 a5 	li      r4,165                                 
ffc03fe8:	80 bf 00 cc 	lwz     r5,204(r31)                            
ffc03fec:	48 00 fa 99 	bl      ffc13a84 <memset>                      
                                                                      
  return true;                                                        
}                                                                     
ffc03ff0:	39 61 00 10 	addi    r11,r1,16                              
ffc03ff4:	38 60 00 01 	li      r3,1                                   
ffc03ff8:	4b ff c7 bc 	b       ffc007b4 <_restgpr_31_x>               
                                                                      

ffc04188 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
ffc04188:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0418c:	7c 08 02 a6 	mflr    r0                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc04190:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc04194:	90 01 00 14 	stw     r0,20(r1)                              
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc04198:	81 29 32 5c 	lwz     r9,12892(r9)                           
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc0419c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc041a0:	7c 3f 0b 78 	mr      r31,r1                                 
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
ffc041a4:	3b c0 00 00 	li      r30,0                                  
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc041a8:	80 69 00 d0 	lwz     r3,208(r9)                             
ffc041ac:	7f 9f 18 40 	cmplw   cr7,r31,r3                             
ffc041b0:	41 9c 00 18 	blt-    cr7,ffc041c8 <rtems_stack_checker_is_blown+0x40><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc041b4:	83 c9 00 cc 	lwz     r30,204(r9)                            
ffc041b8:	7f c3 f2 14 	add     r30,r3,r30                             
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
ffc041bc:	7f df f0 10 	subfc   r30,r31,r30                            
ffc041c0:	3b c0 00 00 	li      r30,0                                  
ffc041c4:	7f de f1 14 	adde    r30,r30,r30                            
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc041c8:	3d 20 00 00 	lis     r9,0                                   
ffc041cc:	80 09 28 b8 	lwz     r0,10424(r9)                           
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
ffc041d0:	38 80 00 01 	li      r4,1                                   
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc041d4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc041d8:	41 9e 00 20 	beq-    cr7,ffc041f8 <rtems_stack_checker_is_blown+0x70><== NEVER TAKEN
    pattern_ok = (!memcmp(                                            
ffc041dc:	3c 80 00 00 	lis     r4,0                                   
ffc041e0:	38 84 2b 24 	addi    r4,r4,11044                            
ffc041e4:	38 63 00 08 	addi    r3,r3,8                                
ffc041e8:	38 a0 00 80 	li      r5,128                                 
ffc041ec:	48 00 f7 21 	bl      ffc1390c <memcmp>                      
ffc041f0:	7c 64 00 34 	cntlzw  r4,r3                                  
ffc041f4:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc041f8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc041fc:	41 9e 00 0c 	beq-    cr7,ffc04208 <rtems_stack_checker_is_blown+0x80><== NEVER TAKEN
ffc04200:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc04204:	40 be 00 10 	bne+    cr7,ffc04214 <rtems_stack_checker_is_blown+0x8c><== ALWAYS TAKEN
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
ffc04208:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc0420c:	80 69 32 5c 	lwz     r3,12892(r9)                           <== NOT EXECUTED
ffc04210:	4b ff fe 2d 	bl      ffc0403c <Stack_check_report_blown_task><== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
ffc04214:	39 7f 00 10 	addi    r11,r31,16                             
ffc04218:	38 60 00 00 	li      r3,0                                   
ffc0421c:	4b ff c5 94 	b       ffc007b0 <_restgpr_30_x>               
                                                                      

ffc04220 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc04220:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04224:	7c 08 02 a6 	mflr    r0                                     
ffc04228:	bf 81 00 08 	stmw    r28,8(r1)                              
  if ( !print )                                                       
ffc0422c:	7c 9e 23 79 	mr.     r30,r4                                 
                                                                      
void rtems_stack_checker_report_usage_with_plugin(                    
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc04230:	7c 7c 1b 78 	mr      r28,r3                                 
ffc04234:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( !print )                                                       
ffc04238:	41 82 00 58 	beq-    ffc04290 <rtems_stack_checker_report_usage_with_plugin+0x70><== NEVER TAKEN
    return;                                                           
                                                                      
  print_context = context;                                            
ffc0423c:	3f e0 00 00 	lis     r31,0                                  
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc04240:	7f c9 03 a6 	mtctr   r30                                    
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc04244:	3b bf 28 b0 	addi    r29,r31,10416                          
  print_handler = print;                                              
ffc04248:	93 df 28 b0 	stw     r30,10416(r31)                         
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc0424c:	3c 80 ff c2 	lis     r4,-62                                 
ffc04250:	38 84 9a 3a 	addi    r4,r4,-26054                           
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc04254:	90 7d 00 04 	stw     r3,4(r29)                              
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc04258:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0425c:	4e 80 04 21 	bctrl                                          
  (*print)( context,                                                  
ffc04260:	3c 80 ff c2 	lis     r4,-62                                 
ffc04264:	38 84 9a 51 	addi    r4,r4,-26031                           
ffc04268:	7f c9 03 a6 	mtctr   r30                                    
ffc0426c:	7f 83 e3 78 	mr      r3,r28                                 
ffc04270:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04274:	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 );   
ffc04278:	3c 60 ff c0 	lis     r3,-64                                 
ffc0427c:	38 63 3e 2c 	addi    r3,r3,15916                            
ffc04280:	48 00 73 dd 	bl      ffc0b65c <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;                                               
ffc04284:	38 00 00 00 	li      r0,0                                   
ffc04288:	90 1d 00 04 	stw     r0,4(r29)                              
  print_handler = NULL;                                               
ffc0428c:	90 1f 28 b0 	stw     r0,10416(r31)                          
}                                                                     
ffc04290:	39 61 00 18 	addi    r11,r1,24                              
ffc04294:	4b ff c5 14 	b       ffc007a8 <_restgpr_28_x>               
                                                                      

ffc04110 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
ffc04110:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04114:	7c 08 02 a6 	mflr    r0                                     
ffc04118:	90 01 00 1c 	stw     r0,28(r1)                              
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool        sp_ok;                                                  
  bool        pattern_ok = true;                                      
                                                                      
  pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
ffc0411c:	81 23 00 d0 	lwz     r9,208(r3)                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc04120:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc04124:	7c 3f 0b 78 	mr      r31,r1                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc04128:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc0412c:	7c 7e 1b 78 	mr      r30,r3                                 
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
ffc04130:	3b a0 00 00 	li      r29,0                                  
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool        sp_ok;                                                  
  bool        pattern_ok = true;                                      
                                                                      
  pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
ffc04134:	38 69 00 08 	addi    r3,r9,8                                
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc04138:	41 9c 00 18 	blt-    cr7,ffc04150 <rtems_stack_checker_switch_extension+0x40><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc0413c:	83 be 00 cc 	lwz     r29,204(r30)                           
ffc04140:	7f a9 ea 14 	add     r29,r9,r29                             
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_switch_extension                              
 */                                                                   
void rtems_stack_checker_switch_extension(                            
ffc04144:	7f bf e8 10 	subfc   r29,r31,r29                            
ffc04148:	3b a0 00 00 	li      r29,0                                  
ffc0414c:	7f bd e9 14 	adde    r29,r29,r29                            
  /*                                                                  
   *  Check for an out of bounds stack pointer or an overwrite        
   */                                                                 
  sp_ok = Stack_check_Frame_pointer_in_range( the_stack );            
                                                                      
  pattern_ok = (!memcmp( pattern,                                     
ffc04150:	3c 80 00 00 	lis     r4,0                                   
ffc04154:	38 84 2b 24 	addi    r4,r4,11044                            
ffc04158:	38 a0 00 80 	li      r5,128                                 
ffc0415c:	48 00 f7 b1 	bl      ffc1390c <memcmp>                      
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
ffc04160:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  /*                                                                  
   *  Check for an out of bounds stack pointer or an overwrite        
   */                                                                 
  sp_ok = Stack_check_Frame_pointer_in_range( the_stack );            
                                                                      
  pattern_ok = (!memcmp( pattern,                                     
ffc04164:	7c 64 00 34 	cntlzw  r4,r3                                  
ffc04168:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
ffc0416c:	41 9e 00 0c 	beq-    cr7,ffc04178 <rtems_stack_checker_switch_extension+0x68><== NEVER TAKEN
ffc04170:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc04174:	40 be 00 0c 	bne+    cr7,ffc04180 <rtems_stack_checker_switch_extension+0x70>
    Stack_check_report_blown_task( running, pattern_ok );             
ffc04178:	7f c3 f3 78 	mr      r3,r30                                 
ffc0417c:	4b ff fe c1 	bl      ffc0403c <Stack_check_report_blown_task>
  }                                                                   
}                                                                     
ffc04180:	39 7f 00 18 	addi    r11,r31,24                             
ffc04184:	4b ff c6 28 	b       ffc007ac <_restgpr_29_x>               
                                                                      

ffc0dd78 <rtems_string_to_double>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0dd78:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0dd7c:	7c 08 02 a6 	mflr    r0                                     
ffc0dd80:	bf a1 00 1c 	stmw    r29,28(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0dd84:	7c 9e 23 79 	mr.     r30,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0dd88:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0dd8c:	90 01 00 34 	stw     r0,52(r1)                              
ffc0dd90:	7c bd 2b 78 	mr      r29,r5                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0dd94:	38 60 00 09 	li      r3,9                                   
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0dd98:	db e1 00 28 	stfd    f31,40(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0dd9c:	41 82 00 78 	beq-    ffc0de14 <rtems_string_to_double+0x9c> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0dda0:	48 00 34 ed 	bl      ffc1128c <__errno>                     
  *n    = 0;                                                          
ffc0dda4:	3d 20 ff c2 	lis     r9,-62                                 
ffc0dda8:	c8 09 eb 48 	lfd     f0,-5304(r9)                           
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0ddac:	38 00 00 00 	li      r0,0                                   
ffc0ddb0:	90 03 00 00 	stw     r0,0(r3)                               
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0ddb4:	38 81 00 08 	addi    r4,r1,8                                
ffc0ddb8:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0ddbc:	d8 1e 00 00 	stfd    f0,0(r30)                              
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0ddc0:	48 00 62 11 	bl      ffc13fd0 <strtod>                      
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0ddc4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0ddc8:	ff e0 08 90 	fmr     f31,f1                                 
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0ddcc:	41 9e 00 0c 	beq-    cr7,ffc0ddd8 <rtems_string_to_double+0x60>
    *endptr = end;                                                    
ffc0ddd0:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0ddd4:	90 1d 00 00 	stw     r0,0(r29)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0ddd8:	80 01 00 08 	lwz     r0,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0dddc:	38 60 00 0b 	li      r3,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0dde0:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc0dde4:	41 9e 00 30 	beq-    cr7,ffc0de14 <rtems_string_to_double+0x9c>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0dde8:	3d 20 ff c2 	lis     r9,-62                                 
ffc0ddec:	c8 09 0f b8 	lfd     f0,4024(r9)                            
ffc0ddf0:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0ddf4:	40 9d 00 18 	ble-    cr7,ffc0de0c <rtems_string_to_double+0x94>
ffc0ddf8:	48 00 34 95 	bl      ffc1128c <__errno>                     
ffc0ddfc:	80 03 00 00 	lwz     r0,0(r3)                               
      return RTEMS_INVALID_NUMBER;                                    
ffc0de00:	38 60 00 0a 	li      r3,10                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0de04:	2f 80 00 22 	cmpwi   cr7,r0,34                              
ffc0de08:	41 9e 00 0c 	beq-    cr7,ffc0de14 <rtems_string_to_double+0x9c><== ALWAYS TAKEN
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0de0c:	db fe 00 00 	stfd    f31,0(r30)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0de10:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0de14:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0de18:	bb a1 00 1c 	lmw     r29,28(r1)                             
ffc0de1c:	7c 08 03 a6 	mtlr    r0                                     
ffc0de20:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc0de24:	38 21 00 30 	addi    r1,r1,48                               
ffc0de28:	4e 80 00 20 	blr                                            
                                                                      

ffc0de2c <rtems_string_to_float>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0de2c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0de30:	7c 08 02 a6 	mflr    r0                                     
ffc0de34:	bf a1 00 1c 	stmw    r29,28(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0de38:	7c 9e 23 79 	mr.     r30,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0de3c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0de40:	90 01 00 34 	stw     r0,52(r1)                              
ffc0de44:	7c bd 2b 78 	mr      r29,r5                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0de48:	38 60 00 09 	li      r3,9                                   
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0de4c:	db e1 00 28 	stfd    f31,40(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0de50:	41 82 00 74 	beq-    ffc0dec4 <rtems_string_to_float+0x98>  
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0de54:	48 00 34 39 	bl      ffc1128c <__errno>                     
ffc0de58:	38 00 00 00 	li      r0,0                                   
ffc0de5c:	90 03 00 00 	stw     r0,0(r3)                               
  *n    = 0;                                                          
ffc0de60:	38 00 00 00 	li      r0,0                                   
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0de64:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0de68:	90 1e 00 00 	stw     r0,0(r30)                              
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0de6c:	38 81 00 08 	addi    r4,r1,8                                
ffc0de70:	48 00 61 79 	bl      ffc13fe8 <strtof>                      
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0de74:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
ffc0de78:	ff e0 08 90 	fmr     f31,f1                                 
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0de7c:	41 9e 00 0c 	beq-    cr7,ffc0de88 <rtems_string_to_float+0x5c>
    *endptr = end;                                                    
ffc0de80:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0de84:	90 1d 00 00 	stw     r0,0(r29)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0de88:	80 01 00 08 	lwz     r0,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0de8c:	38 60 00 0b 	li      r3,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0de90:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc0de94:	41 9e 00 30 	beq-    cr7,ffc0dec4 <rtems_string_to_float+0x98>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0de98:	3d 20 ff c2 	lis     r9,-62                                 
ffc0de9c:	c0 09 0f c0 	lfs     f0,4032(r9)                            
ffc0dea0:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0dea4:	40 9d 00 18 	ble-    cr7,ffc0debc <rtems_string_to_float+0x90>
ffc0dea8:	48 00 33 e5 	bl      ffc1128c <__errno>                     
ffc0deac:	80 03 00 00 	lwz     r0,0(r3)                               
      return RTEMS_INVALID_NUMBER;                                    
ffc0deb0:	38 60 00 0a 	li      r3,10                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0deb4:	2f 80 00 22 	cmpwi   cr7,r0,34                              
ffc0deb8:	41 9e 00 0c 	beq-    cr7,ffc0dec4 <rtems_string_to_float+0x98><== ALWAYS TAKEN
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0debc:	d3 fe 00 00 	stfs    f31,0(r30)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0dec0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0dec4:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0dec8:	bb a1 00 1c 	lmw     r29,28(r1)                             
ffc0decc:	7c 08 03 a6 	mtlr    r0                                     
ffc0ded0:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc0ded4:	38 21 00 30 	addi    r1,r1,48                               
ffc0ded8:	4e 80 00 20 	blr                                            
                                                                      

ffc0df7c <rtems_string_to_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0df7c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0df80:	7c 08 02 a6 	mflr    r0                                     
ffc0df84:	bf 61 00 1c 	stmw    r27,28(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0df88:	7c 9d 23 79 	mr.     r29,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0df8c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0df90:	90 01 00 34 	stw     r0,52(r1)                              
ffc0df94:	7c be 2b 78 	mr      r30,r5                                 
ffc0df98:	7c dc 33 78 	mr      r28,r6                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0df9c:	38 60 00 09 	li      r3,9                                   
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0dfa0:	41 82 00 a0 	beq-    ffc0e040 <rtems_string_to_long_long+0xc4>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0dfa4:	48 00 32 e9 	bl      ffc1128c <__errno>                     
ffc0dfa8:	38 00 00 00 	li      r0,0                                   
  *n    = 0;                                                          
ffc0dfac:	39 20 00 00 	li      r9,0                                   
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0dfb0:	90 03 00 00 	stw     r0,0(r3)                               
  *n    = 0;                                                          
ffc0dfb4:	39 40 00 00 	li      r10,0                                  
ffc0dfb8:	91 3d 00 00 	stw     r9,0(r29)                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0dfbc:	7f 85 e3 78 	mr      r5,r28                                 
ffc0dfc0:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0dfc4:	91 5d 00 04 	stw     r10,4(r29)                             
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0dfc8:	38 81 00 08 	addi    r4,r1,8                                
ffc0dfcc:	48 00 62 b5 	bl      ffc14280 <strtoll>                     
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0dfd0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0dfd4:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0dfd8:	7c 9b 23 78 	mr      r27,r4                                 
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0dfdc:	41 9e 00 0c 	beq-    cr7,ffc0dfe8 <rtems_string_to_long_long+0x6c>
    *endptr = end;                                                    
ffc0dfe0:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0dfe4:	90 1e 00 00 	stw     r0,0(r30)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0dfe8:	80 01 00 08 	lwz     r0,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0dfec:	38 60 00 0b 	li      r3,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0dff0:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc0dff4:	41 9e 00 4c 	beq-    cr7,ffc0e040 <rtems_string_to_long_long+0xc4>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0dff8:	6f 80 80 00 	xoris   r0,r28,32768                           
ffc0dffc:	2f 80 ff ff 	cmpwi   cr7,r0,-1                              
ffc0e000:	40 9e 00 0c 	bne-    cr7,ffc0e00c <rtems_string_to_long_long+0x90>
ffc0e004:	2f 9b ff ff 	cmpwi   cr7,r27,-1                             
ffc0e008:	41 9e 00 18 	beq-    cr7,ffc0e020 <rtems_string_to_long_long+0xa4><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MIN                                                
    /* there was an underflow */                                      
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
ffc0e00c:	3c 00 80 00 	lis     r0,-32768                              
ffc0e010:	7f 9c 00 00 	cmpw    cr7,r28,r0                             
ffc0e014:	40 be 00 20 	bne+    cr7,ffc0e034 <rtems_string_to_long_long+0xb8>
ffc0e018:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0e01c:	40 be 00 18 	bne+    cr7,ffc0e034 <rtems_string_to_long_long+0xb8><== NEVER TAKEN
ffc0e020:	48 00 32 6d 	bl      ffc1128c <__errno>                     
ffc0e024:	80 03 00 00 	lwz     r0,0(r3)                               
      return RTEMS_INVALID_NUMBER;                                    
ffc0e028:	38 60 00 0a 	li      r3,10                                  
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MIN                                                
    /* there was an underflow */                                      
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
ffc0e02c:	2f 80 00 22 	cmpwi   cr7,r0,34                              
ffc0e030:	41 9e 00 10 	beq-    cr7,ffc0e040 <rtems_string_to_long_long+0xc4>
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e034:	93 9d 00 00 	stw     r28,0(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0e038:	38 60 00 00 	li      r3,0                                   
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e03c:	93 7d 00 04 	stw     r27,4(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e040:	39 61 00 30 	addi    r11,r1,48                              
ffc0e044:	4b ff 4e 88 	b       ffc02ecc <_restgpr_27_x>               
                                                                      

ffc0e0f4 <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0e0f4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e0f8:	7c 08 02 a6 	mflr    r0                                     
ffc0e0fc:	bf 81 00 18 	stmw    r28,24(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e100:	7c 9f 23 79 	mr.     r31,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0e104:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0e108:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e10c:	7c bd 2b 78 	mr      r29,r5                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e110:	38 00 00 09 	li      r0,9                                   
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e114:	41 82 00 6c 	beq-    ffc0e180 <rtems_string_to_pointer+0x8c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e118:	48 00 31 75 	bl      ffc1128c <__errno>                     
ffc0e11c:	38 00 00 00 	li      r0,0                                   
ffc0e120:	90 03 00 00 	stw     r0,0(r3)                               
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
ffc0e124:	38 81 00 08 	addi    r4,r1,8                                
ffc0e128:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0e12c:	90 1f 00 00 	stw     r0,0(r31)                              
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
ffc0e130:	38 a0 00 10 	li      r5,16                                  
ffc0e134:	48 00 66 ad 	bl      ffc147e0 <strtoul>                     
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e138:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
ffc0e13c:	7c 7c 1b 78 	mr      r28,r3                                 
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e140:	41 9e 00 0c 	beq-    cr7,ffc0e14c <rtems_string_to_pointer+0x58>
    *endptr = end;                                                    
ffc0e144:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0e148:	90 1d 00 00 	stw     r0,0(r29)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e14c:	81 21 00 08 	lwz     r9,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0e150:	38 00 00 0b 	li      r0,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e154:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0e158:	41 9e 00 28 	beq-    cr7,ffc0e180 <rtems_string_to_pointer+0x8c>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e15c:	2f 9c ff ff 	cmpwi   cr7,r28,-1                             
ffc0e160:	40 be 00 18 	bne+    cr7,ffc0e178 <rtems_string_to_pointer+0x84><== ALWAYS TAKEN
ffc0e164:	48 00 31 29 	bl      ffc1128c <__errno>                     <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
ffc0e168:	38 00 00 0a 	li      r0,10                                  <== NOT EXECUTED
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e16c:	81 23 00 00 	lwz     r9,0(r3)                               <== NOT EXECUTED
ffc0e170:	2f 89 00 22 	cmpwi   cr7,r9,34                              <== NOT EXECUTED
ffc0e174:	41 9e 00 0c 	beq-    cr7,ffc0e180 <rtems_string_to_pointer+0x8c><== NOT EXECUTED
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
ffc0e178:	93 9f 00 00 	stw     r28,0(r31)                             
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0e17c:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc0e180:	39 61 00 28 	addi    r11,r1,40                              
ffc0e184:	7c 03 03 78 	mr      r3,r0                                  
ffc0e188:	4b ff 4d 48 	b       ffc02ed0 <_restgpr_28_x>               
                                                                      

ffc0e208 <rtems_string_to_unsigned_int>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0e208:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e20c:	7c 08 02 a6 	mflr    r0                                     
ffc0e210:	bf 81 00 18 	stmw    r28,24(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e214:	7c 9d 23 79 	mr.     r29,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0e218:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e21c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e220:	7c be 2b 78 	mr      r30,r5                                 
ffc0e224:	7c dc 33 78 	mr      r28,r6                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e228:	38 00 00 09 	li      r0,9                                   
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e22c:	41 82 00 6c 	beq-    ffc0e298 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e230:	48 00 30 5d 	bl      ffc1128c <__errno>                     
ffc0e234:	38 00 00 00 	li      r0,0                                   
ffc0e238:	90 03 00 00 	stw     r0,0(r3)                               
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e23c:	7f 85 e3 78 	mr      r5,r28                                 
ffc0e240:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0e244:	90 1d 00 00 	stw     r0,0(r29)                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e248:	38 81 00 08 	addi    r4,r1,8                                
ffc0e24c:	48 00 65 95 	bl      ffc147e0 <strtoul>                     
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e250:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e254:	7c 7c 1b 78 	mr      r28,r3                                 
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e258:	41 9e 00 0c 	beq-    cr7,ffc0e264 <rtems_string_to_unsigned_int+0x5c>
    *endptr = end;                                                    
ffc0e25c:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0e260:	90 1e 00 00 	stw     r0,0(r30)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e264:	81 21 00 08 	lwz     r9,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0e268:	38 00 00 0b 	li      r0,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e26c:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc0e270:	41 9e 00 28 	beq-    cr7,ffc0e298 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e274:	2f 9c ff ff 	cmpwi   cr7,r28,-1                             
ffc0e278:	40 be 00 18 	bne+    cr7,ffc0e290 <rtems_string_to_unsigned_int+0x88>
ffc0e27c:	48 00 30 11 	bl      ffc1128c <__errno>                     
      return RTEMS_INVALID_NUMBER;                                    
ffc0e280:	38 00 00 0a 	li      r0,10                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e284:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e288:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e28c:	41 9e 00 0c 	beq-    cr7,ffc0e298 <rtems_string_to_unsigned_int+0x90><== ALWAYS TAKEN
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e290:	93 9d 00 00 	stw     r28,0(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0e294:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc0e298:	39 61 00 28 	addi    r11,r1,40                              
ffc0e29c:	7c 03 03 78 	mr      r3,r0                                  
ffc0e2a0:	4b ff 4c 30 	b       ffc02ed0 <_restgpr_28_x>               
                                                                      

ffc0e358 <rtems_string_to_unsigned_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0e358:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e35c:	7c 08 02 a6 	mflr    r0                                     
ffc0e360:	bf 81 00 18 	stmw    r28,24(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e364:	7c 9d 23 79 	mr.     r29,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0e368:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e36c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e370:	7c be 2b 78 	mr      r30,r5                                 
ffc0e374:	7c dc 33 78 	mr      r28,r6                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e378:	38 00 00 09 	li      r0,9                                   
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e37c:	41 82 00 6c 	beq-    ffc0e3e8 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e380:	48 00 2f 0d 	bl      ffc1128c <__errno>                     
ffc0e384:	38 00 00 00 	li      r0,0                                   
ffc0e388:	90 03 00 00 	stw     r0,0(r3)                               
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e38c:	7f 85 e3 78 	mr      r5,r28                                 
ffc0e390:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0e394:	90 1d 00 00 	stw     r0,0(r29)                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e398:	38 81 00 08 	addi    r4,r1,8                                
ffc0e39c:	48 00 64 45 	bl      ffc147e0 <strtoul>                     
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e3a0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e3a4:	7c 7c 1b 78 	mr      r28,r3                                 
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e3a8:	41 9e 00 0c 	beq-    cr7,ffc0e3b4 <rtems_string_to_unsigned_long+0x5c>
    *endptr = end;                                                    
ffc0e3ac:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0e3b0:	90 1e 00 00 	stw     r0,0(r30)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e3b4:	81 21 00 08 	lwz     r9,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0e3b8:	38 00 00 0b 	li      r0,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e3bc:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc0e3c0:	41 9e 00 28 	beq-    cr7,ffc0e3e8 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e3c4:	2f 9c ff ff 	cmpwi   cr7,r28,-1                             
ffc0e3c8:	40 be 00 18 	bne+    cr7,ffc0e3e0 <rtems_string_to_unsigned_long+0x88>
ffc0e3cc:	48 00 2e c1 	bl      ffc1128c <__errno>                     
      return RTEMS_INVALID_NUMBER;                                    
ffc0e3d0:	38 00 00 0a 	li      r0,10                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e3d4:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e3d8:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e3dc:	41 9e 00 0c 	beq-    cr7,ffc0e3e8 <rtems_string_to_unsigned_long+0x90><== ALWAYS TAKEN
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e3e0:	93 9d 00 00 	stw     r28,0(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0e3e4:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc0e3e8:	39 61 00 28 	addi    r11,r1,40                              
ffc0e3ec:	7c 03 03 78 	mr      r3,r0                                  
ffc0e3f0:	4b ff 4a e0 	b       ffc02ed0 <_restgpr_28_x>               
                                                                      

ffc0e2a4 <rtems_string_to_unsigned_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
ffc0e2a4:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e2a8:	7c 08 02 a6 	mflr    r0                                     
ffc0e2ac:	bf 61 00 1c 	stmw    r27,28(r1)                             
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e2b0:	7c 9d 23 79 	mr.     r29,r4                                 
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
ffc0e2b4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e2b8:	90 01 00 34 	stw     r0,52(r1)                              
ffc0e2bc:	7c be 2b 78 	mr      r30,r5                                 
ffc0e2c0:	7c dc 33 78 	mr      r28,r6                                 
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e2c4:	38 60 00 09 	li      r3,9                                   
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
ffc0e2c8:	41 82 00 88 	beq-    ffc0e350 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e2cc:	48 00 2f c1 	bl      ffc1128c <__errno>                     
ffc0e2d0:	38 00 00 00 	li      r0,0                                   
  *n    = 0;                                                          
ffc0e2d4:	39 20 00 00 	li      r9,0                                   
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e2d8:	90 03 00 00 	stw     r0,0(r3)                               
  *n    = 0;                                                          
ffc0e2dc:	39 40 00 00 	li      r10,0                                  
ffc0e2e0:	91 3d 00 00 	stw     r9,0(r29)                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e2e4:	7f 85 e3 78 	mr      r5,r28                                 
ffc0e2e8:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
ffc0e2ec:	91 5d 00 04 	stw     r10,4(r29)                             
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e2f0:	38 81 00 08 	addi    r4,r1,8                                
ffc0e2f4:	48 00 65 0d 	bl      ffc14800 <strtoull>                    
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e2f8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
ffc0e2fc:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0e300:	7c 9b 23 78 	mr      r27,r4                                 
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
ffc0e304:	41 9e 00 0c 	beq-    cr7,ffc0e310 <rtems_string_to_unsigned_long_long+0x6c>
    *endptr = end;                                                    
ffc0e308:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0e30c:	90 1e 00 00 	stw     r0,0(r30)                              
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e310:	80 01 00 08 	lwz     r0,8(r1)                               
    return RTEMS_NOT_DEFINED;                                         
ffc0e314:	38 60 00 0b 	li      r3,11                                  
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
ffc0e318:	7f 80 f8 00 	cmpw    cr7,r0,r31                             
ffc0e31c:	41 9e 00 34 	beq-    cr7,ffc0e350 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e320:	2f 9c ff ff 	cmpwi   cr7,r28,-1                             
ffc0e324:	40 be 00 20 	bne+    cr7,ffc0e344 <rtems_string_to_unsigned_long_long+0xa0>
ffc0e328:	2f 9b ff ff 	cmpwi   cr7,r27,-1                             
ffc0e32c:	40 be 00 18 	bne+    cr7,ffc0e344 <rtems_string_to_unsigned_long_long+0xa0><== NEVER TAKEN
ffc0e330:	48 00 2f 5d 	bl      ffc1128c <__errno>                     
ffc0e334:	80 03 00 00 	lwz     r0,0(r3)                               
      return RTEMS_INVALID_NUMBER;                                    
ffc0e338:	38 60 00 0a 	li      r3,10                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
ffc0e33c:	2f 80 00 22 	cmpwi   cr7,r0,34                              
ffc0e340:	41 9e 00 10 	beq-    cr7,ffc0e350 <rtems_string_to_unsigned_long_long+0xac><== ALWAYS TAKEN
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e344:	93 9d 00 00 	stw     r28,0(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
ffc0e348:	38 60 00 00 	li      r3,0                                   
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
ffc0e34c:	93 7d 00 04 	stw     r27,4(r29)                             
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e350:	39 61 00 30 	addi    r11,r1,48                              
ffc0e354:	4b ff 4b 78 	b       ffc02ecc <_restgpr_27_x>               
                                                                      

ffc03d74 <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
ffc03d74:	94 21 fe 28 	stwu    r1,-472(r1)                            
ffc03d78:	7c 08 02 a6 	mflr    r0                                     
ffc03d7c:	be 01 01 98 	stmw    r16,408(r1)                            
ffc03d80:	7c 79 1b 78 	mr      r25,r3                                 
ffc03d84:	7c 98 23 78 	mr      r24,r4                                 
ffc03d88:	90 01 01 dc 	stw     r0,476(r1)                             
ffc03d8c:	7c b4 2b 78 	mr      r20,r5                                 
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
ffc03d90:	48 01 18 85 	bl      ffc15614 <strlen>                      
ffc03d94:	38 a0 00 00 	li      r5,0                                   
ffc03d98:	7c 64 1b 78 	mr      r4,r3                                  
ffc03d9c:	38 c1 00 0c 	addi    r6,r1,12                               
ffc03da0:	7f 23 cb 78 	mr      r3,r25                                 
ffc03da4:	38 e0 00 00 	li      r7,0                                   
ffc03da8:	48 00 0c 5d 	bl      ffc04a04 <rtems_filesystem_evaluate_path>
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
ffc03dac:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc03db0:	40 82 01 98 	bne-    ffc03f48 <rtems_tarfs_load+0x1d4>      
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
ffc03db4:	80 01 00 18 	lwz     r0,24(r1)                              
ffc03db8:	3d 20 ff c2 	lis     r9,-62                                 
ffc03dbc:	39 29 17 cc 	addi    r9,r9,6092                             
ffc03dc0:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc03dc4:	3a 40 00 00 	li      r18,0                                  
ffc03dc8:	41 be 00 24 	beq+    cr7,ffc03dec <rtems_tarfs_load+0x78>   
ffc03dcc:	3d 20 ff c2 	lis     r9,-62                                 
ffc03dd0:	39 29 1e f4 	addi    r9,r9,7924                             
ffc03dd4:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc03dd8:	7f b2 eb 78 	mr      r18,r29                                
ffc03ddc:	40 be 01 6c 	bne+    cr7,ffc03f48 <rtems_tarfs_load+0x1d4>  <== ALWAYS TAKEN
ffc03de0:	48 00 00 0c 	b       ffc03dec <rtems_tarfs_load+0x78>       <== NOT EXECUTED
ffc03de4:	7f d2 f3 78 	mr      r18,r30                                
ffc03de8:	48 00 00 24 	b       ffc03e0c <rtems_tarfs_load+0x98>       
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03dec:	3e a0 ff c2 	lis     r21,-62                                
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
ffc03df0:	3e c0 ff c2 	lis     r22,-62                                
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03df4:	3a b5 18 14 	addi    r21,r21,6164                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc03df8:	3b 61 00 34 	addi    r27,r1,52                              
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
ffc03dfc:	3b 81 00 20 	addi    r28,r1,32                              
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
ffc03e00:	3b 41 00 08 	addi    r26,r1,8                               
     * - 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);                              
ffc03e04:	3b e1 00 98 	addi    r31,r1,152                             
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
ffc03e08:	3a d6 e4 51 	addi    r22,r22,-7087                          
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
ffc03e0c:	3b d2 02 00 	addi    r30,r18,512                            
ffc03e10:	7f 9e a0 40 	cmplw   cr7,r30,r20                            
ffc03e14:	41 9d 01 38 	bgt-    cr7,ffc03f4c <rtems_tarfs_load+0x1d8>  <== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
ffc03e18:	7e 58 92 14 	add     r18,r24,r18                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03e1c:	38 72 01 01 	addi    r3,r18,257                             
ffc03e20:	7e a4 ab 78 	mr      r4,r21                                 
ffc03e24:	38 a0 00 05 	li      r5,5                                   
ffc03e28:	48 01 18 91 	bl      ffc156b8 <strncmp>                     
ffc03e2c:	7c 77 1b 79 	mr.     r23,r3                                 
ffc03e30:	40 82 01 1c 	bne-    ffc03f4c <rtems_tarfs_load+0x1d8>      
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc03e34:	38 a0 00 63 	li      r5,99                                  
ffc03e38:	7e 44 93 78 	mr      r4,r18                                 
ffc03e3c:	7f 63 db 78 	mr      r3,r27                                 
ffc03e40:	48 01 19 c1 	bl      ffc15800 <strncpy>                     
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
ffc03e44:	9a e1 00 97 	stb     r23,151(r1)                            
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc03e48:	38 80 00 08 	li      r4,8                                   
ffc03e4c:	38 72 00 64 	addi    r3,r18,100                             
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
ffc03e50:	8a 32 00 9c 	lbz     r17,156(r18)                           
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc03e54:	48 00 82 01 	bl      ffc0c054 <_rtems_octal2ulong>          
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
ffc03e58:	38 80 00 0c 	li      r4,12                                  
                                                                      
    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);                
ffc03e5c:	7c 73 1b 78 	mr      r19,r3                                 
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
ffc03e60:	38 72 00 7c 	addi    r3,r18,124                             
ffc03e64:	48 00 81 f1 	bl      ffc0c054 <_rtems_octal2ulong>          
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc03e68:	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);               
ffc03e6c:	7c 77 1b 78 	mr      r23,r3                                 
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc03e70:	38 72 00 94 	addi    r3,r18,148                             
ffc03e74:	48 00 81 e1 	bl      ffc0c054 <_rtems_octal2ulong>          
ffc03e78:	7c 70 1b 78 	mr      r16,r3                                 
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
ffc03e7c:	7e 43 93 78 	mr      r3,r18                                 
ffc03e80:	48 00 82 21 	bl      ffc0c0a0 <_rtems_tar_header_checksum>  
ffc03e84:	7f 83 80 00 	cmpw    cr7,r3,r16                             
ffc03e88:	40 9e 00 c4 	bne-    cr7,ffc03f4c <rtems_tarfs_load+0x1d8>  <== 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) {                                        
ffc03e8c:	2f 91 00 35 	cmpwi   cr7,r17,53                             
ffc03e90:	40 be 00 50 	bne+    cr7,ffc03ee0 <rtems_tarfs_load+0x16c>  
      strcpy(full_filename, mountpoint);                              
ffc03e94:	7f 24 cb 78 	mr      r4,r25                                 
ffc03e98:	7f e3 fb 78 	mr      r3,r31                                 
ffc03e9c:	48 01 12 a5 	bl      ffc15140 <strcpy>                      
      if (full_filename[strlen(full_filename)-1] != '/')              
ffc03ea0:	7f e3 fb 78 	mr      r3,r31                                 
ffc03ea4:	48 01 17 71 	bl      ffc15614 <strlen>                      
ffc03ea8:	7c 7a 1a 14 	add     r3,r26,r3                              
ffc03eac:	88 03 00 8f 	lbz     r0,143(r3)                             
ffc03eb0:	2f 80 00 2f 	cmpwi   cr7,r0,47                              
ffc03eb4:	41 9e 00 10 	beq-    cr7,ffc03ec4 <rtems_tarfs_load+0x150>  <== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
ffc03eb8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc03ebc:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc03ec0:	48 01 11 45 	bl      ffc15004 <strcat>                      <== NOT EXECUTED
      strcat(full_filename, filename);                                
ffc03ec4:	7f 64 db 78 	mr      r4,r27                                 
ffc03ec8:	7f e3 fb 78 	mr      r3,r31                                 
ffc03ecc:	48 01 11 39 	bl      ffc15004 <strcat>                      
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
ffc03ed0:	7f e3 fb 78 	mr      r3,r31                                 
ffc03ed4:	38 80 01 ff 	li      r4,511                                 
ffc03ed8:	48 00 14 c1 	bl      ffc05398 <mkdir>                       
ffc03edc:	4b ff ff 08 	b       ffc03de4 <rtems_tarfs_load+0x70>       
     *        IMFS_create_node was ONLY passed a NULL when we created the
     *        root node.  We added a new IMFS_create_root_node() so this
     *        path no longer existed.  The result was simpler code which
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
ffc03ee0:	2f 91 00 30 	cmpwi   cr7,r17,48                             
ffc03ee4:	40 9e ff 00 	bne+    cr7,ffc03de4 <rtems_tarfs_load+0x70>   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
ffc03ee8:	39 61 00 0c 	addi    r11,r1,12                              
ffc03eec:	7c ab a4 aa 	lswi    r5,r11,20                              
ffc03ef0:	7c bc a5 aa 	stswi   r5,r28,20                              
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
ffc03ef4:	7f 63 db 78 	mr      r3,r27                                 
ffc03ef8:	7f 84 e3 78 	mr      r4,r28                                 
ffc03efc:	7f 45 d3 78 	mr      r5,r26                                 
ffc03f00:	48 00 8e 71 	bl      ffc0cd70 <IMFS_evaluate_for_make>      
ffc03f04:	7c 72 1b 79 	mr.     r18,r3                                 
ffc03f08:	40 a2 00 30 	bne+    ffc03f38 <rtems_tarfs_load+0x1c4>      <== NEVER TAKEN
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
ffc03f0c:	56 66 05 fe 	clrlwi  r6,r19,23                              
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
ffc03f10:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc03f14:	7f 83 e3 78 	mr      r3,r28                                 
ffc03f18:	38 80 00 06 	li      r4,6                                   
ffc03f1c:	60 c6 80 00 	ori     r6,r6,32768                            
ffc03f20:	38 e0 00 00 	li      r7,0                                   
ffc03f24:	48 00 87 c9 	bl      ffc0c6ec <IMFS_create_node>            
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
ffc03f28:	7c 18 f2 14 	add     r0,r24,r30                             
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
ffc03f2c:	92 e3 00 54 	stw     r23,84(r3)                             
ffc03f30:	92 43 00 50 	stw     r18,80(r3)                             
        node->info.linearfile.direct = &tar_image[offset];            
ffc03f34:	90 03 00 58 	stw     r0,88(r3)                              
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
ffc03f38:	3a f7 01 ff 	addi    r23,r23,511                            
      offset += 512 * nblocks;                                        
ffc03f3c:	56 f7 00 2c 	rlwinm  r23,r23,0,0,22                         
ffc03f40:	7f d7 f2 14 	add     r30,r23,r30                            
ffc03f44:	4b ff fe a0 	b       ffc03de4 <rtems_tarfs_load+0x70>       
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
     return -1;                                                       
ffc03f48:	3b a0 ff ff 	li      r29,-1                                 
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
ffc03f4c:	39 61 01 d8 	addi    r11,r1,472                             
ffc03f50:	7f a3 eb 78 	mr      r3,r29                                 
ffc03f54:	4b ff c6 34 	b       ffc00588 <_restgpr_16_x>               
                                                                      

ffc116f4 <rtems_task_mode>: ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set )
ffc116f4:	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                                       
)                                                                     
{                                                                     
ffc116f8:	7c 08 02 a6 	mflr    r0                                     
ffc116fc:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc11700:	90 01 00 0c 	stw     r0,12(r1)                              
ffc11704:	7c 60 1b 78 	mr      r0,r3                                  
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc11708:	38 60 00 09 	li      r3,9                                   
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
ffc1170c:	41 82 01 8c 	beq-    ffc11898 <rtems_task_mode+0x1a4>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
ffc11710:	3d 20 00 00 	lis     r9,0                                   
ffc11714:	81 69 31 bc 	lwz     r11,12732(r9)                          
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc11718:	81 0b 00 7c 	lwz     r8,124(r11)                            
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc1171c:	89 4b 00 74 	lbz     r10,116(r11)                           
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc11720:	2f 88 00 00 	cmpwi   cr7,r8,0                               
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
ffc11724:	81 2b 01 44 	lwz     r9,324(r11)                            
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc11728:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc1172c:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
ffc11730:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc11734:	41 9e 00 08 	beq-    cr7,ffc1173c <rtems_task_mode+0x48>    
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
ffc11738:	61 4a 02 00 	ori     r10,r10,512                            
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
ffc1173c:	89 09 00 08 	lbz     r8,8(r9)                               
ffc11740:	7d 08 00 34 	cntlzw  r8,r8                                  
ffc11744:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc11748:	55 08 50 2a 	rlwinm  r8,r8,10,0,21                          
ffc1174c:	7d 08 53 78 	or      r8,r8,r10                              
#ifndef ASM                                                           
                                                                      
static inline uint32_t   _CPU_ISR_Get_level( void )                   
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc11750:	39 40 00 00 	li      r10,0                                  
ffc11754:	7d 40 00 a6 	mfmsr   r10                                    
  if (msr & MSR_EE) return 0;                                         
ffc11758:	71 47 80 00 	andi.   r7,r10,32768                           
ffc1175c:	7c e0 00 26 	mfcr    r7                                     
ffc11760:	54 e7 1f fe 	rlwinm  r7,r7,3,31,31                          
  old_mode |= _ISR_Get_level();                                       
ffc11764:	7d 0a 3b 78 	or      r10,r8,r7                              
                                                                      
  *previous_mode_set = old_mode;                                      
ffc11768:	91 45 00 00 	stw     r10,0(r5)                              
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc1176c:	70 8a 01 00 	andi.   r10,r4,256                             
ffc11770:	41 82 00 14 	beq-    ffc11784 <rtems_task_mode+0x90>        
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
ffc11774:	70 07 01 00 	andi.   r7,r0,256                              
ffc11778:	7d 40 00 26 	mfcr    r10                                    
ffc1177c:	55 4a 1f fe 	rlwinm  r10,r10,3,31,31                        
ffc11780:	99 4b 00 74 	stb     r10,116(r11)                           
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
ffc11784:	70 8a 02 00 	andi.   r10,r4,512                             
ffc11788:	41 82 00 28 	beq-    ffc117b0 <rtems_task_mode+0xbc>        
    if ( _Modes_Is_timeslice(mode_set) ) {                            
ffc1178c:	70 0a 02 00 	andi.   r10,r0,512                             
ffc11790:	41 82 00 1c 	beq-    ffc117ac <rtems_task_mode+0xb8>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
ffc11794:	39 40 00 01 	li      r10,1                                  
ffc11798:	91 4b 00 7c 	stw     r10,124(r11)                           
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
ffc1179c:	3d 40 00 00 	lis     r10,0                                  
ffc117a0:	81 4a 27 88 	lwz     r10,10120(r10)                         
ffc117a4:	91 4b 00 78 	stw     r10,120(r11)                           
ffc117a8:	48 00 00 08 	b       ffc117b0 <rtems_task_mode+0xbc>        
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
ffc117ac:	91 4b 00 7c 	stw     r10,124(r11)                           
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
ffc117b0:	70 8b 00 01 	andi.   r11,r4,1                               
ffc117b4:	41 82 00 2c 	beq-    ffc117e0 <rtems_task_mode+0xec>        
}                                                                     
                                                                      
static inline void _CPU_ISR_Set_level( uint32_t   level )             
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc117b8:	39 60 00 00 	li      r11,0                                  
ffc117bc:	7d 60 00 a6 	mfmsr   r11                                    
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc117c0:	70 07 00 01 	andi.   r7,r0,1                                
ffc117c4:	40 82 00 10 	bne-    ffc117d4 <rtems_task_mode+0xe0>        
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc117c8:	7d 50 42 a6 	mfsprg  r10,0                                  
    msr |= ppc_interrupt_get_disable_mask();                          
ffc117cc:	7d 4b 5b 78 	or      r11,r10,r11                            
ffc117d0:	48 00 00 0c 	b       ffc117dc <rtems_task_mode+0xe8>        
ffc117d4:	7d 50 42 a6 	mfsprg  r10,0                                  
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc117d8:	7d 6b 50 78 	andc    r11,r11,r10                            
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc117dc:	7d 60 01 24 	mtmsr   r11                                    
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc117e0:	70 8a 04 00 	andi.   r10,r4,1024                            
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
ffc117e4:	39 60 00 00 	li      r11,0                                  
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc117e8:	41 82 00 58 	beq-    ffc11840 <rtems_task_mode+0x14c>       
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
ffc117ec:	70 07 04 00 	andi.   r7,r0,1024                             
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc117f0:	89 49 00 08 	lbz     r10,8(r9)                              
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
ffc117f4:	7c 00 00 26 	mfcr    r0                                     
ffc117f8:	54 00 1f fe 	rlwinm  r0,r0,3,31,31                          
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc117fc:	7f 8a 00 00 	cmpw    cr7,r10,r0                             
ffc11800:	41 9e 00 40 	beq-    cr7,ffc11840 <rtems_task_mode+0x14c>   
      asr->is_enabled = is_asr_enabled;                               
ffc11804:	98 09 00 08 	stb     r0,8(r9)                               
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc11808:	7c 00 00 a6 	mfmsr   r0                                     
ffc1180c:	7d 70 42 a6 	mfsprg  r11,0                                  
ffc11810:	7c 0b 58 78 	andc    r11,r0,r11                             
ffc11814:	7d 60 01 24 	mtmsr   r11                                    
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
ffc11818:	81 69 00 18 	lwz     r11,24(r9)                             
    information->signals_pending = information->signals_posted;       
ffc1181c:	81 49 00 14 	lwz     r10,20(r9)                             
    information->signals_posted  = _signals;                          
ffc11820:	91 69 00 14 	stw     r11,20(r9)                             
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
ffc11824:	91 49 00 18 	stw     r10,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc11828:	7c 00 01 24 	mtmsr   r0                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
ffc1182c:	80 09 00 14 	lwz     r0,20(r9)                              
        needs_asr_dispatching = true;                                 
ffc11830:	39 60 00 01 	li      r11,1                                  
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
      asr->is_enabled = is_asr_enabled;                               
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
ffc11834:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc11838:	40 9e 00 08 	bne-    cr7,ffc11840 <rtems_task_mode+0x14c>   
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
ffc1183c:	39 60 00 00 	li      r11,0                                  
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc11840:	3d 20 00 00 	lis     r9,0                                   
ffc11844:	80 09 27 d4 	lwz     r0,10196(r9)                           
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc11848:	38 60 00 00 	li      r3,0                                   
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc1184c:	2f 80 00 03 	cmpwi   cr7,r0,3                               
ffc11850:	40 be 00 48 	bne+    cr7,ffc11898 <rtems_task_mode+0x1a4>   <== NEVER TAKEN
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
ffc11854:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
ffc11858:	3d 40 00 00 	lis     r10,0                                  
ffc1185c:	39 4a 31 b0 	addi    r10,r10,12720                          
ffc11860:	81 2a 00 0c 	lwz     r9,12(r10)                             
                                                                      
  if ( are_signals_pending ||                                         
ffc11864:	40 9e 00 1c 	bne-    cr7,ffc11880 <rtems_task_mode+0x18c>   
ffc11868:	80 0a 00 10 	lwz     r0,16(r10)                             
ffc1186c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc11870:	41 9e 00 28 	beq-    cr7,ffc11898 <rtems_task_mode+0x1a4>   
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
ffc11874:	88 09 00 74 	lbz     r0,116(r9)                             
ffc11878:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc1187c:	41 9e 00 1c 	beq-    cr7,ffc11898 <rtems_task_mode+0x1a4>   <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
ffc11880:	3d 20 00 00 	lis     r9,0                                   
ffc11884:	38 00 00 01 	li      r0,1                                   
ffc11888:	39 29 31 b0 	addi    r9,r9,12720                            
ffc1188c:	98 09 00 18 	stb     r0,24(r9)                              
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
ffc11890:	4b ff 97 99 	bl      ffc0b028 <_Thread_Dispatch>            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc11894:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc11898:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc1189c:	38 21 00 08 	addi    r1,r1,8                                
ffc118a0:	7c 08 03 a6 	mtlr    r0                                     
ffc118a4:	4e 80 00 20 	blr                                            
                                                                      

ffc0c674 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
ffc0c674:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0c678:	7c 08 02 a6 	mflr    r0                                     
ffc0c67c:	bf c1 00 18 	stmw    r30,24(r1)                             
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0c680:	7c 9f 23 79 	mr.     r31,r4                                 
rtems_status_code rtems_task_set_priority(                            
  rtems_id             id,                                            
  rtems_task_priority  new_priority,                                  
  rtems_task_priority *old_priority                                   
)                                                                     
{                                                                     
ffc0c684:	7c be 2b 78 	mr      r30,r5                                 
ffc0c688:	90 01 00 24 	stw     r0,36(r1)                              
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0c68c:	41 82 00 18 	beq-    ffc0c6a4 <rtems_task_set_priority+0x30>
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
ffc0c690:	3d 20 00 00 	lis     r9,0                                   
ffc0c694:	89 29 26 e4 	lbz     r9,9956(r9)                            
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
ffc0c698:	38 00 00 13 	li      r0,19                                  
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0c69c:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc0c6a0:	41 9d 00 6c 	bgt-    cr7,ffc0c70c <rtems_task_set_priority+0x98>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
ffc0c6a4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc0c6a8:	38 00 00 09 	li      r0,9                                   
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
ffc0c6ac:	41 9e 00 60 	beq-    cr7,ffc0c70c <rtems_task_set_priority+0x98>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0c6b0:	38 81 00 08 	addi    r4,r1,8                                
ffc0c6b4:	48 00 22 89 	bl      ffc0e93c <_Thread_Get>                 
  switch ( location ) {                                               
ffc0c6b8:	80 01 00 08 	lwz     r0,8(r1)                               
ffc0c6bc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0c6c0:	40 9e 00 48 	bne-    cr7,ffc0c708 <rtems_task_set_priority+0x94>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
ffc0c6c4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
ffc0c6c8:	80 03 00 14 	lwz     r0,20(r3)                              
ffc0c6cc:	90 1e 00 00 	stw     r0,0(r30)                              
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
ffc0c6d0:	41 9e 00 2c 	beq-    cr7,ffc0c6fc <rtems_task_set_priority+0x88>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
ffc0c6d4:	80 03 00 1c 	lwz     r0,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;                     
ffc0c6d8:	93 e3 00 18 	stw     r31,24(r3)                             
        if ( the_thread->resource_count == 0 ||                       
ffc0c6dc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0c6e0:	41 9e 00 10 	beq-    cr7,ffc0c6f0 <rtems_task_set_priority+0x7c>
ffc0c6e4:	80 03 00 14 	lwz     r0,20(r3)                              
ffc0c6e8:	7f 80 f8 40 	cmplw   cr7,r0,r31                             
ffc0c6ec:	40 9d 00 10 	ble-    cr7,ffc0c6fc <rtems_task_set_priority+0x88><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
ffc0c6f0:	7f e4 fb 78 	mr      r4,r31                                 
ffc0c6f4:	38 a0 00 00 	li      r5,0                                   
ffc0c6f8:	48 00 1c 79 	bl      ffc0e370 <_Thread_Change_priority>     
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc0c6fc:	48 00 22 21 	bl      ffc0e91c <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc0c700:	38 00 00 00 	li      r0,0                                   
ffc0c704:	48 00 00 08 	b       ffc0c70c <rtems_task_set_priority+0x98>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc0c708:	38 00 00 04 	li      r0,4                                   
}                                                                     
ffc0c70c:	39 61 00 20 	addi    r11,r1,32                              
ffc0c710:	7c 03 03 78 	mr      r3,r0                                  
ffc0c714:	4b ff 4a 0c 	b       ffc01120 <_restgpr_30_x>               
                                                                      

ffc06804 <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
ffc06804:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06808:	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(                                        
ffc0680c:	38 80 00 00 	li      r4,0                                   
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc06810:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc06814:	38 a0 00 00 	li      r5,0                                   
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc06818:	81 23 00 00 	lwz     r9,0(r3)                               
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc0681c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc06820:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc06824:	83 e9 00 38 	lwz     r31,56(r9)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc06828:	3d 20 00 00 	lis     r9,0                                   
ffc0682c:	80 69 27 78 	lwz     r3,10104(r9)                           
ffc06830:	48 00 22 d5 	bl      ffc08b04 <rtems_semaphore_obtain>      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc06834:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06838:	40 9e 00 a4 	bne-    cr7,ffc068dc <rtems_termios_close+0xd8><== NEVER TAKEN
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
ffc0683c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc06840:	38 09 ff ff 	addi    r0,r9,-1                               
ffc06844:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06848:	90 1f 00 08 	stw     r0,8(r31)                              
ffc0684c:	40 9e 01 64 	bne-    cr7,ffc069b0 <rtems_termios_close+0x1ac>
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc06850:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc06854:	3d 20 00 00 	lis     r9,0                                   
ffc06858:	39 29 28 78 	addi    r9,r9,10360                            
ffc0685c:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc06860:	7d 29 02 14 	add     r9,r9,r0                               
ffc06864:	80 09 00 04 	lwz     r0,4(r9)                               
ffc06868:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0686c:	41 9e 00 14 	beq-    cr7,ffc06880 <rtems_termios_close+0x7c>
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc06870:	7f e3 fb 78 	mr      r3,r31                                 
ffc06874:	7c 09 03 a6 	mtctr   r0                                     
ffc06878:	4e 80 04 21 	bctrl                                          
ffc0687c:	48 00 00 2c 	b       ffc068a8 <rtems_termios_close+0xa4>    
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06880:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06884:	38 80 00 00 	li      r4,0                                   
ffc06888:	38 a0 00 00 	li      r5,0                                   
ffc0688c:	48 00 22 79 	bl      ffc08b04 <rtems_semaphore_obtain>      
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc06890:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06894:	40 9e 00 48 	bne-    cr7,ffc068dc <rtems_termios_close+0xd8><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
ffc06898:	7f e3 fb 78 	mr      r3,r31                                 
ffc0689c:	4b ff fa dd 	bl      ffc06378 <drainOutput>                 
      rtems_semaphore_release (tty->osem);                            
ffc068a0:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc068a4:	48 00 23 89 	bl      ffc08c2c <rtems_semaphore_release>     
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc068a8:	80 1f 00 b4 	lwz     r0,180(r31)                            
ffc068ac:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc068b0:	40 be 00 30 	bne+    cr7,ffc068e0 <rtems_termios_close+0xdc>
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
ffc068b4:	80 7f 00 c4 	lwz     r3,196(r31)                            
ffc068b8:	38 80 00 01 	li      r4,1                                   
ffc068bc:	48 00 1d 89 	bl      ffc08644 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc068c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc068c4:	40 9e 00 18 	bne-    cr7,ffc068dc <rtems_termios_close+0xd8><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
ffc068c8:	80 7f 00 c8 	lwz     r3,200(r31)                            
ffc068cc:	38 80 00 01 	li      r4,1                                   
ffc068d0:	48 00 1d 75 	bl      ffc08644 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc068d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc068d8:	41 be 00 08 	beq+    cr7,ffc068e0 <rtems_termios_close+0xdc><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc068dc:	48 00 29 95 	bl      ffc09270 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
ffc068e0:	80 1f 00 9c 	lwz     r0,156(r31)                            
ffc068e4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc068e8:	41 9e 00 18 	beq-    cr7,ffc06900 <rtems_termios_close+0xfc><== ALWAYS TAKEN
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
ffc068ec:	80 7f 00 0c 	lwz     r3,12(r31)                             <== NOT EXECUTED
ffc068f0:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc068f4:	80 9f 00 10 	lwz     r4,16(r31)                             <== NOT EXECUTED
ffc068f8:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc068fc:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
ffc06900:	81 7f 00 00 	lwz     r11,0(r31)                             
ffc06904:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc06908:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0690c:	40 be 00 1c 	bne+    cr7,ffc06928 <rtems_termios_close+0x124>
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc06910:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
      rtems_termios_ttyTail = tty->back;                              
ffc06914:	3d 40 00 00 	lis     r10,0                                  
ffc06918:	91 2a 27 7c 	stw     r9,10108(r10)                          
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc0691c:	41 9e 00 10 	beq-    cr7,ffc0692c <rtems_termios_close+0x128>
        rtems_termios_ttyTail->forw = NULL;                           
ffc06920:	91 69 00 00 	stw     r11,0(r9)                              
ffc06924:	48 00 00 08 	b       ffc0692c <rtems_termios_close+0x128>   
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
ffc06928:	91 2b 00 04 	stw     r9,4(r11)                              
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
ffc0692c:	81 7f 00 04 	lwz     r11,4(r31)                             
ffc06930:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc06934:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc06938:	40 be 00 1c 	bne+    cr7,ffc06954 <rtems_termios_close+0x150>
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
ffc0693c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
ffc06940:	3d 40 00 00 	lis     r10,0                                  
ffc06944:	91 2a 27 80 	stw     r9,10112(r10)                          
      if ( rtems_termios_ttyHead != NULL ) {                          
ffc06948:	41 9e 00 10 	beq-    cr7,ffc06958 <rtems_termios_close+0x154>
        rtems_termios_ttyHead->back = NULL;                           
ffc0694c:	91 69 00 04 	stw     r11,4(r9)                              
ffc06950:	48 00 00 08 	b       ffc06958 <rtems_termios_close+0x154>   
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
ffc06954:	91 2b 00 00 	stw     r9,0(r11)                              
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
ffc06958:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc0695c:	48 00 20 f1 	bl      ffc08a4c <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->osem);                               
ffc06960:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06964:	48 00 20 e9 	bl      ffc08a4c <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
ffc06968:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc0696c:	48 00 20 e1 	bl      ffc08a4c <rtems_semaphore_delete>      
    if ((tty->device.pollRead == NULL) ||                             
ffc06970:	80 1f 00 a0 	lwz     r0,160(r31)                            
ffc06974:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06978:	41 9e 00 10 	beq-    cr7,ffc06988 <rtems_termios_close+0x184>
ffc0697c:	80 1f 00 b4 	lwz     r0,180(r31)                            
ffc06980:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc06984:	40 be 00 0c 	bne+    cr7,ffc06990 <rtems_termios_close+0x18c>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
ffc06988:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc0698c:	48 00 20 c1 	bl      ffc08a4c <rtems_semaphore_delete>      
    free (tty->rawInBuf.theBuf);                                      
ffc06990:	80 7f 00 58 	lwz     r3,88(r31)                             
ffc06994:	4b ff e8 b9 	bl      ffc0524c <free>                        
    free (tty->rawOutBuf.theBuf);                                     
ffc06998:	80 7f 00 7c 	lwz     r3,124(r31)                            
ffc0699c:	4b ff e8 b1 	bl      ffc0524c <free>                        
    free (tty->cbuf);                                                 
ffc069a0:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc069a4:	4b ff e8 a9 	bl      ffc0524c <free>                        
    free (tty);                                                       
ffc069a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc069ac:	4b ff e8 a1 	bl      ffc0524c <free>                        
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
ffc069b0:	3d 20 00 00 	lis     r9,0                                   
ffc069b4:	80 69 27 78 	lwz     r3,10104(r9)                           
ffc069b8:	48 00 22 75 	bl      ffc08c2c <rtems_semaphore_release>     
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc069bc:	39 61 00 10 	addi    r11,r1,16                              
ffc069c0:	38 60 00 00 	li      r3,0                                   
ffc069c4:	48 01 27 18 	b       ffc190dc <_restgpr_30_x>               
                                                                      

ffc07f40 <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) {
ffc07f40:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc07f44:	7c 08 02 a6 	mflr    r0                                     
ffc07f48:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
ffc07f4c:	80 03 00 90 	lwz     r0,144(r3)                             
ffc07f50:	7c 00 22 14 	add     r0,r0,r4                               
ffc07f54:	90 03 00 90 	stw     r0,144(r3)                             
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc07f58:	80 03 00 b4 	lwz     r0,180(r3)                             
ffc07f5c:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc07f60:	40 be 00 1c 	bne+    cr7,ffc07f7c <rtems_termios_dequeue_characters+0x3c>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
ffc07f64:	80 63 00 c8 	lwz     r3,200(r3)                             
ffc07f68:	38 80 00 02 	li      r4,2                                   
ffc07f6c:	48 00 06 d9 	bl      ffc08644 <rtems_event_send>            
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07f70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07f74:	41 be 00 40 	beq+    cr7,ffc07fb4 <rtems_termios_dequeue_characters+0x74><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
ffc07f78:	48 00 12 f9 	bl      ffc09270 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
ffc07f7c:	80 03 00 cc 	lwz     r0,204(r3)                             
ffc07f80:	2f 80 00 05 	cmpwi   cr7,r0,5                               
ffc07f84:	40 9e 00 20 	bne-    cr7,ffc07fa4 <rtems_termios_dequeue_characters+0x64>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc07f88:	3d 20 00 00 	lis     r9,0                                   
ffc07f8c:	80 09 29 2c 	lwz     r0,10540(r9)                           
ffc07f90:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07f94:	41 9e 00 20 	beq-    cr7,ffc07fb4 <rtems_termios_dequeue_characters+0x74><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc07f98:	7c 09 03 a6 	mtctr   r0                                     
ffc07f9c:	4e 80 04 21 	bctrl                                          
ffc07fa0:	48 00 00 14 	b       ffc07fb4 <rtems_termios_dequeue_characters+0x74>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
ffc07fa4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07fa8:	38 21 00 08 	addi    r1,r1,8                                
ffc07fac:	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);                       
ffc07fb0:	4b ff fd 28 	b       ffc07cd8 <rtems_termios_refill_transmitter>
}                                                                     
ffc07fb4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07fb8:	38 60 00 00 	li      r3,0                                   
ffc07fbc:	38 21 00 08 	addi    r1,r1,8                                
ffc07fc0:	7c 08 03 a6 	mtlr    r0                                     
ffc07fc4:	4e 80 00 20 	blr                                            
                                                                      

ffc07978 <rtems_termios_enqueue_raw_characters>: * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) {
ffc07978:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0797c:	7c 08 02 a6 	mflr    r0                                     
ffc07980:	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) {             
ffc07984:	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, char *buf, int len) 
{                                                                     
ffc07988:	be c1 00 08 	stmw    r22,8(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) {             
ffc0798c:	3f c0 00 00 	lis     r30,0                                  
ffc07990:	3b de 28 78 	addi    r30,r30,10360                          
ffc07994:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc07998:	7d 3e 4a 14 	add     r9,r30,r9                              
ffc0799c:	80 09 00 10 	lwz     r0,16(r9)                              
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) 
{                                                                     
ffc079a0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc079a4:	7c bc 2b 78 	mr      r28,r5                                 
  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) {             
ffc079a8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc079ac:	3b 24 ff ff 	addi    r25,r4,-1                              
ffc079b0:	40 be 00 3c 	bne+    cr7,ffc079ec <rtems_termios_enqueue_raw_characters+0x74>
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) 
ffc079b4:	3b 40 00 00 	li      r26,0                                  
ffc079b8:	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); 
ffc079bc:	3a e3 00 30 	addi    r23,r3,48                              
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
              (tty->rawOutBufState == rob_idle)) {                    
            /* if tx is stopped due to XOFF or out of data */         
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
ffc079c0:	3b 03 00 4a 	addi    r24,r3,74                              
ffc079c4:	48 00 02 70 	b       ffc07c34 <rtems_termios_enqueue_raw_characters+0x2bc>
  rtems_interrupt_level level;                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {             
    while (len--) {                                                   
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
ffc079c8:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc079cc:	7f e4 fb 78 	mr      r4,r31                                 
ffc079d0:	8c 79 00 01 	lbzu    r3,1(r25)                              
ffc079d4:	3b 9c ff ff 	addi    r28,r28,-1                             
ffc079d8:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc079dc:	7d 3e 4a 14 	add     r9,r30,r9                              
ffc079e0:	80 09 00 10 	lwz     r0,16(r9)                              
ffc079e4:	7c 09 03 a6 	mtctr   r0                                     
ffc079e8:	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--) {                                                   
ffc079ec:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc079f0:	40 9e ff d8 	bne+    cr7,ffc079c8 <rtems_termios_enqueue_raw_characters+0x50>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc079f4:	80 1f 00 e4 	lwz     r0,228(r31)                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
ffc079f8:	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 )) { 
ffc079fc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07a00:	40 9e 02 50 	bne-    cr7,ffc07c50 <rtems_termios_enqueue_raw_characters+0x2d8><== NEVER TAKEN
ffc07a04:	80 1f 00 dc 	lwz     r0,220(r31)                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
ffc07a08:	7f 9e e3 78 	mr      r30,r28                                
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc07a0c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07a10:	41 9e 02 40 	beq-    cr7,ffc07c50 <rtems_termios_enqueue_raw_characters+0x2d8><== NEVER TAKEN
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
ffc07a14:	7c 09 03 a6 	mtctr   r0                                     
ffc07a18:	38 7f 00 30 	addi    r3,r31,48                              
ffc07a1c:	80 9f 00 e0 	lwz     r4,224(r31)                            
ffc07a20:	4e 80 04 21 	bctrl                                          
      tty->tty_rcvwakeup = 1;                                         
ffc07a24:	38 00 00 01 	li      r0,1                                   
ffc07a28:	90 1f 00 e4 	stw     r0,228(r31)                            
ffc07a2c:	48 00 02 24 	b       ffc07c50 <rtems_termios_enqueue_raw_characters+0x2d8>
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
ffc07a30:	80 1f 00 b8 	lwz     r0,184(r31)                            
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
ffc07a34:	8f 79 00 01 	lbzu    r27,1(r25)                             
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
ffc07a38:	70 09 02 00 	andi.   r9,r0,512                              
ffc07a3c:	41 82 00 58 	beq-    ffc07a94 <rtems_termios_enqueue_raw_characters+0x11c>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
ffc07a40:	89 3f 00 4a 	lbz     r9,74(r31)                             
ffc07a44:	88 1f 00 49 	lbz     r0,73(r31)                             
ffc07a48:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc07a4c:	40 be 00 30 	bne+    cr7,ffc07a7c <rtems_termios_enqueue_raw_characters+0x104>
        if (c == tty->termios.c_cc[VSTART]) {                         
ffc07a50:	54 00 06 3e 	clrlwi  r0,r0,24                               
ffc07a54:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc07a58:	40 be 00 10 	bne+    cr7,ffc07a68 <rtems_termios_enqueue_raw_characters+0xf0><== ALWAYS TAKEN
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
ffc07a5c:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07a60:	68 00 00 10 	xori    r0,r0,16                               <== NOT EXECUTED
ffc07a64:	48 00 00 0c 	b       ffc07a70 <rtems_termios_enqueue_raw_characters+0xf8><== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
ffc07a68:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc07a6c:	60 00 00 10 	ori     r0,r0,16                               
ffc07a70:	90 1f 00 b8 	stw     r0,184(r31)                            
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) 
{                                                                     
ffc07a74:	3b 40 00 01 	li      r26,1                                  
ffc07a78:	48 00 00 24 	b       ffc07a9c <rtems_termios_enqueue_raw_characters+0x124>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
ffc07a7c:	54 00 06 3e 	clrlwi  r0,r0,24                               
ffc07a80:	7f 80 d8 00 	cmpw    cr7,r0,r27                             
ffc07a84:	40 be 00 10 	bne+    cr7,ffc07a94 <rtems_termios_enqueue_raw_characters+0x11c><== ALWAYS TAKEN
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
ffc07a88:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07a8c:	54 00 07 34 	rlwinm  r0,r0,0,28,26                          <== NOT EXECUTED
ffc07a90:	4b ff ff e0 	b       ffc07a70 <rtems_termios_enqueue_raw_characters+0xf8><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
ffc07a94:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc07a98:	41 9e 00 5c 	beq-    cr7,ffc07af4 <rtems_termios_enqueue_raw_characters+0x17c><== ALWAYS TAKEN
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
ffc07a9c:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc07aa0:	54 00 06 b6 	rlwinm  r0,r0,0,26,27                          
ffc07aa4:	2f 80 00 20 	cmpwi   cr7,r0,32                              
ffc07aa8:	40 be 01 88 	bne+    cr7,ffc07c30 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
ffc07aac:	4b ff e8 b9 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
ffc07ab0:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
ffc07ab4:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07ab8:	54 00 06 f2 	rlwinm  r0,r0,0,27,25                          <== NOT EXECUTED
ffc07abc:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
ffc07ac0:	80 1f 00 94 	lwz     r0,148(r31)                            <== NOT EXECUTED
ffc07ac4:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc07ac8:	41 be 00 24 	beq+    cr7,ffc07aec <rtems_termios_enqueue_raw_characters+0x174><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
ffc07acc:	81 3f 00 84 	lwz     r9,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)(                                       
ffc07ad0:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc07ad4:	80 9f 00 7c 	lwz     r4,124(r31)                            <== NOT EXECUTED
ffc07ad8:	80 1f 00 a4 	lwz     r0,164(r31)                            <== NOT EXECUTED
ffc07adc:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07ae0:	7c 84 4a 14 	add     r4,r4,r9                               <== NOT EXECUTED
ffc07ae4:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07ae8:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07aec:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
ffc07af0:	48 00 01 40 	b       ffc07c30 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
ffc07af4:	83 bf 00 60 	lwz     r29,96(r31)                            
ffc07af8:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc07afc:	38 1d 00 01 	addi    r0,r29,1                               
ffc07b00:	7f a0 4b 96 	divwu   r29,r0,r9                              
ffc07b04:	7f bd 49 d6 	mullw   r29,r29,r9                             
ffc07b08:	7f bd 00 50 	subf    r29,r29,r0                             
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
ffc07b0c:	4b ff e8 59 	bl      ffc06364 <ppc_interrupt_disable>       
ffc07b10:	7c 76 1b 78 	mr      r22,r3                                 
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
ffc07b14:	80 1f 00 5c 	lwz     r0,92(r31)                             
ffc07b18:	81 7f 00 64 	lwz     r11,100(r31)                           
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc07b1c:	81 3f 00 64 	lwz     r9,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)       
ffc07b20:	7c 00 58 50 	subf    r0,r0,r11                              
ffc07b24:	7c 00 ea 14 	add     r0,r0,r29                              
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc07b28:	7d 60 4b 96 	divwu   r11,r0,r9                              
ffc07b2c:	7d 2b 49 d6 	mullw   r9,r11,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)       
ffc07b30:	81 7f 00 c0 	lwz     r11,192(r31)                           
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc07b34:	7c 09 00 50 	subf    r0,r9,r0                               
      }                                                               
    } 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)       
ffc07b38:	7f 80 58 40 	cmplw   cr7,r0,r11                             
ffc07b3c:	40 9d 00 a0 	ble-    cr7,ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
ffc07b40:	80 1f 00 b8 	lwz     r0,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) &&                
ffc07b44:	70 09 00 01 	andi.   r9,r0,1                                <== NOT EXECUTED
ffc07b48:	40 82 00 94 	bne-    ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
ffc07b4c:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07b50:	60 00 00 01 	ori     r0,r0,1                                <== NOT EXECUTED
ffc07b54:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
ffc07b58:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07b5c:	70 00 04 02 	andi.   r0,r0,1026                             <== NOT EXECUTED
ffc07b60:	2f 80 04 00 	cmpwi   cr7,r0,1024                            <== NOT EXECUTED
ffc07b64:	40 be 00 44 	bne+    cr7,ffc07ba8 <rtems_termios_enqueue_raw_characters+0x230><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
ffc07b68:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07b6c:	70 09 00 20 	andi.   r9,r0,32                               <== NOT EXECUTED
ffc07b70:	40 82 00 10 	bne-    ffc07b80 <rtems_termios_enqueue_raw_characters+0x208><== NOT EXECUTED
ffc07b74:	80 1f 00 94 	lwz     r0,148(r31)                            <== NOT EXECUTED
ffc07b78:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc07b7c:	40 9e 00 60 	bne-    cr7,ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== 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;                             
ffc07b80:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc07b84:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc07b88:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07b8c:	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;                             
ffc07b90:	60 00 00 02 	ori     r0,r0,2                                <== NOT EXECUTED
ffc07b94:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc07b98:	80 1f 00 a4 	lwz     r0,164(r31)                            <== NOT EXECUTED
ffc07b9c:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07ba0:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07ba4:	48 00 00 38 	b       ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
ffc07ba8:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07bac:	70 00 01 04 	andi.   r0,r0,260                              <== NOT EXECUTED
ffc07bb0:	2f 80 01 00 	cmpwi   cr7,r0,256                             <== NOT EXECUTED
ffc07bb4:	40 be 00 28 	bne+    cr7,ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
ffc07bb8:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07bbc:	60 00 00 04 	ori     r0,r0,4                                <== NOT EXECUTED
ffc07bc0:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
ffc07bc4:	80 1f 00 ac 	lwz     r0,172(r31)                            <== NOT EXECUTED
ffc07bc8:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc07bcc:	41 9e 00 10 	beq-    cr7,ffc07bdc <rtems_termios_enqueue_raw_characters+0x264><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
ffc07bd0:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07bd4:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07bd8:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07bdc:	7e c0 01 24 	mtmsr   r22                                    
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
ffc07be0:	80 1f 00 5c 	lwz     r0,92(r31)                             
ffc07be4:	7f 9d 00 00 	cmpw    cr7,r29,r0                             
ffc07be8:	40 be 00 0c 	bne+    cr7,ffc07bf4 <rtems_termios_enqueue_raw_characters+0x27c><== ALWAYS TAKEN
        dropped++;                                                    
ffc07bec:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc07bf0:	48 00 00 40 	b       ffc07c30 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
ffc07bf4:	81 3f 00 58 	lwz     r9,88(r31)                             
ffc07bf8:	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 )) {
ffc07bfc:	80 1f 00 e4 	lwz     r0,228(r31)                            
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
ffc07c00:	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 )) {
ffc07c04:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07c08:	40 9e 00 28 	bne-    cr7,ffc07c30 <rtems_termios_enqueue_raw_characters+0x2b8><== NEVER TAKEN
ffc07c0c:	80 1f 00 dc 	lwz     r0,220(r31)                            
ffc07c10:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07c14:	41 9e 00 1c 	beq-    cr7,ffc07c30 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
ffc07c18:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07c1c:	7e e3 bb 78 	mr      r3,r23                                 <== NOT EXECUTED
ffc07c20:	80 9f 00 e0 	lwz     r4,224(r31)                            <== NOT EXECUTED
ffc07c24:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
ffc07c28:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc07c2c:	90 1f 00 e4 	stw     r0,228(r31)                            <== NOT EXECUTED
ffc07c30:	3b 9c ff ff 	addi    r28,r28,-1                             
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
ffc07c34:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc07c38:	40 9e fd f8 	bne+    cr7,ffc07a30 <rtems_termios_enqueue_raw_characters+0xb8>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc07c3c:	80 1f 00 78 	lwz     r0,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc07c40:	80 7f 00 68 	lwz     r3,104(r31)                            
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc07c44:	7c 00 f2 14 	add     r0,r0,r30                              
ffc07c48:	90 1f 00 78 	stw     r0,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc07c4c:	48 00 0f e1 	bl      ffc08c2c <rtems_semaphore_release>     
  return dropped;                                                     
}                                                                     
ffc07c50:	39 61 00 30 	addi    r11,r1,48                              
ffc07c54:	7f c3 f3 78 	mr      r3,r30                                 
ffc07c58:	48 01 14 64 	b       ffc190bc <_restgpr_22_x>               
                                                                      

ffc069e4 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
ffc069e4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc069e8:	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);
ffc069ec:	38 80 00 00 	li      r4,0                                   
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc069f0:	90 01 00 24 	stw     r0,36(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;                                            
ffc069f4:	38 00 00 00 	li      r0,0                                   
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc069f8:	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;                   
ffc069fc:	81 23 00 00 	lwz     r9,0(r3)                               
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc06a00:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc06a04:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc06a08:	83 e9 00 38 	lwz     r31,56(r9)                             
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
ffc06a0c:	83 83 00 08 	lwz     r28,8(r3)                              
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
ffc06a10:	90 03 00 0c 	stw     r0,12(r3)                              
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06a14:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06a18:	48 00 20 ed 	bl      ffc08b04 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc06a1c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc06a20:	40 82 03 90 	bne-    ffc06db0 <rtems_termios_ioctl+0x3cc>   <== NEVER TAKEN
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc06a24:	80 1e 00 04 	lwz     r0,4(r30)                              
ffc06a28:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc06a2c:	41 9e 02 bc 	beq-    cr7,ffc06ce8 <rtems_termios_ioctl+0x304>
ffc06a30:	2b 80 00 04 	cmplwi  cr7,r0,4                               
ffc06a34:	41 9d 00 20 	bgt-    cr7,ffc06a54 <rtems_termios_ioctl+0x70>
ffc06a38:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc06a3c:	41 9e 00 a0 	beq-    cr7,ffc06adc <rtems_termios_ioctl+0xf8>
ffc06a40:	2b 80 00 02 	cmplwi  cr7,r0,2                               
ffc06a44:	41 9d 02 84 	bgt-    cr7,ffc06cc8 <rtems_termios_ioctl+0x2e4>
ffc06a48:	2f 80 00 01 	cmpwi   cr7,r0,1                               
ffc06a4c:	40 be 00 44 	bne+    cr7,ffc06a90 <rtems_termios_ioctl+0xac><== NEVER TAKEN
ffc06a50:	48 00 00 78 	b       ffc06ac8 <rtems_termios_ioctl+0xe4>    
ffc06a54:	3d 20 40 04 	lis     r9,16388                               
ffc06a58:	61 29 66 7f 	ori     r9,r9,26239                            
ffc06a5c:	7f 80 48 00 	cmpw    cr7,r0,r9                              
ffc06a60:	41 9e 03 18 	beq-    cr7,ffc06d78 <rtems_termios_ioctl+0x394><== NEVER TAKEN
ffc06a64:	7f 80 48 40 	cmplw   cr7,r0,r9                              
ffc06a68:	41 9d 00 10 	bgt-    cr7,ffc06a78 <rtems_termios_ioctl+0x94>
ffc06a6c:	2f 80 00 05 	cmpwi   cr7,r0,5                               
ffc06a70:	40 be 00 20 	bne+    cr7,ffc06a90 <rtems_termios_ioctl+0xac>
ffc06a74:	48 00 02 60 	b       ffc06cd4 <rtems_termios_ioctl+0x2f0>   
ffc06a78:	6c 09 40 04 	xoris   r9,r0,16388                            
ffc06a7c:	2f 89 74 1a 	cmpwi   cr7,r9,29722                           
ffc06a80:	41 9e 02 ec 	beq-    cr7,ffc06d6c <rtems_termios_ioctl+0x388>
ffc06a84:	6c 09 80 04 	xoris   r9,r0,32772                            
ffc06a88:	2f 89 74 1b 	cmpwi   cr7,r9,29723                           
ffc06a8c:	41 9e 02 70 	beq-    cr7,ffc06cfc <rtems_termios_ioctl+0x318><== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc06a90:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc06a94:	3d 20 00 00 	lis     r9,0                                   
ffc06a98:	39 29 28 78 	addi    r9,r9,10360                            
ffc06a9c:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc06aa0:	7d 29 02 14 	add     r9,r9,r0                               
ffc06aa4:	80 09 00 18 	lwz     r0,24(r9)                              
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
ffc06aa8:	3b a0 00 0a 	li      r29,10                                 
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc06aac:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06ab0:	41 9e 02 f8 	beq-    cr7,ffc06da8 <rtems_termios_ioctl+0x3c4><== NEVER TAKEN
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
ffc06ab4:	7f e3 fb 78 	mr      r3,r31                                 
ffc06ab8:	7c 09 03 a6 	mtctr   r0                                     
ffc06abc:	7f c4 f3 78 	mr      r4,r30                                 
ffc06ac0:	4e 80 04 21 	bctrl                                          
ffc06ac4:	48 00 02 a0 	b       ffc06d64 <rtems_termios_ioctl+0x380>   
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
ffc06ac8:	80 7e 00 08 	lwz     r3,8(r30)                              
ffc06acc:	38 9f 00 30 	addi    r4,r31,48                              
ffc06ad0:	38 a0 00 24 	li      r5,36                                  
ffc06ad4:	48 00 e4 95 	bl      ffc14f68 <memcpy>                      
    break;                                                            
ffc06ad8:	48 00 02 d0 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
ffc06adc:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc06ae0:	38 7f 00 30 	addi    r3,r31,48                              
ffc06ae4:	38 a0 00 24 	li      r5,36                                  
ffc06ae8:	48 00 e4 81 	bl      ffc14f68 <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) &&                                 
ffc06aec:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06af0:	70 09 02 00 	andi.   r9,r0,512                              
ffc06af4:	41 82 00 70 	beq-    ffc06b64 <rtems_termios_ioctl+0x180>   
      !(tty->termios.c_iflag & IXON)) {                               
ffc06af8:	80 1f 00 30 	lwz     r0,48(r31)                             
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
ffc06afc:	70 0b 04 00 	andi.   r11,r0,1024                            
ffc06b00:	40 82 00 64 	bne-    ffc06b64 <rtems_termios_ioctl+0x180>   <== ALWAYS TAKEN
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
ffc06b04:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06b08:	38 00 fd ef 	li      r0,-529                                <== NOT EXECUTED
ffc06b0c:	7d 20 00 38 	and     r0,r9,r0                               <== NOT EXECUTED
ffc06b10:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
ffc06b14:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06b18:	70 09 00 20 	andi.   r9,r0,32                               <== NOT EXECUTED
ffc06b1c:	41 a2 00 48 	beq+    ffc06b64 <rtems_termios_ioctl+0x180>   <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
ffc06b20:	4b ff f8 45 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
ffc06b24:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
ffc06b28:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06b2c:	54 00 06 f2 	rlwinm  r0,r0,0,27,25                          <== NOT EXECUTED
ffc06b30:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
ffc06b34:	80 1f 00 94 	lwz     r0,148(r31)                            <== NOT EXECUTED
ffc06b38:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc06b3c:	41 be 00 24 	beq+    cr7,ffc06b60 <rtems_termios_ioctl+0x17c><== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
ffc06b40:	81 3f 00 84 	lwz     r9,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)(                                         
ffc06b44:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06b48:	80 9f 00 7c 	lwz     r4,124(r31)                            <== NOT EXECUTED
ffc06b4c:	80 1f 00 a4 	lwz     r0,164(r31)                            <== NOT EXECUTED
ffc06b50:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc06b54:	7c 84 4a 14 	add     r4,r4,r9                               <== NOT EXECUTED
ffc06b58:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc06b5c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc06b60:	7f 80 01 24 	mtmsr   r28                                    <== 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)) {
ffc06b64:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06b68:	70 09 04 00 	andi.   r9,r0,1024                             
ffc06b6c:	41 82 00 28 	beq-    ffc06b94 <rtems_termios_ioctl+0x1b0>   
ffc06b70:	80 1f 00 30 	lwz     r0,48(r31)                             
ffc06b74:	70 0b 10 00 	andi.   r11,r0,4096                            
ffc06b78:	40 82 00 1c 	bne-    ffc06b94 <rtems_termios_ioctl+0x1b0>   <== ALWAYS TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
ffc06b7c:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06b80:	54 00 05 a8 	rlwinm  r0,r0,0,22,20                          <== NOT EXECUTED
ffc06b84:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
ffc06b88:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06b8c:	54 00 07 fa 	rlwinm  r0,r0,0,31,29                          <== NOT EXECUTED
ffc06b90:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
ffc06b94:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06b98:	70 09 01 00 	andi.   r9,r0,256                              
ffc06b9c:	41 82 00 4c 	beq-    ffc06be8 <rtems_termios_ioctl+0x204>   
ffc06ba0:	80 1f 00 38 	lwz     r0,56(r31)                             
ffc06ba4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06ba8:	41 9c 00 40 	blt-    cr7,ffc06be8 <rtems_termios_ioctl+0x204><== ALWAYS TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
ffc06bac:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06bb0:	54 00 06 2c 	rlwinm  r0,r0,0,24,22                          <== NOT EXECUTED
ffc06bb4:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
ffc06bb8:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06bbc:	70 0b 00 04 	andi.   r11,r0,4                               <== NOT EXECUTED
ffc06bc0:	41 82 00 1c 	beq-    ffc06bdc <rtems_termios_ioctl+0x1f8>   <== NOT EXECUTED
ffc06bc4:	80 1f 00 b0 	lwz     r0,176(r31)                            <== NOT EXECUTED
ffc06bc8:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc06bcc:	41 9e 00 10 	beq-    cr7,ffc06bdc <rtems_termios_ioctl+0x1f8><== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
ffc06bd0:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc06bd4:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc06bd8:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
ffc06bdc:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06be0:	54 00 07 b8 	rlwinm  r0,r0,0,30,28                          <== NOT EXECUTED
ffc06be4:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
                                                                      
  /*                                                                  
   * check for flow control options to be switched on                 
   */                                                                 
  /* check for incoming RTS/CTS flow control switched on */           
  if (tty->termios.c_cflag & CRTSCTS) {                               
ffc06be8:	80 1f 00 38 	lwz     r0,56(r31)                             
ffc06bec:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06bf0:	40 bc 00 10 	bge+    cr7,ffc06c00 <rtems_termios_ioctl+0x21c>
    tty->flow_ctrl |= FL_MDRTS;                                       
ffc06bf4:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06bf8:	60 00 01 00 	ori     r0,r0,256                              
ffc06bfc:	90 1f 00 b8 	stw     r0,184(r31)                            
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
ffc06c00:	80 1f 00 30 	lwz     r0,48(r31)                             
ffc06c04:	70 09 10 00 	andi.   r9,r0,4096                             
ffc06c08:	41 82 00 10 	beq-    ffc06c18 <rtems_termios_ioctl+0x234>   
    tty->flow_ctrl |= FL_MDXOF;                                       
ffc06c0c:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06c10:	61 29 04 00 	ori     r9,r9,1024                             
ffc06c14:	91 3f 00 b8 	stw     r9,184(r31)                            
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
ffc06c18:	70 0b 04 00 	andi.   r11,r0,1024                            
ffc06c1c:	41 82 00 10 	beq-    ffc06c2c <rtems_termios_ioctl+0x248>   <== NEVER TAKEN
    tty->flow_ctrl |= FL_MDXON;                                       
ffc06c20:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06c24:	60 00 02 00 	ori     r0,r0,512                              
ffc06c28:	90 1f 00 b8 	stw     r0,184(r31)                            
    tty->termios = *(struct termios *)args->buffer;                   
                                                                      
    /* check for and process change in flow control options */        
    termios_set_flowctrl(tty);                                        
                                                                      
    if (tty->termios.c_lflag & ICANON) {                              
ffc06c2c:	83 9f 00 3c 	lwz     r28,60(r31)                            
ffc06c30:	73 9c 00 02 	andi.   r28,r28,2                              
ffc06c34:	41 82 00 0c 	beq-    ffc06c40 <rtems_termios_ioctl+0x25c>   
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
ffc06c38:	38 00 00 00 	li      r0,0                                   
ffc06c3c:	48 00 00 54 	b       ffc06c90 <rtems_termios_ioctl+0x2ac>   
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
ffc06c40:	8b 7f 00 46 	lbz     r27,70(r31)                            
                    rtems_clock_get_ticks_per_second() / 10;          
ffc06c44:	48 00 18 45 	bl      ffc08488 <rtems_clock_get_ticks_per_second>
ffc06c48:	38 00 00 0a 	li      r0,10                                  
ffc06c4c:	89 3f 00 47 	lbz     r9,71(r31)                             
    if (tty->termios.c_lflag & ICANON) {                              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
ffc06c50:	7f 63 d9 d6 	mullw   r27,r3,r27                             
                    rtems_clock_get_ticks_per_second() / 10;          
ffc06c54:	7f 7b 03 96 	divwu   r27,r27,r0                             
      if (tty->termios.c_cc[VTIME]) {                                 
ffc06c58:	88 1f 00 46 	lbz     r0,70(r31)                             
ffc06c5c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    if (tty->termios.c_lflag & ICANON) {                              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
ffc06c60:	93 7f 00 54 	stw     r27,84(r31)                            
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
ffc06c64:	41 9e 00 24 	beq-    cr7,ffc06c88 <rtems_termios_ioctl+0x2a4>
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
ffc06c68:	71 20 00 ff 	andi.   r0,r9,255                              
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
ffc06c6c:	93 9f 00 6c 	stw     r28,108(r31)                           
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
ffc06c70:	93 7f 00 70 	stw     r27,112(r31)                           
        if (tty->termios.c_cc[VMIN])                                  
ffc06c74:	41 82 00 0c 	beq-    ffc06c80 <rtems_termios_ioctl+0x29c>   
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc06c78:	93 9f 00 74 	stw     r28,116(r31)                           
ffc06c7c:	48 00 00 2c 	b       ffc06ca8 <rtems_termios_ioctl+0x2c4>   
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
ffc06c80:	93 7f 00 74 	stw     r27,116(r31)                           
ffc06c84:	48 00 00 24 	b       ffc06ca8 <rtems_termios_ioctl+0x2c4>   
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
ffc06c88:	71 2b 00 ff 	andi.   r11,r9,255                             
ffc06c8c:	41 82 00 14 	beq-    ffc06ca0 <rtems_termios_ioctl+0x2bc>   <== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
ffc06c90:	90 1f 00 6c 	stw     r0,108(r31)                            
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
ffc06c94:	90 1f 00 70 	stw     r0,112(r31)                            
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc06c98:	90 1f 00 74 	stw     r0,116(r31)                            
ffc06c9c:	48 00 00 0c 	b       ffc06ca8 <rtems_termios_ioctl+0x2c4>   
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
ffc06ca0:	38 00 00 01 	li      r0,1                                   
ffc06ca4:	90 1f 00 6c 	stw     r0,108(r31)                            
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
ffc06ca8:	80 1f 00 a8 	lwz     r0,168(r31)                            
ffc06cac:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06cb0:	41 9e 00 f8 	beq-    cr7,ffc06da8 <rtems_termios_ioctl+0x3c4><== NEVER TAKEN
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
ffc06cb4:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc06cb8:	38 9f 00 30 	addi    r4,r31,48                              
ffc06cbc:	7c 09 03 a6 	mtctr   r0                                     
ffc06cc0:	4e 80 04 21 	bctrl                                          
ffc06cc4:	48 00 00 e4 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
ffc06cc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc06ccc:	4b ff f6 ad 	bl      ffc06378 <drainOutput>                 
    break;                                                            
ffc06cd0:	48 00 00 d8 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
ffc06cd4:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc06cd8:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc06cdc:	91 3f 00 d4 	stw     r9,212(r31)                            
ffc06ce0:	91 5f 00 d8 	stw     r10,216(r31)                           
    break;                                                            
ffc06ce4:	48 00 00 c4 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
ffc06ce8:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc06cec:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc06cf0:	91 3f 00 dc 	stw     r9,220(r31)                            
ffc06cf4:	91 5f 00 e0 	stw     r10,224(r31)                           
    break;                                                            
ffc06cf8:	48 00 00 b0 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc06cfc:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc06d00:	3d 20 00 00 	lis     r9,0                                   
ffc06d04:	39 29 28 78 	addi    r9,r9,10360                            
ffc06d08:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc06d0c:	7d 29 02 14 	add     r9,r9,r0                               
ffc06d10:	80 09 00 04 	lwz     r0,4(r9)                               
ffc06d14:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06d18:	41 9e 00 14 	beq-    cr7,ffc06d2c <rtems_termios_ioctl+0x348>
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc06d1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06d20:	7c 09 03 a6 	mtctr   r0                                     
ffc06d24:	4e 80 04 21 	bctrl                                          
ffc06d28:	7c 7d 1b 78 	mr      r29,r3                                 
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
ffc06d2c:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc06d30:	80 09 00 00 	lwz     r0,0(r9)                               
    tty->t_sc = NULL; /* ensure that no more valid data */            
ffc06d34:	39 20 00 00 	li      r9,0                                   
ffc06d38:	91 3f 00 d0 	stw     r9,208(r31)                            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc06d3c:	3d 20 00 00 	lis     r9,0                                   
ffc06d40:	39 29 28 78 	addi    r9,r9,10360                            
     * 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);                                
ffc06d44:	90 1f 00 cc 	stw     r0,204(r31)                            
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc06d48:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc06d4c:	7c 09 00 2e 	lwzx    r0,r9,r0                               
ffc06d50:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06d54:	41 9e 00 54 	beq-    cr7,ffc06da8 <rtems_termios_ioctl+0x3c4><== NEVER TAKEN
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
ffc06d58:	7f e3 fb 78 	mr      r3,r31                                 
ffc06d5c:	7c 09 03 a6 	mtctr   r0                                     
ffc06d60:	4e 80 04 21 	bctrl                                          
ffc06d64:	7c 7d 1b 78 	mr      r29,r3                                 
ffc06d68:	48 00 00 40 	b       ffc06da8 <rtems_termios_ioctl+0x3c4>   
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
ffc06d6c:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc06d70:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc06d74:	48 00 00 30 	b       ffc06da4 <rtems_termios_ioctl+0x3c0>   
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
ffc06d78:	81 3f 00 60 	lwz     r9,96(r31)                             <== NOT EXECUTED
ffc06d7c:	80 1f 00 5c 	lwz     r0,92(r31)                             <== NOT EXECUTED
      if ( rawnc < 0 )                                                
ffc06d80:	7c 00 48 51 	subf.   r0,r0,r9                               <== NOT EXECUTED
ffc06d84:	40 a0 00 0c 	bge+    ffc06d90 <rtems_termios_ioctl+0x3ac>   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
ffc06d88:	81 3f 00 64 	lwz     r9,100(r31)                            <== NOT EXECUTED
ffc06d8c:	7c 00 4a 14 	add     r0,r0,r9                               <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
ffc06d90:	81 5f 00 20 	lwz     r10,32(r31)                            <== NOT EXECUTED
ffc06d94:	81 7f 00 24 	lwz     r11,36(r31)                            <== NOT EXECUTED
ffc06d98:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
ffc06d9c:	7d 6b 50 50 	subf    r11,r11,r10                            <== NOT EXECUTED
ffc06da0:	7c 0b 02 14 	add     r0,r11,r0                              <== NOT EXECUTED
ffc06da4:	90 09 00 00 	stw     r0,0(r9)                               
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
ffc06da8:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06dac:	48 00 1e 81 	bl      ffc08c2c <rtems_semaphore_release>     
  args->ioctl_return = sc;                                            
  return sc;                                                          
}                                                                     
ffc06db0:	39 61 00 20 	addi    r11,r1,32                              
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
  args->ioctl_return = sc;                                            
ffc06db4:	93 be 00 0c 	stw     r29,12(r30)                            
  return sc;                                                          
}                                                                     
ffc06db8:	7f a3 eb 78 	mr      r3,r29                                 
ffc06dbc:	48 01 23 14 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

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

ffc06dc0 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
ffc06dc0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06dc4:	7c 08 02 a6 	mflr    r0                                     
ffc06dc8:	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) {           
ffc06dcc:	80 05 00 b4 	lwz     r0,180(r5)                             
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
ffc06dd0:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc06dd4:	7c 7b 1b 78 	mr      r27,r3                                 
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc06dd8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
ffc06ddc:	7c 9d 23 78 	mr      r29,r4                                 
ffc06de0:	7c bf 2b 78 	mr      r31,r5                                 
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc06de4:	40 be 00 20 	bne+    cr7,ffc06e04 <rtems_termios_puts+0x44> 
    (*tty->device.write)(tty->minor, (void *)buf, len);               
ffc06de8:	80 05 00 a4 	lwz     r0,164(r5)                             
ffc06dec:	7f 64 db 78 	mr      r4,r27                                 
ffc06df0:	80 65 00 10 	lwz     r3,16(r5)                              
ffc06df4:	7f a5 eb 78 	mr      r5,r29                                 
ffc06df8:	7c 09 03 a6 	mtctr   r0                                     
ffc06dfc:	4e 80 04 21 	bctrl                                          
    return;                                                           
ffc06e00:	48 00 00 e0 	b       ffc06ee0 <rtems_termios_puts+0x120>    
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
ffc06e04:	83 c5 00 80 	lwz     r30,128(r5)                            
                                                                      
/*                                                                    
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
ffc06e08:	3b 63 ff ff 	addi    r27,r3,-1                              
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
ffc06e0c:	3b 20 00 02 	li      r25,2                                  
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
ffc06e10:	3b 40 00 01 	li      r26,1                                  
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc06e14:	48 00 00 c4 	b       ffc06ed8 <rtems_termios_puts+0x118>    
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
ffc06e18:	80 1f 00 88 	lwz     r0,136(r31)                            
ffc06e1c:	3b de 00 01 	addi    r30,r30,1                              
ffc06e20:	7d 3e 03 96 	divwu   r9,r30,r0                              
ffc06e24:	7c 09 01 d6 	mullw   r0,r9,r0                               
ffc06e28:	7f c0 f0 50 	subf    r30,r0,r30                             
    rtems_interrupt_disable (level);                                  
ffc06e2c:	4b ff f5 39 	bl      ffc06364 <ppc_interrupt_disable>       
ffc06e30:	7c 7c 1b 78 	mr      r28,r3                                 
    while (newHead == tty->rawOutBuf.Tail) {                          
ffc06e34:	48 00 00 30 	b       ffc06e64 <rtems_termios_puts+0xa4>     
      tty->rawOutBufState = rob_wait;                                 
ffc06e38:	93 3f 00 94 	stw     r25,148(r31)                           
ffc06e3c:	7f 80 01 24 	mtmsr   r28                                    
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc06e40:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc06e44:	38 80 00 00 	li      r4,0                                   
ffc06e48:	38 a0 00 00 	li      r5,0                                   
ffc06e4c:	48 00 1c b9 	bl      ffc08b04 <rtems_semaphore_obtain>      
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc06e50:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06e54:	41 be 00 08 	beq+    cr7,ffc06e5c <rtems_termios_puts+0x9c> <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc06e58:	48 00 24 19 	bl      ffc09270 <rtems_fatal_error_occurred>  <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
ffc06e5c:	4b ff f5 09 	bl      ffc06364 <ppc_interrupt_disable>       
ffc06e60:	7c 7c 1b 78 	mr      r28,r3                                 
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
ffc06e64:	80 1f 00 84 	lwz     r0,132(r31)                            
ffc06e68:	7f 9e 00 00 	cmpw    cr7,r30,r0                             
ffc06e6c:	41 9e ff cc 	beq+    cr7,ffc06e38 <rtems_termios_puts+0x78> 
        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++;              
ffc06e70:	80 1f 00 80 	lwz     r0,128(r31)                            
ffc06e74:	8d 7b 00 01 	lbzu    r11,1(r27)                             
ffc06e78:	81 3f 00 7c 	lwz     r9,124(r31)                            
ffc06e7c:	7d 69 01 ae 	stbx    r11,r9,r0                              
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
ffc06e80:	80 1f 00 94 	lwz     r0,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;                                    
ffc06e84:	93 df 00 80 	stw     r30,128(r31)                           
    if (tty->rawOutBufState == rob_idle) {                            
ffc06e88:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06e8c:	40 9e 00 44 	bne-    cr7,ffc06ed0 <rtems_termios_puts+0x110>
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
ffc06e90:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc06e94:	70 09 00 10 	andi.   r9,r0,16                               
ffc06e98:	40 a2 00 28 	bne+    ffc06ec0 <rtems_termios_puts+0x100>    <== NEVER TAKEN
        (*tty->device.write)(tty->minor,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
ffc06e9c:	81 3f 00 84 	lwz     r9,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)(tty->minor,                              
ffc06ea0:	38 a0 00 01 	li      r5,1                                   
ffc06ea4:	80 9f 00 7c 	lwz     r4,124(r31)                            
ffc06ea8:	80 1f 00 a4 	lwz     r0,164(r31)                            
ffc06eac:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc06eb0:	7c 84 4a 14 	add     r4,r4,r9                               
ffc06eb4:	7c 09 03 a6 	mtctr   r0                                     
ffc06eb8:	4e 80 04 21 	bctrl                                          
ffc06ebc:	48 00 00 10 	b       ffc06ecc <rtems_termios_puts+0x10c>    
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
ffc06ec0:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc06ec4:	60 00 00 20 	ori     r0,r0,32                               <== NOT EXECUTED
ffc06ec8:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
ffc06ecc:	93 5f 00 94 	stw     r26,148(r31)                           
ffc06ed0:	7f 80 01 24 	mtmsr   r28                                    
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
ffc06ed4:	3b bd ff ff 	addi    r29,r29,-1                             
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc06ed8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc06edc:	40 9e ff 3c 	bne+    cr7,ffc06e18 <rtems_termios_puts+0x58> 
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc06ee0:	39 61 00 28 	addi    r11,r1,40                              
ffc06ee4:	48 01 21 e4 	b       ffc190c8 <_restgpr_25_x>               
                                                                      

ffc075d4 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
ffc075d4:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc075d8:	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);
ffc075dc:	38 80 00 00 	li      r4,0                                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc075e0:	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);
ffc075e4:	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;                   
ffc075e8:	81 23 00 00 	lwz     r9,0(r3)                               
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc075ec:	be e1 00 0c 	stmw    r23,12(r1)                             
ffc075f0:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc075f4:	83 e9 00 38 	lwz     r31,56(r9)                             
  uint32_t   count = args->count;                                     
ffc075f8:	83 63 00 14 	lwz     r27,20(r3)                             
  char      *buffer = args->buffer;                                   
ffc075fc:	83 23 00 10 	lwz     r25,16(r3)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc07600:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc07604:	48 00 15 01 	bl      ffc08b04 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc07608:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0760c:	40 82 03 38 	bne-    ffc07944 <rtems_termios_read+0x370>    <== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
ffc07610:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc07614:	3d 20 00 00 	lis     r9,0                                   
ffc07618:	39 29 28 78 	addi    r9,r9,10360                            
ffc0761c:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc07620:	7d 29 02 14 	add     r9,r9,r0                               
ffc07624:	80 09 00 08 	lwz     r0,8(r9)                               
ffc07628:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0762c:	41 9e 00 1c 	beq-    cr7,ffc07648 <rtems_termios_read+0x74> 
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
ffc07630:	7f e3 fb 78 	mr      r3,r31                                 
ffc07634:	7c 09 03 a6 	mtctr   r0                                     
ffc07638:	7f c4 f3 78 	mr      r4,r30                                 
ffc0763c:	4e 80 04 21 	bctrl                                          
ffc07640:	7c 7c 1b 78 	mr      r28,r3                                 
ffc07644:	48 00 02 f0 	b       ffc07934 <rtems_termios_read+0x360>    
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
ffc07648:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0764c:	80 1f 00 20 	lwz     r0,32(r31)                             
ffc07650:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc07654:	40 be 02 98 	bne+    cr7,ffc078ec <rtems_termios_read+0x318><== NEVER TAKEN
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
ffc07658:	80 1f 00 28 	lwz     r0,40(r31)                             
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
ffc0765c:	93 9f 00 20 	stw     r28,32(r31)                            
    tty->read_start_column = tty->column;                             
ffc07660:	90 1f 00 2c 	stw     r0,44(r31)                             
    if (tty->device.pollRead != NULL &&                               
ffc07664:	80 1f 00 a0 	lwz     r0,160(r31)                            
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
ffc07668:	93 9f 00 24 	stw     r28,36(r31)                            
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
ffc0766c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07670:	41 9e 00 fc 	beq-    cr7,ffc0776c <rtems_termios_read+0x198>
ffc07674:	80 1f 00 b4 	lwz     r0,180(r31)                            
ffc07678:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0767c:	40 be 00 f0 	bne+    cr7,ffc0776c <rtems_termios_read+0x198>
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
ffc07680:	80 1f 00 3c 	lwz     r0,60(r31)                             
ffc07684:	70 09 00 02 	andi.   r9,r0,2                                
ffc07688:	41 82 00 40 	beq-    ffc076c8 <rtems_termios_read+0xf4>     
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc0768c:	80 1f 00 a0 	lwz     r0,160(r31)                            
ffc07690:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07694:	7c 09 03 a6 	mtctr   r0                                     
ffc07698:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
ffc0769c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc076a0:	40 a0 00 10 	bge+    ffc076b0 <rtems_termios_read+0xdc>     
        rtems_task_wake_after (1);                                    
ffc076a4:	38 60 00 01 	li      r3,1                                   
ffc076a8:	48 00 19 e1 	bl      ffc09088 <rtems_task_wake_after>       
ffc076ac:	4b ff ff e0 	b       ffc0768c <rtems_termios_read+0xb8>     
      } else {                                                        
        if  (siproc (n, tty))                                         
ffc076b0:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc076b4:	7f e4 fb 78 	mr      r4,r31                                 
ffc076b8:	4b ff fd e5 	bl      ffc0749c <siproc>                      
ffc076bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc076c0:	41 9e ff cc 	beq+    cr7,ffc0768c <rtems_termios_read+0xb8> 
ffc076c4:	48 00 02 28 	b       ffc078ec <rtems_termios_read+0x318>    
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
ffc076c8:	48 00 0d d9 	bl      ffc084a0 <rtems_clock_get_ticks_since_boot>
ffc076cc:	7c 7d 1b 78 	mr      r29,r3                                 
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc076d0:	80 1f 00 a0 	lwz     r0,160(r31)                            
ffc076d4:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc076d8:	7c 09 03 a6 	mtctr   r0                                     
ffc076dc:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
ffc076e0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc076e4:	40 80 00 54 	bge-    ffc07738 <rtems_termios_read+0x164>    
        if (tty->termios.c_cc[VMIN]) {                                
ffc076e8:	88 1f 00 47 	lbz     r0,71(r31)                             
ffc076ec:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc076f0:	88 1f 00 46 	lbz     r0,70(r31)                             
ffc076f4:	41 9e 00 1c 	beq-    cr7,ffc07710 <rtems_termios_read+0x13c><== NEVER TAKEN
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc076f8:	70 09 00 ff 	andi.   r9,r0,255                              
ffc076fc:	41 82 00 30 	beq-    ffc0772c <rtems_termios_read+0x158>    <== NEVER TAKEN
ffc07700:	80 1f 00 20 	lwz     r0,32(r31)                             
ffc07704:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07708:	41 be 00 24 	beq+    cr7,ffc0772c <rtems_termios_read+0x158>
ffc0770c:	48 00 00 0c 	b       ffc07718 <rtems_termios_read+0x144>    
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
ffc07710:	70 09 00 ff 	andi.   r9,r0,255                              <== NOT EXECUTED
ffc07714:	41 82 01 d8 	beq-    ffc078ec <rtems_termios_read+0x318>    <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
ffc07718:	48 00 0d 89 	bl      ffc084a0 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
ffc0771c:	80 1f 00 54 	lwz     r0,84(r31)                             
ffc07720:	7c 7d 18 50 	subf    r3,r29,r3                              
ffc07724:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc07728:	41 9d 01 c4 	bgt-    cr7,ffc078ec <rtems_termios_read+0x318>
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
ffc0772c:	38 60 00 01 	li      r3,1                                   
ffc07730:	48 00 19 59 	bl      ffc09088 <rtems_task_wake_after>       
ffc07734:	4b ff ff 9c 	b       ffc076d0 <rtems_termios_read+0xfc>     
      } else {                                                        
        siproc (n, tty);                                              
ffc07738:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc0773c:	7f e4 fb 78 	mr      r4,r31                                 
ffc07740:	4b ff fd 5d 	bl      ffc0749c <siproc>                      
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc07744:	88 1f 00 47 	lbz     r0,71(r31)                             
ffc07748:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0774c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc07750:	40 9c 01 9c 	bge-    cr7,ffc078ec <rtems_termios_read+0x318><== NEVER TAKEN
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
ffc07754:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07758:	41 be ff 78 	beq-    cr7,ffc076d0 <rtems_termios_read+0xfc> <== NEVER TAKEN
ffc0775c:	88 1f 00 46 	lbz     r0,70(r31)                             
ffc07760:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07764:	41 9e ff 6c 	beq+    cr7,ffc076d0 <rtems_termios_read+0xfc> <== NEVER TAKEN
ffc07768:	4b ff ff 60 	b       ffc076c8 <rtems_termios_read+0xf4>     
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
ffc0776c:	83 5f 00 74 	lwz     r26,116(r31)                           
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
ffc07770:	3b a0 00 01 	li      r29,1                                  
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc07774:	3e e0 00 00 	lis     r23,0                                  
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
ffc07778:	3b 1f 00 49 	addi    r24,r31,73                             
ffc0777c:	48 00 01 28 	b       ffc078a4 <rtems_termios_read+0x2d0>    
    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;        
ffc07780:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc07784:	81 7f 00 64 	lwz     r11,100(r31)                           
ffc07788:	39 29 00 01 	addi    r9,r9,1                                
ffc0778c:	7c 09 5b 96 	divwu   r0,r9,r11                              
ffc07790:	7c 00 59 d6 	mullw   r0,r0,r11                              
ffc07794:	7c 00 48 50 	subf    r0,r0,r9                               
      c = tty->rawInBuf.theBuf[newHead];                              
ffc07798:	81 3f 00 58 	lwz     r9,88(r31)                             
ffc0779c:	7f 49 00 ae 	lbzx    r26,r9,r0                              
      tty->rawInBuf.Head = newHead;                                   
ffc077a0:	90 1f 00 5c 	stw     r0,92(r31)                             
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
ffc077a4:	81 7f 00 60 	lwz     r11,96(r31)                            
ffc077a8:	81 5f 00 64 	lwz     r10,100(r31)                           
          % tty->rawInBuf.Size)                                       
ffc077ac:	81 3f 00 64 	lwz     r9,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)             
ffc077b0:	7d 6a 5a 14 	add     r11,r10,r11                            
ffc077b4:	7c 00 58 50 	subf    r0,r0,r11                              
          % tty->rawInBuf.Size)                                       
ffc077b8:	7d 60 4b 96 	divwu   r11,r0,r9                              
ffc077bc:	7d 2b 49 d6 	mullw   r9,r11,r9                              
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
ffc077c0:	81 7f 00 bc 	lwz     r11,188(r31)                           
          % tty->rawInBuf.Size)                                       
ffc077c4:	7c 09 00 50 	subf    r0,r9,r0                               
      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)             
ffc077c8:	7f 80 58 40 	cmplw   cr7,r0,r11                             
ffc077cc:	40 9c 00 84 	bge-    cr7,ffc07850 <rtems_termios_read+0x27c><== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
ffc077d0:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc077d4:	54 00 00 3c 	rlwinm  r0,r0,0,0,30                           
ffc077d8:	90 1f 00 b8 	stw     r0,184(r31)                            
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
ffc077dc:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc077e0:	70 00 02 02 	andi.   r0,r0,514                              
ffc077e4:	2f 80 02 02 	cmpwi   cr7,r0,514                             
ffc077e8:	40 be 00 38 	bne+    cr7,ffc07820 <rtems_termios_read+0x24c><== ALWAYS TAKEN
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
ffc077ec:	80 1f 00 94 	lwz     r0,148(r31)                            <== NOT EXECUTED
ffc077f0:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc077f4:	41 9e 00 10 	beq-    cr7,ffc07804 <rtems_termios_read+0x230><== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
ffc077f8:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc077fc:	70 09 00 20 	andi.   r9,r0,32                               <== NOT EXECUTED
ffc07800:	41 82 00 20 	beq-    ffc07820 <rtems_termios_read+0x24c>    <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
ffc07804:	80 1f 00 a4 	lwz     r0,164(r31)                            <== NOT EXECUTED
ffc07808:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc0780c:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07810:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc07814:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07818:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc0781c:	48 00 00 34 	b       ffc07850 <rtems_termios_read+0x27c>    <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
ffc07820:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc07824:	70 09 01 00 	andi.   r9,r0,256                              
ffc07828:	41 82 00 28 	beq-    ffc07850 <rtems_termios_read+0x27c>    <== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
ffc0782c:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07830:	54 00 07 b8 	rlwinm  r0,r0,0,30,28                          <== NOT EXECUTED
ffc07834:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
ffc07838:	80 1f 00 b0 	lwz     r0,176(r31)                            <== NOT EXECUTED
ffc0783c:	2f 80 00 00 	cmpwi   cr7,r0,0                               <== NOT EXECUTED
ffc07840:	41 9e 00 10 	beq-    cr7,ffc07850 <rtems_termios_read+0x27c><== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
ffc07844:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07848:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc0784c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
ffc07850:	80 1f 00 3c 	lwz     r0,60(r31)                             
ffc07854:	70 09 00 02 	andi.   r9,r0,2                                
ffc07858:	41 82 00 20 	beq-    ffc07878 <rtems_termios_read+0x2a4>    <== NEVER TAKEN
        if (siproc (c, tty))                                          
ffc0785c:	7f 43 d3 78 	mr      r3,r26                                 
ffc07860:	7f e4 fb 78 	mr      r4,r31                                 
ffc07864:	4b ff fc 39 	bl      ffc0749c <siproc>                      
          wait = 0;                                                   
ffc07868:	30 63 ff ff 	addic   r3,r3,-1                               
ffc0786c:	7c 63 19 10 	subfe   r3,r3,r3                               
ffc07870:	7f bd 18 38 	and     r29,r29,r3                             
ffc07874:	48 00 00 2c 	b       ffc078a0 <rtems_termios_read+0x2cc>    
      } else {                                                        
        siproc (c, tty);                                              
ffc07878:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc0787c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc07880:	4b ff fc 1d 	bl      ffc0749c <siproc>                      <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc07884:	88 1f 00 47 	lbz     r0,71(r31)                             <== NOT EXECUTED
ffc07888:	81 3f 00 20 	lwz     r9,32(r31)                             <== NOT EXECUTED
          wait = 0;                                                   
ffc0788c:	7f 89 00 00 	cmpw    cr7,r9,r0                              <== NOT EXECUTED
ffc07890:	7c 00 00 26 	mfcr    r0                                     <== NOT EXECUTED
ffc07894:	54 00 ef fe 	rlwinm  r0,r0,29,31,31                         <== NOT EXECUTED
ffc07898:	7c 00 00 d0 	neg     r0,r0                                  <== NOT EXECUTED
ffc0789c:	7f bd 00 38 	and     r29,r29,r0                             <== NOT EXECUTED
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
ffc078a0:	83 5f 00 70 	lwz     r26,112(r31)                           
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc078a4:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc078a8:	80 1f 00 60 	lwz     r0,96(r31)                             
ffc078ac:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc078b0:	41 9e 00 1c 	beq-    cr7,ffc078cc <rtems_termios_read+0x2f8>
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc078b4:	39 37 21 54 	addi    r9,r23,8532                            
ffc078b8:	81 29 00 08 	lwz     r9,8(r9)                               
ffc078bc:	38 09 ff ff 	addi    r0,r9,-1                               
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc078c0:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc078c4:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc078c8:	41 9c fe b8 	blt+    cr7,ffc07780 <rtems_termios_read+0x1ac><== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
ffc078cc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc078d0:	41 be 00 1c 	beq+    cr7,ffc078ec <rtems_termios_read+0x318>
      sc = rtems_semaphore_obtain(                                    
ffc078d4:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc078d8:	7f 45 d3 78 	mr      r5,r26                                 
ffc078dc:	80 9f 00 6c 	lwz     r4,108(r31)                            
ffc078e0:	48 00 12 25 	bl      ffc08b04 <rtems_semaphore_obtain>      
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc078e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc078e8:	41 9e ff bc 	beq+    cr7,ffc078a4 <rtems_termios_read+0x2d0><== ALWAYS TAKEN
  }                                                                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
ffc078ec:	38 1b 00 01 	addi    r0,r27,1                               
ffc078f0:	3b 39 ff ff 	addi    r25,r25,-1                             
ffc078f4:	7c 09 03 a6 	mtctr   r0                                     
ffc078f8:	48 00 00 1c 	b       ffc07914 <rtems_termios_read+0x340>    
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
ffc078fc:	81 7f 00 1c 	lwz     r11,28(r31)                            
    count--;                                                          
ffc07900:	3b 7b ff ff 	addi    r27,r27,-1                             
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
ffc07904:	7c 0b 48 ae 	lbzx    r0,r11,r9                              
ffc07908:	39 29 00 01 	addi    r9,r9,1                                
ffc0790c:	9c 19 00 01 	stbu    r0,1(r25)                              
ffc07910:	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)) {                      
ffc07914:	42 40 00 14 	bdz-    ffc07928 <rtems_termios_read+0x354>    
ffc07918:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0791c:	80 1f 00 20 	lwz     r0,32(r31)                             
ffc07920:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc07924:	41 9c ff d8 	blt+    cr7,ffc078fc <rtems_termios_read+0x328>
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
ffc07928:	80 1e 00 14 	lwz     r0,20(r30)                             
ffc0792c:	7f 7b 00 50 	subf    r27,r27,r0                             
ffc07930:	93 7e 00 1c 	stw     r27,28(r30)                            
  tty->tty_rcvwakeup = 0;                                             
ffc07934:	38 00 00 00 	li      r0,0                                   
  rtems_semaphore_release (tty->isem);                                
ffc07938:	80 7f 00 14 	lwz     r3,20(r31)                             
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
ffc0793c:	90 1f 00 e4 	stw     r0,228(r31)                            
  rtems_semaphore_release (tty->isem);                                
ffc07940:	48 00 12 ed 	bl      ffc08c2c <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc07944:	39 61 00 30 	addi    r11,r1,48                              
ffc07948:	7f 83 e3 78 	mr      r3,r28                                 
ffc0794c:	48 01 17 74 	b       ffc190c0 <_restgpr_23_x>               
                                                                      

ffc07cd8 <rtems_termios_refill_transmitter>: * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) {
ffc07cd8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc07cdc:	7c 08 02 a6 	mflr    r0                                     
ffc07ce0:	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))         
ffc07ce4:	80 03 00 b8 	lwz     r0,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 
 */                                                                   
int                                                                   
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)      
{                                                                     
ffc07ce8:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc07cec:	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))         
ffc07cf0:	70 00 04 03 	andi.   r0,r0,1027                             
ffc07cf4:	2f 80 04 01 	cmpwi   cr7,r0,1025                            
ffc07cf8:	40 be 00 3c 	bne+    cr7,ffc07d34 <rtems_termios_refill_transmitter+0x5c><== ALWAYS TAKEN
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
ffc07cfc:	80 03 00 a4 	lwz     r0,164(r3)                             <== NOT EXECUTED
ffc07d00:	38 9f 00 4a 	addi    r4,r31,74                              <== NOT EXECUTED
ffc07d04:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc07d08:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc07d0c:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07d10:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
ffc07d14:	4b ff e6 51 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
    tty->t_dqlen--;                                                   
ffc07d18:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
ffc07d1c:	38 09 ff ff 	addi    r0,r9,-1                               <== NOT EXECUTED
ffc07d20:	90 1f 00 90 	stw     r0,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
ffc07d24:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07d28:	60 00 00 02 	ori     r0,r0,2                                <== NOT EXECUTED
ffc07d2c:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
ffc07d30:	48 00 00 48 	b       ffc07d78 <rtems_termios_refill_transmitter+0xa0><== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
ffc07d34:	80 03 00 b8 	lwz     r0,184(r3)                             
ffc07d38:	54 00 07 be 	clrlwi  r0,r0,30                               
ffc07d3c:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc07d40:	40 be 00 44 	bne+    cr7,ffc07d84 <rtems_termios_refill_transmitter+0xac><== ALWAYS TAKEN
     * FIXME: this .write call will generate another                  
     * dequeue callback. This will advance the "Tail" in the data     
     * buffer, although the corresponding data is not yet out!        
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
ffc07d44:	80 03 00 a4 	lwz     r0,164(r3)                             <== NOT EXECUTED
ffc07d48:	38 9f 00 49 	addi    r4,r31,73                              <== NOT EXECUTED
ffc07d4c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc07d50:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc07d54:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07d58:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
ffc07d5c:	4b ff e6 09 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
    tty->t_dqlen--;                                                   
ffc07d60:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
ffc07d64:	38 09 ff ff 	addi    r0,r9,-1                               <== NOT EXECUTED
ffc07d68:	90 1f 00 90 	stw     r0,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
ffc07d6c:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07d70:	54 00 07 fa 	rlwinm  r0,r0,0,31,29                          <== NOT EXECUTED
ffc07d74:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
ffc07d78:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
ffc07d7c:	3b c0 00 01 	li      r30,1                                  <== NOT EXECUTED
ffc07d80:	48 00 01 34 	b       ffc07eb4 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
ffc07d84:	81 23 00 80 	lwz     r9,128(r3)                             
ffc07d88:	80 03 00 84 	lwz     r0,132(r3)                             
ffc07d8c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc07d90:	40 9e 00 20 	bne-    cr7,ffc07db0 <rtems_termios_refill_transmitter+0xd8>
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc07d94:	80 03 00 94 	lwz     r0,148(r3)                             
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
ffc07d98:	3b c0 00 00 	li      r30,0                                  
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc07d9c:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc07da0:	40 be 01 14 	bne+    cr7,ffc07eb4 <rtems_termios_refill_transmitter+0x1dc><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
ffc07da4:	80 63 00 8c 	lwz     r3,140(r3)                             <== NOT EXECUTED
ffc07da8:	48 00 0e 85 	bl      ffc08c2c <rtems_semaphore_release>     <== NOT EXECUTED
ffc07dac:	48 00 01 08 	b       ffc07eb4 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
ffc07db0:	4b ff e5 b5 	bl      ffc06364 <ppc_interrupt_disable>       
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
ffc07db4:	38 00 00 00 	li      r0,0                                   
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
ffc07db8:	83 bf 00 90 	lwz     r29,144(r31)                           
    tty->t_dqlen = 0;                                                 
ffc07dbc:	90 1f 00 90 	stw     r0,144(r31)                            
ffc07dc0:	7c 60 01 24 	mtmsr   r3                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
ffc07dc4:	80 1f 00 84 	lwz     r0,132(r31)                            
ffc07dc8:	81 3f 00 88 	lwz     r9,136(r31)                            
ffc07dcc:	7c 1d 02 14 	add     r0,r29,r0                              
ffc07dd0:	7f a0 4b 96 	divwu   r29,r0,r9                              
ffc07dd4:	7f bd 49 d6 	mullw   r29,r29,r9                             
ffc07dd8:	7f bd 00 50 	subf    r29,r29,r0                             
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
ffc07ddc:	80 1f 00 94 	lwz     r0,148(r31)                            
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    tty->rawOutBuf.Tail = newTail;                                    
ffc07de0:	93 bf 00 84 	stw     r29,132(r31)                           
    if (tty->rawOutBufState == rob_wait) {                            
ffc07de4:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc07de8:	40 be 00 0c 	bne+    cr7,ffc07df4 <rtems_termios_refill_transmitter+0x11c>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
ffc07dec:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc07df0:	48 00 0e 3d 	bl      ffc08c2c <rtems_semaphore_release>     
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
ffc07df4:	80 1f 00 80 	lwz     r0,128(r31)                            
ffc07df8:	7f 9d 00 00 	cmpw    cr7,r29,r0                             
ffc07dfc:	40 be 00 30 	bne+    cr7,ffc07e2c <rtems_termios_refill_transmitter+0x154>
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
ffc07e00:	38 00 00 00 	li      r0,0                                   
ffc07e04:	90 1f 00 94 	stw     r0,148(r31)                            
      nToSend = 0;                                                    
ffc07e08:	3b c0 00 00 	li      r30,0                                  
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
ffc07e0c:	80 1f 00 d4 	lwz     r0,212(r31)                            
ffc07e10:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07e14:	41 9e 00 9c 	beq-    cr7,ffc07eb0 <rtems_termios_refill_transmitter+0x1d8><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
ffc07e18:	38 7f 00 30 	addi    r3,r31,48                              <== NOT EXECUTED
ffc07e1c:	80 9f 00 d8 	lwz     r4,216(r31)                            <== NOT EXECUTED
ffc07e20:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07e24:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07e28:	48 00 00 88 	b       ffc07eb0 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
ffc07e2c:	80 1f 00 b8 	lwz     r0,184(r31)                            
ffc07e30:	70 00 02 10 	andi.   r0,r0,528                              
ffc07e34:	2f 80 02 10 	cmpwi   cr7,r0,528                             
ffc07e38:	40 be 00 28 	bne+    cr7,ffc07e60 <rtems_termios_refill_transmitter+0x188><== ALWAYS TAKEN
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
ffc07e3c:	4b ff e5 29 	bl      ffc06364 <ppc_interrupt_disable>       <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
ffc07e40:	80 1f 00 b8 	lwz     r0,184(r31)                            <== NOT EXECUTED
ffc07e44:	60 00 00 20 	ori     r0,r0,32                               <== NOT EXECUTED
ffc07e48:	90 1f 00 b8 	stw     r0,184(r31)                            <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc07e4c:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc07e50:	90 1f 00 94 	stw     r0,148(r31)                            <== NOT EXECUTED
ffc07e54:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
ffc07e58:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc07e5c:	48 00 00 54 	b       ffc07eb0 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
ffc07e60:	80 1f 00 80 	lwz     r0,128(r31)                            
ffc07e64:	7f 9d 00 40 	cmplw   cr7,r29,r0                             
ffc07e68:	40 9d 00 0c 	ble-    cr7,ffc07e74 <rtems_termios_refill_transmitter+0x19c>
        nToSend = tty->rawOutBuf.Size - newTail;                      
ffc07e6c:	83 df 00 88 	lwz     r30,136(r31)                           
ffc07e70:	48 00 00 08 	b       ffc07e78 <rtems_termios_refill_transmitter+0x1a0>
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
ffc07e74:	83 df 00 80 	lwz     r30,128(r31)                           
      /* when flow control XON or XOF, don't send blocks of data     */
      /* to allow fast reaction on incoming flow ctrl and low latency*/
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
ffc07e78:	80 1f 00 b8 	lwz     r0,184(r31)                            
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
ffc07e7c:	7f dd f0 50 	subf    r30,r29,r30                            
      /* when flow control XON or XOF, don't send blocks of data     */
      /* to allow fast reaction on incoming flow ctrl and low latency*/
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
ffc07e80:	70 09 06 00 	andi.   r9,r0,1536                             
ffc07e84:	41 82 00 08 	beq-    ffc07e8c <rtems_termios_refill_transmitter+0x1b4>
        nToSend = 1;                                                  
ffc07e88:	3b c0 00 01 	li      r30,1                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc07e8c:	38 00 00 01 	li      r0,1                                   
      (*tty->device.write)(                                           
ffc07e90:	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*/                         
ffc07e94:	90 1f 00 94 	stw     r0,148(r31)                            
      (*tty->device.write)(                                           
ffc07e98:	7f c5 f3 78 	mr      r5,r30                                 
ffc07e9c:	7c 84 ea 14 	add     r4,r4,r29                              
ffc07ea0:	80 1f 00 a4 	lwz     r0,164(r31)                            
ffc07ea4:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07ea8:	7c 09 03 a6 	mtctr   r0                                     
ffc07eac:	4e 80 04 21 	bctrl                                          
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
ffc07eb0:	93 bf 00 84 	stw     r29,132(r31)                           
  }                                                                   
  return nToSend;                                                     
}                                                                     
ffc07eb4:	39 61 00 18 	addi    r11,r1,24                              
ffc07eb8:	7f c3 f3 78 	mr      r3,r30                                 
ffc07ebc:	48 01 12 1c 	b       ffc190d8 <_restgpr_29_x>               
                                                                      

ffc07c5c <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
ffc07c5c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc07c60:	7c 08 02 a6 	mflr    r0                                     
ffc07c64:	90 01 00 2c 	stw     r0,44(r1)                              
ffc07c68:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc07c6c:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc07c70:	3b a1 00 0c 	addi    r29,r1,12                              
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
ffc07c74:	3b c1 00 08 	addi    r30,r1,8                               
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc07c78:	38 60 00 03 	li      r3,3                                   
ffc07c7c:	38 80 00 02 	li      r4,2                                   
ffc07c80:	38 a0 00 00 	li      r5,0                                   
ffc07c84:	7f a6 eb 78 	mr      r6,r29                                 
ffc07c88:	48 00 08 25 	bl      ffc084ac <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) {              
ffc07c8c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07c90:	70 09 00 01 	andi.   r9,r0,1                                
ffc07c94:	41 a2 00 14 	beq+    ffc07ca8 <rtems_termios_rxdaemon+0x4c> <== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
ffc07c98:	38 00 00 00 	li      r0,0                                   <== NOT EXECUTED
ffc07c9c:	90 1f 00 c4 	stw     r0,196(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc07ca0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc07ca4:	48 00 11 85 	bl      ffc08e28 <rtems_task_delete>           <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc07ca8:	80 1f 00 a0 	lwz     r0,160(r31)                            
ffc07cac:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07cb0:	7c 09 03 a6 	mtctr   r0                                     
ffc07cb4:	4e 80 04 21 	bctrl                                          
    if (c != EOF) {                                                   
ffc07cb8:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc07cbc:	41 9e ff bc 	beq+    cr7,ffc07c78 <rtems_termios_rxdaemon+0x1c>
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
ffc07cc0:	98 61 00 08 	stb     r3,8(r1)                               
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
ffc07cc4:	7f c4 f3 78 	mr      r4,r30                                 
ffc07cc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc07ccc:	38 a0 00 01 	li      r5,1                                   
ffc07cd0:	4b ff fc a9 	bl      ffc07978 <rtems_termios_enqueue_raw_characters>
ffc07cd4:	4b ff ff a4 	b       ffc07c78 <rtems_termios_rxdaemon+0x1c> 
                                                                      

ffc07ec0 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
ffc07ec0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc07ec4:	7c 08 02 a6 	mflr    r0                                     
ffc07ec8:	bf a1 00 1c 	stmw    r29,28(r1)                             
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc07ecc:	3f c0 00 00 	lis     r30,0                                  
                                                                      
/*                                                                    
 * this task actually processes any transmit events                   
 */                                                                   
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{                                                                     
ffc07ed0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07ed4:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc07ed8:	3b a1 00 08 	addi    r29,r1,8                               
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc07edc:	3b de 28 78 	addi    r30,r30,10360                          
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc07ee0:	38 60 00 03 	li      r3,3                                   
ffc07ee4:	38 80 00 02 	li      r4,2                                   
ffc07ee8:	38 a0 00 00 	li      r5,0                                   
ffc07eec:	7f a6 eb 78 	mr      r6,r29                                 
ffc07ef0:	48 00 05 bd 	bl      ffc084ac <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) {              
ffc07ef4:	80 01 00 08 	lwz     r0,8(r1)                               
ffc07ef8:	70 09 00 01 	andi.   r9,r0,1                                
ffc07efc:	41 a2 00 14 	beq+    ffc07f10 <rtems_termios_txdaemon+0x50> <== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
ffc07f00:	38 00 00 00 	li      r0,0                                   <== NOT EXECUTED
ffc07f04:	90 1f 00 c8 	stw     r0,200(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc07f08:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc07f0c:	48 00 0f 1d 	bl      ffc08e28 <rtems_task_delete>           <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc07f10:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc07f14:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc07f18:	7d 3e 4a 14 	add     r9,r30,r9                              
ffc07f1c:	80 09 00 14 	lwz     r0,20(r9)                              
ffc07f20:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07f24:	41 9e 00 10 	beq-    cr7,ffc07f34 <rtems_termios_txdaemon+0x74><== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc07f28:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc07f2c:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc07f30:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
ffc07f34:	7f e3 fb 78 	mr      r3,r31                                 
ffc07f38:	4b ff fd a1 	bl      ffc07cd8 <rtems_termios_refill_transmitter>
  }                                                                   
ffc07f3c:	4b ff ff a4 	b       ffc07ee0 <rtems_termios_txdaemon+0x20> 
                                                                      

ffc07508 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
ffc07508:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0750c:	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);
ffc07510:	38 80 00 00 	li      r4,0                                   
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc07514:	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);
ffc07518:	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;                   
ffc0751c:	81 23 00 00 	lwz     r9,0(r3)                               
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc07520:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc07524:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc07528:	83 e9 00 38 	lwz     r31,56(r9)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0752c:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc07530:	48 00 15 d5 	bl      ffc08b04 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc07534:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc07538:	40 82 00 90 	bne-    ffc075c8 <rtems_termios_write+0xc0>    
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
ffc0753c:	80 1f 00 cc 	lwz     r0,204(r31)                            
ffc07540:	3d 20 00 00 	lis     r9,0                                   
ffc07544:	39 29 28 78 	addi    r9,r9,10360                            
ffc07548:	54 00 28 34 	rlwinm  r0,r0,5,0,26                           
ffc0754c:	7d 29 02 14 	add     r9,r9,r0                               
ffc07550:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc07554:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07558:	41 9e 00 1c 	beq-    cr7,ffc07574 <rtems_termios_write+0x6c>
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
ffc0755c:	7f e3 fb 78 	mr      r3,r31                                 
ffc07560:	7c 09 03 a6 	mtctr   r0                                     
ffc07564:	7f c4 f3 78 	mr      r4,r30                                 
ffc07568:	4e 80 04 21 	bctrl                                          
ffc0756c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc07570:	48 00 00 50 	b       ffc075c0 <rtems_termios_write+0xb8>    
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
ffc07574:	80 1f 00 34 	lwz     r0,52(r31)                             
ffc07578:	80 9e 00 14 	lwz     r4,20(r30)                             
ffc0757c:	70 09 00 01 	andi.   r9,r0,1                                
ffc07580:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc07584:	41 82 00 2c 	beq-    ffc075b0 <rtems_termios_write+0xa8>    <== NEVER TAKEN
    uint32_t   count = args->count;                                   
ffc07588:	7c 9c 23 78 	mr      r28,r4                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
ffc0758c:	3b 63 ff ff 	addi    r27,r3,-1                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc07590:	48 00 00 14 	b       ffc075a4 <rtems_termios_write+0x9c>    
      oproc (*buffer++, tty);                                         
ffc07594:	8c 7b 00 01 	lbzu    r3,1(r27)                              
ffc07598:	7f e4 fb 78 	mr      r4,r31                                 
ffc0759c:	3b 9c ff ff 	addi    r28,r28,-1                             
ffc075a0:	4b ff f9 49 	bl      ffc06ee8 <oproc>                       
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc075a4:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc075a8:	40 9e ff ec 	bne+    cr7,ffc07594 <rtems_termios_write+0x8c>
ffc075ac:	48 00 00 0c 	b       ffc075b8 <rtems_termios_write+0xb0>    
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
ffc075b0:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc075b4:	4b ff f8 0d 	bl      ffc06dc0 <rtems_termios_puts>          <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
ffc075b8:	80 1e 00 14 	lwz     r0,20(r30)                             
ffc075bc:	90 1e 00 1c 	stw     r0,28(r30)                             
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
ffc075c0:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc075c4:	48 00 16 69 	bl      ffc08c2c <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc075c8:	39 61 00 20 	addi    r11,r1,32                              
ffc075cc:	7f a3 eb 78 	mr      r3,r29                                 
ffc075d0:	48 01 1b 00 	b       ffc190d0 <_restgpr_27_x>               
                                                                      

ffc18848 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
ffc18848:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1884c:	7c 08 02 a6 	mflr    r0                                     
ffc18850:	7c 64 1b 78 	mr      r4,r3                                  
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
ffc18854:	3c 60 00 00 	lis     r3,0                                   
ffc18858:	90 01 00 1c 	stw     r0,28(r1)                              
ffc1885c:	38 63 79 48 	addi    r3,r3,31048                            
ffc18860:	38 a1 00 08 	addi    r5,r1,8                                
ffc18864:	48 00 32 91 	bl      ffc1baf4 <_Objects_Get>                
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc18868:	80 01 00 08 	lwz     r0,8(r1)                               
ffc1886c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc18870:	40 9e 00 24 	bne-    cr7,ffc18894 <rtems_timer_cancel+0x4c> 
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
ffc18874:	80 03 00 38 	lwz     r0,56(r3)                              
ffc18878:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc1887c:	41 9e 00 0c 	beq-    cr7,ffc18888 <rtems_timer_cancel+0x40> <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
ffc18880:	38 63 00 10 	addi    r3,r3,16                               
ffc18884:	48 00 54 81 	bl      ffc1dd04 <_Watchdog_Remove>            
      _Thread_Enable_dispatch();                                      
ffc18888:	48 00 3c 39 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc1888c:	38 60 00 00 	li      r3,0                                   
ffc18890:	48 00 00 08 	b       ffc18898 <rtems_timer_cancel+0x50>     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc18894:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc18898:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1889c:	38 21 00 18 	addi    r1,r1,24                               
ffc188a0:	7c 08 03 a6 	mtlr    r0                                     
ffc188a4:	4e 80 00 20 	blr                                            
                                                                      

ffc18dc8 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
ffc18dc8:	94 21 ff c8 	stwu    r1,-56(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc18dcc:	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                        
)                                                                     
{                                                                     
ffc18dd0:	7c 08 02 a6 	mflr    r0                                     
ffc18dd4:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc18dd8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc18ddc:	7c 9c 23 78 	mr      r28,r4                                 
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc18de0:	83 a9 28 e8 	lwz     r29,10472(r9)                          
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
ffc18de4:	7c be 2b 78 	mr      r30,r5                                 
ffc18de8:	90 01 00 3c 	stw     r0,60(r1)                              
ffc18dec:	7c da 33 78 	mr      r26,r6                                 
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
ffc18df0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INCORRECT_STATE;                                     
ffc18df4:	3b 20 00 0e 	li      r25,14                                 
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
ffc18df8:	41 9e 00 c8 	beq-    cr7,ffc18ec0 <rtems_timer_server_fire_when+0xf8>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
ffc18dfc:	3d 20 00 00 	lis     r9,0                                   
ffc18e00:	88 09 28 8c 	lbz     r0,10380(r9)                           
    return RTEMS_NOT_DEFINED;                                         
ffc18e04:	3b 20 00 0b 	li      r25,11                                 
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
ffc18e08:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc18e0c:	41 9e 00 b4 	beq-    cr7,ffc18ec0 <rtems_timer_server_fire_when+0xf8><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc18e10:	2f 85 00 00 	cmpwi   cr7,r5,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc18e14:	3b 20 00 09 	li      r25,9                                  
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc18e18:	41 9e 00 a8 	beq-    cr7,ffc18ec0 <rtems_timer_server_fire_when+0xf8>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
ffc18e1c:	7c 83 23 78 	mr      r3,r4                                  
ffc18e20:	4b ff cc 6d 	bl      ffc15a8c <_TOD_Validate>               
    return RTEMS_INVALID_CLOCK;                                       
ffc18e24:	3b 20 00 14 	li      r25,20                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
ffc18e28:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18e2c:	41 9e 00 94 	beq-    cr7,ffc18ec0 <rtems_timer_server_fire_when+0xf8>
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
ffc18e30:	7f 83 e3 78 	mr      r3,r28                                 
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
ffc18e34:	3f 60 00 00 	lis     r27,0                                  
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
ffc18e38:	4b ff cb c9 	bl      ffc15a00 <_TOD_To_seconds>             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
ffc18e3c:	80 1b 28 a0 	lwz     r0,10400(r27)                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
ffc18e40:	7c 7c 1b 78 	mr      r28,r3                                 
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
ffc18e44:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc18e48:	40 9d 00 78 	ble-    cr7,ffc18ec0 <rtems_timer_server_fire_when+0xf8>
ffc18e4c:	3c 60 00 00 	lis     r3,0                                   
ffc18e50:	38 63 79 48 	addi    r3,r3,31048                            
ffc18e54:	7f e4 fb 78 	mr      r4,r31                                 
ffc18e58:	38 a1 00 08 	addi    r5,r1,8                                
ffc18e5c:	48 00 2c 99 	bl      ffc1baf4 <_Objects_Get>                
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc18e60:	83 01 00 08 	lwz     r24,8(r1)                              
ffc18e64:	7c 79 1b 78 	mr      r25,r3                                 
ffc18e68:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc18e6c:	40 9e 00 50 	bne-    cr7,ffc18ebc <rtems_timer_server_fire_when+0xf4>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
ffc18e70:	38 63 00 10 	addi    r3,r3,16                               
ffc18e74:	48 00 4e 91 	bl      ffc1dd04 <_Watchdog_Remove>            
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
ffc18e78:	38 00 00 03 	li      r0,3                                   
ffc18e7c:	90 19 00 38 	stw     r0,56(r25)                             
      _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 ); 
ffc18e80:	7f 24 cb 78 	mr      r4,r25                                 
ffc18e84:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
    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();
ffc18e88:	80 1b 28 a0 	lwz     r0,10400(r27)                          
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc18e8c:	93 19 00 18 	stw     r24,24(r25)                            
ffc18e90:	7f 80 e0 50 	subf    r28,r0,r28                             
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc18e94:	80 1d 00 04 	lwz     r0,4(r29)                              
  the_watchdog->routine   = routine;                                  
ffc18e98:	93 d9 00 2c 	stw     r30,44(r25)                            
ffc18e9c:	7c 09 03 a6 	mtctr   r0                                     
  the_watchdog->id        = id;                                       
ffc18ea0:	93 f9 00 30 	stw     r31,48(r25)                            
  the_watchdog->user_data = user_data;                                
ffc18ea4:	93 59 00 34 	stw     r26,52(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();
ffc18ea8:	93 99 00 1c 	stw     r28,28(r25)                            
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
ffc18eac:	3b 20 00 00 	li      r25,0                                  
      (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();
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc18eb0:	4e 80 04 21 	bctrl                                          
                                                                      
      _Thread_Enable_dispatch();                                      
ffc18eb4:	48 00 36 0d 	bl      ffc1c4c0 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc18eb8:	48 00 00 08 	b       ffc18ec0 <rtems_timer_server_fire_when+0xf8>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc18ebc:	3b 20 00 04 	li      r25,4                                  
}                                                                     
ffc18ec0:	39 61 00 38 	addi    r11,r1,56                              
ffc18ec4:	7f 23 cb 78 	mr      r3,r25                                 
ffc18ec8:	4b ff 53 d8 	b       ffc0e2a0 <_restgpr_24_x>               
                                                                      

ffc09248 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
ffc09248:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0924c:	7c 08 02 a6 	mflr    r0                                     
ffc09250:	90 01 00 24 	stw     r0,36(r1)                              
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc09254:	74 60 20 00 	andis.  r0,r3,8192                             
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
ffc09258:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc0925c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc09260:	7c 9a 23 78 	mr      r26,r4                                 
ffc09264:	7c bb 2b 78 	mr      r27,r5                                 
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc09268:	41 82 00 40 	beq-    ffc092a8 <rtems_verror+0x60>           
    if (rtems_panic_in_progress++)                                    
ffc0926c:	3d 60 00 00 	lis     r11,0                                  
ffc09270:	81 2b 27 d0 	lwz     r9,10192(r11)                          
ffc09274:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09278:	38 09 00 01 	addi    r0,r9,1                                
ffc0927c:	90 0b 27 d0 	stw     r0,10192(r11)                          
ffc09280:	41 9e 00 14 	beq-    cr7,ffc09294 <rtems_verror+0x4c>       <== ALWAYS TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc09284:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc09288:	81 69 27 f4 	lwz     r11,10228(r9)                          <== NOT EXECUTED
ffc0928c:	38 0b 00 01 	addi    r0,r11,1                               <== NOT EXECUTED
ffc09290:	90 09 27 f4 	stw     r0,10228(r9)                           <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
ffc09294:	3d 20 00 00 	lis     r9,0                                   
ffc09298:	80 09 27 d0 	lwz     r0,10192(r9)                           
      return 0;                                                       
ffc0929c:	3b e0 00 00 	li      r31,0                                  
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    if (rtems_panic_in_progress++)                                    
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
ffc092a0:	2f 80 00 02 	cmpwi   cr7,r0,2                               
ffc092a4:	41 9d 01 14 	bgt-    cr7,ffc093b8 <rtems_verror+0x170>      <== NEVER TAKEN
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
ffc092a8:	3d 20 00 00 	lis     r9,0                                   
ffc092ac:	81 29 27 64 	lwz     r9,10084(r9)                           
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
ffc092b0:	57 bc 01 00 	rlwinm  r28,r29,0,4,0                          
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
  int               local_errno = 0;                                  
ffc092b4:	3b c0 00 00 	li      r30,0                                  
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
ffc092b8:	80 69 00 08 	lwz     r3,8(r9)                               
ffc092bc:	48 00 d1 51 	bl      ffc1640c <fflush>                      
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
ffc092c0:	77 a0 40 00 	andis.  r0,r29,16384                           
ffc092c4:	41 a2 00 0c 	beq+    ffc092d0 <rtems_verror+0x88>           
    local_errno = errno;                                              
ffc092c8:	48 00 cc b1 	bl      ffc15f78 <__errno>                     
ffc092cc:	83 c3 00 00 	lwz     r30,0(r3)                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
ffc092d0:	3f a0 00 00 	lis     r29,0                                  
ffc092d4:	81 3d 27 64 	lwz     r9,10084(r29)                          
ffc092d8:	7f 44 d3 78 	mr      r4,r26                                 
ffc092dc:	7f 65 db 78 	mr      r5,r27                                 
ffc092e0:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc092e4:	48 01 38 2d 	bl      ffc1cb10 <vfprintf>                    
                                                                      
  if (status)                                                         
ffc092e8:	2f 9c 00 00 	cmpwi   cr7,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);          
ffc092ec:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  if (status)                                                         
ffc092f0:	41 be 00 30 	beq+    cr7,ffc09320 <rtems_verror+0xd8>       
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
ffc092f4:	81 3d 27 64 	lwz     r9,10084(r29)                          
ffc092f8:	7f 83 e3 78 	mr      r3,r28                                 
ffc092fc:	83 a9 00 0c 	lwz     r29,12(r9)                             
ffc09300:	4b ff ff 1d 	bl      ffc0921c <rtems_status_text>           
ffc09304:	3c 80 ff c2 	lis     r4,-62                                 
ffc09308:	7c 65 1b 78 	mr      r5,r3                                  
ffc0930c:	38 84 67 2c 	addi    r4,r4,26412                            
ffc09310:	7f a3 eb 78 	mr      r3,r29                                 
ffc09314:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09318:	48 00 d6 29 	bl      ffc16940 <fprintf>                     
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
ffc0931c:	7f ff 1a 14 	add     r31,r31,r3                             
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
ffc09320:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc09324:	41 9e 00 68 	beq-    cr7,ffc0938c <rtems_verror+0x144>      
    if ((local_errno > 0) && *strerror(local_errno))                  
ffc09328:	40 9d 00 40 	ble-    cr7,ffc09368 <rtems_verror+0x120>      
ffc0932c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09330:	48 00 e5 0d 	bl      ffc1783c <strerror>                    
ffc09334:	88 03 00 00 	lbz     r0,0(r3)                               
ffc09338:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0933c:	41 be 00 2c 	beq+    cr7,ffc09368 <rtems_verror+0x120>      <== NEVER TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
ffc09340:	3d 20 00 00 	lis     r9,0                                   
ffc09344:	81 29 27 64 	lwz     r9,10084(r9)                           
ffc09348:	7f c3 f3 78 	mr      r3,r30                                 
ffc0934c:	83 a9 00 0c 	lwz     r29,12(r9)                             
ffc09350:	48 00 e4 ed 	bl      ffc1783c <strerror>                    
ffc09354:	3c 80 ff c2 	lis     r4,-62                                 
ffc09358:	7c 65 1b 78 	mr      r5,r3                                  
ffc0935c:	38 84 67 3a 	addi    r4,r4,26426                            
ffc09360:	7f a3 eb 78 	mr      r3,r29                                 
ffc09364:	48 00 00 1c 	b       ffc09380 <rtems_verror+0x138>          
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
ffc09368:	3d 20 00 00 	lis     r9,0                                   
ffc0936c:	81 29 27 64 	lwz     r9,10084(r9)                           
ffc09370:	3c 80 ff c2 	lis     r4,-62                                 
ffc09374:	38 84 67 47 	addi    r4,r4,26439                            
ffc09378:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc0937c:	7f c5 f3 78 	mr      r5,r30                                 
ffc09380:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09384:	48 00 d5 bd 	bl      ffc16940 <fprintf>                     
ffc09388:	7f ff 1a 14 	add     r31,r31,r3                             
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc0938c:	3f c0 00 00 	lis     r30,0                                  
ffc09390:	81 3e 27 64 	lwz     r9,10084(r30)                          
ffc09394:	3c 80 ff c2 	lis     r4,-62                                 
ffc09398:	38 84 6a 6e 	addi    r4,r4,27246                            
ffc0939c:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc093a0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc093a4:	48 00 d5 9d 	bl      ffc16940 <fprintf>                     
                                                                      
  (void) fflush(stderr);                                              
ffc093a8:	81 3e 27 64 	lwz     r9,10084(r30)                          
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc093ac:	7f e3 fa 14 	add     r31,r3,r31                             
                                                                      
  (void) fflush(stderr);                                              
ffc093b0:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc093b4:	48 00 d0 59 	bl      ffc1640c <fflush>                      
                                                                      
  return chars_written;                                               
}                                                                     
ffc093b8:	39 61 00 20 	addi    r11,r1,32                              
ffc093bc:	7f e3 fb 78 	mr      r3,r31                                 
ffc093c0:	4b ff 8b bc 	b       ffc01f7c <_restgpr_26_x>               
                                                                      

ffc04b2c <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
ffc04b2c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04b30:	7c 08 02 a6 	mflr    r0                                     
ffc04b34:	bf 01 00 08 	stmw    r24,8(r1)                              
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
ffc04b38:	3f 80 7f ff 	lis     r28,32767                              
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc04b3c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04b40:	90 01 00 2c 	stw     r0,44(r1)                              
ffc04b44:	7c 9b 23 78 	mr      r27,r4                                 
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
ffc04b48:	3b a0 00 00 	li      r29,0                                  
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
ffc04b4c:	63 9c ff ff 	ori     r28,r28,65535                          
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
ffc04b50:	3b e0 00 00 	li      r31,0                                  
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc04b54:	3f 00 00 00 	lis     r24,0                                  
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc04b58:	3f 20 00 00 	lis     r25,0                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc04b5c:	3b 40 00 0a 	li      r26,10                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc04b60:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc04b64:	38 09 ff ff 	addi    r0,r9,-1                               
ffc04b68:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04b6c:	90 1e 00 04 	stw     r0,4(r30)                              
ffc04b70:	40 bc 00 14 	bge+    cr7,ffc04b84 <scanInt+0x58>            <== ALWAYS TAKEN
ffc04b74:	80 78 26 e4 	lwz     r3,9956(r24)                           <== NOT EXECUTED
ffc04b78:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc04b7c:	48 00 ea e1 	bl      ffc1365c <__srget_r>                   <== NOT EXECUTED
ffc04b80:	48 00 00 14 	b       ffc04b94 <scanInt+0x68>                <== NOT EXECUTED
ffc04b84:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc04b88:	88 69 00 00 	lbz     r3,0(r9)                               
ffc04b8c:	39 29 00 01 	addi    r9,r9,1                                
ffc04b90:	91 3e 00 00 	stw     r9,0(r30)                              
    if (c == ':')                                                     
ffc04b94:	2f 03 00 3a 	cmpwi   cr6,r3,58                              
ffc04b98:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04b9c:	41 9a 00 68 	beq-    cr6,ffc04c04 <scanInt+0xd8>            
      break;                                                          
    if (sign == 0) {                                                  
ffc04ba0:	40 9e 00 1c 	bne-    cr7,ffc04bbc <scanInt+0x90>            
      if (c == '-') {                                                 
ffc04ba4:	2f 83 00 2d 	cmpwi   cr7,r3,45                              
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
ffc04ba8:	3b a0 00 01 	li      r29,1                                  
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
ffc04bac:	40 be 00 10 	bne+    cr7,ffc04bbc <scanInt+0x90>            
        sign = -1;                                                    
        limit++;                                                      
ffc04bb0:	3b 9c 00 01 	addi    r28,r28,1                              
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
ffc04bb4:	3b a0 ff ff 	li      r29,-1                                 
        limit++;                                                      
        continue;                                                     
ffc04bb8:	4b ff ff a8 	b       ffc04b60 <scanInt+0x34>                
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc04bbc:	81 39 26 e0 	lwz     r9,9952(r25)                           
ffc04bc0:	7d 29 1a 14 	add     r9,r9,r3                               
ffc04bc4:	88 09 00 01 	lbz     r0,1(r9)                               
ffc04bc8:	70 09 00 04 	andi.   r9,r0,4                                
ffc04bcc:	41 82 00 4c 	beq-    ffc04c18 <scanInt+0xec>                
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc04bd0:	7c 1c d3 96 	divwu   r0,r28,r26                             
ffc04bd4:	7f 9f 00 40 	cmplw   cr7,r31,r0                             
ffc04bd8:	41 9d 00 40 	bgt-    cr7,ffc04c18 <scanInt+0xec>            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
ffc04bdc:	7f 9f 00 00 	cmpw    cr7,r31,r0                             
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
ffc04be0:	38 63 ff d0 	addi    r3,r3,-48                              
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
ffc04be4:	40 be 00 14 	bne+    cr7,ffc04bf8 <scanInt+0xcc>            
ffc04be8:	1c 1f 00 0a 	mulli   r0,r31,10                              
ffc04bec:	7c 00 e0 50 	subf    r0,r0,r28                              
ffc04bf0:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc04bf4:	41 9d 00 24 	bgt-    cr7,ffc04c18 <scanInt+0xec>            <== ALWAYS TAKEN
      return 0;                                                       
    i = i * 10 + d;                                                   
ffc04bf8:	1f ff 00 0a 	mulli   r31,r31,10                             
ffc04bfc:	7f e3 fa 14 	add     r31,r3,r31                             
ffc04c00:	4b ff ff 60 	b       ffc04b60 <scanInt+0x34>                
  }                                                                   
  if (sign == 0)                                                      
ffc04c04:	41 9e 00 14 	beq-    cr7,ffc04c18 <scanInt+0xec>            <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
ffc04c08:	7f fd f9 d6 	mullw   r31,r29,r31                            
  return 1;                                                           
ffc04c0c:	38 60 00 01 	li      r3,1                                   
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
ffc04c10:	93 fb 00 00 	stw     r31,0(r27)                             
  return 1;                                                           
ffc04c14:	48 00 00 08 	b       ffc04c1c <scanInt+0xf0>                
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
ffc04c18:	38 60 00 00 	li      r3,0                                   
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
ffc04c1c:	39 61 00 28 	addi    r11,r1,40                              
ffc04c20:	4b ff bc 8c 	b       ffc008ac <_restgpr_24_x>               
                                                                      

ffc04d24 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
ffc04d24:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04d28:	7c 08 02 a6 	mflr    r0                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d2c:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04d30:	bf 61 00 24 	stmw    r27,36(r1)                             
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d34:	3b 81 00 18 	addi    r28,r1,24                              
ffc04d38:	3b a1 00 1c 	addi    r29,r1,28                              
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04d3c:	90 a1 00 18 	stw     r5,24(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d40:	7f 85 e3 78 	mr      r5,r28                                 
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04d44:	7c 7b 1b 78 	mr      r27,r3                                 
ffc04d48:	90 c1 00 1c 	stw     r6,28(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d4c:	7f a6 eb 78 	mr      r6,r29                                 
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04d50:	7c 9f 23 78 	mr      r31,r4                                 
ffc04d54:	90 01 00 3c 	stw     r0,60(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d58:	4b ff fe cd 	bl      ffc04c24 <scanString>                  
ffc04d5c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
ffc04d60:	3b c0 00 00 	li      r30,0                                  
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc04d64:	41 be 01 04 	beq+    cr7,ffc04e68 <scangr+0x144>            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
ffc04d68:	7f 63 db 78 	mr      r3,r27                                 
ffc04d6c:	38 9f 00 04 	addi    r4,r31,4                               
ffc04d70:	7f 85 e3 78 	mr      r5,r28                                 
ffc04d74:	7f a6 eb 78 	mr      r6,r29                                 
ffc04d78:	38 e0 00 00 	li      r7,0                                   
ffc04d7c:	4b ff fe a9 	bl      ffc04c24 <scanString>                  
ffc04d80:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d84:	41 be 00 e4 	beq+    cr7,ffc04e68 <scangr+0x144>            <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
ffc04d88:	7f 63 db 78 	mr      r3,r27                                 
ffc04d8c:	38 81 00 08 	addi    r4,r1,8                                
ffc04d90:	4b ff fd 9d 	bl      ffc04b2c <scanInt>                     
ffc04d94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d98:	41 be 00 d0 	beq+    cr7,ffc04e68 <scangr+0x144>            <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
ffc04d9c:	7f 63 db 78 	mr      r3,r27                                 
ffc04da0:	38 81 00 0c 	addi    r4,r1,12                               
ffc04da4:	7f 85 e3 78 	mr      r5,r28                                 
ffc04da8:	7f a6 eb 78 	mr      r6,r29                                 
ffc04dac:	38 e0 00 01 	li      r7,1                                   
ffc04db0:	4b ff fe 75 	bl      ffc04c24 <scanString>                  
ffc04db4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04db8:	41 9e 00 b0 	beq-    cr7,ffc04e68 <scangr+0x144>            <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
ffc04dbc:	80 01 00 08 	lwz     r0,8(r1)                               
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04dc0:	81 61 00 0c 	lwz     r11,12(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;                                                
ffc04dc4:	b0 1f 00 08 	sth     r0,8(r31)                              
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04dc8:	38 00 00 01 	li      r0,1                                   
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
ffc04dcc:	39 2b ff ff 	addi    r9,r11,-1                              
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04dd0:	48 00 00 14 	b       ffc04de4 <scangr+0xc0>                 
    if(*cp == ',')                                                    
      memcount++;                                                     
ffc04dd4:	69 48 00 2c 	xori    r8,r10,44                              
ffc04dd8:	21 08 00 00 	subfic  r8,r8,0                                
ffc04ddc:	7d 00 01 94 	addze   r8,r0                                  
ffc04de0:	7d 00 43 78 	mr      r0,r8                                  
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04de4:	8d 49 00 01 	lbzu    r10,1(r9)                              
ffc04de8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04dec:	40 9e ff e8 	bne+    cr7,ffc04dd4 <scangr+0xb0>             
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
ffc04df0:	54 09 10 3a 	rlwinm  r9,r0,2,0,29                           
ffc04df4:	38 09 00 13 	addi    r0,r9,19                               
ffc04df8:	81 21 00 1c 	lwz     r9,28(r1)                              
    return 0;                                                         
ffc04dfc:	3b c0 00 00 	li      r30,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
ffc04e00:	7f 89 00 40 	cmplw   cr7,r9,r0                              
ffc04e04:	41 9c 00 64 	blt-    cr7,ffc04e68 <scangr+0x144>            <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
ffc04e08:	81 21 00 18 	lwz     r9,24(r1)                              
ffc04e0c:	39 29 00 0f 	addi    r9,r9,15                               
ffc04e10:	55 29 00 36 	rlwinm  r9,r9,0,0,27                           
ffc04e14:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
ffc04e18:	91 69 00 00 	stw     r11,0(r9)                              
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04e1c:	39 20 00 01 	li      r9,1                                   
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
ffc04e20:	81 61 00 0c 	lwz     r11,12(r1)                             
ffc04e24:	39 6b ff ff 	addi    r11,r11,-1                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04e28:	48 00 00 24 	b       ffc04e4c <scangr+0x128>                
    if(*cp == ',') {                                                  
ffc04e2c:	2f 80 00 2c 	cmpwi   cr7,r0,44                              
ffc04e30:	40 be 00 1c 	bne+    cr7,ffc04e4c <scangr+0x128>            
      *cp = '\0';                                                     
ffc04e34:	99 4b 00 00 	stb     r10,0(r11)                             
      grp->gr_mem[memcount++] = cp + 1;                               
ffc04e38:	55 20 10 3a 	rlwinm  r0,r9,2,0,29                           
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
ffc04e3c:	38 eb 00 01 	addi    r7,r11,1                               
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
ffc04e40:	81 1f 00 0c 	lwz     r8,12(r31)                             
ffc04e44:	39 29 00 01 	addi    r9,r9,1                                
ffc04e48:	7c e8 01 2e 	stwx    r7,r8,r0                               
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc04e4c:	8c 0b 00 01 	lbzu    r0,1(r11)                              
ffc04e50:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc04e54:	40 9e ff d8 	bne+    cr7,ffc04e2c <scangr+0x108>            
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc04e58:	81 7f 00 0c 	lwz     r11,12(r31)                            
ffc04e5c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
  return 1;                                                           
ffc04e60:	3b c0 00 01 	li      r30,1                                  
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc04e64:	7c 0b 49 2e 	stwx    r0,r11,r9                              
  return 1;                                                           
}                                                                     
ffc04e68:	39 61 00 38 	addi    r11,r1,56                              
ffc04e6c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04e70:	4b ff ba 48 	b       ffc008b8 <_restgpr_27_x>               
                                                                      

ffc04e74 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
ffc04e74:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04e78:	7c 08 02 a6 	mflr    r0                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04e7c:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04e80:	bf 61 00 24 	stmw    r27,36(r1)                             
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04e84:	3b 81 00 18 	addi    r28,r1,24                              
ffc04e88:	3b a1 00 1c 	addi    r29,r1,28                              
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04e8c:	90 a1 00 18 	stw     r5,24(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04e90:	7f 85 e3 78 	mr      r5,r28                                 
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04e94:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04e98:	90 c1 00 1c 	stw     r6,28(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04e9c:	7f a6 eb 78 	mr      r6,r29                                 
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc04ea0:	7c 9f 23 78 	mr      r31,r4                                 
ffc04ea4:	90 01 00 3c 	stw     r0,60(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04ea8:	4b ff fd 7d 	bl      ffc04c24 <scanString>                  
ffc04eac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
   || !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;                                                         
ffc04eb0:	3b 60 00 00 	li      r27,0                                  
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc04eb4:	41 be 00 e0 	beq+    cr7,ffc04f94 <scanpw+0x120>            
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
ffc04eb8:	7f c3 f3 78 	mr      r3,r30                                 
ffc04ebc:	38 9f 00 04 	addi    r4,r31,4                               
ffc04ec0:	7f 85 e3 78 	mr      r5,r28                                 
ffc04ec4:	7f a6 eb 78 	mr      r6,r29                                 
ffc04ec8:	38 e0 00 00 	li      r7,0                                   
ffc04ecc:	4b ff fd 59 	bl      ffc04c24 <scanString>                  
ffc04ed0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04ed4:	41 be 00 c0 	beq+    cr7,ffc04f94 <scanpw+0x120>            <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
ffc04ed8:	7f c3 f3 78 	mr      r3,r30                                 
ffc04edc:	38 81 00 08 	addi    r4,r1,8                                
ffc04ee0:	4b ff fc 4d 	bl      ffc04b2c <scanInt>                     
ffc04ee4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04ee8:	41 be 00 ac 	beq+    cr7,ffc04f94 <scanpw+0x120>            
   || !scanInt(fp, &pwgid)                                            
ffc04eec:	7f c3 f3 78 	mr      r3,r30                                 
ffc04ef0:	38 81 00 0c 	addi    r4,r1,12                               
ffc04ef4:	4b ff fc 39 	bl      ffc04b2c <scanInt>                     
ffc04ef8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04efc:	41 be 00 98 	beq+    cr7,ffc04f94 <scanpw+0x120>            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
ffc04f00:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f04:	38 9f 00 0c 	addi    r4,r31,12                              
ffc04f08:	7f 85 e3 78 	mr      r5,r28                                 
ffc04f0c:	7f a6 eb 78 	mr      r6,r29                                 
ffc04f10:	38 e0 00 00 	li      r7,0                                   
ffc04f14:	4b ff fd 11 	bl      ffc04c24 <scanString>                  
ffc04f18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f1c:	41 be 00 78 	beq+    cr7,ffc04f94 <scanpw+0x120>            <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
ffc04f20:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f24:	38 9f 00 10 	addi    r4,r31,16                              
ffc04f28:	7f 85 e3 78 	mr      r5,r28                                 
ffc04f2c:	7f a6 eb 78 	mr      r6,r29                                 
ffc04f30:	38 e0 00 00 	li      r7,0                                   
ffc04f34:	4b ff fc f1 	bl      ffc04c24 <scanString>                  
ffc04f38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f3c:	41 be 00 58 	beq+    cr7,ffc04f94 <scanpw+0x120>            <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
ffc04f40:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f44:	38 9f 00 14 	addi    r4,r31,20                              
ffc04f48:	7f 85 e3 78 	mr      r5,r28                                 
ffc04f4c:	7f a6 eb 78 	mr      r6,r29                                 
ffc04f50:	38 e0 00 00 	li      r7,0                                   
ffc04f54:	4b ff fc d1 	bl      ffc04c24 <scanString>                  
ffc04f58:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f5c:	41 be 00 38 	beq+    cr7,ffc04f94 <scanpw+0x120>            <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
ffc04f60:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f64:	38 9f 00 18 	addi    r4,r31,24                              
ffc04f68:	7f 85 e3 78 	mr      r5,r28                                 
ffc04f6c:	7f a6 eb 78 	mr      r6,r29                                 
ffc04f70:	38 e0 00 01 	li      r7,1                                   
ffc04f74:	4b ff fc b1 	bl      ffc04c24 <scanString>                  
ffc04f78:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f7c:	41 9e 00 18 	beq-    cr7,ffc04f94 <scanpw+0x120>            
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
ffc04f80:	80 01 00 08 	lwz     r0,8(r1)                               
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
ffc04f84:	3b 60 00 01 	li      r27,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;                                                
ffc04f88:	b0 1f 00 08 	sth     r0,8(r31)                              
  pwd->pw_gid = pwgid;                                                
ffc04f8c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04f90:	b0 1f 00 0a 	sth     r0,10(r31)                             
  return 1;                                                           
}                                                                     
ffc04f94:	39 61 00 38 	addi    r11,r1,56                              
ffc04f98:	7f 63 db 78 	mr      r3,r27                                 
ffc04f9c:	4b ff b9 1c 	b       ffc008b8 <_restgpr_27_x>               
                                                                      

ffc08424 <sched_get_priority_max>: int sched_get_priority_max( int policy ) { switch ( policy ) {
ffc08424:	2b 83 00 04 	cmplwi  cr7,r3,4                               
#include <rtems/posix/priority.h>                                     
                                                                      
int sched_get_priority_max(                                           
  int  policy                                                         
)                                                                     
{                                                                     
ffc08428:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0842c:	7c 08 02 a6 	mflr    r0                                     
ffc08430:	90 01 00 0c 	stw     r0,12(r1)                              
  switch ( policy ) {                                                 
ffc08434:	41 9d 00 14 	bgt-    cr7,ffc08448 <sched_get_priority_max+0x24>
ffc08438:	38 00 00 01 	li      r0,1                                   
ffc0843c:	7c 03 18 30 	slw     r3,r0,r3                               
ffc08440:	70 60 00 17 	andi.   r0,r3,23                               
ffc08444:	40 82 00 18 	bne-    ffc0845c <sched_get_priority_max+0x38> <== ALWAYS TAKEN
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc08448:	48 00 8d b5 	bl      ffc111fc <__errno>                     
ffc0844c:	38 00 00 16 	li      r0,22                                  
ffc08450:	90 03 00 00 	stw     r0,0(r3)                               
ffc08454:	38 60 ff ff 	li      r3,-1                                  
ffc08458:	48 00 00 10 	b       ffc08468 <sched_get_priority_max+0x44> 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
ffc0845c:	3d 20 00 00 	lis     r9,0                                   
ffc08460:	88 69 26 cc 	lbz     r3,9932(r9)                            
ffc08464:	38 63 ff ff 	addi    r3,r3,-1                               
}                                                                     
ffc08468:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0846c:	38 21 00 08 	addi    r1,r1,8                                
ffc08470:	7c 08 03 a6 	mtlr    r0                                     
ffc08474:	4e 80 00 20 	blr                                            
                                                                      

ffc08478 <sched_get_priority_min>: int sched_get_priority_min( int policy ) { switch ( policy ) {
ffc08478:	2b 83 00 04 	cmplwi  cr7,r3,4                               
#include <rtems/posix/priority.h>                                     
                                                                      
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
ffc0847c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc08480:	7c 08 02 a6 	mflr    r0                                     
ffc08484:	90 01 00 0c 	stw     r0,12(r1)                              
  switch ( policy ) {                                                 
ffc08488:	41 9d 00 18 	bgt-    cr7,ffc084a0 <sched_get_priority_min+0x28>
ffc0848c:	38 00 00 01 	li      r0,1                                   
ffc08490:	7c 00 18 30 	slw     r0,r0,r3                               
ffc08494:	70 09 00 17 	andi.   r9,r0,23                               
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
ffc08498:	38 60 00 01 	li      r3,1                                   
                                                                      
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
ffc0849c:	40 82 00 14 	bne-    ffc084b0 <sched_get_priority_min+0x38> <== ALWAYS TAKEN
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc084a0:	48 00 8d 5d 	bl      ffc111fc <__errno>                     
ffc084a4:	38 00 00 16 	li      r0,22                                  
ffc084a8:	90 03 00 00 	stw     r0,0(r3)                               
ffc084ac:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
ffc084b0:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc084b4:	38 21 00 08 	addi    r1,r1,8                                
ffc084b8:	7c 08 03 a6 	mtlr    r0                                     
ffc084bc:	4e 80 00 20 	blr                                            
                                                                      

ffc084c0 <sched_rr_get_interval>: int sched_rr_get_interval( pid_t pid, struct timespec *interval ) {
ffc084c0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc084c4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc084c8:	7c 08 02 a6 	mflr    r0                                     
ffc084cc:	48 01 41 15 	bl      ffc1c5e0 <_savegpr_31>                 
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
ffc084d0:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int sched_rr_get_interval(                                            
  pid_t             pid,                                              
  struct timespec  *interval                                          
)                                                                     
{                                                                     
ffc084d4:	90 01 00 1c 	stw     r0,28(r1)                              
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
ffc084d8:	41 a2 00 24 	beq+    ffc084fc <sched_rr_get_interval+0x3c>  <== NEVER TAKEN
ffc084dc:	90 81 00 08 	stw     r4,8(r1)                               
ffc084e0:	4b ff c8 4d 	bl      ffc04d2c <getpid>                      
ffc084e4:	7f 9f 18 00 	cmpw    cr7,r31,r3                             
ffc084e8:	80 81 00 08 	lwz     r4,8(r1)                               
ffc084ec:	41 be 00 10 	beq+    cr7,ffc084fc <sched_rr_get_interval+0x3c>
    rtems_set_errno_and_return_minus_one( ESRCH );                    
ffc084f0:	48 00 8d 0d 	bl      ffc111fc <__errno>                     
ffc084f4:	38 00 00 03 	li      r0,3                                   
ffc084f8:	48 00 00 14 	b       ffc0850c <sched_rr_get_interval+0x4c>  
                                                                      
  if ( !interval )                                                    
ffc084fc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc08500:	40 be 00 18 	bne+    cr7,ffc08518 <sched_rr_get_interval+0x58>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc08504:	48 00 8c f9 	bl      ffc111fc <__errno>                     
ffc08508:	38 00 00 16 	li      r0,22                                  
ffc0850c:	90 03 00 00 	stw     r0,0(r3)                               
ffc08510:	38 60 ff ff 	li      r3,-1                                  
ffc08514:	48 00 00 14 	b       ffc08528 <sched_rr_get_interval+0x68>  
                                                                      
  _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );      
ffc08518:	3d 20 00 00 	lis     r9,0                                   
ffc0851c:	80 69 27 94 	lwz     r3,10132(r9)                           
ffc08520:	48 00 3c 81 	bl      ffc0c1a0 <_Timespec_From_ticks>        
  return 0;                                                           
ffc08524:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc08528:	39 61 00 18 	addi    r11,r1,24                              
ffc0852c:	4b ff 86 b8 	b       ffc00be4 <_restgpr_31_x>               
                                                                      

ffc0b044 <sem_open>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
ffc0b044:	3d 20 00 00 	lis     r9,0                                   
  int         oflag,                                                  
  ...                                                                 
  /* mode_t mode, */                                                  
  /* unsigned int value */                                            
)                                                                     
{                                                                     
ffc0b048:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0b04c:	7c 08 02 a6 	mflr    r0                                     
ffc0b050:	81 69 27 90 	lwz     r11,10128(r9)                          
ffc0b054:	90 01 00 4c 	stw     r0,76(r1)                              
ffc0b058:	38 0b 00 01 	addi    r0,r11,1                               
ffc0b05c:	bf 61 00 34 	stmw    r27,52(r1)                             
ffc0b060:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b064:	7c 9e 23 78 	mr      r30,r4                                 
ffc0b068:	90 a1 00 28 	stw     r5,40(r1)                              
ffc0b06c:	90 c1 00 2c 	stw     r6,44(r1)                              
ffc0b070:	90 09 27 90 	stw     r0,10128(r9)                           
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc0b074:	70 9c 02 00 	andi.   r28,r4,512                             
  /* unsigned int value */                                            
)                                                                     
{                                                                     
  va_list                    arg;                                     
  mode_t                     mode;                                    
  unsigned int               value = 0;                               
ffc0b078:	3b a0 00 00 	li      r29,0                                  
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc0b07c:	41 a2 00 20 	beq+    ffc0b09c <sem_open+0x58>               
    va_start(arg, oflag);                                             
ffc0b080:	38 01 00 50 	addi    r0,r1,80                               
ffc0b084:	90 01 00 18 	stw     r0,24(r1)                              
ffc0b088:	39 21 00 20 	addi    r9,r1,32                               
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
ffc0b08c:	38 00 00 04 	li      r0,4                                   
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
ffc0b090:	91 21 00 1c 	stw     r9,28(r1)                              
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
ffc0b094:	98 01 00 14 	stb     r0,20(r1)                              
ffc0b098:	83 a9 00 0c 	lwz     r29,12(r9)                             
    va_end(arg);                                                      
  }                                                                   
                                                                      
  status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );    
ffc0b09c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b0a0:	38 81 00 08 	addi    r4,r1,8                                
ffc0b0a4:	48 00 69 f1 	bl      ffc11a94 <_POSIX_Semaphore_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 ) {                                                     
ffc0b0a8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0b0ac:	41 82 00 24 	beq-    ffc0b0d0 <sem_open+0x8c>               
    /*                                                                
     * 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) ) ) {               
ffc0b0b0:	2f 9b 00 02 	cmpwi   cr7,r27,2                              
ffc0b0b4:	40 9e 00 0c 	bne-    cr7,ffc0b0c0 <sem_open+0x7c>           <== NEVER TAKEN
ffc0b0b8:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0b0bc:	40 9e 00 68 	bne-    cr7,ffc0b124 <sem_open+0xe0>           
      _Thread_Enable_dispatch();                                      
ffc0b0c0:	48 00 2e 45 	bl      ffc0df04 <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
ffc0b0c4:	48 00 9b 7d 	bl      ffc14c40 <__errno>                     
ffc0b0c8:	93 63 00 00 	stw     r27,0(r3)                              
ffc0b0cc:	48 00 00 20 	b       ffc0b0ec <sem_open+0xa8>               
                                                                      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
ffc0b0d0:	73 de 0a 00 	andi.   r30,r30,2560                           
ffc0b0d4:	2f 9e 0a 00 	cmpwi   cr7,r30,2560                           
ffc0b0d8:	40 be 00 1c 	bne+    cr7,ffc0b0f4 <sem_open+0xb0>           
      _Thread_Enable_dispatch();                                      
ffc0b0dc:	48 00 2e 29 	bl      ffc0df04 <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
ffc0b0e0:	48 00 9b 61 	bl      ffc14c40 <__errno>                     
ffc0b0e4:	38 00 00 11 	li      r0,17                                  
ffc0b0e8:	90 03 00 00 	stw     r0,0(r3)                               
ffc0b0ec:	38 60 ff ff 	li      r3,-1                                  
ffc0b0f0:	48 00 00 64 	b       ffc0b154 <sem_open+0x110>              
ffc0b0f4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0b0f8:	3c 60 00 00 	lis     r3,0                                   
ffc0b0fc:	38 a1 00 10 	addi    r5,r1,16                               
ffc0b100:	38 63 30 78 	addi    r3,r3,12408                            
ffc0b104:	48 00 23 99 	bl      ffc0d49c <_Objects_Get>                
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
    the_semaphore->open_count += 1;                                   
ffc0b108:	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( &the_semaphore_id, &location );
ffc0b10c:	90 61 00 0c 	stw     r3,12(r1)                              
    the_semaphore->open_count += 1;                                   
ffc0b110:	38 09 00 01 	addi    r0,r9,1                                
ffc0b114:	90 03 00 18 	stw     r0,24(r3)                              
    _Thread_Enable_dispatch();                                        
ffc0b118:	48 00 2d ed 	bl      ffc0df04 <_Thread_Enable_dispatch>     
    _Thread_Enable_dispatch();                                        
ffc0b11c:	48 00 2d e9 	bl      ffc0df04 <_Thread_Enable_dispatch>     
    goto return_id;                                                   
ffc0b120:	48 00 00 2c 	b       ffc0b14c <sem_open+0x108>              
  /*                                                                  
   *  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(                            
ffc0b124:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b128:	38 80 00 00 	li      r4,0                                   
ffc0b12c:	7f a5 eb 78 	mr      r5,r29                                 
ffc0b130:	38 c1 00 0c 	addi    r6,r1,12                               
ffc0b134:	48 00 67 ed 	bl      ffc11920 <_POSIX_Semaphore_Create_support>
ffc0b138:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0b13c:	48 00 2d c9 	bl      ffc0df04 <_Thread_Enable_dispatch>     
                                                                      
  if ( status == -1 )                                                 
ffc0b140:	2f 9f ff ff 	cmpwi   cr7,r31,-1                             
    return SEM_FAILED;                                                
ffc0b144:	38 60 ff ff 	li      r3,-1                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  if ( status == -1 )                                                 
ffc0b148:	41 9e 00 0c 	beq-    cr7,ffc0b154 <sem_open+0x110>          
return_id:                                                            
  #if defined(RTEMS_USE_16_BIT_OBJECT)                                
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
ffc0b14c:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc0b150:	38 63 00 08 	addi    r3,r3,8                                
  #endif                                                              
  return id;                                                          
}                                                                     
ffc0b154:	39 61 00 48 	addi    r11,r1,72                              
ffc0b158:	4b ff 8c 3c 	b       ffc03d94 <_restgpr_27_x>               
                                                                      

ffc082ac <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
ffc082ac:	7c a9 2b 79 	mr.     r9,r5                                  
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
ffc082b0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc082b4:	7c 08 02 a6 	mflr    r0                                     
ffc082b8:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc082bc:	7c 9f 23 78 	mr      r31,r4                                 
ffc082c0:	90 01 00 1c 	stw     r0,28(r1)                              
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
ffc082c4:	41 82 00 1c 	beq-    ffc082e0 <sigaction+0x34>              
    *oact = _POSIX_signals_Vectors[ sig ];                            
ffc082c8:	1c 03 00 0c 	mulli   r0,r3,12                               
ffc082cc:	3d 60 00 00 	lis     r11,0                                  
ffc082d0:	39 6b 31 6c 	addi    r11,r11,12652                          
ffc082d4:	7d 6b 02 14 	add     r11,r11,r0                             
ffc082d8:	7c ab 64 aa 	lswi    r5,r11,12                              
ffc082dc:	7c a9 65 aa 	stswi   r5,r9,12                               
                                                                      
  if ( !sig )                                                         
ffc082e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc082e4:	41 9e 00 18 	beq-    cr7,ffc082fc <sigaction+0x50>          
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc082e8:	38 03 ff ff 	addi    r0,r3,-1                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
ffc082ec:	2b 80 00 1f 	cmplwi  cr7,r0,31                              
ffc082f0:	41 9d 00 0c 	bgt-    cr7,ffc082fc <sigaction+0x50>          
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
ffc082f4:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc082f8:	40 be 00 18 	bne+    cr7,ffc08310 <sigaction+0x64>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc082fc:	48 00 92 81 	bl      ffc1157c <__errno>                     
ffc08300:	38 00 00 16 	li      r0,22                                  
ffc08304:	90 03 00 00 	stw     r0,0(r3)                               
ffc08308:	38 00 ff ff 	li      r0,-1                                  
ffc0830c:	48 00 00 6c 	b       ffc08378 <sigaction+0xcc>              
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
ffc08310:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
   *      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;                                                           
ffc08314:	38 00 00 00 	li      r0,0                                   
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
ffc08318:	41 9e 00 60 	beq-    cr7,ffc08378 <sigaction+0xcc>          <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc0831c:	7f c0 00 a6 	mfmsr   r30                                    
ffc08320:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc08324:	7f c0 00 78 	andc    r0,r30,r0                              
ffc08328:	7c 00 01 24 	mtmsr   r0                                     
     *  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 ) {                             
ffc0832c:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc08330:	3f 80 00 00 	lis     r28,0                                  
ffc08334:	3b 9c 31 6c 	addi    r28,r28,12652                          
ffc08338:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0833c:	1f a3 00 0c 	mulli   r29,r3,12                              
ffc08340:	40 be 00 20 	bne+    cr7,ffc08360 <sigaction+0xb4>          
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
ffc08344:	3d 20 ff c2 	lis     r9,-62                                 
ffc08348:	39 29 fa ec 	addi    r9,r9,-1300                            
ffc0834c:	7d 7c ea 14 	add     r11,r28,r29                            
ffc08350:	7d 29 ea 14 	add     r9,r9,r29                              
ffc08354:	7c a9 64 aa 	lswi    r5,r9,12                               
ffc08358:	7c ab 65 aa 	stswi   r5,r11,12                              
ffc0835c:	48 00 00 14 	b       ffc08370 <sigaction+0xc4>              
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
ffc08360:	48 00 5f a9 	bl      ffc0e308 <_POSIX_signals_Clear_process_signals>
         _POSIX_signals_Vectors[ sig ] = *act;                        
ffc08364:	7d 3c ea 14 	add     r9,r28,r29                             
ffc08368:	7c bf 64 aa 	lswi    r5,r31,12                              
ffc0836c:	7c a9 65 aa 	stswi   r5,r9,12                               
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08370:	7f c0 01 24 	mtmsr   r30                                    
   *      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;                                                           
ffc08374:	38 00 00 00 	li      r0,0                                   
}                                                                     
ffc08378:	39 61 00 18 	addi    r11,r1,24                              
ffc0837c:	7c 03 03 78 	mr      r3,r0                                  
ffc08380:	4b ff 85 b0 	b       ffc00930 <_restgpr_28_x>               
                                                                      

ffc087e8 <sigtimedwait>: int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) {
ffc087e8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc087ec:	7c 08 02 a6 	mflr    r0                                     
ffc087f0:	bf 61 00 1c 	stmw    r27,28(r1)                             
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
ffc087f4:	7c 7d 1b 79 	mr.     r29,r3                                 
int sigtimedwait(                                                     
  const sigset_t         *set,                                        
  siginfo_t              *info,                                       
  const struct timespec  *timeout                                     
)                                                                     
{                                                                     
ffc087f8:	7c 9f 23 78 	mr      r31,r4                                 
ffc087fc:	90 01 00 34 	stw     r0,52(r1)                              
ffc08800:	7c be 2b 78 	mr      r30,r5                                 
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
ffc08804:	41 82 00 2c 	beq-    ffc08830 <sigtimedwait+0x48>           
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
  if ( timeout ) {                                                    
ffc08808:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0880c:	41 9e 00 30 	beq-    cr7,ffc0883c <sigtimedwait+0x54>       
                                                                      
    if ( !_Timespec_Is_valid( timeout ) )                             
ffc08810:	7c a3 2b 78 	mr      r3,r5                                  
ffc08814:	48 00 3c fd 	bl      ffc0c510 <_Timespec_Is_valid>          
ffc08818:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0881c:	41 9e 00 14 	beq-    cr7,ffc08830 <sigtimedwait+0x48>       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
ffc08820:	7f c3 f3 78 	mr      r3,r30                                 
ffc08824:	48 00 3d 71 	bl      ffc0c594 <_Timespec_To_ticks>          
                                                                      
    if ( !interval )                                                  
ffc08828:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0882c:	40 a2 00 14 	bne+    ffc08840 <sigtimedwait+0x58>           <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc08830:	48 00 94 59 	bl      ffc11c88 <__errno>                     
ffc08834:	38 00 00 16 	li      r0,22                                  
ffc08838:	48 00 01 7c 	b       ffc089b4 <sigtimedwait+0x1cc>          
                                                                      
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
ffc0883c:	38 80 00 00 	li      r4,0                                   
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
ffc08840:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08844:	40 be 00 08 	bne+    cr7,ffc0884c <sigtimedwait+0x64>       
ffc08848:	3b e1 00 08 	addi    r31,r1,8                               
                                                                      
  the_thread = _Thread_Executing;                                     
ffc0884c:	3d 20 00 00 	lis     r9,0                                   
ffc08850:	81 29 31 5c 	lwz     r9,12636(r9)                           
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc08854:	83 69 01 48 	lwz     r27,328(r9)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  asm volatile (                                                      
ffc08858:	7f 80 00 a6 	mfmsr   r28                                    
ffc0885c:	7c 10 42 a6 	mfsprg  r0,0                                   
ffc08860:	7f 80 00 78 	andc    r0,r28,r0                              
ffc08864:	7c 00 01 24 	mtmsr   r0                                     
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
ffc08868:	80 1d 00 00 	lwz     r0,0(r29)                              
ffc0886c:	80 7b 00 d4 	lwz     r3,212(r27)                            
ffc08870:	7c 0b 18 39 	and.    r11,r0,r3                              
ffc08874:	41 a2 00 40 	beq+    ffc088b4 <sigtimedwait+0xcc>           
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
ffc08878:	4b ff ff 19 	bl      ffc08790 <_POSIX_signals_Get_lowest>   
    _POSIX_signals_Clear_signals(                                     
ffc0887c:	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 );
ffc08880:	90 7f 00 00 	stw     r3,0(r31)                              
ffc08884:	7c 64 1b 78 	mr      r4,r3                                  
    _POSIX_signals_Clear_signals(                                     
ffc08888:	38 c0 00 00 	li      r6,0                                   
ffc0888c:	7f 63 db 78 	mr      r3,r27                                 
ffc08890:	38 e0 00 00 	li      r7,0                                   
ffc08894:	48 00 62 45 	bl      ffc0ead8 <_POSIX_signals_Clear_signals>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  asm volatile (                                                      
ffc08898:	7f 80 01 24 	mtmsr   r28                                    
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
ffc0889c:	38 00 00 01 	li      r0,1                                   
    the_info->si_value.sival_int = 0;                                 
    return the_info->si_signo;                                        
ffc088a0:	83 df 00 00 	lwz     r30,0(r31)                             
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
ffc088a4:	90 1f 00 04 	stw     r0,4(r31)                              
    the_info->si_value.sival_int = 0;                                 
ffc088a8:	38 00 00 00 	li      r0,0                                   
ffc088ac:	90 1f 00 08 	stw     r0,8(r31)                              
    return the_info->si_signo;                                        
ffc088b0:	48 00 01 0c 	b       ffc089bc <sigtimedwait+0x1d4>          
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
ffc088b4:	3d 60 00 00 	lis     r11,0                                  
ffc088b8:	80 6b 28 50 	lwz     r3,10320(r11)                          
ffc088bc:	7c 0b 18 39 	and.    r11,r0,r3                              
ffc088c0:	41 a2 00 40 	beq+    ffc08900 <sigtimedwait+0x118>          
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
ffc088c4:	4b ff fe cd 	bl      ffc08790 <_POSIX_signals_Get_lowest>   
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
ffc088c8:	7f e5 fb 78 	mr      r5,r31                                 
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
ffc088cc:	7c 7e 1b 78 	mr      r30,r3                                 
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
ffc088d0:	7f c4 f3 78 	mr      r4,r30                                 
ffc088d4:	7f 63 db 78 	mr      r3,r27                                 
ffc088d8:	38 c0 00 01 	li      r6,1                                   
ffc088dc:	38 e0 00 00 	li      r7,0                                   
ffc088e0:	48 00 61 f9 	bl      ffc0ead8 <_POSIX_signals_Clear_signals>
ffc088e4:	7f 80 01 24 	mtmsr   r28                                    
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
ffc088e8:	38 00 00 01 	li      r0,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;                                       
ffc088ec:	93 df 00 00 	stw     r30,0(r31)                             
    the_info->si_code = SI_USER;                                      
ffc088f0:	90 1f 00 04 	stw     r0,4(r31)                              
    the_info->si_value.sival_int = 0;                                 
ffc088f4:	38 00 00 00 	li      r0,0                                   
ffc088f8:	90 1f 00 08 	stw     r0,8(r31)                              
    return signo;                                                     
ffc088fc:	48 00 00 c0 	b       ffc089bc <sigtimedwait+0x1d4>          
ffc08900:	3d 60 00 00 	lis     r11,0                                  
ffc08904:	81 4b 28 00 	lwz     r10,10240(r11)                         
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
ffc08908:	38 00 ff ff 	li      r0,-1                                  
ffc0890c:	90 1f 00 00 	stw     r0,0(r31)                              
ffc08910:	38 0a 00 01 	addi    r0,r10,1                               
ffc08914:	90 0b 28 00 	stw     r0,10240(r11)                          
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
ffc08918:	38 00 00 04 	li      r0,4                                   
ffc0891c:	90 09 00 34 	stw     r0,52(r9)                              
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
ffc08920:	3d 60 00 00 	lis     r11,0                                  
ffc08924:	39 6b 32 f8 	addi    r11,r11,13048                          
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
ffc08928:	80 1d 00 00 	lwz     r0,0(r29)                              
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
ffc0892c:	91 69 00 44 	stw     r11,68(r9)                             
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
ffc08930:	90 09 00 30 	stw     r0,48(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;
ffc08934:	38 00 00 01 	li      r0,1                                   
    the_thread->Wait.return_argument = the_info;                      
ffc08938:	93 e9 00 28 	stw     r31,40(r9)                             
ffc0893c:	90 0b 00 30 	stw     r0,48(r11)                             
ffc08940:	7f 80 01 24 	mtmsr   r28                                    
    _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
    _ISR_Enable( level );                                             
    _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );    
ffc08944:	3c 60 00 00 	lis     r3,0                                   
ffc08948:	3c a0 ff c1 	lis     r5,-63                                 
ffc0894c:	38 63 32 f8 	addi    r3,r3,13048                            
ffc08950:	38 a5 be 70 	addi    r5,r5,-16784                           
ffc08954:	48 00 31 65 	bl      ffc0bab8 <_Thread_queue_Enqueue_with_handler>
  _Thread_Enable_dispatch();                                          
ffc08958:	48 00 2b fd 	bl      ffc0b554 <_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 );
ffc0895c:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc08960:	7f 63 db 78 	mr      r3,r27                                 
ffc08964:	7f e5 fb 78 	mr      r5,r31                                 
ffc08968:	38 c0 00 00 	li      r6,0                                   
ffc0896c:	38 e0 00 00 	li      r7,0                                   
ffc08970:	48 00 61 69 	bl      ffc0ead8 <_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)                 
ffc08974:	3d 20 00 00 	lis     r9,0                                   
ffc08978:	81 29 31 5c 	lwz     r9,12636(r9)                           
ffc0897c:	80 09 00 34 	lwz     r0,52(r9)                              
ffc08980:	2f 80 00 04 	cmpwi   cr7,r0,4                               
ffc08984:	40 9e 00 20 	bne-    cr7,ffc089a4 <sigtimedwait+0x1bc>      
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
ffc08988:	83 df 00 00 	lwz     r30,0(r31)                             
ffc0898c:	39 20 00 01 	li      r9,1                                   
ffc08990:	38 1e ff ff 	addi    r0,r30,-1                              
ffc08994:	7d 29 00 30 	slw     r9,r9,r0                               
ffc08998:	80 1d 00 00 	lwz     r0,0(r29)                              
ffc0899c:	7d 2b 00 39 	and.    r11,r9,r0                              
ffc089a0:	40 a2 00 1c 	bne+    ffc089bc <sigtimedwait+0x1d4>          
    errno = _Thread_Executing->Wait.return_code;                      
ffc089a4:	48 00 92 e5 	bl      ffc11c88 <__errno>                     
ffc089a8:	3d 20 00 00 	lis     r9,0                                   
ffc089ac:	81 29 31 5c 	lwz     r9,12636(r9)                           
ffc089b0:	80 09 00 34 	lwz     r0,52(r9)                              
ffc089b4:	90 03 00 00 	stw     r0,0(r3)                               
    return -1;                                                        
ffc089b8:	3b c0 ff ff 	li      r30,-1                                 
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc089bc:	39 61 00 30 	addi    r11,r1,48                              
ffc089c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc089c4:	4b ff 83 20 	b       ffc00ce4 <_restgpr_27_x>               
                                                                      

ffc0adac <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
ffc0adac:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0adb0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0adb4:	7c 08 02 a6 	mflr    r0                                     
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0adb8:	38 a0 00 00 	li      r5,0                                   
                                                                      
int sigwait(                                                          
  const sigset_t  *set,                                               
  int             *sig                                                
)                                                                     
{                                                                     
ffc0adbc:	4b ff 7c 4d 	bl      ffc02a08 <_savegpr_31>                 
ffc0adc0:	7c 9f 23 78 	mr      r31,r4                                 
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0adc4:	38 80 00 00 	li      r4,0                                   
                                                                      
int sigwait(                                                          
  const sigset_t  *set,                                               
  int             *sig                                                
)                                                                     
{                                                                     
ffc0adc8:	90 01 00 14 	stw     r0,20(r1)                              
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0adcc:	4b ff fd dd 	bl      ffc0aba8 <sigtimedwait>                
                                                                      
  if ( status != -1 ) {                                               
ffc0add0:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc0add4:	41 9e 00 18 	beq-    cr7,ffc0adec <sigwait+0x40>            
    if ( sig )                                                        
ffc0add8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
      *sig = status;                                                  
    return 0;                                                         
ffc0addc:	38 00 00 00 	li      r0,0                                   
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
ffc0ade0:	41 9e 00 14 	beq-    cr7,ffc0adf4 <sigwait+0x48>            <== NEVER TAKEN
      *sig = status;                                                  
ffc0ade4:	90 7f 00 00 	stw     r3,0(r31)                              
ffc0ade8:	48 00 00 0c 	b       ffc0adf4 <sigwait+0x48>                
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
ffc0adec:	48 00 8e 91 	bl      ffc13c7c <__errno>                     
ffc0adf0:	80 03 00 00 	lwz     r0,0(r3)                               
}                                                                     
ffc0adf4:	39 61 00 10 	addi    r11,r1,16                              
ffc0adf8:	7c 03 03 78 	mr      r3,r0                                  
ffc0adfc:	4b ff 7c 58 	b       ffc02a54 <_restgpr_31_x>               
                                                                      

ffc0749c <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc0749c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc074a0:	7c 08 02 a6 	mflr    r0                                     
ffc074a4:	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)) {
ffc074a8:	80 04 00 3c 	lwz     r0,60(r4)                              
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
ffc074ac:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc074b0:	7c 7e 1b 78 	mr      r30,r3                                 
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc074b4:	70 09 0e 78 	andi.   r9,r0,3704                             
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
ffc074b8:	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)) {
ffc074bc:	41 a2 00 38 	beq+    ffc074f4 <siproc+0x58>                 <== NEVER TAKEN
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
ffc074c0:	80 64 00 18 	lwz     r3,24(r4)                              
ffc074c4:	38 a0 00 00 	li      r5,0                                   
ffc074c8:	38 80 00 00 	li      r4,0                                   
ffc074cc:	48 00 16 39 	bl      ffc08b04 <rtems_semaphore_obtain>      
    i = iproc (c, tty);                                               
ffc074d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc074d4:	7f e4 fb 78 	mr      r4,r31                                 
ffc074d8:	4b ff fe 15 	bl      ffc072ec <iproc>                       
ffc074dc:	7c 7e 1b 78 	mr      r30,r3                                 
    rtems_semaphore_release (tty->osem);                              
ffc074e0:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc074e4:	48 00 17 49 	bl      ffc08c2c <rtems_semaphore_release>     
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
ffc074e8:	39 61 00 10 	addi    r11,r1,16                              
ffc074ec:	7f c3 f3 78 	mr      r3,r30                                 
ffc074f0:	48 01 1b ec 	b       ffc190dc <_restgpr_30_x>               
ffc074f4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc074f8:	bb c1 00 08 	lmw     r30,8(r1)                              <== NOT EXECUTED
ffc074fc:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc07500:	7c 08 03 a6 	mtlr    r0                                     <== 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);                                               
ffc07504:	4b ff fd e8 	b       ffc072ec <iproc>                       <== NOT EXECUTED
                                                                      

ffc07d94 <statvfs>: #include <sys/statvfs.h> int statvfs (const char *path, struct statvfs *sb) {
ffc07d94:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc07d98:	7c 08 02 a6 	mflr    r0                                     
ffc07d9c:	bf a1 00 2c 	stmw    r29,44(r1)                             
ffc07da0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07da4:	7c 9e 23 78 	mr      r30,r4                                 
ffc07da8:	90 01 00 3c 	stw     r0,60(r1)                              
   *    The root node of the mounted filesytem.                       
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
ffc07dac:	48 00 d7 31 	bl      ffc154dc <strlen>                      
ffc07db0:	7c 64 1b 78 	mr      r4,r3                                  
ffc07db4:	7f e3 fb 78 	mr      r3,r31                                 
ffc07db8:	3b e1 00 08 	addi    r31,r1,8                               
ffc07dbc:	38 a0 00 00 	li      r5,0                                   
ffc07dc0:	7f e6 fb 78 	mr      r6,r31                                 
ffc07dc4:	38 e0 00 01 	li      r7,1                                   
ffc07dc8:	4b ff ea 4d 	bl      ffc06814 <rtems_filesystem_evaluate_path>
    return -1;                                                        
ffc07dcc:	3b a0 ff ff 	li      r29,-1                                 
   *    The root node of the mounted filesytem.                       
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
ffc07dd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07dd4:	40 be 00 3c 	bne+    cr7,ffc07e10 <statvfs+0x7c>            <== NEVER TAKEN
    return -1;                                                        
                                                                      
  mt_entry      = loc.mt_entry;                                       
ffc07dd8:	83 a1 00 18 	lwz     r29,24(r1)                             
  fs_mount_root = &mt_entry->mt_fs_root;                              
                                                                      
  memset (sb, 0, sizeof (struct statvfs));                            
ffc07ddc:	38 80 00 00 	li      r4,0                                   
ffc07de0:	38 a0 00 38 	li      r5,56                                  
ffc07de4:	7f c3 f3 78 	mr      r3,r30                                 
ffc07de8:	48 00 c4 85 	bl      ffc1426c <memset>                      
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
ffc07dec:	81 3d 00 28 	lwz     r9,40(r29)                             
ffc07df0:	38 7d 00 1c 	addi    r3,r29,28                              
ffc07df4:	80 09 00 44 	lwz     r0,68(r9)                              
ffc07df8:	7f c4 f3 78 	mr      r4,r30                                 
ffc07dfc:	7c 09 03 a6 	mtctr   r0                                     
ffc07e00:	4e 80 04 21 	bctrl                                          
ffc07e04:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc07e08:	7f e3 fb 78 	mr      r3,r31                                 
ffc07e0c:	4b ff ea fd 	bl      ffc06908 <rtems_filesystem_freenode>   
                                                                      
  return result;                                                      
}                                                                     
ffc07e10:	39 61 00 38 	addi    r11,r1,56                              
ffc07e14:	7f a3 eb 78 	mr      r3,r29                                 
ffc07e18:	4b ff a8 48 	b       ffc02660 <_restgpr_29_x>               
                                                                      

ffc06820 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
ffc06820:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06824:	7c 08 02 a6 	mflr    r0                                     
ffc06828:	90 01 00 14 	stw     r0,20(r1)                              
                                                                      
   /*                                                                 
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
ffc0682c:	80 03 01 40 	lwz     r0,320(r3)                             
  fdatasync(fn);                                                      
}                                                                     
                                                                      
/* iterate over all FILE *'s for this thread */                       
static void sync_per_thread(Thread_Control *t)                        
{                                                                     
ffc06830:	bf c1 00 08 	stmw    r30,8(r1)                              
   /*                                                                 
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
   if ( this_reent ) {                                                
ffc06834:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc06838:	41 9e 00 30 	beq-    cr7,ffc06868 <sync_per_thread+0x48>    <== NEVER TAKEN
     current_reent = _Thread_Executing->libc_reent;                   
ffc0683c:	3f e0 00 00 	lis     r31,0                                  
ffc06840:	3b ff 31 10 	addi    r31,r31,12560                          
ffc06844:	81 3f 00 0c 	lwz     r9,12(r31)                             
     _Thread_Executing->libc_reent = this_reent;                      
     _fwalk (t->libc_reent, sync_wrapper);                            
ffc06848:	3c 80 ff c0 	lis     r4,-64                                 
ffc0684c:	38 84 68 70 	addi    r4,r4,26736                            
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
   if ( this_reent ) {                                                
     current_reent = _Thread_Executing->libc_reent;                   
ffc06850:	83 c9 01 40 	lwz     r30,320(r9)                            
     _Thread_Executing->libc_reent = this_reent;                      
ffc06854:	90 09 01 40 	stw     r0,320(r9)                             
     _fwalk (t->libc_reent, sync_wrapper);                            
ffc06858:	80 63 01 40 	lwz     r3,320(r3)                             
ffc0685c:	48 00 c0 21 	bl      ffc1287c <_fwalk>                      
     _Thread_Executing->libc_reent = current_reent;                   
ffc06860:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc06864:	93 c9 01 40 	stw     r30,320(r9)                            
   }                                                                  
}                                                                     
ffc06868:	39 61 00 10 	addi    r11,r1,16                              
ffc0686c:	4b ff a4 b8 	b       ffc00d24 <_restgpr_30_x>               
                                                                      

ffc0737c <tcsetattr>: int fd, int opt, struct termios *tp ) { switch (opt) {
ffc0737c:	2c 04 00 00 	cmpwi   r4,0                                   
int tcsetattr(                                                        
  int             fd,                                                 
  int             opt,                                                
  struct termios *tp                                                  
)                                                                     
{                                                                     
ffc07380:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc07384:	7c 08 02 a6 	mflr    r0                                     
ffc07388:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0738c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc07390:	7c bf 2b 78 	mr      r31,r5                                 
ffc07394:	90 01 00 14 	stw     r0,20(r1)                              
  switch (opt) {                                                      
ffc07398:	41 82 00 3c 	beq-    ffc073d4 <tcsetattr+0x58>              
ffc0739c:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc073a0:	41 9e 00 18 	beq-    cr7,ffc073b8 <tcsetattr+0x3c>          
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
ffc073a4:	48 00 b1 a1 	bl      ffc12544 <__errno>                     
ffc073a8:	38 00 00 86 	li      r0,134                                 
ffc073ac:	90 03 00 00 	stw     r0,0(r3)                               
ffc073b0:	38 00 ff ff 	li      r0,-1                                  
ffc073b4:	48 00 00 38 	b       ffc073ec <tcsetattr+0x70>              
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
ffc073b8:	38 80 00 03 	li      r4,3                                   
ffc073bc:	38 a0 00 00 	li      r5,0                                   
ffc073c0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc073c4:	48 00 78 c5 	bl      ffc0ec88 <ioctl>                       
    	return -1;                                                       
ffc073c8:	38 00 ff ff 	li      r0,-1                                  
  switch (opt) {                                                      
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
ffc073cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc073d0:	41 9c 00 1c 	blt-    cr7,ffc073ec <tcsetattr+0x70>          <== NEVER TAKEN
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc073d4:	7f c3 f3 78 	mr      r3,r30                                 
ffc073d8:	38 80 00 02 	li      r4,2                                   
ffc073dc:	7f e5 fb 78 	mr      r5,r31                                 
ffc073e0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc073e4:	48 00 78 a5 	bl      ffc0ec88 <ioctl>                       
ffc073e8:	7c 60 1b 78 	mr      r0,r3                                  
  }                                                                   
}                                                                     
ffc073ec:	39 61 00 10 	addi    r11,r1,16                              
ffc073f0:	7c 03 03 78 	mr      r3,r0                                  
ffc073f4:	4b ff a7 2c 	b       ffc01b20 <_restgpr_30_x>               
                                                                      

ffc07a0c <timer_create>: timer_t *timerid ) { POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME )
ffc07a0c:	2f 83 00 01 	cmpwi   cr7,r3,1                               
int timer_create(                                                     
  clockid_t        clock_id,                                          
  struct sigevent *evp,                                               
  timer_t         *timerid                                            
)                                                                     
{                                                                     
ffc07a10:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc07a14:	7c 08 02 a6 	mflr    r0                                     
ffc07a18:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc07a1c:	7c 9f 23 78 	mr      r31,r4                                 
ffc07a20:	7c be 2b 78 	mr      r30,r5                                 
ffc07a24:	90 01 00 14 	stw     r0,20(r1)                              
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
ffc07a28:	40 9e 00 3c 	bne-    cr7,ffc07a64 <timer_create+0x58>       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !timerid )                                                     
ffc07a2c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc07a30:	41 9e 00 34 	beq-    cr7,ffc07a64 <timer_create+0x58>       
 /*                                                                   
  *  The data of the structure evp are checked in order to verify if they
  *  are coherent.                                                    
  */                                                                  
                                                                      
  if (evp != NULL) {                                                  
ffc07a34:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc07a38:	41 9e 00 38 	beq-    cr7,ffc07a70 <timer_create+0x64>       
    /* The structure has data */                                      
    if ( ( evp->sigev_notify != SIGEV_NONE ) &&                       
ffc07a3c:	81 24 00 00 	lwz     r9,0(r4)                               
ffc07a40:	38 09 ff ff 	addi    r0,r9,-1                               
ffc07a44:	2b 80 00 01 	cmplwi  cr7,r0,1                               
ffc07a48:	41 9d 00 1c 	bgt-    cr7,ffc07a64 <timer_create+0x58>       <== 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 )                                         
ffc07a4c:	81 24 00 04 	lwz     r9,4(r4)                               
ffc07a50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07a54:	41 9e 00 10 	beq-    cr7,ffc07a64 <timer_create+0x58>       <== NEVER TAKEN
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc07a58:	39 29 ff ff 	addi    r9,r9,-1                               
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
ffc07a5c:	2b 89 00 1f 	cmplwi  cr7,r9,31                              
ffc07a60:	40 bd 00 10 	ble+    cr7,ffc07a70 <timer_create+0x64>       <== ALWAYS TAKEN
       rtems_set_errno_and_return_minus_one( EINVAL );                
ffc07a64:	48 00 97 79 	bl      ffc111dc <__errno>                     
ffc07a68:	38 00 00 16 	li      r0,22                                  
ffc07a6c:	48 00 00 34 	b       ffc07aa0 <timer_create+0x94>           
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
ffc07a70:	3d 20 00 00 	lis     r9,0                                   
ffc07a74:	81 69 27 dc 	lwz     r11,10204(r9)                          
ffc07a78:	38 0b 00 01 	addi    r0,r11,1                               
ffc07a7c:	90 09 27 dc 	stw     r0,10204(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 );
ffc07a80:	3c 60 00 00 	lis     r3,0                                   
ffc07a84:	38 63 2f 18 	addi    r3,r3,12056                            
ffc07a88:	48 00 21 21 	bl      ffc09ba8 <_Objects_Allocate>           
                                                                      
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
ffc07a8c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc07a90:	40 a2 00 1c 	bne+    ffc07aac <timer_create+0xa0>           
    _Thread_Enable_dispatch();                                        
ffc07a94:	48 00 2f f5 	bl      ffc0aa88 <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
ffc07a98:	48 00 97 45 	bl      ffc111dc <__errno>                     
ffc07a9c:	38 00 00 0b 	li      r0,11                                  
ffc07aa0:	90 03 00 00 	stw     r0,0(r3)                               
ffc07aa4:	38 60 ff ff 	li      r3,-1                                  
ffc07aa8:	48 00 00 88 	b       ffc07b30 <timer_create+0x124>          
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
ffc07aac:	38 00 00 02 	li      r0,2                                   
ffc07ab0:	98 03 00 3c 	stb     r0,60(r3)                              
  ptimer->thread_id = _Thread_Executing->Object.id;                   
ffc07ab4:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  if ( evp != NULL ) {                                                
ffc07ab8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
ffc07abc:	81 29 31 5c 	lwz     r9,12636(r9)                           
ffc07ac0:	80 09 00 08 	lwz     r0,8(r9)                               
ffc07ac4:	90 03 00 38 	stw     r0,56(r3)                              
                                                                      
  if ( evp != NULL ) {                                                
ffc07ac8:	41 9e 00 1c 	beq-    cr7,ffc07ae4 <timer_create+0xd8>       
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
ffc07acc:	80 1f 00 00 	lwz     r0,0(r31)                              
ffc07ad0:	90 03 00 40 	stw     r0,64(r3)                              
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
ffc07ad4:	80 1f 00 04 	lwz     r0,4(r31)                              
ffc07ad8:	90 03 00 44 	stw     r0,68(r3)                              
    ptimer->inf.sigev_value  = evp->sigev_value;                      
ffc07adc:	80 1f 00 08 	lwz     r0,8(r31)                              
ffc07ae0:	90 03 00 48 	stw     r0,72(r3)                              
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc07ae4:	81 23 00 08 	lwz     r9,8(r3)                               
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc07ae8:	3d 60 00 00 	lis     r11,0                                  
ffc07aec:	81 4b 2f 34 	lwz     r10,12084(r11)                         
  }                                                                   
                                                                      
  ptimer->overrun  = 0;                                               
ffc07af0:	38 00 00 00 	li      r0,0                                   
ffc07af4:	55 2b 13 ba 	rlwinm  r11,r9,2,14,29                         
ffc07af8:	90 03 00 68 	stw     r0,104(r3)                             
  ptimer->timer_data.it_value.tv_sec     = 0;                         
ffc07afc:	90 03 00 5c 	stw     r0,92(r3)                              
  ptimer->timer_data.it_value.tv_nsec    = 0;                         
ffc07b00:	90 03 00 60 	stw     r0,96(r3)                              
  ptimer->timer_data.it_interval.tv_sec  = 0;                         
ffc07b04:	90 03 00 54 	stw     r0,84(r3)                              
  ptimer->timer_data.it_interval.tv_nsec = 0;                         
ffc07b08:	90 03 00 58 	stw     r0,88(r3)                              
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc07b0c:	90 03 00 18 	stw     r0,24(r3)                              
  the_watchdog->routine   = routine;                                  
ffc07b10:	90 03 00 2c 	stw     r0,44(r3)                              
  the_watchdog->id        = id;                                       
ffc07b14:	90 03 00 30 	stw     r0,48(r3)                              
  the_watchdog->user_data = user_data;                                
ffc07b18:	90 03 00 34 	stw     r0,52(r3)                              
ffc07b1c:	7c 6a 59 2e 	stwx    r3,r10,r11                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc07b20:	90 03 00 0c 	stw     r0,12(r3)                              
                                                                      
  _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );              
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
ffc07b24:	91 3e 00 00 	stw     r9,0(r30)                              
  _Thread_Enable_dispatch();                                          
ffc07b28:	48 00 2f 61 	bl      ffc0aa88 <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc07b2c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc07b30:	39 61 00 10 	addi    r11,r1,16                              
ffc07b34:	4b ff 8a ec 	b       ffc00620 <_restgpr_30_x>               
                                                                      

ffc07b38 <timer_settime>: timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) {
ffc07b38:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc07b3c:	7c 08 02 a6 	mflr    r0                                     
ffc07b40:	bf 61 00 2c 	stmw    r27,44(r1)                             
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
ffc07b44:	7c bd 2b 79 	mr.     r29,r5                                 
  timer_t                  timerid,                                   
  int                      flags,                                     
  const struct itimerspec *value,                                     
  struct itimerspec       *ovalue                                     
)                                                                     
{                                                                     
ffc07b48:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07b4c:	90 01 00 44 	stw     r0,68(r1)                              
ffc07b50:	7c 9c 23 78 	mr      r28,r4                                 
ffc07b54:	7c de 33 78 	mr      r30,r6                                 
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
ffc07b58:	41 82 01 68 	beq-    ffc07cc0 <timer_settime+0x188>         <== NEVER TAKEN
                                                                      
  /*                                                                  
   * 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) ) ) {                  
ffc07b5c:	38 7d 00 08 	addi    r3,r29,8                               
ffc07b60:	48 00 3f 21 	bl      ffc0ba80 <_Timespec_Is_valid>          
ffc07b64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07b68:	41 9e 01 58 	beq-    cr7,ffc07cc0 <timer_settime+0x188>     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {               
ffc07b6c:	7f a3 eb 78 	mr      r3,r29                                 
ffc07b70:	48 00 3f 11 	bl      ffc0ba80 <_Timespec_Is_valid>          
ffc07b74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07b78:	41 9e 01 48 	beq-    cr7,ffc07cc0 <timer_settime+0x188>     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
ffc07b7c:	2f 9c 00 04 	cmpwi   cr7,r28,4                              
ffc07b80:	41 9e 00 0c 	beq-    cr7,ffc07b8c <timer_settime+0x54>      
ffc07b84:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc07b88:	40 9e 01 38 	bne-    cr7,ffc07cc0 <timer_settime+0x188>     <== NEVER TAKEN
  }                                                                   
                                                                      
  normalize = *value;                                                 
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
ffc07b8c:	2f 9c 00 04 	cmpwi   cr7,r28,4                              
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
ffc07b90:	39 21 00 14 	addi    r9,r1,20                               
ffc07b94:	7c bd 84 aa 	lswi    r5,r29,16                              
ffc07b98:	7c a9 85 aa 	stswi   r5,r9,16                               
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
ffc07b9c:	40 be 00 38 	bne+    cr7,ffc07bd4 <timer_settime+0x9c>      
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
ffc07ba0:	3b 81 00 0c 	addi    r28,r1,12                              
ffc07ba4:	7f 83 e3 78 	mr      r3,r28                                 
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
ffc07ba8:	3b 61 00 1c 	addi    r27,r1,28                              
  normalize = *value;                                                 
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
ffc07bac:	48 00 1a 7d 	bl      ffc09628 <_TOD_Get>                    
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
ffc07bb0:	7f 83 e3 78 	mr      r3,r28                                 
ffc07bb4:	7f 64 db 78 	mr      r4,r27                                 
ffc07bb8:	48 00 3e 8d 	bl      ffc0ba44 <_Timespec_Greater_than>      
ffc07bbc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07bc0:	40 9e 01 00 	bne-    cr7,ffc07cc0 <timer_settime+0x188>     <== NEVER TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
ffc07bc4:	7f 83 e3 78 	mr      r3,r28                                 
ffc07bc8:	7f 64 db 78 	mr      r4,r27                                 
ffc07bcc:	7f 65 db 78 	mr      r5,r27                                 
ffc07bd0:	48 00 3e f1 	bl      ffc0bac0 <_Timespec_Subtract>          
  timer_t            id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Timer_Control *)                                      
    _Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
ffc07bd4:	3c 60 00 00 	lis     r3,0                                   
ffc07bd8:	7f e4 fb 78 	mr      r4,r31                                 
ffc07bdc:	38 63 2f 18 	addi    r3,r3,12056                            
ffc07be0:	38 a1 00 08 	addi    r5,r1,8                                
ffc07be4:	48 00 24 d9 	bl      ffc0a0bc <_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 ) {                                               
ffc07be8:	80 01 00 08 	lwz     r0,8(r1)                               
ffc07bec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07bf0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07bf4:	40 9e 00 cc 	bne-    cr7,ffc07cc0 <timer_settime+0x188>     <== 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 ) {
ffc07bf8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07bfc:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07c00:	40 9e 00 48 	bne-    cr7,ffc07c48 <timer_settime+0x110>     
ffc07c04:	80 01 00 20 	lwz     r0,32(r1)                              
ffc07c08:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc07c0c:	40 be 00 3c 	bne+    cr7,ffc07c48 <timer_settime+0x110>     
         /* Stop the timer */                                         
         (void) _Watchdog_Remove( &ptimer->Timer );                   
ffc07c10:	38 63 00 10 	addi    r3,r3,16                               
ffc07c14:	48 00 43 e1 	bl      ffc0bff4 <_Watchdog_Remove>            
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
ffc07c18:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07c1c:	41 9e 00 10 	beq-    cr7,ffc07c2c <timer_settime+0xf4>      
           *ovalue = ptimer->timer_data;                              
ffc07c20:	39 3f 00 54 	addi    r9,r31,84                              
ffc07c24:	7c a9 84 aa 	lswi    r5,r9,16                               
ffc07c28:	7c be 85 aa 	stswi   r5,r30,16                              
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
ffc07c2c:	39 3f 00 54 	addi    r9,r31,84                              
ffc07c30:	39 61 00 14 	addi    r11,r1,20                              
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
ffc07c34:	38 00 00 04 	li      r0,4                                   
         (void) _Watchdog_Remove( &ptimer->Timer );                   
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
           *ovalue = ptimer->timer_data;                              
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
ffc07c38:	7c ab 84 aa 	lswi    r5,r11,16                              
ffc07c3c:	7c a9 85 aa 	stswi   r5,r9,16                               
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
ffc07c40:	98 1f 00 3c 	stb     r0,60(r31)                             
ffc07c44:	48 00 00 70 	b       ffc07cb4 <timer_settime+0x17c>         
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
ffc07c48:	7f a3 eb 78 	mr      r3,r29                                 
ffc07c4c:	48 00 3e b9 	bl      ffc0bb04 <_Timespec_To_ticks>          
ffc07c50:	90 7f 00 64 	stw     r3,100(r31)                            
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
ffc07c54:	38 61 00 1c 	addi    r3,r1,28                               
ffc07c58:	48 00 3e ad 	bl      ffc0bb04 <_Timespec_To_ticks>          
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
ffc07c5c:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc07c60:	3c c0 ff c0 	lis     r6,-64                                 
        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 );    
ffc07c64:	7c 64 1b 78 	mr      r4,r3                                  
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
ffc07c68:	38 c6 7c d8 	addi    r6,r6,31960                            
ffc07c6c:	38 7f 00 10 	addi    r3,r31,16                              
ffc07c70:	7f e7 fb 78 	mr      r7,r31                                 
ffc07c74:	48 00 67 9d 	bl      ffc0e410 <_POSIX_Timer_Insert_helper>  
         initial_period,                                              
         ptimer->Object.id,                                           
         _POSIX_Timer_TSR,                                            
         ptimer                                                       
       );                                                             
       if ( !activated ) {                                            
ffc07c78:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07c7c:	41 9e 00 38 	beq-    cr7,ffc07cb4 <timer_settime+0x17c>     
                                                                      
       /*                                                             
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
ffc07c80:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07c84:	41 9e 00 10 	beq-    cr7,ffc07c94 <timer_settime+0x15c>     
         *ovalue = ptimer->timer_data;                                
ffc07c88:	39 3f 00 54 	addi    r9,r31,84                              
ffc07c8c:	7c a9 84 aa 	lswi    r5,r9,16                               
ffc07c90:	7c be 85 aa 	stswi   r5,r30,16                              
       ptimer->timer_data = normalize;                                
ffc07c94:	39 3f 00 54 	addi    r9,r31,84                              
ffc07c98:	39 61 00 14 	addi    r11,r1,20                              
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
ffc07c9c:	38 00 00 03 	li      r0,3                                   
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
         *ovalue = ptimer->timer_data;                                
       ptimer->timer_data = normalize;                                
ffc07ca0:	7c ab 84 aa 	lswi    r5,r11,16                              
ffc07ca4:	7c a9 85 aa 	stswi   r5,r9,16                               
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
       _TOD_Get( &ptimer->time );                                     
ffc07ca8:	38 7f 00 6c 	addi    r3,r31,108                             
       if ( ovalue )                                                  
         *ovalue = ptimer->timer_data;                                
       ptimer->timer_data = normalize;                                
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
ffc07cac:	98 1f 00 3c 	stb     r0,60(r31)                             
       _TOD_Get( &ptimer->time );                                     
ffc07cb0:	48 00 19 79 	bl      ffc09628 <_TOD_Get>                    
       _Thread_Enable_dispatch();                                     
ffc07cb4:	48 00 2d d5 	bl      ffc0aa88 <_Thread_Enable_dispatch>     
       return 0;                                                      
ffc07cb8:	38 60 00 00 	li      r3,0                                   
ffc07cbc:	48 00 00 14 	b       ffc07cd0 <timer_settime+0x198>         
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
ffc07cc0:	48 00 95 1d 	bl      ffc111dc <__errno>                     
ffc07cc4:	38 00 00 16 	li      r0,22                                  
ffc07cc8:	90 03 00 00 	stw     r0,0(r3)                               
ffc07ccc:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc07cd0:	39 61 00 40 	addi    r11,r1,64                              
ffc07cd4:	4b ff 89 40 	b       ffc00614 <_restgpr_27_x>               
                                                                      

ffc07898 <ualarm>: useconds_t ualarm( useconds_t useconds, useconds_t interval ) {
ffc07898:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0789c:	7c 08 02 a6 	mflr    r0                                     
ffc078a0:	bf a1 00 1c 	stmw    r29,28(r1)                             
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc078a4:	3f a0 00 00 	lis     r29,0                                  
ffc078a8:	3b bd 35 00 	addi    r29,r29,13568                          
                                                                      
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
ffc078ac:	90 01 00 2c 	stw     r0,44(r1)                              
ffc078b0:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc078b4:	80 1d 00 1c 	lwz     r0,28(r29)                             
ffc078b8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc078bc:	40 be 00 24 	bne+    cr7,ffc078e0 <ualarm+0x48>             
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc078c0:	3d 20 ff c0 	lis     r9,-64                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc078c4:	90 1d 00 08 	stw     r0,8(r29)                              
  the_watchdog->routine   = routine;                                  
ffc078c8:	39 29 78 50 	addi    r9,r9,30800                            
ffc078cc:	91 3d 00 1c 	stw     r9,28(r29)                             
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
ffc078d0:	3b e0 00 00 	li      r31,0                                  
  the_watchdog->id        = id;                                       
ffc078d4:	90 1d 00 20 	stw     r0,32(r29)                             
  the_watchdog->user_data = user_data;                                
ffc078d8:	90 1d 00 24 	stw     r0,36(r29)                             
ffc078dc:	48 00 00 58 	b       ffc07934 <ualarm+0x9c>                 
  if ( !the_timer->routine ) {                                        
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
ffc078e0:	7f a3 eb 78 	mr      r3,r29                                 
ffc078e4:	48 00 41 dd 	bl      ffc0bac0 <_Watchdog_Remove>            
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
ffc078e8:	3b e0 00 00 	li      r31,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) ) {
ffc078ec:	38 63 ff fe 	addi    r3,r3,-2                               
ffc078f0:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc078f4:	41 bd 00 40 	bgt+    cr7,ffc07934 <ualarm+0x9c>             <== NEVER TAKEN
       *  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);        
ffc078f8:	80 1d 00 0c 	lwz     r0,12(r29)                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
ffc078fc:	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);        
ffc07900:	80 7d 00 14 	lwz     r3,20(r29)                             
ffc07904:	7c 63 02 14 	add     r3,r3,r0                               
ffc07908:	80 1d 00 18 	lwz     r0,24(r29)                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
ffc0790c:	7c 60 18 50 	subf    r3,r0,r3                               
ffc07910:	48 00 3b 95 	bl      ffc0b4a4 <_Timespec_From_ticks>        
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
ffc07914:	81 21 00 08 	lwz     r9,8(r1)                               
ffc07918:	3c 00 00 0f 	lis     r0,15                                  
      remaining += tp.tv_nsec / 1000;                                 
ffc0791c:	83 e1 00 0c 	lwz     r31,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;           
ffc07920:	60 00 42 40 	ori     r0,r0,16960                            
ffc07924:	7c 00 49 d6 	mullw   r0,r0,r9                               
      remaining += tp.tv_nsec / 1000;                                 
ffc07928:	39 20 03 e8 	li      r9,1000                                
ffc0792c:	7f ff 4b d6 	divw    r31,r31,r9                             
ffc07930:	7f ff 02 14 	add     r31,r31,r0                             
  /*                                                                  
   *  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 ) {                                                   
ffc07934:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07938:	41 be 00 50 	beq+    cr7,ffc07988 <ualarm+0xf0>             
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
ffc0793c:	3c 00 00 0f 	lis     r0,15                                  
ffc07940:	60 00 42 40 	ori     r0,r0,16960                            
ffc07944:	7d 3e 03 96 	divwu   r9,r30,r0                              
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
ffc07948:	7c 09 01 d6 	mullw   r0,r9,r0                               
   *  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;               
ffc0794c:	91 21 00 08 	stw     r9,8(r1)                               
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
ffc07950:	7f c0 f0 50 	subf    r30,r0,r30                             
ffc07954:	1f de 03 e8 	mulli   r30,r30,1000                           
ffc07958:	93 c1 00 0c 	stw     r30,12(r1)                             
    ticks = _Timespec_To_ticks( &tp );                                
ffc0795c:	3b c1 00 08 	addi    r30,r1,8                               
ffc07960:	7f c3 f3 78 	mr      r3,r30                                 
ffc07964:	48 00 3b b5 	bl      ffc0b518 <_Timespec_To_ticks>          
    if ( ticks == 0 )                                                 
      ticks = 1;                                                      
                                                                      
    _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );   
ffc07968:	7f c3 f3 78 	mr      r3,r30                                 
ffc0796c:	48 00 3b ad 	bl      ffc0b518 <_Timespec_To_ticks>          
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc07970:	3c 80 00 00 	lis     r4,0                                   
ffc07974:	38 84 35 00 	addi    r4,r4,13568                            
ffc07978:	90 64 00 0c 	stw     r3,12(r4)                              
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc0797c:	3c 60 00 00 	lis     r3,0                                   
ffc07980:	38 63 2d 48 	addi    r3,r3,11592                            
ffc07984:	48 00 3f e9 	bl      ffc0b96c <_Watchdog_Insert>            
  }                                                                   
                                                                      
  return remaining;                                                   
}                                                                     
ffc07988:	39 61 00 28 	addi    r11,r1,40                              
ffc0798c:	7f e3 fb 78 	mr      r3,r31                                 
ffc07990:	4b ff 8b 68 	b       ffc004f8 <_restgpr_29_x>               
                                                                      

ffc07fc8 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
ffc07fc8:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc07fcc:	7d 80 00 26 	mfcr    r12                                    
ffc07fd0:	7c 08 02 a6 	mflr    r0                                     
ffc07fd4:	bf 41 00 40 	stmw    r26,64(r1)                             
ffc07fd8:	7c 7c 1b 78 	mr      r28,r3                                 
ffc07fdc:	90 01 00 5c 	stw     r0,92(r1)                              
ffc07fe0:	91 81 00 3c 	stw     r12,60(r1)                             
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
ffc07fe4:	4b ff d1 a5 	bl      ffc05188 <rtems_filesystem_dirname>    
                                                                      
  if ( parentpathlen == 0 )                                           
ffc07fe8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc07fec:	38 c1 00 0c 	addi    r6,r1,12                               
ffc07ff0:	40 82 00 1c 	bne-    ffc0800c <unlink+0x44>                 
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
ffc07ff4:	7f 83 e3 78 	mr      r3,r28                                 
ffc07ff8:	38 81 00 08 	addi    r4,r1,8                                
ffc07ffc:	7c c5 33 78 	mr      r5,r6                                  
ffc08000:	4b ff e2 89 	bl      ffc06288 <rtems_filesystem_get_start_loc>
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
ffc08004:	3b a0 00 00 	li      r29,0                                  
ffc08008:	48 00 00 28 	b       ffc08030 <unlink+0x68>                 
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
ffc0800c:	7f 83 e3 78 	mr      r3,r28                                 
ffc08010:	7f 64 db 78 	mr      r4,r27                                 
ffc08014:	38 a0 00 02 	li      r5,2                                   
ffc08018:	38 e0 00 00 	li      r7,0                                   
ffc0801c:	4b ff d1 11 	bl      ffc0512c <rtems_filesystem_evaluate_path>
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
      return -1;                                                      
ffc08020:	3b 40 ff ff 	li      r26,-1                                 
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
ffc08024:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08028:	40 9e 00 e4 	bne-    cr7,ffc0810c <unlink+0x144>            <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
ffc0802c:	3b a0 00 01 	li      r29,1                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
ffc08030:	3b e1 00 20 	addi    r31,r1,32                              
ffc08034:	3b c1 00 0c 	addi    r30,r1,12                              
ffc08038:	7c be a4 aa 	lswi    r5,r30,20                              
ffc0803c:	7c bf a5 aa 	stswi   r5,r31,20                              
  name = path + parentpathlen;                                        
ffc08040:	7f 9c da 14 	add     r28,r28,r27                            
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
ffc08044:	7f 83 e3 78 	mr      r3,r28                                 
ffc08048:	48 00 d4 61 	bl      ffc154a8 <strlen>                      
ffc0804c:	7c 64 1b 78 	mr      r4,r3                                  
ffc08050:	7f 83 e3 78 	mr      r3,r28                                 
ffc08054:	4b ff d1 7d 	bl      ffc051d0 <rtems_filesystem_prefix_separators>
ffc08058:	7f 9c 1a 14 	add     r28,r28,r3                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc0805c:	7f 83 e3 78 	mr      r3,r28                                 
ffc08060:	48 00 d4 49 	bl      ffc154a8 <strlen>                      
ffc08064:	38 a0 00 00 	li      r5,0                                   
ffc08068:	7c 64 1b 78 	mr      r4,r3                                  
ffc0806c:	7f e6 fb 78 	mr      r6,r31                                 
ffc08070:	7f 83 e3 78 	mr      r3,r28                                 
ffc08074:	38 e0 00 00 	li      r7,0                                   
ffc08078:	4b ff d0 31 	bl      ffc050a8 <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
ffc0807c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08080:	41 be 00 14 	beq+    cr7,ffc08094 <unlink+0xcc>             
    if ( free_parentloc )                                             
ffc08084:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
ffc08088:	3b 40 ff ff 	li      r26,-1                                 
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
ffc0808c:	41 be 00 80 	beq+    cr7,ffc0810c <unlink+0x144>            <== NEVER TAKEN
ffc08090:	48 00 00 74 	b       ffc08104 <unlink+0x13c>                
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
ffc08094:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc08098:	7f e3 fb 78 	mr      r3,r31                                 
ffc0809c:	2e 1d 00 00 	cmpwi   cr4,r29,0                              
ffc080a0:	80 09 00 10 	lwz     r0,16(r9)                              
ffc080a4:	7c 09 03 a6 	mtctr   r0                                     
ffc080a8:	4e 80 04 21 	bctrl                                          
ffc080ac:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc080b0:	40 be 00 2c 	bne+    cr7,ffc080dc <unlink+0x114>            
    rtems_filesystem_freenode( &loc );                                
ffc080b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc080b8:	4b ff d1 69 	bl      ffc05220 <rtems_filesystem_freenode>   
    if ( free_parentloc )                                             
ffc080bc:	41 b2 00 0c 	beq+    cr4,ffc080c8 <unlink+0x100>            
      rtems_filesystem_freenode( &parentloc );                        
ffc080c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc080c4:	4b ff d1 5d 	bl      ffc05220 <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( EISDIR );                   
ffc080c8:	48 00 c2 41 	bl      ffc14308 <__errno>                     
ffc080cc:	38 00 00 15 	li      r0,21                                  
ffc080d0:	90 03 00 00 	stw     r0,0(r3)                               
ffc080d4:	3b 40 ff ff 	li      r26,-1                                 
ffc080d8:	48 00 00 34 	b       ffc0810c <unlink+0x144>                
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
ffc080dc:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc080e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc080e4:	7f e4 fb 78 	mr      r4,r31                                 
ffc080e8:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc080ec:	7c 09 03 a6 	mtctr   r0                                     
ffc080f0:	4e 80 04 21 	bctrl                                          
ffc080f4:	7c 7a 1b 78 	mr      r26,r3                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc080f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc080fc:	4b ff d1 25 	bl      ffc05220 <rtems_filesystem_freenode>   
  if ( free_parentloc )                                               
ffc08100:	41 b2 00 0c 	beq+    cr4,ffc0810c <unlink+0x144>            
    rtems_filesystem_freenode( &parentloc );                          
ffc08104:	7f c3 f3 78 	mr      r3,r30                                 
ffc08108:	4b ff d1 19 	bl      ffc05220 <rtems_filesystem_freenode>   
                                                                      
  return result;                                                      
}                                                                     
ffc0810c:	81 81 00 3c 	lwz     r12,60(r1)                             
ffc08110:	39 61 00 58 	addi    r11,r1,88                              
ffc08114:	7f 43 d3 78 	mr      r3,r26                                 
ffc08118:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0811c:	48 01 0f b0 	b       ffc190cc <_restgpr_26_x>               
                                                                      

ffc082d0 <unmount>: */ int unmount( const char *path ) {
ffc082d0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc082d4:	7c 08 02 a6 	mflr    r0                                     
ffc082d8:	bf c1 00 28 	stmw    r30,40(r1)                             
ffc082dc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc082e0:	90 01 00 34 	stw     r0,52(r1)                              
   *    The root node of the mounted filesytem.                       
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
ffc082e4:	48 00 a4 ed 	bl      ffc127d0 <strlen>                      
ffc082e8:	7c 64 1b 78 	mr      r4,r3                                  
ffc082ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc082f0:	3b e1 00 08 	addi    r31,r1,8                               
ffc082f4:	38 a0 00 00 	li      r5,0                                   
ffc082f8:	7f e6 fb 78 	mr      r6,r31                                 
ffc082fc:	38 e0 00 01 	li      r7,1                                   
ffc08300:	4b ff cd 41 	bl      ffc05040 <rtems_filesystem_evaluate_path>
ffc08304:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08308:	40 9e 01 1c 	bne-    cr7,ffc08424 <unmount+0x154>           
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
ffc0830c:	83 c1 00 18 	lwz     r30,24(r1)                             
                                                                      
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
ffc08310:	80 01 00 08 	lwz     r0,8(r1)                               
ffc08314:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc08318:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc0831c:	41 be 00 18 	beq+    cr7,ffc08334 <unmount+0x64>            
    rtems_filesystem_freenode( &loc );                                
ffc08320:	7f e3 fb 78 	mr      r3,r31                                 
ffc08324:	4b ff ce 11 	bl      ffc05134 <rtems_filesystem_freenode>   
    rtems_set_errno_and_return_minus_one( EACCES );                   
ffc08328:	48 00 8d fd 	bl      ffc11124 <__errno>                     
ffc0832c:	38 00 00 0d 	li      r0,13                                  
ffc08330:	48 00 00 50 	b       ffc08380 <unmount+0xb0>                
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
ffc08334:	7f e3 fb 78 	mr      r3,r31                                 
ffc08338:	4b ff cd fd 	bl      ffc05134 <rtems_filesystem_freenode>   
   *        that made the current node thread based instead           
   *        of system based?  I thought it was but it doesn't         
   *        look like it in this version.                             
   */                                                                 
                                                                      
  if ( rtems_filesystem_current.mt_entry == mt_entry )                
ffc0833c:	3d 20 00 00 	lis     r9,0                                   
ffc08340:	81 29 27 74 	lwz     r9,10100(r9)                           
ffc08344:	80 09 00 14 	lwz     r0,20(r9)                              
ffc08348:	7f 80 f0 00 	cmpw    cr7,r0,r30                             
ffc0834c:	41 9e 00 2c 	beq-    cr7,ffc08378 <unmount+0xa8>            
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
ffc08350:	3c 60 ff c1 	lis     r3,-63                                 
ffc08354:	80 9e 00 2c 	lwz     r4,44(r30)                             
ffc08358:	38 63 82 bc 	addi    r3,r3,-32068                           
ffc0835c:	4b ff d7 c5 	bl      ffc05b20 <rtems_filesystem_mount_iterate>
ffc08360:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08364:	40 9e 00 14 	bne-    cr7,ffc08378 <unmount+0xa8>            
   *  Run the file descriptor table to determine if there are any file
   *  descriptors that are currently active and reference nodes in the
   *  file system that we are trying to unmount                       
   */                                                                 
                                                                      
  if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )             
ffc08368:	7f c3 f3 78 	mr      r3,r30                                 
ffc0836c:	4b ff d1 c9 	bl      ffc05534 <rtems_libio_is_open_files_in_fs>
ffc08370:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc08374:	40 be 00 14 	bne+    cr7,ffc08388 <unmount+0xb8>            
    rtems_set_errno_and_return_minus_one( EBUSY );                    
ffc08378:	48 00 8d ad 	bl      ffc11124 <__errno>                     
ffc0837c:	38 00 00 10 	li      r0,16                                  
ffc08380:	90 03 00 00 	stw     r0,0(r3)                               
ffc08384:	48 00 00 a0 	b       ffc08424 <unmount+0x154>               
   * Allow the file system being unmounted on to do its cleanup.      
   * If it fails it will set the errno to the approprate value        
   * and the fileystem will not be modified.                          
   */                                                                 
                                                                      
  if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )             
ffc08388:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0838c:	7f c3 f3 78 	mr      r3,r30                                 
    return -1;                                                        
ffc08390:	3b e0 ff ff 	li      r31,-1                                 
   * Allow the file system being unmounted on to do its cleanup.      
   * If it fails it will set the errno to the approprate value        
   * and the fileystem will not be modified.                          
   */                                                                 
                                                                      
  if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )             
ffc08394:	80 09 00 28 	lwz     r0,40(r9)                              
ffc08398:	7c 09 03 a6 	mtctr   r0                                     
ffc0839c:	4e 80 04 21 	bctrl                                          
ffc083a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc083a4:	40 be 00 84 	bne+    cr7,ffc08428 <unmount+0x158>           <== NEVER TAKEN
   *  NOTE:  Fatal error is called in a case which should never happen
   *         This was response was questionable but the best we could 
   *         come up with.                                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
ffc083a8:	81 3e 00 28 	lwz     r9,40(r30)                             
ffc083ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc083b0:	80 09 00 2c 	lwz     r0,44(r9)                              
ffc083b4:	7c 09 03 a6 	mtctr   r0                                     
ffc083b8:	4e 80 04 21 	bctrl                                          
ffc083bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc083c0:	41 be 00 28 	beq+    cr7,ffc083e8 <unmount+0x118>           <== ALWAYS TAKEN
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
ffc083c4:	81 3e 00 14 	lwz     r9,20(r30)                             <== NOT EXECUTED
ffc083c8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc083cc:	80 09 00 20 	lwz     r0,32(r9)                              <== NOT EXECUTED
ffc083d0:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc083d4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc083d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc083dc:	41 be 00 4c 	beq+    cr7,ffc08428 <unmount+0x158>           <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
ffc083e0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc083e4:	48 00 11 99 	bl      ffc0957c <rtems_fatal_error_occurred>  <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);                  
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;   
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc083e8:	3f e0 00 00 	lis     r31,0                                  
ffc083ec:	80 7f 28 04 	lwz     r3,10244(r31)                          
ffc083f0:	38 80 00 00 	li      r4,0                                   
ffc083f4:	38 a0 00 00 	li      r5,0                                   
ffc083f8:	48 00 0a 19 	bl      ffc08e10 <rtems_semaphore_obtain>      
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc083fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc08400:	48 00 15 79 	bl      ffc09978 <_Chain_Extract>              
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc08404:	80 7f 28 04 	lwz     r3,10244(r31)                          
   */                                                                 
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
ffc08408:	3b e0 00 00 	li      r31,0                                  
ffc0840c:	48 00 0b 2d 	bl      ffc08f38 <rtems_semaphore_release>     
  /*                                                                  
   *  Free the memory node that was allocated in mount                
   *  Free the memory associated with the extracted mount table entry.
   */                                                                 
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
ffc08410:	38 7e 00 08 	addi    r3,r30,8                               
ffc08414:	4b ff cd 21 	bl      ffc05134 <rtems_filesystem_freenode>   
  free( mt_entry );                                                   
ffc08418:	7f c3 f3 78 	mr      r3,r30                                 
ffc0841c:	4b ff cd 45 	bl      ffc05160 <free>                        
                                                                      
  return 0;                                                           
ffc08420:	48 00 00 08 	b       ffc08428 <unmount+0x158>               
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
ffc08424:	3b e0 ff ff 	li      r31,-1                                 
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc08428:	39 61 00 30 	addi    r11,r1,48                              
ffc0842c:	7f e3 fb 78 	mr      r3,r31                                 
ffc08430:	48 00 e6 b8 	b       ffc16ae8 <_restgpr_30_x>               
                                                                      

ffc08128 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
ffc08128:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc0812c:	7c 08 02 a6 	mflr    r0                                     
ffc08130:	be a1 00 2c 	stmw    r21,44(r1)                             
ffc08134:	7c 7f 1b 78 	mr      r31,r3                                 
ffc08138:	7c 9e 23 78 	mr      r30,r4                                 
ffc0813c:	90 01 00 5c 	stw     r0,92(r1)                              
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
ffc08140:	3f 60 00 00 	lis     r27,0                                  
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc08144:	3a a1 00 08 	addi    r21,r1,8                               
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
ffc08148:	3e c0 ff c2 	lis     r22,-62                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
ffc0814c:	3e e0 ff c2 	lis     r23,-62                                
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc08150:	48 00 03 24 	b       ffc08474 <vprintk+0x34c>               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
ffc08154:	2f 83 00 25 	cmpwi   cr7,r3,37                              
ffc08158:	40 9e 01 f4 	bne-    cr7,ffc0834c <vprintk+0x224>           
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
ffc0815c:	8c 1f 00 01 	lbzu    r0,1(r31)                              
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
ffc08160:	3b 00 00 20 	li      r24,32                                 
    if (*fmt != '%') {                                                
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
ffc08164:	2f 80 00 30 	cmpwi   cr7,r0,48                              
ffc08168:	40 be 00 0c 	bne+    cr7,ffc08174 <vprintk+0x4c>            
      lead = '0';                                                     
      fmt++;                                                          
ffc0816c:	3b ff 00 01 	addi    r31,r31,1                              
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
ffc08170:	3b 00 00 30 	li      r24,48                                 
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc08174:	88 1f 00 00 	lbz     r0,0(r31)                              
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
ffc08178:	3b 20 00 00 	li      r25,0                                  
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc0817c:	2f 80 00 2d 	cmpwi   cr7,r0,45                              
ffc08180:	40 be 00 0c 	bne+    cr7,ffc0818c <vprintk+0x64>            
      minus = true;                                                   
      fmt++;                                                          
ffc08184:	3b ff 00 01 	addi    r31,r31,1                              
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
ffc08188:	3b 20 00 01 	li      r25,1                                  
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
ffc0818c:	3b 80 00 00 	li      r28,0                                  
ffc08190:	48 00 00 10 	b       ffc081a0 <vprintk+0x78>                
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
ffc08194:	1f 9c 00 0a 	mulli   r28,r28,10                             
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
ffc08198:	3b ff 00 01 	addi    r31,r31,1                              
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
ffc0819c:	7f 80 e2 14 	add     r28,r0,r28                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc081a0:	88 7f 00 00 	lbz     r3,0(r31)                              
ffc081a4:	38 03 ff d0 	addi    r0,r3,-48                              
ffc081a8:	54 09 06 3e 	clrlwi  r9,r0,24                               
ffc081ac:	2b 89 00 09 	cmplwi  cr7,r9,9                               
ffc081b0:	40 9d ff e4 	ble+    cr7,ffc08194 <vprintk+0x6c>            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
ffc081b4:	2f 83 00 6c 	cmpwi   cr7,r3,108                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc081b8:	7f 9a e3 78 	mr      r26,r28                                
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
ffc081bc:	40 be 00 08 	bne+    cr7,ffc081c4 <vprintk+0x9c>            
      lflag = true;                                                   
      c = *++fmt;                                                     
ffc081c0:	8c 7f 00 01 	lbzu    r3,1(r31)                              
    }                                                                 
    if ( c == 'c' ) {                                                 
ffc081c4:	2f 83 00 63 	cmpwi   cr7,r3,99                              
ffc081c8:	40 be 00 40 	bne+    cr7,ffc08208 <vprintk+0xe0>            
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
ffc081cc:	89 7e 00 00 	lbz     r11,0(r30)                             
ffc081d0:	2b 8b 00 08 	cmplwi  cr7,r11,8                              
ffc081d4:	40 9c 00 1c 	bge-    cr7,ffc081f0 <vprintk+0xc8>            <== NEVER TAKEN
ffc081d8:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc081dc:	55 60 10 3a 	rlwinm  r0,r11,2,0,29                          
ffc081e0:	39 6b 00 01 	addi    r11,r11,1                              
ffc081e4:	7d 29 02 14 	add     r9,r9,r0                               
ffc081e8:	99 7e 00 00 	stb     r11,0(r30)                             
ffc081ec:	48 00 00 10 	b       ffc081fc <vprintk+0xd4>                
ffc081f0:	81 3e 00 04 	lwz     r9,4(r30)                              <== NOT EXECUTED
ffc081f4:	38 09 00 04 	addi    r0,r9,4                                <== NOT EXECUTED
ffc081f8:	90 1e 00 04 	stw     r0,4(r30)                              <== NOT EXECUTED
      BSP_output_char(chr);                                           
ffc081fc:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc08200:	88 69 00 03 	lbz     r3,3(r9)                               
ffc08204:	48 00 01 4c 	b       ffc08350 <vprintk+0x228>               
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
ffc08208:	2f 83 00 73 	cmpwi   cr7,r3,115                             
ffc0820c:	40 be 00 e8 	bne+    cr7,ffc082f4 <vprintk+0x1cc>           
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
ffc08210:	89 7e 00 00 	lbz     r11,0(r30)                             
ffc08214:	2b 8b 00 08 	cmplwi  cr7,r11,8                              
ffc08218:	40 9c 00 1c 	bge-    cr7,ffc08234 <vprintk+0x10c>           <== NEVER TAKEN
ffc0821c:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc08220:	55 60 10 3a 	rlwinm  r0,r11,2,0,29                          
ffc08224:	39 6b 00 01 	addi    r11,r11,1                              
ffc08228:	7d 29 02 14 	add     r9,r9,r0                               
ffc0822c:	99 7e 00 00 	stb     r11,0(r30)                             
ffc08230:	48 00 00 10 	b       ffc08240 <vprintk+0x118>               
ffc08234:	81 3e 00 04 	lwz     r9,4(r30)                              <== NOT EXECUTED
ffc08238:	38 09 00 04 	addi    r0,r9,4                                <== NOT EXECUTED
ffc0823c:	90 1e 00 04 	stw     r0,4(r30)                              <== NOT EXECUTED
ffc08240:	83 49 00 00 	lwz     r26,0(r9)                              
                                                                      
      if ( str == NULL ) {                                            
ffc08244:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc08248:	40 be 00 08 	bne+    cr7,ffc08250 <vprintk+0x128>           
        str = "";                                                     
ffc0824c:	3b 57 aa 3f 	addi    r26,r23,-21953                         
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
ffc08250:	3b a0 00 00 	li      r29,0                                  
ffc08254:	48 00 00 08 	b       ffc0825c <vprintk+0x134>               
ffc08258:	3b bd 00 01 	addi    r29,r29,1                              
ffc0825c:	7c 1a e8 ae 	lbzx    r0,r26,r29                             
ffc08260:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08264:	40 9e ff f4 	bne+    cr7,ffc08258 <vprintk+0x130>           
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
ffc08268:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc0826c:	7f b8 eb 78 	mr      r24,r29                                
ffc08270:	41 9e 00 1c 	beq-    cr7,ffc0828c <vprintk+0x164>           
ffc08274:	48 00 00 20 	b       ffc08294 <vprintk+0x16c>               
        for ( i=len ; i<width ; i++ )                                 
          BSP_output_char(' ');                                       
ffc08278:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc0827c:	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++ )                                 
ffc08280:	3b 18 00 01 	addi    r24,r24,1                              
          BSP_output_char(' ');                                       
ffc08284:	7c 09 03 a6 	mtctr   r0                                     
ffc08288:	4e 80 04 21 	bctrl                                          
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
ffc0828c:	7f 98 e0 40 	cmplw   cr7,r24,r28                            
ffc08290:	41 9c ff e8 	blt+    cr7,ffc08278 <vprintk+0x150>           
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
ffc08294:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc08298:	40 9e 00 10 	bne-    cr7,ffc082a8 <vprintk+0x180>           
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc0829c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc082a0:	41 be 00 28 	beq+    cr7,ffc082c8 <vprintk+0x1a0>           
ffc082a4:	7f bc eb 78 	mr      r28,r29                                
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc082a8:	3b 5a ff ff 	addi    r26,r26,-1                             
ffc082ac:	48 00 00 10 	b       ffc082bc <vprintk+0x194>               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
ffc082b0:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc082b4:	7c 09 03 a6 	mtctr   r0                                     
ffc082b8:	4e 80 04 21 	bctrl                                          
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc082bc:	8c 7a 00 01 	lbzu    r3,1(r26)                              
ffc082c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc082c4:	40 9e ff ec 	bne+    cr7,ffc082b0 <vprintk+0x188>           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
ffc082c8:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc082cc:	41 9e 01 a4 	beq-    cr7,ffc08470 <vprintk+0x348>           
ffc082d0:	48 00 00 18 	b       ffc082e8 <vprintk+0x1c0>               
        for ( i=len ; i<width ; i++ )                                 
          BSP_output_char(' ');                                       
ffc082d4:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc082d8:	38 60 00 20 	li      r3,32                                  
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc082dc:	3b bd 00 01 	addi    r29,r29,1                              
          BSP_output_char(' ');                                       
ffc082e0:	7c 09 03 a6 	mtctr   r0                                     
ffc082e4:	4e 80 04 21 	bctrl                                          
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc082e8:	7f 9d e0 40 	cmplw   cr7,r29,r28                            
ffc082ec:	41 9c ff e8 	blt+    cr7,ffc082d4 <vprintk+0x1ac>           
ffc082f0:	48 00 01 80 	b       ffc08470 <vprintk+0x348>               
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
ffc082f4:	2f 83 00 6f 	cmpwi   cr7,r3,111                             
ffc082f8:	41 9e 00 64 	beq-    cr7,ffc0835c <vprintk+0x234>           
ffc082fc:	2f 83 00 4f 	cmpwi   cr7,r3,79                              
ffc08300:	41 9e 00 5c 	beq-    cr7,ffc0835c <vprintk+0x234>           
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
ffc08304:	2f 83 00 69 	cmpwi   cr7,r3,105                             
ffc08308:	41 9e 00 60 	beq-    cr7,ffc08368 <vprintk+0x240>           
ffc0830c:	2f 83 00 49 	cmpwi   cr7,r3,73                              
ffc08310:	41 9e 00 58 	beq-    cr7,ffc08368 <vprintk+0x240>           
ffc08314:	2f 83 00 64 	cmpwi   cr7,r3,100                             
ffc08318:	41 9e 00 50 	beq-    cr7,ffc08368 <vprintk+0x240>           
                c == 'd' || c == 'D' ) {                              
ffc0831c:	2f 83 00 44 	cmpwi   cr7,r3,68                              
ffc08320:	41 9e 00 48 	beq-    cr7,ffc08368 <vprintk+0x240>           
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
ffc08324:	2f 83 00 75 	cmpwi   cr7,r3,117                             
ffc08328:	41 9e 00 48 	beq-    cr7,ffc08370 <vprintk+0x248>           
ffc0832c:	2f 83 00 55 	cmpwi   cr7,r3,85                              
ffc08330:	41 9e 00 40 	beq-    cr7,ffc08370 <vprintk+0x248>           
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
ffc08334:	2f 83 00 78 	cmpwi   cr7,r3,120                             
ffc08338:	41 9e 00 44 	beq-    cr7,ffc0837c <vprintk+0x254>           
ffc0833c:	2f 83 00 58 	cmpwi   cr7,r3,88                              
ffc08340:	41 9e 00 3c 	beq-    cr7,ffc0837c <vprintk+0x254>           
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
ffc08344:	2f 83 00 70 	cmpwi   cr7,r3,112                             
ffc08348:	41 9e 00 34 	beq-    cr7,ffc0837c <vprintk+0x254>           
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      BSP_output_char(c);                                             
ffc0834c:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc08350:	7c 09 03 a6 	mtctr   r0                                     
ffc08354:	4e 80 04 21 	bctrl                                          
      continue;                                                       
ffc08358:	48 00 01 18 	b       ffc08470 <vprintk+0x348>               
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
ffc0835c:	38 00 00 00 	li      r0,0                                   
ffc08360:	3b a0 00 08 	li      r29,8                                  
ffc08364:	48 00 00 20 	b       ffc08384 <vprintk+0x25c>               
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
ffc08368:	38 00 00 01 	li      r0,1                                   
ffc0836c:	48 00 00 08 	b       ffc08374 <vprintk+0x24c>               
    } else if ( c == 'u' || c == 'U' ) {                              
      base = 10; sign = false;                                        
ffc08370:	38 00 00 00 	li      r0,0                                   
ffc08374:	3b a0 00 0a 	li      r29,10                                 
ffc08378:	48 00 00 0c 	b       ffc08384 <vprintk+0x25c>               
    } else if ( c == 'x' || c == 'X' ) {                              
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
      base = 16; sign = false; lflag = true;                          
ffc0837c:	38 00 00 00 	li      r0,0                                   
ffc08380:	3b a0 00 10 	li      r29,16                                 
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc08384:	89 7e 00 00 	lbz     r11,0(r30)                             
ffc08388:	2b 8b 00 08 	cmplwi  cr7,r11,8                              
ffc0838c:	40 9c 00 1c 	bge-    cr7,ffc083a8 <vprintk+0x280>           
ffc08390:	81 5e 00 08 	lwz     r10,8(r30)                             
ffc08394:	55 69 10 3a 	rlwinm  r9,r11,2,0,29                          
ffc08398:	39 6b 00 01 	addi    r11,r11,1                              
ffc0839c:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc083a0:	99 7e 00 00 	stb     r11,0(r30)                             
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
ffc083a4:	48 00 00 10 	b       ffc083b4 <vprintk+0x28c>               
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc083a8:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc083ac:	39 69 00 04 	addi    r11,r9,4                               
ffc083b0:	91 7e 00 04 	stw     r11,4(r30)                             
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc083b4:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
ffc083b8:	83 29 00 00 	lwz     r25,0(r9)                              
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc083bc:	41 9e 00 30 	beq-    cr7,ffc083ec <vprintk+0x2c4>           
ffc083c0:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc083c4:	40 bc 00 28 	bge+    cr7,ffc083ec <vprintk+0x2c4>           
    BSP_output_char('-');                                             
ffc083c8:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc083cc:	38 60 00 2d 	li      r3,45                                  
    unsigned_num = (unsigned long) -num;                              
ffc083d0:	7f 39 00 d0 	neg     r25,r25                                
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
ffc083d4:	7c 09 03 a6 	mtctr   r0                                     
ffc083d8:	4e 80 04 21 	bctrl                                          
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
ffc083dc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc083e0:	41 9e 00 10 	beq-    cr7,ffc083f0 <vprintk+0x2c8>           
ffc083e4:	3b 5c ff ff 	addi    r26,r28,-1                             
ffc083e8:	48 00 00 08 	b       ffc083f0 <vprintk+0x2c8>               
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
ffc083ec:	7f 9a e3 78 	mr      r26,r28                                
  }                                                                   
                                                                      
  count = 0;                                                          
ffc083f0:	3b 80 00 00 	li      r28,0                                  
ffc083f4:	48 00 00 14 	b       ffc08408 <vprintk+0x2e0>               
  while ((n = unsigned_num / base) > 0) {                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
ffc083f8:	7d 60 e9 d6 	mullw   r11,r0,r29                             
ffc083fc:	7f 2b c8 50 	subf    r25,r11,r25                            
ffc08400:	9b 29 00 08 	stb     r25,8(r9)                              
ffc08404:	7c 19 03 78 	mr      r25,r0                                 
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
ffc08408:	7c 19 eb 96 	divwu   r0,r25,r29                             
ffc0840c:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc08410:	7d 21 e2 14 	add     r9,r1,r28                              
ffc08414:	3b 9c 00 01 	addi    r28,r28,1                              
ffc08418:	40 9e ff e0 	bne+    cr7,ffc083f8 <vprintk+0x2d0>           
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
ffc0841c:	9b 29 00 08 	stb     r25,8(r9)                              
ffc08420:	48 00 00 18 	b       ffc08438 <vprintk+0x310>               
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
ffc08424:	80 1b 26 ec 	lwz     r0,9964(r27)                           
ffc08428:	7f 03 c3 78 	mr      r3,r24                                 
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc0842c:	3b 5a ff ff 	addi    r26,r26,-1                             
    BSP_output_char(lead);                                            
ffc08430:	7c 09 03 a6 	mtctr   r0                                     
ffc08434:	4e 80 04 21 	bctrl                                          
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc08438:	7f 9a e0 40 	cmplw   cr7,r26,r28                            
ffc0843c:	41 9d ff e8 	bgt+    cr7,ffc08424 <vprintk+0x2fc>           
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc08440:	7f 55 e2 14 	add     r26,r21,r28                            
ffc08444:	3b a0 00 00 	li      r29,0                                  
ffc08448:	48 00 00 20 	b       ffc08468 <vprintk+0x340>               
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
ffc0844c:	8d 3a ff ff 	lbzu    r9,-1(r26)                             
ffc08450:	39 76 aa 40 	addi    r11,r22,-21952                         
ffc08454:	80 1b 26 ec 	lwz     r0,9964(r27)                           
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc08458:	3b bd 00 01 	addi    r29,r29,1                              
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
ffc0845c:	7c 6b 48 ae 	lbzx    r3,r11,r9                              
ffc08460:	7c 09 03 a6 	mtctr   r0                                     
ffc08464:	4e 80 04 21 	bctrl                                          
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc08468:	7f 9d e0 40 	cmplw   cr7,r29,r28                            
ffc0846c:	41 9c ff e0 	blt+    cr7,ffc0844c <vprintk+0x324>           
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc08470:	3b ff 00 01 	addi    r31,r31,1                              
ffc08474:	88 7f 00 00 	lbz     r3,0(r31)                              
ffc08478:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0847c:	40 9e fc d8 	bne+    cr7,ffc08154 <vprintk+0x2c>            
      sign,                                                           
      width,                                                          
      lead                                                            
    );                                                                
  }                                                                   
}                                                                     
ffc08480:	39 61 00 58 	addi    r11,r1,88                              
ffc08484:	48 01 0c 34 	b       ffc190b8 <_restgpr_21_x>               
                                                                      

ffc19898 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
ffc19898:	7c 08 02 a6 	mflr    r0                                     
ffc1989c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc198a0:	94 21 ff f0 	stwu    r1,-16(r1)                             
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc198a4:	3d 40 00 00 	lis     r10,0                                  
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc198a8:	90 01 00 14 	stw     r0,20(r1)                              
ffc198ac:	4b ff f7 e9 	bl      ffc19094 <_savegpr_31>                 
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc198b0:	80 0a 26 ac 	lwz     r0,9900(r10)                           
ffc198b4:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc198b8:	40 9c 00 20 	bge-    cr7,ffc198d8 <write+0x40>              
  iop = rtems_libio_iop( fd );                                        
ffc198bc:	3d 40 00 00 	lis     r10,0                                  
ffc198c0:	83 ea 27 6c 	lwz     r31,10092(r10)                         
ffc198c4:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc198c8:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc198cc:	80 1f 00 18 	lwz     r0,24(r31)                             
ffc198d0:	70 0a 01 00 	andi.   r10,r0,256                             
ffc198d4:	40 a2 00 10 	bne+    ffc198e4 <write+0x4c>                  
ffc198d8:	4b ff aa 31 	bl      ffc14308 <__errno>                     
ffc198dc:	38 00 00 09 	li      r0,9                                   
ffc198e0:	48 00 00 28 	b       ffc19908 <write+0x70>                  
  rtems_libio_check_buffer( buffer );                                 
ffc198e4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc198e8:	41 9e 00 18 	beq-    cr7,ffc19900 <write+0x68>              <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
ffc198ec:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc198f0:	38 60 00 00 	li      r3,0                                   
ffc198f4:	41 9e 00 5c 	beq-    cr7,ffc19950 <write+0xb8>              
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
ffc198f8:	70 09 00 04 	andi.   r9,r0,4                                
ffc198fc:	40 a2 00 18 	bne+    ffc19914 <write+0x7c>                  
ffc19900:	4b ff aa 09 	bl      ffc14308 <__errno>                     
ffc19904:	38 00 00 16 	li      r0,22                                  
ffc19908:	90 03 00 00 	stw     r0,0(r3)                               
ffc1990c:	38 60 ff ff 	li      r3,-1                                  
ffc19910:	48 00 00 40 	b       ffc19950 <write+0xb8>                  
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
ffc19914:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc19918:	7f e3 fb 78 	mr      r3,r31                                 
ffc1991c:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc19920:	7c 09 03 a6 	mtctr   r0                                     
ffc19924:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( rc > 0 )                                                       
ffc19928:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1992c:	40 81 00 24 	ble-    ffc19950 <write+0xb8>                  
    iop->offset += rc;                                                
ffc19930:	81 7f 00 10 	lwz     r11,16(r31)                            
ffc19934:	7c 6a 1b 78 	mr      r10,r3                                 
ffc19938:	81 9f 00 14 	lwz     r12,20(r31)                            
ffc1993c:	7c 69 fe 70 	srawi   r9,r3,31                               
ffc19940:	7d 4a 60 14 	addc    r10,r10,r12                            
ffc19944:	7d 29 59 14 	adde    r9,r9,r11                              
ffc19948:	91 3f 00 10 	stw     r9,16(r31)                             
ffc1994c:	91 5f 00 14 	stw     r10,20(r31)                            
                                                                      
  return rc;                                                          
}                                                                     
ffc19950:	39 61 00 10 	addi    r11,r1,16                              
ffc19954:	4b ff f7 8c 	b       ffc190e0 <_restgpr_31_x>               
                                                                      

ffc087f0 <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
ffc087f0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc087f4:	7c 08 02 a6 	mflr    r0                                     
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc087f8:	3d 20 00 00 	lis     r9,0                                   
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc087fc:	90 01 00 2c 	stw     r0,44(r1)                              
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc08800:	80 09 26 8c 	lwz     r0,9868(r9)                            
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc08804:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc08808:	7c ba 2b 78 	mr      r26,r5                                 
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc0880c:	7f 83 00 40 	cmplw   cr7,r3,r0                              
ffc08810:	40 9c 00 20 	bge-    cr7,ffc08830 <writev+0x40>             
  iop = rtems_libio_iop( fd );                                        
ffc08814:	3d 20 00 00 	lis     r9,0                                   
ffc08818:	83 69 27 50 	lwz     r27,10064(r9)                          
ffc0881c:	54 63 30 32 	rlwinm  r3,r3,6,0,25                           
ffc08820:	7f 7b 1a 14 	add     r27,r27,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc08824:	80 1b 00 18 	lwz     r0,24(r27)                             
ffc08828:	70 09 01 00 	andi.   r9,r0,256                              
ffc0882c:	40 a2 00 10 	bne+    ffc0883c <writev+0x4c>                 
ffc08830:	48 00 8b c1 	bl      ffc113f0 <__errno>                     
ffc08834:	38 00 00 09 	li      r0,9                                   
ffc08838:	48 00 00 78 	b       ffc088b0 <writev+0xc0>                 
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
ffc0883c:	70 09 00 04 	andi.   r9,r0,4                                
ffc08840:	41 82 00 68 	beq-    ffc088a8 <writev+0xb8>                 <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc08844:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc08848:	41 9e 00 60 	beq-    cr7,ffc088a8 <writev+0xb8>             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc0884c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc08850:	40 9d 00 58 	ble-    cr7,ffc088a8 <writev+0xb8>             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc08854:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc08858:	41 9d 00 50 	bgt-    cr7,ffc088a8 <writev+0xb8>             <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc0885c:	7c 9c 23 78 	mr      r28,r4                                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc08860:	7c a9 03 a6 	mtctr   r5                                     
ffc08864:	7c 89 23 78 	mr      r9,r4                                  
ffc08868:	38 00 00 01 	li      r0,1                                   
ffc0886c:	39 60 00 00 	li      r11,0                                  
ffc08870:	48 00 00 08 	b       ffc08878 <writev+0x88>                 
   *  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++ ) {                    
ffc08874:	7d 4b 53 78 	mr      r11,r10                                
                                                                      
    /*                                                                
     *  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 )                                       
ffc08878:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0887c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08880:	41 9e 00 28 	beq-    cr7,ffc088a8 <writev+0xb8>             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
ffc08884:	81 49 00 04 	lwz     r10,4(r9)                              
      all_zeros = false;                                              
ffc08888:	31 0a ff ff 	addic   r8,r10,-1                              
ffc0888c:	7d 08 41 10 	subfe   r8,r8,r8                               
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc08890:	7d 4b 52 14 	add     r10,r11,r10                            
    if ( total < old || total > SSIZE_MAX )                           
ffc08894:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc08898:	7c 00 40 38 	and     r0,r0,r8                               
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
ffc0889c:	41 9c 00 0c 	blt-    cr7,ffc088a8 <writev+0xb8>             
ffc088a0:	2f 8a 7f ff 	cmpwi   cr7,r10,32767                          
ffc088a4:	40 bd 00 14 	ble+    cr7,ffc088b8 <writev+0xc8>             <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc088a8:	48 00 8b 49 	bl      ffc113f0 <__errno>                     
ffc088ac:	38 00 00 16 	li      r0,22                                  
ffc088b0:	90 03 00 00 	stw     r0,0(r3)                               
ffc088b4:	48 00 00 90 	b       ffc08944 <writev+0x154>                
   *  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++ ) {                    
ffc088b8:	39 29 00 08 	addi    r9,r9,8                                
ffc088bc:	42 00 ff b8 	bdnz+   ffc08874 <writev+0x84>                 
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc088c0:	2f 80 00 00 	cmpwi   cr7,r0,0                               
    return 0;                                                         
ffc088c4:	3b a0 00 00 	li      r29,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc088c8:	40 9e 00 80 	bne-    cr7,ffc08948 <writev+0x158>            
ffc088cc:	3b 20 00 00 	li      r25,0                                  
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
ffc088d0:	80 bc 00 04 	lwz     r5,4(r28)                              
ffc088d4:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc088d8:	41 be 00 58 	beq+    cr7,ffc08930 <writev+0x140>            <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
ffc088dc:	81 3b 00 24 	lwz     r9,36(r27)                             
ffc088e0:	7f 63 db 78 	mr      r3,r27                                 
ffc088e4:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc088e8:	80 09 00 0c 	lwz     r0,12(r9)                              
ffc088ec:	7c 09 03 a6 	mtctr   r0                                     
ffc088f0:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc088f4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc088f8:	41 80 00 4c 	blt-    ffc08944 <writev+0x154>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc088fc:	41 82 00 28 	beq-    ffc08924 <writev+0x134>                <== NEVER TAKEN
      iop->offset += bytes;                                           
ffc08900:	81 3b 00 10 	lwz     r9,16(r27)                             
ffc08904:	7c 7f 1b 78 	mr      r31,r3                                 
ffc08908:	81 5b 00 14 	lwz     r10,20(r27)                            
ffc0890c:	7c 7e fe 70 	srawi   r30,r3,31                              
      total       += bytes;                                           
ffc08910:	7f bd 1a 14 	add     r29,r29,r3                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
ffc08914:	7d 4a f8 14 	addc    r10,r10,r31                            
ffc08918:	7d 29 f1 14 	adde    r9,r9,r30                              
ffc0891c:	91 3b 00 10 	stw     r9,16(r27)                             
ffc08920:	91 5b 00 14 	stw     r10,20(r27)                            
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc08924:	80 1c 00 04 	lwz     r0,4(r28)                              
ffc08928:	7f 83 00 00 	cmpw    cr7,r3,r0                              
ffc0892c:	40 9e 00 1c 	bne-    cr7,ffc08948 <writev+0x158>            <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc08930:	3b 39 00 01 	addi    r25,r25,1                              
ffc08934:	7f 99 d0 00 	cmpw    cr7,r25,r26                            
ffc08938:	3b 9c 00 08 	addi    r28,r28,8                              
ffc0893c:	41 9c ff 94 	blt+    cr7,ffc088d0 <writev+0xe0>             
ffc08940:	48 00 00 08 	b       ffc08948 <writev+0x158>                
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
ffc08944:	3b a0 ff ff 	li      r29,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc08948:	39 61 00 28 	addi    r11,r1,40                              
ffc0894c:	7f a3 eb 78 	mr      r3,r29                                 
ffc08950:	4b ff 82 90 	b       ffc00be0 <_restgpr_25_x>