RTEMS 4.11
Annotated Report
Fri Jul 16 15:54:58 2010

000088c4 <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 ) {                                              
    88c4:	e5902000 	ldr	r2, [r0]                                      
    88c8:	e592204c 	ldr	r2, [r2, #76]	; 0x4c                          
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
    88cc:	e5903010 	ldr	r3, [r0, #16]                                 
  switch( node->type ) {                                              
    88d0:	e2422001 	sub	r2, r2, #1                                    
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
    88d4:	e5933034 	ldr	r3, [r3, #52]	; 0x34                          
  switch( node->type ) {                                              
    88d8:	e3520006 	cmp	r2, #6                                        
    88dc:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
    88e0:	ea000010 	b	8928 <IMFS_Set_handlers+0x64>                   <== NOT EXECUTED
    88e4:	00008900 	.word	0x00008900                                  <== NOT EXECUTED
    88e8:	00008908 	.word	0x00008908                                  <== NOT EXECUTED
    88ec:	00008910 	.word	0x00008910                                  <== NOT EXECUTED
    88f0:	00008910 	.word	0x00008910                                  <== NOT EXECUTED
    88f4:	00008918 	.word	0x00008918                                  <== NOT EXECUTED
    88f8:	00008918 	.word	0x00008918                                  <== NOT EXECUTED
    88fc:	00008920 	.word	0x00008920                                  <== NOT EXECUTED
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
    8900:	e593300c 	ldr	r3, [r3, #12]                                 
    8904:	ea000006 	b	8924 <IMFS_Set_handlers+0x60>                   
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
    8908:	e59f3020 	ldr	r3, [pc, #32]	; 8930 <IMFS_Set_handlers+0x6c> 
    890c:	ea000004 	b	8924 <IMFS_Set_handlers+0x60>                   
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
    8910:	e59f301c 	ldr	r3, [pc, #28]	; 8934 <IMFS_Set_handlers+0x70> 
    8914:	ea000002 	b	8924 <IMFS_Set_handlers+0x60>                   
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
    8918:	e5933008 	ldr	r3, [r3, #8]                                  
    891c:	ea000000 	b	8924 <IMFS_Set_handlers+0x60>                   
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
    8920:	e5933010 	ldr	r3, [r3, #16]                                 
    8924:	e5803008 	str	r3, [r0, #8]                                  
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    8928:	e3a00000 	mov	r0, #0                                        
    892c:	e12fff1e 	bx	lr                                             
                                                                      

00008668 <IMFS_chown>: int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) {
    8668:	e92d40f3 	push	{r0, r1, r4, r5, r6, r7, lr}                 
    866c:	e1a02802 	lsl	r2, r2, #16                                   
    8670:	e1a01801 	lsl	r1, r1, #16                                   
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = (IMFS_jnode_t *) pathloc->node_access;                      
    8674:	e5904000 	ldr	r4, [r0]                                      
int IMFS_chown(                                                       
  rtems_filesystem_location_info_t  *pathloc,       /* IN */          
  uid_t                              owner,         /* IN */          
  gid_t                              group          /* IN */          
)                                                                     
{                                                                     
    8678:	e1a06821 	lsr	r6, r1, #16                                   
    867c:	e1a07822 	lsr	r7, r2, #16                                   
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
    8680:	eb00039f 	bl	9504 <geteuid>                                 
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
    8684:	e1d453bc 	ldrh	r5, [r4, #60]	; 0x3c                         
    8688:	e3500000 	cmp	r0, #0                                        
    868c:	11550000 	cmpne	r5, r0                                      
    8690:	03a05000 	moveq	r5, #0                                      
    8694:	13a05001 	movne	r5, #1                                      
    8698:	0a000004 	beq	86b0 <IMFS_chown+0x48>                        
    rtems_set_errno_and_return_minus_one( EPERM );                    
    869c:	eb0010e4 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    86a0:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    86a4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    86a8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    86ac:	ea000007 	b	86d0 <IMFS_chown+0x68>                          <== NOT EXECUTED
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
    86b0:	e1c463bc 	strh	r6, [r4, #60]	; 0x3c                         
  jnode->st_gid = group;                                              
    86b4:	e1c473be 	strh	r7, [r4, #62]	; 0x3e                         
                                                                      
  IMFS_update_ctime( jnode );                                         
    86b8:	e1a0000d 	mov	r0, sp                                        
    86bc:	e1a01005 	mov	r1, r5                                        
    86c0:	ebffe5c4 	bl	1dd8 <gettimeofday>                            
    86c4:	e59d3000 	ldr	r3, [sp]                                      
    86c8:	e5843048 	str	r3, [r4, #72]	; 0x48                          
                                                                      
  return 0;                                                           
    86cc:	e1a00005 	mov	r0, r5                                        
}                                                                     
    86d0:	e8bd80fc 	pop	{r2, r3, r4, r5, r6, r7, pc}                  
                                                                      

0000874c <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
    874c:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    8750:	e2508000 	subs	r8, r0, #0                                   
  IMFS_jnode_types_t                type,                             
  const char                       *name,                             
  mode_t                            mode,                             
  const IMFS_types_union           *info                              
)                                                                     
{                                                                     
    8754:	e1a04001 	mov	r4, r1                                        
    8758:	e59d5018 	ldr	r5, [sp, #24]                                 
    875c:	e1a01002 	mov	r1, r2                                        
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    8760:	0a000043 	beq	8874 <IMFS_create_node+0x128>                 
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
  fs_info = parent_loc->mt_entry->fs_info;                            
    8764:	e5982010 	ldr	r2, [r8, #16]                                 
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
    8768:	e3540007 	cmp	r4, #7                                        
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
    876c:	e5987000 	ldr	r7, [r8]                                      
  fs_info = parent_loc->mt_entry->fs_info;                            
    8770:	e5926034 	ldr	r6, [r2, #52]	; 0x34                          
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
    8774:	1a000004 	bne	878c <IMFS_create_node+0x40>                  
    8778:	e5960010 	ldr	r0, [r6, #16]                                 
    877c:	e59f20f8 	ldr	r2, [pc, #248]	; 887c <IMFS_create_node+0x130>
    8780:	e1500002 	cmp	r0, r2                                        
       fs_info->fifo_handlers == &rtems_filesystem_handlers_default ) 
    return NULL;                                                      
    8784:	03a08000 	moveq	r8, #0                                      
  fs_info = parent_loc->mt_entry->fs_info;                            
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
    8788:	0a000039 	beq	8874 <IMFS_create_node+0x128>                 
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
    878c:	e59f20ec 	ldr	r2, [pc, #236]	; 8880 <IMFS_create_node+0x134>
    8790:	e5922000 	ldr	r2, [r2]                                      
    8794:	e592202c 	ldr	r2, [r2, #44]	; 0x2c                          
    8798:	e1a00004 	mov	r0, r4                                        
    879c:	e1c32002 	bic	r2, r3, r2                                    
    87a0:	ebffffcb 	bl	86d4 <IMFS_allocate_node>                      
  if ( !node )                                                        
    87a4:	e2508000 	subs	r8, r0, #0                                   
    87a8:	0a000031 	beq	8874 <IMFS_create_node+0x128>                 
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  switch (type) {                                                     
    87ac:	e2444001 	sub	r4, r4, #1                                    
    87b0:	e3540006 	cmp	r4, #6                                        
    87b4:	979ff104 	ldrls	pc, [pc, r4, lsl #2]                        
    87b8:	ea000025 	b	8854 <IMFS_create_node+0x108>                   <== NOT EXECUTED
    87bc:	000087d8 	.word	0x000087d8                                  <== NOT EXECUTED
    87c0:	000087fc 	.word	0x000087fc                                  <== NOT EXECUTED
    87c4:	000087f4 	.word	0x000087f4                                  <== NOT EXECUTED
    87c8:	000087f4 	.word	0x000087f4                                  <== NOT EXECUTED
    87cc:	00008828 	.word	0x00008828                                  <== NOT EXECUTED
    87d0:	00008810 	.word	0x00008810                                  <== NOT EXECUTED
    87d4:	0000884c 	.word	0x0000884c                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
    87d8:	e2883054 	add	r3, r8, #84	; 0x54                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
    87dc:	e5883050 	str	r3, [r8, #80]	; 0x50                          
  the_chain->permanent_null = NULL;                                   
    87e0:	e3a03000 	mov	r3, #0                                        
    87e4:	e5883054 	str	r3, [r8, #84]	; 0x54                          
    case IMFS_DIRECTORY:                                              
      rtems_chain_initialize_empty(&node->info.directory.Entries);    
    87e8:	e2883050 	add	r3, r8, #80	; 0x50                            
  the_chain->last           = _Chain_Head(the_chain);                 
    87ec:	e5883058 	str	r3, [r8, #88]	; 0x58                          
    87f0:	ea000017 	b	8854 <IMFS_create_node+0x108>                   
    case IMFS_HARD_LINK:                                              
      node->info.hard_link.link_node = info->hard_link.link_node;     
      break;                                                          
                                                                      
    case IMFS_SYM_LINK:                                               
      node->info.sym_link.name = info->sym_link.name;                 
    87f4:	e5953000 	ldr	r3, [r5]                                      
    87f8:	ea000014 	b	8850 <IMFS_create_node+0x104>                   
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      node->info.device.major = info->device.major;                   
    87fc:	e5953000 	ldr	r3, [r5]                                      
    8800:	e5883050 	str	r3, [r8, #80]	; 0x50                          
      node->info.device.minor = info->device.minor;                   
    8804:	e5953004 	ldr	r3, [r5, #4]                                  
    8808:	e5883054 	str	r3, [r8, #84]	; 0x54                          
      break;                                                          
    880c:	ea000010 	b	8854 <IMFS_create_node+0x108>                   
                                                                      
    case IMFS_LINEAR_FILE:                                            
      node->info.linearfile.size      = 0;                            
    8810:	e3a03000 	mov	r3, #0                                        
    8814:	e3a04000 	mov	r4, #0                                        
    8818:	e5883050 	str	r3, [r8, #80]	; 0x50                          
    881c:	e5884054 	str	r4, [r8, #84]	; 0x54                          
      node->info.linearfile.direct    = 0;                            
    8820:	e3a03000 	mov	r3, #0                                        
    8824:	e5883058 	str	r3, [r8, #88]	; 0x58                          
                                                                      
    case IMFS_MEMORY_FILE:                                            
      node->info.file.size            = 0;                            
    8828:	e3a03000 	mov	r3, #0                                        
    882c:	e3a04000 	mov	r4, #0                                        
    8830:	e5883050 	str	r3, [r8, #80]	; 0x50                          
    8834:	e5884054 	str	r4, [r8, #84]	; 0x54                          
      node->info.file.indirect        = 0;                            
    8838:	e3a03000 	mov	r3, #0                                        
    883c:	e5883058 	str	r3, [r8, #88]	; 0x58                          
      node->info.file.doubly_indirect = 0;                            
    8840:	e588305c 	str	r3, [r8, #92]	; 0x5c                          
      node->info.file.triply_indirect = 0;                            
    8844:	e5883060 	str	r3, [r8, #96]	; 0x60                          
      break;                                                          
    8848:	ea000001 	b	8854 <IMFS_create_node+0x108>                   
                                                                      
    case IMFS_FIFO:                                                   
      node->info.fifo.pipe = NULL;                                    
    884c:	e3a03000 	mov	r3, #0                                        
    8850:	e5883050 	str	r3, [r8, #80]	; 0x50                          
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
                                                                      
  node->Parent = parent;                                              
  node->st_ino = ++fs_info->ino_count;                                
    8854:	e5963004 	ldr	r3, [r6, #4]                                  
    8858:	e2833001 	add	r3, r3, #1                                    
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
                                                                      
  node->Parent = parent;                                              
    885c:	e5887008 	str	r7, [r8, #8]                                  
    8860:	e2870050 	add	r0, r7, #80	; 0x50                            
  node->st_ino = ++fs_info->ino_count;                                
    8864:	e5863004 	str	r3, [r6, #4]                                  
    8868:	e1a01008 	mov	r1, r8                                        
    886c:	e5883038 	str	r3, [r8, #56]	; 0x38                          
    8870:	ebfff3f3 	bl	5844 <_Chain_Append>                           
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
    8874:	e1a00008 	mov	r0, r8                                        
    8878:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

000089e4 <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
    89e4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    89e8:	e24dd040 	sub	sp, sp, #64	; 0x40                            
    89ec:	e1a08000 	mov	r8, r0                                        
    89f0:	e1a06001 	mov	r6, r1                                        
    89f4:	e58d2000 	str	r2, [sp]                                      
    89f8:	e1a04003 	mov	r4, r3                                        
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
    89fc:	e5935000 	ldr	r5, [r3]                                      
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
  int                                 len;                            
  IMFS_token_types                    type = IMFS_CURRENT_DIR;        
    8a00:	e3a09001 	mov	r9, #1                                        
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
    8a04:	e3a07000 	mov	r7, #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 );  
    8a08:	e28da004 	add	sl, sp, #4                                    
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
    8a0c:	ea000055 	b	8b68 <IMFS_eval_path+0x184>                     
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    8a10:	e28d303c 	add	r3, sp, #60	; 0x3c                            
    8a14:	e0880007 	add	r0, r8, r7                                    
    8a18:	e1a01006 	mov	r1, r6                                        
    8a1c:	e1a0200a 	mov	r2, sl                                        
    8a20:	eb0001bd 	bl	911c <IMFS_get_token>                          
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
    8a24:	e5943000 	ldr	r3, [r4]                                      
    8a28:	e3530000 	cmp	r3, #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 );  
    8a2c:	e1a09000 	mov	r9, r0                                        
    pathnamelen -= len;                                               
    8a30:	e59db03c 	ldr	fp, [sp, #60]	; 0x3c                          
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
    8a34:	0a000043 	beq	8b48 <IMFS_eval_path+0x164>                   
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
    8a38:	e3500000 	cmp	r0, #0                                        
    8a3c:	0a000006 	beq	8a5c <IMFS_eval_path+0x78>                    
      if ( node->type == IMFS_DIRECTORY )                             
    8a40:	e595104c 	ldr	r1, [r5, #76]	; 0x4c                          
    8a44:	e3510001 	cmp	r1, #1                                        
    8a48:	1a000003 	bne	8a5c <IMFS_eval_path+0x78>                    
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
    8a4c:	e1a00004 	mov	r0, r4                                        
    8a50:	ebffffb8 	bl	8938 <IMFS_evaluate_permission>                
    8a54:	e3500000 	cmp	r0, #0                                        
    8a58:	0a000069 	beq	8c04 <IMFS_eval_path+0x220>                   
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
    8a5c:	e3590003 	cmp	r9, #3                                        
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
    8a60:	e06b6006 	rsb	r6, fp, r6                                    
    i += len;                                                         
    8a64:	e087700b 	add	r7, r7, fp                                    
    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;                                      
    8a68:	e5945000 	ldr	r5, [r4]                                      
                                                                      
    switch( type ) {                                                  
    8a6c:	0a000014 	beq	8ac4 <IMFS_eval_path+0xe0>                    
    8a70:	e3590004 	cmp	r9, #4                                        
    8a74:	0a000038 	beq	8b5c <IMFS_eval_path+0x178>                   
    8a78:	e3590002 	cmp	r9, #2                                        
    8a7c:	1a000039 	bne	8b68 <IMFS_eval_path+0x184>                   
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
    8a80:	e59f2198 	ldr	r2, [pc, #408]	; 8c20 <IMFS_eval_path+0x23c>  
    8a84:	e5923000 	ldr	r3, [r2]                                      
    8a88:	e5933018 	ldr	r3, [r3, #24]                                 
    8a8c:	e1550003 	cmp	r5, r3                                        
    8a90:	0a000034 	beq	8b68 <IMFS_eval_path+0x184>                   
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
    8a94:	e594e010 	ldr	lr, [r4, #16]                                 
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
    8a98:	e59e301c 	ldr	r3, [lr, #28]                                 
    8a9c:	e1550003 	cmp	r5, r3                                        
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
    8aa0:	028dc028 	addeq	ip, sp, #40	; 0x28                          
    8aa4:	028ee008 	addeq	lr, lr, #8                                  
    8aa8:	0a000039 	beq	8b94 <IMFS_eval_path+0x1b0>                   
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
    8aac:	e5955008 	ldr	r5, [r5, #8]                                  
    8ab0:	e3550000 	cmp	r5, #0                                        
    8ab4:	1a000026 	bne	8b54 <IMFS_eval_path+0x170>                   
            rtems_set_errno_and_return_minus_one( ENOENT );           
    8ab8:	eb000fdd 	bl	ca34 <__errno>                                 
    8abc:	e5809000 	str	r9, [r0]                                      
    8ac0:	ea000052 	b	8c10 <IMFS_eval_path+0x22c>                     
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
                                                                      
        if ( node->type == IMFS_HARD_LINK ) {                         
    8ac4:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    8ac8:	e3530003 	cmp	r3, #3                                        
    8acc:	1a000006 	bne	8aec <IMFS_eval_path+0x108>                   
                                                                      
          IMFS_evaluate_hard_link( pathloc, 0 );                      
    8ad0:	e1a00004 	mov	r0, r4                                        
    8ad4:	e3a01000 	mov	r1, #0                                        
    8ad8:	ebffffa9 	bl	8984 <IMFS_evaluate_hard_link>                 
                                                                      
          node = pathloc->node_access;                                
    8adc:	e5945000 	ldr	r5, [r4]                                      
          if ( !node )                                                
    8ae0:	e3550000 	cmp	r5, #0                                        
    8ae4:	1a000009 	bne	8b10 <IMFS_eval_path+0x12c>                   
    8ae8:	ea00000b 	b	8b1c <IMFS_eval_path+0x138>                     <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one( ENOTDIR );          
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
    8aec:	e3530004 	cmp	r3, #4                                        
    8af0:	1a000006 	bne	8b10 <IMFS_eval_path+0x12c>                   
                                                                      
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
    8af4:	e1a00004 	mov	r0, r4                                        
    8af8:	e3a01000 	mov	r1, #0                                        
    8afc:	eb000048 	bl	8c24 <IMFS_evaluate_sym_link>                  
                                                                      
          node = pathloc->node_access;                                
          if ( result == -1 )                                         
    8b00:	e3700001 	cmn	r0, #1                                        
          if ( !node )                                                
            rtems_set_errno_and_return_minus_one( ENOTDIR );          
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
                                                                      
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
    8b04:	e1a0b000 	mov	fp, r0                                        
                                                                      
          node = pathloc->node_access;                                
    8b08:	e5945000 	ldr	r5, [r4]                                      
          if ( result == -1 )                                         
    8b0c:	0a000040 	beq	8c14 <IMFS_eval_path+0x230>                   
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
    8b10:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    8b14:	e3530001 	cmp	r3, #1                                        
    8b18:	0a000002 	beq	8b28 <IMFS_eval_path+0x144>                   
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
    8b1c:	eb000fc4 	bl	ca34 <__errno>                                 
    8b20:	e3a03014 	mov	r3, #20                                       
    8b24:	ea000038 	b	8c0c <IMFS_eval_path+0x228>                     
        /*                                                            
         *  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 ) {                   
    8b28:	e595e05c 	ldr	lr, [r5, #92]	; 0x5c                          
    8b2c:	e35e0000 	cmp	lr, #0                                        
    8b30:	1a000015 	bne	8b8c <IMFS_eval_path+0x1a8>                   
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
    8b34:	e1a00005 	mov	r0, r5                                        
    8b38:	e1a0100a 	mov	r1, sl                                        
    8b3c:	eb000152 	bl	908c <IMFS_find_match_in_dir>                  
        if ( !node )                                                  
    8b40:	e2505000 	subs	r5, r0, #0                                   
    8b44:	1a000002 	bne	8b54 <IMFS_eval_path+0x170>                   
          rtems_set_errno_and_return_minus_one( ENOENT );             
    8b48:	eb000fb9 	bl	ca34 <__errno>                                 
    8b4c:	e3a03002 	mov	r3, #2                                        
    8b50:	ea00002d 	b	8c0c <IMFS_eval_path+0x228>                     
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
    8b54:	e5845000 	str	r5, [r4]                                      
    8b58:	ea000002 	b	8b68 <IMFS_eval_path+0x184>                     
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
    8b5c:	eb000fb4 	bl	ca34 <__errno>                                 
    8b60:	e3a0305b 	mov	r3, #91	; 0x5b                                
    8b64:	ea000028 	b	8c0c <IMFS_eval_path+0x228>                     
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
    8b68:	e3590004 	cmp	r9, #4                                        
    8b6c:	13590000 	cmpne	r9, #0                                      
    8b70:	1affffa6 	bne	8a10 <IMFS_eval_path+0x2c>                    
   *  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 ) {                               
    8b74:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    8b78:	e3530001 	cmp	r3, #1                                        
    8b7c:	1a000018 	bne	8be4 <IMFS_eval_path+0x200>                   
    if ( node->info.directory.mt_fs != NULL ) {                       
    8b80:	e595e05c 	ldr	lr, [r5, #92]	; 0x5c                          
    8b84:	e35e0000 	cmp	lr, #0                                        
    8b88:	0a000015 	beq	8be4 <IMFS_eval_path+0x200>                   
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
    8b8c:	e28dc028 	add	ip, sp, #40	; 0x28                            
    8b90:	e28ee01c 	add	lr, lr, #28                                   
    8b94:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    8b98:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    8b9c:	e59ee000 	ldr	lr, [lr]                                      
    8ba0:	e58ce000 	str	lr, [ip]                                      
      *pathloc = newloc;                                              
    8ba4:	e28dc028 	add	ip, sp, #40	; 0x28                            
    8ba8:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    8bac:	e1a0c004 	mov	ip, r4                                        
    8bb0:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
    8bb4:	e59d103c 	ldr	r1, [sp, #60]	; 0x3c                          
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
      *pathloc = newloc;                                              
    8bb8:	e58ce000 	str	lr, [ip]                                      
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
    8bbc:	e0610007 	rsb	r0, r1, r7                                    
    8bc0:	e594c00c 	ldr	ip, [r4, #12]                                 
    8bc4:	e0880000 	add	r0, r8, r0                                    
    8bc8:	e0861001 	add	r1, r6, r1                                    
    8bcc:	e59d2000 	ldr	r2, [sp]                                      
    8bd0:	e1a03004 	mov	r3, r4                                        
    8bd4:	e1a0e00f 	mov	lr, pc                                        
    8bd8:	e59cf000 	ldr	pc, [ip]                                      
    8bdc:	e1a0b000 	mov	fp, r0                                        
    8be0:	ea00000b 	b	8c14 <IMFS_eval_path+0x230>                     
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
    8be4:	e1a00004 	mov	r0, r4                                        
    8be8:	ebffff35 	bl	88c4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    8bec:	e59d1000 	ldr	r1, [sp]                                      
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
    8bf0:	e1a0b000 	mov	fp, r0                                        
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    8bf4:	e1a00004 	mov	r0, r4                                        
    8bf8:	ebffff4e 	bl	8938 <IMFS_evaluate_permission>                
    8bfc:	e3500000 	cmp	r0, #0                                        
    8c00:	1a000003 	bne	8c14 <IMFS_eval_path+0x230>                   
    rtems_set_errno_and_return_minus_one( EACCES );                   
    8c04:	eb000f8a 	bl	ca34 <__errno>                                 
    8c08:	e3a0300d 	mov	r3, #13                                       
    8c0c:	e5803000 	str	r3, [r0]                                      
    8c10:	e3e0b000 	mvn	fp, #0                                        
                                                                      
  return result;                                                      
}                                                                     
    8c14:	e1a0000b 	mov	r0, fp                                        
    8c18:	e28dd040 	add	sp, sp, #64	; 0x40                            
    8c1c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

00008d88 <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 */ ) {
    8d88:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    8d8c:	e24dd03c 	sub	sp, sp, #60	; 0x3c                            
    8d90:	e1a07000 	mov	r7, r0                                        
    8d94:	e1a04001 	mov	r4, r1                                        
    8d98:	e1a0a002 	mov	sl, r2                                        
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
    8d9c:	e5916000 	ldr	r6, [r1]                                      
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
    8da0:	eb001313 	bl	d9f4 <strlen>                                  
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
    8da4:	e3a05000 	mov	r5, #0                                        
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
    8da8:	e1a08000 	mov	r8, r0                                        
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    8dac:	e1a01008 	mov	r1, r8                                        
    8db0:	e28d3038 	add	r3, sp, #56	; 0x38                            
    8db4:	e0870005 	add	r0, r7, r5                                    
    8db8:	e1a0200d 	mov	r2, sp                                        
    8dbc:	eb0000d6 	bl	911c <IMFS_get_token>                          
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    8dc0:	e5943000 	ldr	r3, [r4]                                      
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    8dc4:	e59db038 	ldr	fp, [sp, #56]	; 0x38                          
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    8dc8:	e3530000 	cmp	r3, #0                                        
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    8dcc:	e1a09000 	mov	r9, r0                                        
    pathlen -= len;                                                   
    8dd0:	e06b8008 	rsb	r8, fp, r8                                    
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    8dd4:	0a000060 	beq	8f5c <IMFS_evaluate_for_make+0x1d4>           
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
    8dd8:	e3500000 	cmp	r0, #0                                        
    8ddc:	0a000006 	beq	8dfc <IMFS_evaluate_for_make+0x74>            
      if ( node->type == IMFS_DIRECTORY )                             
    8de0:	e596104c 	ldr	r1, [r6, #76]	; 0x4c                          
    8de4:	e3510001 	cmp	r1, #1                                        
    8de8:	1a000003 	bne	8dfc <IMFS_evaluate_for_make+0x74>            
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
    8dec:	e1a00004 	mov	r0, r4                                        
    8df0:	ebfffed0 	bl	8938 <IMFS_evaluate_permission>                
    8df4:	e3500000 	cmp	r0, #0                                        
    8df8:	0a00006c 	beq	8fb0 <IMFS_evaluate_for_make+0x228>           
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
    8dfc:	e5943000 	ldr	r3, [r4]                                      
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
    8e00:	e085500b 	add	r5, r5, fp                                    
    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;                                      
    8e04:	e1a06003 	mov	r6, r3                                        
                                                                      
    switch( type ) {                                                  
    8e08:	e3590004 	cmp	r9, #4                                        
    8e0c:	979ff109 	ldrls	pc, [pc, r9, lsl #2]                        
    8e10:	eaffffe5 	b	8dac <IMFS_evaluate_for_make+0x24>              <== NOT EXECUTED
    8e14:	00008f20 	.word	0x00008f20                                  <== NOT EXECUTED
    8e18:	00008dac 	.word	0x00008dac                                  <== NOT EXECUTED
    8e1c:	00008e28 	.word	0x00008e28                                  <== NOT EXECUTED
    8e20:	00008e64 	.word	0x00008e64                                  <== NOT EXECUTED
    8e24:	00008f2c 	.word	0x00008f2c                                  <== NOT EXECUTED
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
    8e28:	e59f119c 	ldr	r1, [pc, #412]	; 8fcc <IMFS_evaluate_for_make+0x244>
    8e2c:	e5912000 	ldr	r2, [r1]                                      
    8e30:	e5922018 	ldr	r2, [r2, #24]                                 
    8e34:	e1530002 	cmp	r3, r2                                        
    8e38:	0affffdb 	beq	8dac <IMFS_evaluate_for_make+0x24>            
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
    8e3c:	e594e010 	ldr	lr, [r4, #16]                                 
    8e40:	e59e201c 	ldr	r2, [lr, #28]                                 
    8e44:	e1530002 	cmp	r3, r2                                        
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
    8e48:	028dc024 	addeq	ip, sp, #36	; 0x24                          
    8e4c:	028ee008 	addeq	lr, lr, #8                                  
    8e50:	0a000019 	beq	8ebc <IMFS_evaluate_for_make+0x134>           
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
    8e54:	e5936008 	ldr	r6, [r3, #8]                                  
    8e58:	e3560000 	cmp	r6, #0                                        
    8e5c:	1a00002d 	bne	8f18 <IMFS_evaluate_for_make+0x190>           
    8e60:	ea00003d 	b	8f5c <IMFS_evaluate_for_make+0x1d4>             
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
    8e64:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    8e68:	e3530003 	cmp	r3, #3                                        
    8e6c:	0a000001 	beq	8e78 <IMFS_evaluate_for_make+0xf0>            
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
    8e70:	e3530004 	cmp	r3, #4                                        
    8e74:	1a000005 	bne	8e90 <IMFS_evaluate_for_make+0x108>           
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
    8e78:	e1a00004 	mov	r0, r4                                        
    8e7c:	e3a01000 	mov	r1, #0                                        
    8e80:	ebffff93 	bl	8cd4 <IMFS_evaluate_link>                      
                                                                      
          if ( result == -1 )                                         
    8e84:	e3700001 	cmn	r0, #1                                        
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
    8e88:	e1a06000 	mov	r6, r0                                        
                                                                      
          if ( result == -1 )                                         
    8e8c:	0a00004b 	beq	8fc0 <IMFS_evaluate_for_make+0x238>           
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
    8e90:	e5940000 	ldr	r0, [r4]                                      
        if ( !node )                                                  
    8e94:	e3500000 	cmp	r0, #0                                        
    8e98:	0a00003c 	beq	8f90 <IMFS_evaluate_for_make+0x208>           
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
    8e9c:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    8ea0:	e3530001 	cmp	r3, #1                                        
    8ea4:	1a000039 	bne	8f90 <IMFS_evaluate_for_make+0x208>           
	/*                                                                   
	 * 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 ) {                   
    8ea8:	e590e05c 	ldr	lr, [r0, #92]	; 0x5c                          
    8eac:	e35e0000 	cmp	lr, #0                                        
    8eb0:	0a000014 	beq	8f08 <IMFS_evaluate_for_make+0x180>           
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
    8eb4:	e28dc024 	add	ip, sp, #36	; 0x24                            
    8eb8:	e28ee01c 	add	lr, lr, #28                                   
    8ebc:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    8ec0:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    8ec4:	e59ee000 	ldr	lr, [lr]                                      
    8ec8:	e58ce000 	str	lr, [ip]                                      
          *pathloc = newloc;                                          
    8ecc:	e28dc024 	add	ip, sp, #36	; 0x24                            
    8ed0:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    8ed4:	e1a0c004 	mov	ip, r4                                        
    8ed8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
    8edc:	e59d2038 	ldr	r2, [sp, #56]	; 0x38                          
	 * 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;                                          
    8ee0:	e58ce000 	str	lr, [ip]                                      
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
    8ee4:	e0625005 	rsb	r5, r2, r5                                    
    8ee8:	e594300c 	ldr	r3, [r4, #12]                                 
    8eec:	e0870005 	add	r0, r7, r5                                    
    8ef0:	e1a01004 	mov	r1, r4                                        
    8ef4:	e1a0200a 	mov	r2, sl                                        
    8ef8:	e1a0e00f 	mov	lr, pc                                        
    8efc:	e593f004 	ldr	pc, [r3, #4]                                  
    8f00:	e1a06000 	mov	r6, r0                                        
    8f04:	ea00002d 	b	8fc0 <IMFS_evaluate_for_make+0x238>             
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
    8f08:	e1a0100d 	mov	r1, sp                                        
    8f0c:	eb00005e 	bl	908c <IMFS_find_match_in_dir>                  
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
    8f10:	e2506000 	subs	r6, r0, #0                                   
    8f14:	0a000007 	beq	8f38 <IMFS_evaluate_for_make+0x1b0>           
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
    8f18:	e5846000 	str	r6, [r4]                                      
    8f1c:	eaffffa2 	b	8dac <IMFS_evaluate_for_make+0x24>              
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
    8f20:	eb000ec3 	bl	ca34 <__errno>                                 
    8f24:	e3a03011 	mov	r3, #17                                       
    8f28:	ea000022 	b	8fb8 <IMFS_evaluate_for_make+0x230>             
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
    8f2c:	eb000ec0 	bl	ca34 <__errno>                                 
    8f30:	e3a0305b 	mov	r3, #91	; 0x5b                                
    8f34:	ea00001f 	b	8fb8 <IMFS_evaluate_for_make+0x230>             
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
    8f38:	e59d3038 	ldr	r3, [sp, #56]	; 0x38                          
    8f3c:	e0633005 	rsb	r3, r3, r5                                    
    8f40:	e0873003 	add	r3, r7, r3                                    
    8f44:	e58a3000 	str	r3, [sl]                                      
 *  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(                                           
    8f48:	e0875005 	add	r5, r7, r5                                    
  /*                                                                  
   * 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++) {                                      
    8f4c:	ea000005 	b	8f68 <IMFS_evaluate_for_make+0x1e0>             
    if ( !IMFS_is_separator( path[ i ] ) )                            
    8f50:	ebffe6f2 	bl	2b20 <rtems_filesystem_is_separator>           
    8f54:	e3500000 	cmp	r0, #0                                        
    8f58:	1a000002 	bne	8f68 <IMFS_evaluate_for_make+0x1e0>           
      rtems_set_errno_and_return_minus_one( ENOENT );                 
    8f5c:	eb000eb4 	bl	ca34 <__errno>                                 
    8f60:	e3a03002 	mov	r3, #2                                        
    8f64:	ea000013 	b	8fb8 <IMFS_evaluate_for_make+0x230>             
  /*                                                                  
   * 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++) {                                      
    8f68:	e4d50001 	ldrb	r0, [r5], #1                                 
    8f6c:	e3500000 	cmp	r0, #0                                        
    8f70:	1afffff6 	bne	8f50 <IMFS_evaluate_for_make+0x1c8>           
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
    8f74:	e1a00004 	mov	r0, r4                                        
    8f78:	ebfffe51 	bl	88c4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    8f7c:	e5943000 	ldr	r3, [r4]                                      
    8f80:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    8f84:	e3530001 	cmp	r3, #1                                        
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
    8f88:	e1a06000 	mov	r6, r0                                        
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    8f8c:	0a000002 	beq	8f9c <IMFS_evaluate_for_make+0x214>           
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    8f90:	eb000ea7 	bl	ca34 <__errno>                                 
    8f94:	e3a03014 	mov	r3, #20                                       
    8f98:	ea000006 	b	8fb8 <IMFS_evaluate_for_make+0x230>             
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
    8f9c:	e1a00004 	mov	r0, r4                                        
    8fa0:	e3a01003 	mov	r1, #3                                        
    8fa4:	ebfffe63 	bl	8938 <IMFS_evaluate_permission>                
    8fa8:	e3500000 	cmp	r0, #0                                        
    8fac:	1a000003 	bne	8fc0 <IMFS_evaluate_for_make+0x238>           
    rtems_set_errno_and_return_minus_one( EACCES );                   
    8fb0:	eb000e9f 	bl	ca34 <__errno>                                 
    8fb4:	e3a0300d 	mov	r3, #13                                       
    8fb8:	e5803000 	str	r3, [r0]                                      
    8fbc:	e3e06000 	mvn	r6, #0                                        
                                                                      
  return result;                                                      
}                                                                     
    8fc0:	e1a00006 	mov	r0, r6                                        
    8fc4:	e28dd03c 	add	sp, sp, #60	; 0x3c                            
    8fc8:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

00008984 <IMFS_evaluate_hard_link>: int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access;
    8984:	e5903000 	ldr	r3, [r0]                                      
                                                                      
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_HARD_LINK )                                
    8988:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    898c:	e3520003 	cmp	r2, #3                                        
                                                                      
int IMFS_evaluate_hard_link(                                          
  rtems_filesystem_location_info_t  *node,   /* IN/OUT */             
  int                                flags   /* IN     */             
)                                                                     
{                                                                     
    8990:	e92d4030 	push	{r4, r5, lr}                                 
    8994:	e1a04000 	mov	r4, r0                                        
    8998:	e1a05001 	mov	r5, r1                                        
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_HARD_LINK )                                
    rtems_fatal_error_occurred (0xABCD0000);                          
    899c:	159f003c 	ldrne	r0, [pc, #60]	; 89e0 <IMFS_evaluate_hard_link+0x5c>
    89a0:	1bfff2ea 	blne	5550 <rtems_fatal_error_occurred>            
                                                                      
  /*                                                                  
   * Set the hard link value and the handlers.                        
   */                                                                 
                                                                      
  node->node_access = jnode->info.hard_link.link_node;                
    89a4:	e5933050 	ldr	r3, [r3, #80]	; 0x50                          
    89a8:	e5803000 	str	r3, [r0]                                      
                                                                      
  IMFS_Set_handlers( node );                                          
    89ac:	ebffffc4 	bl	88c4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( node, flags ) )                     
    89b0:	e1a00004 	mov	r0, r4                                        
    89b4:	e1a01005 	mov	r1, r5                                        
    89b8:	ebffffde 	bl	8938 <IMFS_evaluate_permission>                
    89bc:	e3500000 	cmp	r0, #0                                        
    89c0:	1a000004 	bne	89d8 <IMFS_evaluate_hard_link+0x54>           
    rtems_set_errno_and_return_minus_one( EACCES );                   
    89c4:	eb00101a 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    89c8:	e3a0300d 	mov	r3, #13                                       <== NOT EXECUTED
    89cc:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    89d0:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    89d4:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      
  return result;                                                      
    89d8:	e3a00000 	mov	r0, #0                                        
}                                                                     
    89dc:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00008c24 <IMFS_evaluate_sym_link>: int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
    8c24:	e92d4071 	push	{r0, r4, r5, r6, lr}                         
  IMFS_jnode_t                     *jnode  = node->node_access;       
    8c28:	e5906000 	ldr	r6, [r0]                                      
                                                                      
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_SYM_LINK )                                 
    8c2c:	e596304c 	ldr	r3, [r6, #76]	; 0x4c                          
    8c30:	e3530004 	cmp	r3, #4                                        
                                                                      
int IMFS_evaluate_sym_link(                                           
  rtems_filesystem_location_info_t  *node,   /* IN/OUT */             
  int                                flags   /* IN     */             
)                                                                     
{                                                                     
    8c34:	e1a04000 	mov	r4, r0                                        
    8c38:	e1a05001 	mov	r5, r1                                        
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_SYM_LINK )                                 
    rtems_fatal_error_occurred (0xABCD0000);                          
    8c3c:	159f0088 	ldrne	r0, [pc, #136]	; 8ccc <IMFS_evaluate_sym_link+0xa8>
                                                                      
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_SYM_LINK )                                 
    8c40:	1a000003 	bne	8c54 <IMFS_evaluate_sym_link+0x30>            
    rtems_fatal_error_occurred (0xABCD0000);                          
                                                                      
  if ( !jnode->Parent )                                               
    8c44:	e5963008 	ldr	r3, [r6, #8]                                  
    8c48:	e3530000 	cmp	r3, #0                                        
    8c4c:	1a000001 	bne	8c58 <IMFS_evaluate_sym_link+0x34>            
    rtems_fatal_error_occurred( 0xBAD00000 );                         
    8c50:	e59f0078 	ldr	r0, [pc, #120]	; 8cd0 <IMFS_evaluate_sym_link+0xac><== NOT EXECUTED
    8c54:	ebfff23d 	bl	5550 <rtems_fatal_error_occurred>              <== NOT EXECUTED
   * root depending on the symbolic links path.                       
   */                                                                 
                                                                      
  node->node_access = jnode->Parent;                                  
                                                                      
  rtems_filesystem_get_sym_start_loc(                                 
    8c58:	e5960050 	ldr	r0, [r6, #80]	; 0x50                          
    8c5c:	e1a0100d 	mov	r1, sp                                        
    8c60:	e1a02004 	mov	r2, r4                                        
  /*                                                                  
   * Move the node_access to either the symbolic links parent or      
   * root depending on the symbolic links path.                       
   */                                                                 
                                                                      
  node->node_access = jnode->Parent;                                  
    8c64:	e5843000 	str	r3, [r4]                                      
                                                                      
  rtems_filesystem_get_sym_start_loc(                                 
    8c68:	eb000350 	bl	99b0 <rtems_filesystem_get_sym_start_loc>      
                                                                      
  /*                                                                  
   * Use eval path to evaluate the path of the symbolic link.         
   */                                                                 
                                                                      
  result = IMFS_eval_path(                                            
    8c6c:	e59d3000 	ldr	r3, [sp]                                      
    8c70:	e5966050 	ldr	r6, [r6, #80]	; 0x50                          
    8c74:	e0866003 	add	r6, r6, r3                                    
    8c78:	e1a00006 	mov	r0, r6                                        
    8c7c:	eb00135c 	bl	d9f4 <strlen>                                  
    8c80:	e1a02005 	mov	r2, r5                                        
    8c84:	e1a01000 	mov	r1, r0                                        
    8c88:	e1a03004 	mov	r3, r4                                        
    8c8c:	e1a00006 	mov	r0, r6                                        
    8c90:	ebffff53 	bl	89e4 <IMFS_eval_path>                          
    8c94:	e1a06000 	mov	r6, r0                                        
    strlen( &jnode->info.sym_link.name[i] ),                          
    flags,                                                            
    node                                                              
  );                                                                  
                                                                      
  IMFS_Set_handlers( node );                                          
    8c98:	e1a00004 	mov	r0, r4                                        
    8c9c:	ebffff08 	bl	88c4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( node, flags ) )                     
    8ca0:	e1a00004 	mov	r0, r4                                        
    8ca4:	e1a01005 	mov	r1, r5                                        
    8ca8:	ebffff22 	bl	8938 <IMFS_evaluate_permission>                
    8cac:	e3500000 	cmp	r0, #0                                        
    8cb0:	1a000003 	bne	8cc4 <IMFS_evaluate_sym_link+0xa0>            
    rtems_set_errno_and_return_minus_one( EACCES );                   
    8cb4:	eb000f5e 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    8cb8:	e3a0300d 	mov	r3, #13                                       <== NOT EXECUTED
    8cbc:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    8cc0:	e3e06000 	mvn	r6, #0                                        <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
    8cc4:	e1a00006 	mov	r0, r6                                        
    8cc8:	e8bd8078 	pop	{r3, r4, r5, r6, pc}                          
                                                                      

0000c0dc <IMFS_fchmod>: int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) {
    c0dc:	e92d4073 	push	{r0, r1, r4, r5, r6, lr}                     
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = loc->node_access;                                           
    c0e0:	e5904000 	ldr	r4, [r0]                                      
                                                                      
int IMFS_fchmod(                                                      
  rtems_filesystem_location_info_t *loc,                              
  mode_t                            mode                              
)                                                                     
{                                                                     
    c0e4:	e1a06001 	mov	r6, r1                                        
                                                                      
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
    c0e8:	ebfff505 	bl	9504 <geteuid>                                 
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
    c0ec:	e1d453bc 	ldrh	r5, [r4, #60]	; 0x3c                         
    c0f0:	e3500000 	cmp	r0, #0                                        
    c0f4:	11550000 	cmpne	r5, r0                                      
    c0f8:	03a05000 	moveq	r5, #0                                      
    c0fc:	13a05001 	movne	r5, #1                                      
    c100:	0a000004 	beq	c118 <IMFS_fchmod+0x3c>                       
    rtems_set_errno_and_return_minus_one( EPERM );                    
    c104:	eb00024a 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    c108:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    c10c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    c110:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    c114:	ea00000b 	b	c148 <IMFS_fchmod+0x6c>                         <== NOT EXECUTED
                                                                      
  /*                                                                  
   * 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);
    c118:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
    c11c:	e3c33eff 	bic	r3, r3, #4080	; 0xff0                         
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
    c120:	e1a06a06 	lsl	r6, r6, #20                                   
                                                                      
  /*                                                                  
   * 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);
    c124:	e3c3300f 	bic	r3, r3, #15                                   
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
    c128:	e1833a26 	orr	r3, r3, r6, lsr #20                           
    c12c:	e5843030 	str	r3, [r4, #48]	; 0x30                          
                                                                      
  IMFS_update_ctime( jnode );                                         
    c130:	e1a0000d 	mov	r0, sp                                        
    c134:	e1a01005 	mov	r1, r5                                        
    c138:	ebffd726 	bl	1dd8 <gettimeofday>                            
    c13c:	e59d3000 	ldr	r3, [sp]                                      
    c140:	e5843048 	str	r3, [r4, #72]	; 0x48                          
                                                                      
  return 0;                                                           
    c144:	e1a00005 	mov	r0, r5                                        
}                                                                     
    c148:	e8bd807c 	pop	{r2, r3, r4, r5, r6, pc}                      
                                                                      

00002108 <IMFS_fifo_close>: } int IMFS_fifo_close( rtems_libio_t *iop ) {
    2108:	e92d4070 	push	{r4, r5, r6, lr}                             
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
    210c:	e5905018 	ldr	r5, [r0, #24]                                 
}                                                                     
                                                                      
int IMFS_fifo_close(                                                  
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
    2110:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_release(&JNODE2PIPE(jnode), iop);                    
    2114:	e1a01004 	mov	r1, r4                                        
    2118:	e2850050 	add	r0, r5, #80	; 0x50                            
    211c:	eb00226c 	bl	aad4 <pipe_release>                            
                                                                      
  if (err == 0) {                                                     
    2120:	e2506000 	subs	r6, r0, #0                                   
    2124:	1a000005 	bne	2140 <IMFS_fifo_close+0x38>                   
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
    2128:	e5943014 	ldr	r3, [r4, #20]                                 
    212c:	e3c33c01 	bic	r3, r3, #256	; 0x100                          
    2130:	e5843014 	str	r3, [r4, #20]                                 
    IMFS_check_node_remove(jnode);                                    
    2134:	e1a00005 	mov	r0, r5                                        
    2138:	eb000182 	bl	2748 <IMFS_check_node_remove>                  
    213c:	ea000004 	b	2154 <IMFS_fifo_close+0x4c>                     
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
    2140:	aa000003 	bge	2154 <IMFS_fifo_close+0x4c>                   <== NOT EXECUTED
    2144:	eb0030db 	bl	e4b8 <__errno>                                 <== NOT EXECUTED
    2148:	e2666000 	rsb	r6, r6, #0                                    <== NOT EXECUTED
    214c:	e5806000 	str	r6, [r0]                                      <== NOT EXECUTED
    2150:	e3e06000 	mvn	r6, #0                                        <== NOT EXECUTED
}                                                                     
    2154:	e1a00006 	mov	r0, r6                                        
    2158:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

00008fd0 <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 ) {
    8fd0:	e92d4070 	push	{r4, r5, r6, lr}                             
   /*                                                                 
    * 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;     
    8fd4:	e1a0c000 	mov	ip, r0                                        
    8fd8:	e5bc401c 	ldr	r4, [ip, #28]!                                
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
int IMFS_fsunmount(                                                   
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
    8fdc:	e1a05000 	mov	r5, r0                                        
    8fe0:	e24dd014 	sub	sp, sp, #20                                   
    * 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;                                   
    8fe4:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    8fe8:	e1a0e00d 	mov	lr, sp                                        
    8fec:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    8ff0:	e59c3000 	ldr	r3, [ip]                                      
    8ff4:	e58e3000 	str	r3, [lr]                                      
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
    8ff8:	e3a03000 	mov	r3, #0                                        
    8ffc:	e585301c 	str	r3, [r5, #28]                                 
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
    9000:	e1a0500d 	mov	r5, sp                                        
    9004:	e1a0000d 	mov	r0, sp                                        
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
    9008:	e5946008 	ldr	r6, [r4, #8]                                  
     loc.node_access = (void *)jnode;                                 
    900c:	e58d4000 	str	r4, [sp]                                      
     IMFS_Set_handlers( &loc );                                       
    9010:	ebfffe2b 	bl	88c4 <IMFS_Set_handlers>                       
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
    9014:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
    9018:	e3530001 	cmp	r3, #1                                        
    901c:	1a000003 	bne	9030 <IMFS_fsunmount+0x60>                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
    9020:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
    9024:	e2843054 	add	r3, r4, #84	; 0x54                            
    9028:	e1520003 	cmp	r2, r3                                        
    902c:	1a000005 	bne	9048 <IMFS_fsunmount+0x78>                    
        result = IMFS_unlink( NULL, &loc );                           
    9030:	e3a00000 	mov	r0, #0                                        
    9034:	e1a0100d 	mov	r1, sp                                        
    9038:	ebffe1f8 	bl	1820 <IMFS_unlink>                             
        if (result != 0)                                              
    903c:	e3500000 	cmp	r0, #0                                        
    9040:	1a00000c 	bne	9078 <IMFS_fsunmount+0xa8>                    
          return -1;                                                  
        jnode = next;                                                 
    9044:	e1a04006 	mov	r4, r6                                        
     }                                                                
     if ( jnode != NULL ) {                                           
    9048:	e3540000 	cmp	r4, #0                                        
    904c:	0a00000b 	beq	9080 <IMFS_fsunmount+0xb0>                    
       if ( jnode->type == IMFS_DIRECTORY ) {                         
    9050:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
    9054:	e3530001 	cmp	r3, #1                                        
    9058:	1affffe9 	bne	9004 <IMFS_fsunmount+0x34>                    
         if ( jnode_has_children( jnode ) )                           
    905c:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
    9060:	e2842054 	add	r2, r4, #84	; 0x54                            
    9064:	e1530002 	cmp	r3, r2                                        
    9068:	0affffe5 	beq	9004 <IMFS_fsunmount+0x34>                    
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
    906c:	e2534000 	subs	r4, r3, #0                                   
    9070:	1affffe3 	bne	9004 <IMFS_fsunmount+0x34>                    
    9074:	ea000001 	b	9080 <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;                                                  
    9078:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    907c:	ea000000 	b	9084 <IMFS_fsunmount+0xb4>                      <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
    9080:	e1a00004 	mov	r0, r4                                        
}                                                                     
    9084:	e28dd014 	add	sp, sp, #20                                   
    9088:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

0000143c <IMFS_initialize_support>: const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) {
    143c:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
    1440:	e1a07003 	mov	r7, r3                                        
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
    1444:	e59f30cc 	ldr	r3, [pc, #204]	; 1518 <IMFS_initialize_support+0xdc>
    1448:	e5933000 	ldr	r3, [r3]                                      
   const rtems_filesystem_operations_table    *op_table,              
   const rtems_filesystem_file_handlers_r     *memfile_handlers,      
   const rtems_filesystem_file_handlers_r     *directory_handlers,    
   const rtems_filesystem_file_handlers_r     *fifo_handlers          
)                                                                     
{                                                                     
    144c:	e1a0a001 	mov	sl, r1                                        
    1450:	e1a08002 	mov	r8, r2                                        
    1454:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
    1458:	e3a01006 	mov	r1, #6                                        
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
    145c:	e3a02010 	mov	r2, #16                                       
    1460:	e1520003 	cmp	r2, r3                                        
    1464:	0a000003 	beq	1478 <IMFS_initialize_support+0x3c>           
    1468:	e2511001 	subs	r1, r1, #1                                   
    146c:	e1a02082 	lsl	r2, r2, #1                                    
    1470:	1afffffa 	bne	1460 <IMFS_initialize_support+0x24>           
      is_valid = true;                                                
    }                                                                 
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
    1474:	e3a03080 	mov	r3, #128	; 0x80                               <== NOT EXECUTED
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
    if (bit_mask == requested_bytes_per_block) {                      
      is_valid = true;                                                
    }                                                                 
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
    1478:	e59f609c 	ldr	r6, [pc, #156]	; 151c <IMFS_initialize_support+0xe0>
    147c:	e5863000 	str	r3, [r6]                                      
  /*                                                                  
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
    1480:	eb001cff 	bl	8884 <IMFS_create_root_node>                   
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
    1484:	e59fe094 	ldr	lr, [pc, #148]	; 1520 <IMFS_initialize_support+0xe4>
  /*                                                                  
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
    1488:	e584001c 	str	r0, [r4, #28]                                 
    148c:	e1a05000 	mov	r5, r0                                        
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
    1490:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    1494:	e284c038 	add	ip, r4, #56	; 0x38                            
    1498:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    149c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    14a0:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    14a4:	e89e000f 	ldm	lr, {r0, r1, r2, r3}                          
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
    14a8:	e5847024 	str	r7, [r4, #36]	; 0x24                          
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
    14ac:	e88c000f 	stm	ip, {r0, r1, r2, r3}                          
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  temp_mt_entry->mt_fs_root.ops              = op_table;              
    14b0:	e584a028 	str	sl, [r4, #40]	; 0x28                          
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
    14b4:	e3a00001 	mov	r0, #1                                        
    14b8:	e3a01014 	mov	r1, #20                                       
    14bc:	eb0001a1 	bl	1b48 <calloc>                                  
  if ( !fs_info ) {                                                   
    14c0:	e3500000 	cmp	r0, #0                                        
    14c4:	1a000006 	bne	14e4 <IMFS_initialize_support+0xa8>           
    free(temp_mt_entry->mt_fs_root.node_access);                      
    14c8:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    14cc:	eb000218 	bl	1d34 <free>                                    <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
    14d0:	eb002d57 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    14d4:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    14d8:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    14dc:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    14e0:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
    14e4:	e5963004 	ldr	r3, [r6, #4]                                  
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
  if ( !fs_info ) {                                                   
    free(temp_mt_entry->mt_fs_root.node_access);                      
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
  }                                                                   
  temp_mt_entry->fs_info = fs_info;                                   
    14e8:	e5840034 	str	r0, [r4, #52]	; 0x34                          
                                                                      
  fs_info->instance              = imfs_instance++;                   
  fs_info->ino_count             = 1;                                 
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
  fs_info->fifo_handlers         = fifo_handlers;                     
    14ec:	e59d201c 	ldr	r2, [sp, #28]                                 
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
    14f0:	e5803000 	str	r3, [r0]                                      
    14f4:	e2833001 	add	r3, r3, #1                                    
    14f8:	e5863004 	str	r3, [r6, #4]                                  
  fs_info->ino_count             = 1;                                 
    14fc:	e3a03001 	mov	r3, #1                                        
    1500:	e9800108 	stmib	r0, {r3, r8}                                
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
    1504:	e580700c 	str	r7, [r0, #12]                                 
  fs_info->fifo_handlers         = fifo_handlers;                     
    1508:	e5802010 	str	r2, [r0, #16]                                 
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
    150c:	e5853038 	str	r3, [r5, #56]	; 0x38                          
                                                                      
  return 0;                                                           
    1510:	e3a00000 	mov	r0, #0                                        
}                                                                     
    1514:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      

00001524 <IMFS_link>: int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) {
    1524:	e92d4070 	push	{r4, r5, r6, lr}                             
  int                i;                                               
                                                                      
  /*                                                                  
   *  Verify this node can be linked to.                              
   */                                                                 
  info.hard_link.link_node = to_loc->node_access;                     
    1528:	e5903000 	ldr	r3, [r0]                                      
int IMFS_link(                                                        
  rtems_filesystem_location_info_t  *to_loc,      /* IN */            
  rtems_filesystem_location_info_t  *parent_loc,  /* IN */            
  const char                        *token        /* IN */            
)                                                                     
{                                                                     
    152c:	e24dd048 	sub	sp, sp, #72	; 0x48                            
  int                i;                                               
                                                                      
  /*                                                                  
   *  Verify this node can be linked to.                              
   */                                                                 
  info.hard_link.link_node = to_loc->node_access;                     
    1530:	e58d3028 	str	r3, [sp, #40]	; 0x28                          
  if ( info.hard_link.link_node->st_nlink >= LINK_MAX )               
    1534:	e1d333b4 	ldrh	r3, [r3, #52]	; 0x34                         
    1538:	e3530007 	cmp	r3, #7                                        
int IMFS_link(                                                        
  rtems_filesystem_location_info_t  *to_loc,      /* IN */            
  rtems_filesystem_location_info_t  *parent_loc,  /* IN */            
  const char                        *token        /* IN */            
)                                                                     
{                                                                     
    153c:	e1a05001 	mov	r5, r1                                        
    1540:	e1a06002 	mov	r6, r2                                        
                                                                      
  /*                                                                  
   *  Verify this node can be linked to.                              
   */                                                                 
  info.hard_link.link_node = to_loc->node_access;                     
  if ( info.hard_link.link_node->st_nlink >= LINK_MAX )               
    1544:	9a000002 	bls	1554 <IMFS_link+0x30>                         
    rtems_set_errno_and_return_minus_one( EMLINK );                   
    1548:	eb002d39 	bl	ca34 <__errno>                                 
    154c:	e3a0301f 	mov	r3, #31                                       
    1550:	ea000012 	b	15a0 <IMFS_link+0x7c>                           
                                                                      
  /*                                                                  
   * Remove any separators at the end of the string.                  
   */                                                                 
  IMFS_get_token( token, strlen( token ), new_name, &i );             
    1554:	e1a00002 	mov	r0, r2                                        
    1558:	eb003125 	bl	d9f4 <strlen>                                  
    155c:	e28d4004 	add	r4, sp, #4                                    
    1560:	e1a01000 	mov	r1, r0                                        
    1564:	e1a02004 	mov	r2, r4                                        
    1568:	e28d3044 	add	r3, sp, #68	; 0x44                            
    156c:	e1a00006 	mov	r0, r6                                        
    1570:	eb001ee9 	bl	911c <IMFS_get_token>                          
  new_node = IMFS_create_node(                                        
    parent_loc,                                                       
    IMFS_HARD_LINK,                                                   
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
    1574:	e28d3028 	add	r3, sp, #40	; 0x28                            
   *        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.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
    1578:	e58d3000 	str	r3, [sp]                                      
    157c:	e1a00005 	mov	r0, r5                                        
    1580:	e3a01003 	mov	r1, #3                                        
    1584:	e1a02004 	mov	r2, r4                                        
    1588:	e59f3050 	ldr	r3, [pc, #80]	; 15e0 <IMFS_link+0xbc>         
    158c:	eb001c6e 	bl	874c <IMFS_create_node>                        
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
  );                                                                  
                                                                      
  if ( !new_node )                                                    
    1590:	e3500000 	cmp	r0, #0                                        
    1594:	1a000004 	bne	15ac <IMFS_link+0x88>                         
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
    1598:	eb002d25 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    159c:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    15a0:	e5803000 	str	r3, [r0]                                      
    15a4:	e3e00000 	mvn	r0, #0                                        
    15a8:	ea00000a 	b	15d8 <IMFS_link+0xb4>                           
                                                                      
  /*                                                                  
   * Increment the link count of the node being pointed to.           
   */                                                                 
  info.hard_link.link_node->st_nlink++;                               
    15ac:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    15b0:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
    15b4:	e2822001 	add	r2, r2, #1                                    
    15b8:	e1c323b4 	strh	r2, [r3, #52]	; 0x34                         
  IMFS_update_ctime( info.hard_link.link_node );                      
    15bc:	e28d003c 	add	r0, sp, #60	; 0x3c                            
    15c0:	e3a01000 	mov	r1, #0                                        
    15c4:	eb000203 	bl	1dd8 <gettimeofday>                            
    15c8:	e59d203c 	ldr	r2, [sp, #60]	; 0x3c                          
    15cc:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    15d0:	e5832048 	str	r2, [r3, #72]	; 0x48                          
                                                                      
  return 0;                                                           
    15d4:	e3a00000 	mov	r0, #0                                        
}                                                                     
    15d8:	e28dd048 	add	sp, sp, #72	; 0x48                            
    15dc:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

0000b75c <IMFS_memfile_extend>: #if defined(RTEMS_DEBUG) assert( the_jnode ); assert( the_jnode->type == IMFS_MEMORY_FILE ); #endif if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
    b75c:	e59f3110 	ldr	r3, [pc, #272]	; b874 <IMFS_memfile_extend+0x118>
                                                                      
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
    b760:	e92d4df1 	push	{r0, r4, r5, r6, r7, r8, sl, fp, lr}         
  #if defined(RTEMS_DEBUG)                                            
    assert( the_jnode );                                              
    assert( the_jnode->type == IMFS_MEMORY_FILE );                    
  #endif                                                              
                                                                      
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
    b764:	e593b000 	ldr	fp, [r3]                                      
    b768:	e1a0312b 	lsr	r3, fp, #2                                    
                                                                      
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
    b76c:	e1a05002 	mov	r5, r2                                        
  #if defined(RTEMS_DEBUG)                                            
    assert( the_jnode );                                              
    assert( the_jnode->type == IMFS_MEMORY_FILE );                    
  #endif                                                              
                                                                      
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
    b770:	e2832001 	add	r2, r3, #1                                    
    b774:	e0020293 	mul	r2, r3, r2                                    
    b778:	e2822001 	add	r2, r2, #1                                    
    b77c:	e0030392 	mul	r3, r2, r3                                    
    b780:	e3a02000 	mov	r2, #0                                        
    b784:	e2433001 	sub	r3, r3, #1                                    
    b788:	e1520005 	cmp	r2, r5                                        
                                                                      
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
    b78c:	e1a04000 	mov	r4, r0                                        
    b790:	e1a06001 	mov	r6, r1                                        
  #if defined(RTEMS_DEBUG)                                            
    assert( the_jnode );                                              
    assert( the_jnode->type == IMFS_MEMORY_FILE );                    
  #endif                                                              
                                                                      
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
    b794:	e003039b 	mul	r3, fp, r3                                    
    b798:	ca000005 	bgt	b7b4 <IMFS_memfile_extend+0x58>               
    b79c:	1a000001 	bne	b7a8 <IMFS_memfile_extend+0x4c>               
    b7a0:	e1530001 	cmp	r3, r1                                        
    b7a4:	8a000002 	bhi	b7b4 <IMFS_memfile_extend+0x58>               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    b7a8:	eb0004a1 	bl	ca34 <__errno>                                 
    b7ac:	e3a03016 	mov	r3, #22                                       
    b7b0:	ea000025 	b	b84c <IMFS_memfile_extend+0xf0>                 
                                                                      
  if ( new_length <= the_jnode->info.file.size )                      
    b7b4:	e5948054 	ldr	r8, [r4, #84]	; 0x54                          
    b7b8:	e1550008 	cmp	r5, r8                                        
    b7bc:	e5947050 	ldr	r7, [r4, #80]	; 0x50                          
    b7c0:	ca000002 	bgt	b7d0 <IMFS_memfile_extend+0x74>               
    b7c4:	1a000028 	bne	b86c <IMFS_memfile_extend+0x110>              
    b7c8:	e1560007 	cmp	r6, r7                                        
    b7cc:	9a000026 	bls	b86c <IMFS_memfile_extend+0x110>              
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
                                                                      
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
    b7d0:	e1a0cfcb 	asr	ip, fp, #31                                   
    b7d4:	e1a0300c 	mov	r3, ip                                        
    b7d8:	e1a0200b 	mov	r2, fp                                        
    b7dc:	e1a00006 	mov	r0, r6                                        
    b7e0:	e1a01005 	mov	r1, r5                                        
    b7e4:	e58dc000 	str	ip, [sp]                                      
    b7e8:	eb00130c 	bl	10420 <__divdi3>                               
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
    b7ec:	e59dc000 	ldr	ip, [sp]                                      
    b7f0:	e1a01008 	mov	r1, r8                                        
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
                                                                      
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
    b7f4:	e1a0a000 	mov	sl, r0                                        
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
    b7f8:	e1a0200b 	mov	r2, fp                                        
    b7fc:	e1a00007 	mov	r0, r7                                        
    b800:	e1a0300c 	mov	r3, ip                                        
    b804:	eb001305 	bl	10420 <__divdi3>                               
    b808:	e1a08000 	mov	r8, r0                                        
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
                                                                      
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    b80c:	e1a07000 	mov	r7, r0                                        
    b810:	ea000011 	b	b85c <IMFS_memfile_extend+0x100>                
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
    b814:	e1a00004 	mov	r0, r4                                        
    b818:	e1a01007 	mov	r1, r7                                        
    b81c:	ebffff56 	bl	b57c <IMFS_memfile_addblock>                   
    b820:	e3500000 	cmp	r0, #0                                        
    b824:	0a00000b 	beq	b858 <IMFS_memfile_extend+0xfc>               
    b828:	ea000003 	b	b83c <IMFS_memfile_extend+0xe0>                 <== NOT EXECUTED
       for ( ; block>=old_blocks ; block-- ) {                        
          IMFS_memfile_remove_block( the_jnode, block );              
    b82c:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
    b830:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    b834:	ebffffbe 	bl	b734 <IMFS_memfile_remove_block>               <== NOT EXECUTED
   *  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-- ) {                        
    b838:	e2477001 	sub	r7, r7, #1                                    <== NOT EXECUTED
    b83c:	e1570008 	cmp	r7, r8                                        <== NOT EXECUTED
    b840:	2afffff9 	bcs	b82c <IMFS_memfile_extend+0xd0>               <== NOT EXECUTED
          IMFS_memfile_remove_block( the_jnode, block );              
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
    b844:	eb00047a 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    b848:	e3a0301c 	mov	r3, #28                                       <== NOT EXECUTED
    b84c:	e5803000 	str	r3, [r0]                                      
    b850:	e3e00000 	mvn	r0, #0                                        
    b854:	ea000005 	b	b870 <IMFS_memfile_extend+0x114>                
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
                                                                      
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    b858:	e2877001 	add	r7, r7, #1                                    
    b85c:	e157000a 	cmp	r7, sl                                        
    b860:	9affffeb 	bls	b814 <IMFS_memfile_extend+0xb8>               
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
                                                                      
  the_jnode->info.file.size = new_length;                             
    b864:	e5846050 	str	r6, [r4, #80]	; 0x50                          
    b868:	e5845054 	str	r5, [r4, #84]	; 0x54                          
                                                                      
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( new_length <= the_jnode->info.file.size )                      
    return 0;                                                         
    b86c:	e3a00000 	mov	r0, #0                                        
   *  Set the new length of the file.                                 
   */                                                                 
                                                                      
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
    b870:	e8bd8df8 	pop	{r3, r4, r5, r6, r7, r8, sl, fp, pc}          
                                                                      

0000b174 <IMFS_memfile_get_block_pointer>: /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
    b174:	e59f31dc 	ldr	r3, [pc, #476]	; b358 <IMFS_memfile_get_block_pointer+0x1e4>
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
    b178:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_INDIRECT ) {                                  
    b17c:	e5935000 	ldr	r5, [r3]                                      
    b180:	e1a05125 	lsr	r5, r5, #2                                    
    b184:	e2453001 	sub	r3, r5, #1                                    
    b188:	e1510003 	cmp	r1, r3                                        
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
    b18c:	e1a04000 	mov	r4, r0                                        
    b190:	e1a06001 	mov	r6, r1                                        
    b194:	e1a08002 	mov	r8, r2                                        
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_INDIRECT ) {                                  
    b198:	8a00000e 	bhi	b1d8 <IMFS_memfile_get_block_pointer+0x64>    
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
    b19c:	e3520000 	cmp	r2, #0                                        
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
    b1a0:	e5900058 	ldr	r0, [r0, #88]	; 0x58                          
                                                                      
    if ( malloc_it ) {                                                
    b1a4:	0a000007 	beq	b1c8 <IMFS_memfile_get_block_pointer+0x54>    
                                                                      
      if ( !p ) {                                                     
    b1a8:	e3500000 	cmp	r0, #0                                        
    b1ac:	1a000003 	bne	b1c0 <IMFS_memfile_get_block_pointer+0x4c>    
        p = memfile_alloc_block();                                    
    b1b0:	ebffffe2 	bl	b140 <memfile_alloc_block>                     
        if ( !p )                                                     
    b1b4:	e3500000 	cmp	r0, #0                                        
    b1b8:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
           return 0;                                                  
        info->indirect = p;                                           
    b1bc:	e5840058 	str	r0, [r4, #88]	; 0x58                          
      }                                                               
      return &info->indirect[ my_block ];                             
    b1c0:	e5940058 	ldr	r0, [r4, #88]	; 0x58                          
    b1c4:	ea000001 	b	b1d0 <IMFS_memfile_get_block_pointer+0x5c>      
    }                                                                 
                                                                      
    if ( !p )                                                         
    b1c8:	e3500000 	cmp	r0, #0                                        
    b1cc:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
    b1d0:	e0800106 	add	r0, r0, r6, lsl #2                            
    b1d4:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    b1d8:	e2853001 	add	r3, r5, #1                                    
    b1dc:	e0030395 	mul	r3, r5, r3                                    
    b1e0:	e2432001 	sub	r2, r3, #1                                    
    b1e4:	e1510002 	cmp	r1, r2                                        
    b1e8:	8a000021 	bhi	b274 <IMFS_memfile_get_block_pointer+0x100>   
#if 0                                                                 
fprintf(stdout, "(d %d) ", block );                                   
fflush(stdout);                                                       
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
    b1ec:	e0656001 	rsb	r6, r5, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    b1f0:	e1a00006 	mov	r0, r6                                        
    b1f4:	e1a01005 	mov	r1, r5                                        
    b1f8:	eb001454 	bl	10350 <__umodsi3>                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b1fc:	e1a01005 	mov	r1, r5                                        
fflush(stdout);                                                       
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    b200:	e1a07000 	mov	r7, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b204:	e1a00006 	mov	r0, r6                                        
    b208:	eb0013b8 	bl	100f0 <__aeabi_uidiv>                          
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
    b20c:	e3580000 	cmp	r8, #0                                        
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b210:	e1a05000 	mov	r5, r0                                        
                                                                      
    p = info->doubly_indirect;                                        
    b214:	e594005c 	ldr	r0, [r4, #92]	; 0x5c                          
    if ( malloc_it ) {                                                
    b218:	0a00000e 	beq	b258 <IMFS_memfile_get_block_pointer+0xe4>    
                                                                      
      if ( !p ) {                                                     
    b21c:	e3500000 	cmp	r0, #0                                        
    b220:	1a000003 	bne	b234 <IMFS_memfile_get_block_pointer+0xc0>    
        p = memfile_alloc_block();                                    
    b224:	ebffffc5 	bl	b140 <memfile_alloc_block>                     
        if ( !p )                                                     
    b228:	e3500000 	cmp	r0, #0                                        
    b22c:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
           return 0;                                                  
        info->doubly_indirect = p;                                    
    b230:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
    b234:	e0804105 	add	r4, r0, r5, lsl #2                            
    b238:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
      if ( !p1 ) {                                                    
    b23c:	e3500000 	cmp	r0, #0                                        
    b240:	1a000009 	bne	b26c <IMFS_memfile_get_block_pointer+0xf8>    
        p1 = memfile_alloc_block();                                   
    b244:	ebffffbd 	bl	b140 <memfile_alloc_block>                     
        if ( !p1 )                                                    
    b248:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
    b24c:	15840000 	strne	r0, [r4]                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
    b250:	1a000005 	bne	b26c <IMFS_memfile_get_block_pointer+0xf8>    
    b254:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
    b258:	e3500000 	cmp	r0, #0                                        
    b25c:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    b260:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
    if ( !p )                                                         
    b264:	e3500000 	cmp	r0, #0                                        
    b268:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
#if 0                                                                 
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,    
                                       singly, p, &p[singly] );       
fflush(stdout);                                                       
#endif                                                                
    return (block_p *)&p[ singly ];                                   
    b26c:	e0800107 	add	r0, r0, r7, lsl #2                            
    b270:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
#endif                                                                
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    b274:	e2832001 	add	r2, r3, #1                                    
    b278:	e0020295 	mul	r2, r5, r2                                    
    b27c:	e2422001 	sub	r2, r2, #1                                    
    b280:	e1510002 	cmp	r1, r2                                        
    b284:	8a000031 	bhi	b350 <IMFS_memfile_get_block_pointer+0x1dc>   
    my_block -= FIRST_TRIPLY_INDIRECT;                                
    b288:	e0636001 	rsb	r6, r3, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    b28c:	e1a00006 	mov	r0, r6                                        
    b290:	e1a01005 	mov	r1, r5                                        
    b294:	eb00142d 	bl	10350 <__umodsi3>                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b298:	e1a01005 	mov	r1, r5                                        
   */                                                                 
                                                                      
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    b29c:	e1a0a000 	mov	sl, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b2a0:	e1a00006 	mov	r0, r6                                        
    b2a4:	eb001391 	bl	100f0 <__aeabi_uidiv>                          
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    b2a8:	e1a01005 	mov	r1, r5                                        
                                                                      
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    b2ac:	e1a06000 	mov	r6, r0                                        
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    b2b0:	eb00138e 	bl	100f0 <__aeabi_uidiv>                          
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
    b2b4:	e1a01005 	mov	r1, r5                                        
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    b2b8:	e1a07000 	mov	r7, r0                                        
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
    b2bc:	e1a00006 	mov	r0, r6                                        
    b2c0:	eb001422 	bl	10350 <__umodsi3>                              
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
    b2c4:	e3580000 	cmp	r8, #0                                        
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
    b2c8:	e1a05000 	mov	r5, r0                                        
                                                                      
    p = info->triply_indirect;                                        
    b2cc:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          
                                                                      
    if ( malloc_it ) {                                                
    b2d0:	0a000016 	beq	b330 <IMFS_memfile_get_block_pointer+0x1bc>   
      if ( !p ) {                                                     
    b2d4:	e3500000 	cmp	r0, #0                                        
    b2d8:	1a000003 	bne	b2ec <IMFS_memfile_get_block_pointer+0x178>   
        p = memfile_alloc_block();                                    
    b2dc:	ebffff97 	bl	b140 <memfile_alloc_block>                     
        if ( !p )                                                     
    b2e0:	e3500000 	cmp	r0, #0                                        
    b2e4:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
           return 0;                                                  
        info->triply_indirect = p;                                    
    b2e8:	e5840060 	str	r0, [r4, #96]	; 0x60                          
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
    b2ec:	e0804107 	add	r4, r0, r7, lsl #2                            
    b2f0:	e7900107 	ldr	r0, [r0, r7, lsl #2]                          
      if ( !p1 ) {                                                    
    b2f4:	e3500000 	cmp	r0, #0                                        
    b2f8:	1a000003 	bne	b30c <IMFS_memfile_get_block_pointer+0x198>   
        p1 = memfile_alloc_block();                                   
    b2fc:	ebffff8f 	bl	b140 <memfile_alloc_block>                     
        if ( !p1 )                                                    
    b300:	e3500000 	cmp	r0, #0                                        
    b304:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
    b308:	e5840000 	str	r0, [r4]                                      
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
    b30c:	e0804105 	add	r4, r0, r5, lsl #2                            
    b310:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
      if ( !p2 ) {                                                    
    b314:	e3500000 	cmp	r0, #0                                        
    b318:	1a00000a 	bne	b348 <IMFS_memfile_get_block_pointer+0x1d4>   
        p2 = memfile_alloc_block();                                   
    b31c:	ebffff87 	bl	b140 <memfile_alloc_block>                     
        if ( !p2 )                                                    
    b320:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
    b324:	15840000 	strne	r0, [r4]                                    
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
    b328:	1a000006 	bne	b348 <IMFS_memfile_get_block_pointer+0x1d4>   
    b32c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
    b330:	e3500000 	cmp	r0, #0                                        
    b334:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
                                                                      
#if 0                                                                 
fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
fflush(stdout);                                                       
#endif                                                                
    p1 = (block_p *) p[ triply ];                                     
    b338:	e7900107 	ldr	r0, [r0, r7, lsl #2]                          
    if ( !p1 )                                                        
    b33c:	e3500000 	cmp	r0, #0                                        
    b340:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
    b344:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
    b348:	e080010a 	add	r0, r0, sl, lsl #2                            
    b34c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
                                                                      
  return 0;                                                           
    b350:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
    b354:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

0000b35c <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
    b35c:	e92d4fff 	push	{r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
                                                                      
  /*                                                                  
   *  Error checks on arguments                                       
   */                                                                 
                                                                      
  if ( !dest )                                                        
    b360:	e2537000 	subs	r7, r3, #0                                   
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
    b364:	e1a04000 	mov	r4, r0                                        
    b368:	e1a08001 	mov	r8, r1                                        
    b36c:	e1a09002 	mov	r9, r2                                        
    b370:	e59d6034 	ldr	r6, [sp, #52]	; 0x34                          
                                                                      
  /*                                                                  
   *  Error checks on arguments                                       
   */                                                                 
                                                                      
  if ( !dest )                                                        
    b374:	0a000001 	beq	b380 <IMFS_memfile_read+0x24>                 
  /*                                                                  
   *  If there is nothing to read, then quick exit.                   
   */                                                                 
                                                                      
  my_length = length;                                                 
  if ( !my_length )                                                   
    b378:	e3560000 	cmp	r6, #0                                        
    b37c:	1a000004 	bne	b394 <IMFS_memfile_read+0x38>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    b380:	eb0005ab 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    b384:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    b388:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    b38c:	e3e06000 	mvn	r6, #0                                        <== NOT EXECUTED
    b390:	ea00006b 	b	b544 <IMFS_memfile_read+0x1e8>                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    b394:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    b398:	e3530006 	cmp	r3, #6                                        
    b39c:	1a000012 	bne	b3ec <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))        
    b3a0:	e280b050 	add	fp, r0, #80	; 0x50                            
    b3a4:	e89b0c00 	ldm	fp, {sl, fp}                                  
    b3a8:	e1a0200a 	mov	r2, sl                                        
    b3ac:	e1a0300b 	mov	r3, fp                                        
   *  than block files).                                              
   */                                                                 
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
    b3b0:	e5901058 	ldr	r1, [r0, #88]	; 0x58                          
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
    b3b4:	e0522008 	subs	r2, r2, r8                                   
    b3b8:	e0c33009 	sbc	r3, r3, r9                                    
    b3bc:	e3a00000 	mov	r0, #0                                        
    b3c0:	e1500003 	cmp	r0, r3                                        
    b3c4:	ca000002 	bgt	b3d4 <IMFS_memfile_read+0x78>                 
    b3c8:	1a000002 	bne	b3d8 <IMFS_memfile_read+0x7c>                 
    b3cc:	e1560002 	cmp	r6, r2                                        
    b3d0:	9a000000 	bls	b3d8 <IMFS_memfile_read+0x7c>                 
      my_length = the_jnode->info.linearfile.size - start;            
    b3d4:	e068600a 	rsb	r6, r8, sl                                    
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
    b3d8:	e1a00007 	mov	r0, r7                                        
    b3dc:	e0811008 	add	r1, r1, r8                                    
    b3e0:	e1a02006 	mov	r2, r6                                        
    b3e4:	eb0007c0 	bl	d2ec <memcpy>                                  
    b3e8:	ea000050 	b	b530 <IMFS_memfile_read+0x1d4>                  
  /*                                                                  
   *  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;                                         
    b3ec:	e1a03001 	mov	r3, r1                                        
  if ( last_byte > the_jnode->info.file.size )                        
    b3f0:	e5901054 	ldr	r1, [r0, #84]	; 0x54                          
    b3f4:	e5905050 	ldr	r5, [r0, #80]	; 0x50                          
    b3f8:	e3a00000 	mov	r0, #0                                        
    b3fc:	e1500001 	cmp	r0, r1                                        
  /*                                                                  
   *  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;                                         
    b400:	e0862008 	add	r2, r6, r8                                    
  if ( last_byte > the_jnode->info.file.size )                        
    b404:	ca000002 	bgt	b414 <IMFS_memfile_read+0xb8>                 
    b408:	1a000003 	bne	b41c <IMFS_memfile_read+0xc0>                 
    b40c:	e1520005 	cmp	r2, r5                                        
    b410:	9a000001 	bls	b41c <IMFS_memfile_read+0xc0>                 
    my_length = the_jnode->info.file.size - start;                    
    b414:	e0635005 	rsb	r5, r3, r5                                    
    b418:	ea000000 	b	b420 <IMFS_memfile_read+0xc4>                   
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
                                                                      
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    b41c:	e1a05006 	mov	r5, r6                                        
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    b420:	e59f3128 	ldr	r3, [pc, #296]	; b550 <IMFS_memfile_read+0x1f4>
    b424:	e593b000 	ldr	fp, [r3]                                      
    b428:	e1a00008 	mov	r0, r8                                        
    b42c:	e1a0200b 	mov	r2, fp                                        
    b430:	e1a03fc2 	asr	r3, r2, #31                                   
    b434:	e1a01009 	mov	r1, r9                                        
    b438:	e88d000c 	stm	sp, {r2, r3}                                  
    b43c:	eb001531 	bl	10908 <__moddi3>                               
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    b440:	e1a01009 	mov	r1, r9                                        
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    b444:	e1a06000 	mov	r6, r0                                        
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    b448:	e89d000c 	ldm	sp, {r2, r3}                                  
    b44c:	e1a00008 	mov	r0, r8                                        
    b450:	eb0013f2 	bl	10420 <__divdi3>                               
  if ( start_offset )  {                                              
    b454:	e3560000 	cmp	r6, #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;                       
    b458:	e1a08000 	mov	r8, r0                                        
  if ( start_offset )  {                                              
    b45c:	0a000012 	beq	b4ac <IMFS_memfile_read+0x150>                
    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 );
    b460:	e1a00004 	mov	r0, r4                                        
    b464:	e1a01008 	mov	r1, r8                                        
    b468:	e3a02000 	mov	r2, #0                                        
    b46c:	ebffff40 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b470:	e3500000 	cmp	r0, #0                                        
      return copied;                                                  
    b474:	01a06000 	moveq	r6, r0                                      
  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 )                                                 
    b478:	0a000031 	beq	b544 <IMFS_memfile_read+0x1e8>                
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
    b47c:	e5901000 	ldr	r1, [r0]                                      
   */                                                                 
                                                                      
  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;            
    b480:	e066a00b 	rsb	sl, r6, fp                                    
    b484:	e155000a 	cmp	r5, sl                                        
    b488:	31a0a005 	movcc	sl, r5                                      
    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 );           
    b48c:	e1a00007 	mov	r0, r7                                        
    b490:	e0811006 	add	r1, r1, r6                                    
    b494:	e1a0200a 	mov	r2, sl                                        
    b498:	eb000793 	bl	d2ec <memcpy>                                  
    dest += to_copy;                                                  
    b49c:	e087700a 	add	r7, r7, sl                                    
    block++;                                                          
    b4a0:	e2888001 	add	r8, r8, #1                                    
    my_length -= to_copy;                                             
    b4a4:	e06a5005 	rsb	r5, sl, r5                                    
    copied += to_copy;                                                
    b4a8:	e1a0600a 	mov	r6, sl                                        
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
    b4ac:	e59f909c 	ldr	r9, [pc, #156]	; b550 <IMFS_memfile_read+0x1f4>
    b4b0:	e599a000 	ldr	sl, [r9]                                      
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    b4b4:	ea00000d 	b	b4f0 <IMFS_memfile_read+0x194>                  
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    b4b8:	e1a00004 	mov	r0, r4                                        
    b4bc:	e1a01008 	mov	r1, r8                                        
    b4c0:	e3a02000 	mov	r2, #0                                        
    b4c4:	ebffff2a 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b4c8:	e2503000 	subs	r3, r0, #0                                   
    b4cc:	0a00001c 	beq	b544 <IMFS_memfile_read+0x1e8>                
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    b4d0:	e1a00007 	mov	r0, r7                                        
    b4d4:	e5931000 	ldr	r1, [r3]                                      
    b4d8:	e1a0200a 	mov	r2, sl                                        
    b4dc:	eb000782 	bl	d2ec <memcpy>                                  
    dest += to_copy;                                                  
    b4e0:	e087700a 	add	r7, r7, sl                                    
    block++;                                                          
    b4e4:	e2888001 	add	r8, r8, #1                                    
    my_length -= to_copy;                                             
    b4e8:	e06a5005 	rsb	r5, sl, r5                                    
    copied += to_copy;                                                
    b4ec:	e086600a 	add	r6, r6, sl                                    
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    b4f0:	e5993000 	ldr	r3, [r9]                                      
    b4f4:	e1550003 	cmp	r5, r3                                        
    b4f8:	2affffee 	bcs	b4b8 <IMFS_memfile_read+0x15c>                
                                                                      
  #if defined(RTEMS_DEBUG)                                            
    assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );               
  #endif                                                              
                                                                      
  if ( my_length ) {                                                  
    b4fc:	e3550000 	cmp	r5, #0                                        
    b500:	0a00000a 	beq	b530 <IMFS_memfile_read+0x1d4>                
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    b504:	e1a00004 	mov	r0, r4                                        
    b508:	e1a01008 	mov	r1, r8                                        
    b50c:	e3a02000 	mov	r2, #0                                        
    b510:	ebffff17 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b514:	e2503000 	subs	r3, r0, #0                                   
    b518:	0a000009 	beq	b544 <IMFS_memfile_read+0x1e8>                
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    b51c:	e1a00007 	mov	r0, r7                                        
    b520:	e5931000 	ldr	r1, [r3]                                      
    b524:	e1a02005 	mov	r2, r5                                        
    b528:	eb00076f 	bl	d2ec <memcpy>                                  
    copied += my_length;                                              
    b52c:	e0856006 	add	r6, r5, r6                                    
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
    b530:	e28d0008 	add	r0, sp, #8                                    
    b534:	e3a01000 	mov	r1, #0                                        
    b538:	ebffda26 	bl	1dd8 <gettimeofday>                            
    b53c:	e59d3008 	ldr	r3, [sp, #8]                                  
    b540:	e5843040 	str	r3, [r4, #64]	; 0x40                          
                                                                      
  return copied;                                                      
}                                                                     
    b544:	e1a00006 	mov	r0, r6                                        
    b548:	e28dd010 	add	sp, sp, #16                                   
    b54c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

0000b628 <IMFS_memfile_remove>: */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
    b628:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  /*                                                                  
   *  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;                                 
    b62c:	e59f30fc 	ldr	r3, [pc, #252]	; b730 <IMFS_memfile_remove+0x108>
    b630:	e5935000 	ldr	r5, [r3]                                      
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
    b634:	e5903058 	ldr	r3, [r0, #88]	; 0x58                          
    b638:	e3530000 	cmp	r3, #0                                        
 */                                                                   
                                                                      
int IMFS_memfile_remove(                                              
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
    b63c:	e1a04000 	mov	r4, 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;                                 
    b640:	e1a05125 	lsr	r5, r5, #2                                    
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
    b644:	12800058 	addne	r0, r0, #88	; 0x58                          
    b648:	11a01005 	movne	r1, r5                                      
    b64c:	1bffffe0 	blne	b5d4 <memfile_free_blocks_in_table>          
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
    b650:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
    b654:	e3530000 	cmp	r3, #0                                        
    b658:	13a06000 	movne	r6, #0                                      
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
    b65c:	159f70cc 	ldrne	r7, [pc, #204]	; b730 <IMFS_memfile_remove+0x108>
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
    b660:	1a000008 	bne	b688 <IMFS_memfile_remove+0x60>               
    b664:	ea00000d 	b	b6a0 <IMFS_memfile_remove+0x78>                 
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      if ( info->doubly_indirect[i] ) {                               
    b668:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          <== NOT EXECUTED
    b66c:	e7932106 	ldr	r2, [r3, r6, lsl #2]                          <== NOT EXECUTED
    b670:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    b674:	e1a00106 	lsl	r0, r6, #2                                    <== NOT EXECUTED
        memfile_free_blocks_in_table(                                 
    b678:	10830000 	addne	r0, r3, r0                                  <== NOT EXECUTED
    b67c:	11a01005 	movne	r1, r5                                      <== NOT EXECUTED
    b680:	1bffffd3 	blne	b5d4 <memfile_free_blocks_in_table>          <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
    b684:	e2866001 	add	r6, r6, #1                                    <== NOT EXECUTED
    b688:	e5973000 	ldr	r3, [r7]                                      <== NOT EXECUTED
    b68c:	e1560123 	cmp	r6, r3, lsr #2                                <== NOT EXECUTED
    b690:	3afffff4 	bcc	b668 <IMFS_memfile_remove+0x40>               <== NOT EXECUTED
      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 );  
    b694:	e284005c 	add	r0, r4, #92	; 0x5c                            <== NOT EXECUTED
    b698:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    b69c:	ebffffcc 	bl	b5d4 <memfile_free_blocks_in_table>            <== NOT EXECUTED
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    b6a0:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
    b6a4:	e3530000 	cmp	r3, #0                                        
    b6a8:	13a06000 	movne	r6, #0                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
    b6ac:	159fa07c 	ldrne	sl, [pc, #124]	; b730 <IMFS_memfile_remove+0x108>
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    b6b0:	1a000016 	bne	b710 <IMFS_memfile_remove+0xe8>               
    b6b4:	ea00001b 	b	b728 <IMFS_memfile_remove+0x100>                
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
    b6b8:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          <== NOT EXECUTED
    b6bc:	e7938106 	ldr	r8, [r3, r6, lsl #2]                          <== NOT EXECUTED
      if ( !p )  /* ensure we have a valid pointer */                 
    b6c0:	e3580000 	cmp	r8, #0                                        <== NOT EXECUTED
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    b6c4:	e1a09106 	lsl	r9, r6, #2                                    <== NOT EXECUTED
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
      if ( !p )  /* ensure we have a valid pointer */                 
    b6c8:	0a000013 	beq	b71c <IMFS_memfile_remove+0xf4>               <== NOT EXECUTED
 *                                                                    
 *         Regardless until the IMFS implementation is proven, it     
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
                                                                      
int IMFS_memfile_remove(                                              
    b6cc:	e2488004 	sub	r8, r8, #4                                    <== NOT EXECUTED
    b6d0:	e3a07000 	mov	r7, #0                                        <== NOT EXECUTED
    b6d4:	ea000005 	b	b6f0 <IMFS_memfile_remove+0xc8>                 <== NOT EXECUTED
    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] ) {                                                 
    b6d8:	e5b83004 	ldr	r3, [r8, #4]!                                 <== NOT EXECUTED
    b6dc:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
    b6e0:	11a00008 	movne	r0, r8                                      <== NOT EXECUTED
    b6e4:	11a01005 	movne	r1, r5                                      <== NOT EXECUTED
    b6e8:	1bffffb9 	blne	b5d4 <memfile_free_blocks_in_table>          <== NOT EXECUTED
  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++ ) {                
    b6ec:	e2877001 	add	r7, r7, #1                                    <== NOT EXECUTED
    b6f0:	e59a3000 	ldr	r3, [sl]                                      <== NOT EXECUTED
    b6f4:	e1570123 	cmp	r7, r3, lsr #2                                <== NOT EXECUTED
    b6f8:	3afffff6 	bcc	b6d8 <IMFS_memfile_remove+0xb0>               <== NOT EXECUTED
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
    b6fc:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          <== NOT EXECUTED
    b700:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    b704:	e0800009 	add	r0, r0, r9                                    <== NOT EXECUTED
    b708:	ebffffb1 	bl	b5d4 <memfile_free_blocks_in_table>            <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
    b70c:	e2866001 	add	r6, r6, #1                                    <== NOT EXECUTED
    b710:	e59a3000 	ldr	r3, [sl]                                      <== NOT EXECUTED
    b714:	e1560123 	cmp	r6, r3, lsr #2                                <== NOT EXECUTED
    b718:	3affffe6 	bcc	b6b8 <IMFS_memfile_remove+0x90>               <== NOT EXECUTED
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
    b71c:	e2840060 	add	r0, r4, #96	; 0x60                            <== NOT EXECUTED
    b720:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    b724:	ebffffaa 	bl	b5d4 <memfile_free_blocks_in_table>            <== NOT EXECUTED
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    b728:	e3a00000 	mov	r0, #0                                        
    b72c:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      

0000b734 <IMFS_memfile_remove_block>: MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) {
    b734:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 <== NOT EXECUTED
  block_p *block_ptr;                                                 
  block_p  ptr;                                                       
                                                                      
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
    b738:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
    b73c:	ebfffe8c 	bl	b174 <IMFS_memfile_get_block_pointer>          <== NOT EXECUTED
  #if defined(RTEMS_DEBUG)                                            
    assert( block_ptr );                                              
  #endif                                                              
                                                                      
  if ( block_ptr ) {                                                  
    b740:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    ptr = *block_ptr;                                                 
    *block_ptr = 0;                                                   
    b744:	13a02000 	movne	r2, #0                                      <== NOT EXECUTED
  #if defined(RTEMS_DEBUG)                                            
    assert( block_ptr );                                              
  #endif                                                              
                                                                      
  if ( block_ptr ) {                                                  
    ptr = *block_ptr;                                                 
    b748:	15930000 	ldrne	r0, [r3]                                    <== NOT EXECUTED
    *block_ptr = 0;                                                   
    b74c:	15832000 	strne	r2, [r3]                                    <== NOT EXECUTED
    memfile_free_block( ptr );                                        
    b750:	1bffff97 	blne	b5b4 <memfile_free_block>                    <== NOT EXECUTED
  }                                                                   
                                                                      
  return 1;                                                           
}                                                                     
    b754:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    b758:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      

0000b878 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
    b878:	e92d4ff7 	push	{r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
                                                                      
  /*                                                                  
   *  Error check arguments                                           
   */                                                                 
                                                                      
  if ( !source )                                                      
    b87c:	e2538000 	subs	r8, r3, #0                                   
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
    b880:	e1a04000 	mov	r4, r0                                        
    b884:	e1a07001 	mov	r7, r1                                        
    b888:	e1a0a002 	mov	sl, r2                                        
    b88c:	e59d5030 	ldr	r5, [sp, #48]	; 0x30                          
                                                                      
  /*                                                                  
   *  Error check arguments                                           
   */                                                                 
                                                                      
  if ( !source )                                                      
    b890:	0a000001 	beq	b89c <IMFS_memfile_write+0x24>                
  /*                                                                  
   *  If there is nothing to write, then quick exit.                  
   */                                                                 
                                                                      
  my_length = length;                                                 
  if ( !my_length )                                                   
    b894:	e3550000 	cmp	r5, #0                                        
    b898:	1a000002 	bne	b8a8 <IMFS_memfile_write+0x30>                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    b89c:	eb000464 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    b8a0:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    b8a4:	ea00000e 	b	b8e4 <IMFS_memfile_write+0x6c>                  <== NOT EXECUTED
   *  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 + length;                                         
  if ( last_byte > the_jnode->info.file.size ) {                      
    b8a8:	e5903054 	ldr	r3, [r0, #84]	; 0x54                          
    b8ac:	e3530000 	cmp	r3, #0                                        
  /*                                                                  
   *  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 + length;                                         
    b8b0:	e0851001 	add	r1, r5, r1                                    
  if ( last_byte > the_jnode->info.file.size ) {                      
    b8b4:	ba000003 	blt	b8c8 <IMFS_memfile_write+0x50>                
    b8b8:	1a00000c 	bne	b8f0 <IMFS_memfile_write+0x78>                
    b8bc:	e5903050 	ldr	r3, [r0, #80]	; 0x50                          
    b8c0:	e1530001 	cmp	r3, r1                                        
    b8c4:	2a000009 	bcs	b8f0 <IMFS_memfile_write+0x78>                
    status = IMFS_memfile_extend( the_jnode, last_byte );             
    b8c8:	e1a00004 	mov	r0, r4                                        
    b8cc:	e3a02000 	mov	r2, #0                                        
    b8d0:	ebffffa1 	bl	b75c <IMFS_memfile_extend>                     
    if ( status )                                                     
    b8d4:	e3500000 	cmp	r0, #0                                        
    b8d8:	0a000004 	beq	b8f0 <IMFS_memfile_write+0x78>                
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
    b8dc:	eb000454 	bl	ca34 <__errno>                                 
    b8e0:	e3a0301c 	mov	r3, #28                                       
    b8e4:	e5803000 	str	r3, [r0]                                      
    b8e8:	e3e06000 	mvn	r6, #0                                        
    b8ec:	ea00004d 	b	ba28 <IMFS_memfile_write+0x1b0>                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    b8f0:	e59f3138 	ldr	r3, [pc, #312]	; ba30 <IMFS_memfile_write+0x1b8>
    b8f4:	e5939000 	ldr	r9, [r3]                                      
    b8f8:	e1a0b009 	mov	fp, r9                                        
    b8fc:	e1a0cfcb 	asr	ip, fp, #31                                   
    b900:	e1a0300c 	mov	r3, ip                                        
    b904:	e1a00007 	mov	r0, r7                                        
    b908:	e1a0200b 	mov	r2, fp                                        
    b90c:	e1a0100a 	mov	r1, sl                                        
    b910:	e58dc000 	str	ip, [sp]                                      
    b914:	eb0013fb 	bl	10908 <__moddi3>                               
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    b918:	e59dc000 	ldr	ip, [sp]                                      
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    b91c:	e1a06000 	mov	r6, r0                                        
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    b920:	e1a0100a 	mov	r1, sl                                        
    b924:	e1a00007 	mov	r0, r7                                        
    b928:	e1a0200b 	mov	r2, fp                                        
    b92c:	e1a0300c 	mov	r3, ip                                        
    b930:	eb0012ba 	bl	10420 <__divdi3>                               
  if ( start_offset )  {                                              
    b934:	e3560000 	cmp	r6, #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;                       
    b938:	e1a07000 	mov	r7, r0                                        
  if ( start_offset )  {                                              
    b93c:	0a000012 	beq	b98c <IMFS_memfile_write+0x114>               
    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 );
    b940:	e1a00004 	mov	r0, r4                                        
    b944:	e1a01007 	mov	r1, r7                                        
    b948:	e3a02000 	mov	r2, #0                                        
    b94c:	ebfffe08 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b950:	e3500000 	cmp	r0, #0                                        
      return copied;                                                  
    b954:	01a06000 	moveq	r6, r0                                      
  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 )                                                 
    b958:	0a000032 	beq	ba28 <IMFS_memfile_write+0x1b0>               
   */                                                                 
                                                                      
  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;            
    b95c:	e066a009 	rsb	sl, r6, r9                                    
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
    b960:	e5900000 	ldr	r0, [r0]                                      
   */                                                                 
                                                                      
  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;            
    b964:	e15a0005 	cmp	sl, r5                                        
    b968:	21a0a005 	movcs	sl, r5                                      
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
    b96c:	e0800006 	add	r0, r0, r6                                    
    b970:	e1a01008 	mov	r1, r8                                        
    b974:	e1a0200a 	mov	r2, sl                                        
    b978:	eb00065b 	bl	d2ec <memcpy>                                  
    src += to_copy;                                                   
    b97c:	e088800a 	add	r8, r8, sl                                    
    block++;                                                          
    b980:	e2877001 	add	r7, r7, #1                                    
    my_length -= to_copy;                                             
    b984:	e06a5005 	rsb	r5, sl, r5                                    
    copied += to_copy;                                                
    b988:	e1a0600a 	mov	r6, sl                                        
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
    b98c:	e59f909c 	ldr	r9, [pc, #156]	; ba30 <IMFS_memfile_write+0x1b8>
    b990:	e599a000 	ldr	sl, [r9]                                      
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    b994:	ea00000d 	b	b9d0 <IMFS_memfile_write+0x158>                 
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    b998:	e1a00004 	mov	r0, r4                                        
    b99c:	e1a01007 	mov	r1, r7                                        
    b9a0:	e3a02000 	mov	r2, #0                                        
    b9a4:	ebfffdf2 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b9a8:	e3500000 	cmp	r0, #0                                        
    b9ac:	0a00001d 	beq	ba28 <IMFS_memfile_write+0x1b0>               
      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 );                       
    b9b0:	e1a01008 	mov	r1, r8                                        
    b9b4:	e5900000 	ldr	r0, [r0]                                      
    b9b8:	e1a0200a 	mov	r2, sl                                        
    b9bc:	eb00064a 	bl	d2ec <memcpy>                                  
    src += to_copy;                                                   
    b9c0:	e088800a 	add	r8, r8, sl                                    
    block++;                                                          
    b9c4:	e2877001 	add	r7, r7, #1                                    
    my_length -= to_copy;                                             
    b9c8:	e06a5005 	rsb	r5, sl, r5                                    
 *                                                                    
 *  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(                            
    b9cc:	e086600a 	add	r6, r6, sl                                    
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    b9d0:	e5993000 	ldr	r3, [r9]                                      
    b9d4:	e1550003 	cmp	r5, r3                                        
    b9d8:	2affffee 	bcs	b998 <IMFS_memfile_write+0x120>               
  #if defined(RTEMS_DEBUG)                                            
    assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );               
  #endif                                                              
                                                                      
  to_copy = my_length;                                                
  if ( my_length ) {                                                  
    b9dc:	e3550000 	cmp	r5, #0                                        
    b9e0:	0a00000a 	beq	ba10 <IMFS_memfile_write+0x198>               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    b9e4:	e1a00004 	mov	r0, r4                                        
    b9e8:	e1a01007 	mov	r1, r7                                        
    b9ec:	e3a02000 	mov	r2, #0                                        
    b9f0:	ebfffddf 	bl	b174 <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    b9f4:	e3500000 	cmp	r0, #0                                        
    b9f8:	0a00000a 	beq	ba28 <IMFS_memfile_write+0x1b0>               
      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 );                     
    b9fc:	e5900000 	ldr	r0, [r0]                                      
    ba00:	e1a01008 	mov	r1, r8                                        
    ba04:	e1a02005 	mov	r2, r5                                        
    ba08:	eb000637 	bl	d2ec <memcpy>                                  
    my_length = 0;                                                    
    copied += to_copy;                                                
    ba0c:	e0866005 	add	r6, r6, r5                                    
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
    ba10:	e28d0004 	add	r0, sp, #4                                    
    ba14:	e3a01000 	mov	r1, #0                                        
    ba18:	ebffd8ee 	bl	1dd8 <gettimeofday>                            
    ba1c:	e59d3004 	ldr	r3, [sp, #4]                                  
    ba20:	e5843044 	str	r3, [r4, #68]	; 0x44                          
    ba24:	e5843048 	str	r3, [r4, #72]	; 0x48                          
                                                                      
  return copied;                                                      
}                                                                     
    ba28:	e1a00006 	mov	r0, r6                                        
    ba2c:	e8bd8ffe 	pop	{r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
                                                                      

000015e4 <IMFS_mknod>: const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
    15e4:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    15e8:	e24dd040 	sub	sp, sp, #64	; 0x40                            
    15ec:	e1a04001 	mov	r4, r1                                        
    15f0:	e1a07000 	mov	r7, r0                                        
    15f4:	e1a06002 	mov	r6, r2                                        
    15f8:	e1a05003 	mov	r5, r3                                        
  IMFS_jnode_t      *new_node;                                        
  int                result;                                          
  char               new_name[ IMFS_NAME_MAX + 1 ];                   
  IMFS_types_union   info;                                            
                                                                      
  IMFS_get_token( token, strlen( token ), new_name, &result );        
    15fc:	eb0030fc 	bl	d9f4 <strlen>                                  
    1600:	e28d303c 	add	r3, sp, #60	; 0x3c                            
    1604:	e1a01000 	mov	r1, r0                                        
    1608:	e28d2004 	add	r2, sp, #4                                    
    160c:	e1a00007 	mov	r0, r7                                        
    1610:	eb001ec1 	bl	911c <IMFS_get_token>                          
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
    1614:	e2043a0f 	and	r3, r4, #61440	; 0xf000                       
    1618:	e3530901 	cmp	r3, #16384	; 0x4000                           
    161c:	0a00000d 	beq	1658 <IMFS_mknod+0x74>                        
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
    1620:	e3530902 	cmp	r3, #32768	; 0x8000                           
    1624:	0a00000d 	beq	1660 <IMFS_mknod+0x7c>                        
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
    1628:	e3530a06 	cmp	r3, #24576	; 0x6000                           
    162c:	13530a02 	cmpne	r3, #8192	; 0x2000                          
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
    1630:	058d6028 	streq	r6, [sp, #40]	; 0x28                        
    1634:	058d502c 	streq	r5, [sp, #44]	; 0x2c                        
  if ( S_ISDIR(mode) )                                                
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
    type = IMFS_DEVICE;                                               
    1638:	03a01002 	moveq	r1, #2                                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
    163c:	0a000008 	beq	1664 <IMFS_mknod+0x80>                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
  }                                                                   
  else if (S_ISFIFO(mode))                                            
    1640:	e3530a01 	cmp	r3, #4096	; 0x1000                            
    type = IMFS_FIFO;                                                 
    1644:	03a01007 	moveq	r1, #7                                      
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
  }                                                                   
  else if (S_ISFIFO(mode))                                            
    1648:	0a000005 	beq	1664 <IMFS_mknod+0x80>                        
    type = IMFS_FIFO;                                                 
  else  {                                                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    164c:	eb002cf8 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1650:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    1654:	ea00000d 	b	1690 <IMFS_mknod+0xac>                          <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
    type = IMFS_DIRECTORY;                                            
    1658:	e3a01001 	mov	r1, #1                                        
    165c:	ea000000 	b	1664 <IMFS_mknod+0x80>                          
  else if ( S_ISREG(mode) )                                           
    type = IMFS_MEMORY_FILE;                                          
    1660:	e3a01005 	mov	r1, #5                                        
  new_node = IMFS_create_node(                                        
    pathloc,                                                          
    type,                                                             
    new_name,                                                         
    mode,                                                             
    &info                                                             
    1664:	e28d3028 	add	r3, sp, #40	; 0x28                            
   *        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.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
    1668:	e58d3000 	str	r3, [sp]                                      
    166c:	e59d0054 	ldr	r0, [sp, #84]	; 0x54                          
    1670:	e28d2004 	add	r2, sp, #4                                    
    1674:	e1a03004 	mov	r3, r4                                        
    1678:	eb001c33 	bl	874c <IMFS_create_node>                        
    new_name,                                                         
    mode,                                                             
    &info                                                             
  );                                                                  
                                                                      
  if ( !new_node )                                                    
    167c:	e3500000 	cmp	r0, #0                                        
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  return 0;                                                           
    1680:	13a00000 	movne	r0, #0                                      
    new_name,                                                         
    mode,                                                             
    &info                                                             
  );                                                                  
                                                                      
  if ( !new_node )                                                    
    1684:	1a000003 	bne	1698 <IMFS_mknod+0xb4>                        
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
    1688:	eb002ce9 	bl	ca34 <__errno>                                 
    168c:	e3a0300c 	mov	r3, #12                                       
    1690:	e5803000 	str	r3, [r0]                                      
    1694:	e3e00000 	mvn	r0, #0                                        
                                                                      
  return 0;                                                           
}                                                                     
    1698:	e28dd040 	add	sp, sp, #64	; 0x40                            
    169c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

000016a0 <IMFS_mount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
    16a0:	e5903008 	ldr	r3, [r0, #8]                                  
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    16a4:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    16a8:	e3520001 	cmp	r2, #1                                        
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_mount(                                                       
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
    16ac:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    16b0:	0a000004 	beq	16c8 <IMFS_mount+0x28>                        
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    16b4:	eb002cde 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    16b8:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
    16bc:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    16c0:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    16c4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== 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;                              
    16c8:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
  return 0;                                                           
    16cc:	e3a00000 	mov	r0, #0                                        
}                                                                     
    16d0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00003798 <IMFS_print_jnode>: */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
    3798:	e92d4030 	push	{r4, r5, lr}                                 
  #if defined(RTEMS_DEBUG)                                            
    assert( the_jnode );                                              
  #endif                                                              
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
    379c:	e59f50e0 	ldr	r5, [pc, #224]	; 3884 <IMFS_print_jnode+0xec> 
    37a0:	e5953000 	ldr	r3, [r5]                                      
 */                                                                   
                                                                      
void IMFS_print_jnode(                                                
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
    37a4:	e1a04000 	mov	r4, r0                                        
  #if defined(RTEMS_DEBUG)                                            
    assert( the_jnode );                                              
  #endif                                                              
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
    37a8:	e5931008 	ldr	r1, [r3, #8]                                  
    37ac:	e280000c 	add	r0, r0, #12                                   
    37b0:	eb0033e3 	bl	10744 <fputs>                                  
  switch( the_jnode->type ) {                                         
    37b4:	e594204c 	ldr	r2, [r4, #76]	; 0x4c                          
    37b8:	e2423001 	sub	r3, r2, #1                                    
    37bc:	e3530006 	cmp	r3, #6                                        
    37c0:	979ff103 	ldrls	pc, [pc, r3, lsl #2]                        
    37c4:	ea000026 	b	3864 <IMFS_print_jnode+0xcc>                    <== NOT EXECUTED
    37c8:	000037e4 	.word	0x000037e4                                  <== NOT EXECUTED
    37cc:	000037f8 	.word	0x000037f8                                  <== NOT EXECUTED
    37d0:	00003844 	.word	0x00003844                                  <== NOT EXECUTED
    37d4:	00003844 	.word	0x00003844                                  <== NOT EXECUTED
    37d8:	0000382c 	.word	0x0000382c                                  <== NOT EXECUTED
    37dc:	00003810 	.word	0x00003810                                  <== NOT EXECUTED
    37e0:	00003850 	.word	0x00003850                                  <== NOT EXECUTED
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
    37e4:	e5953000 	ldr	r3, [r5]                                      
    37e8:	e3a0002f 	mov	r0, #47	; 0x2f                                
    37ec:	e5931008 	ldr	r1, [r3, #8]                                  
    37f0:	eb00339e 	bl	10670 <fputc>                                  
      break;                                                          
    37f4:	ea00001f 	b	3878 <IMFS_print_jnode+0xe0>                    
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
    37f8:	e5953000 	ldr	r3, [r5]                                      
    37fc:	e59f1084 	ldr	r1, [pc, #132]	; 3888 <IMFS_print_jnode+0xf0> 
    3800:	e5930008 	ldr	r0, [r3, #8]                                  
    3804:	e2842050 	add	r2, r4, #80	; 0x50                            
    3808:	e892000c 	ldm	r2, {r2, r3}                                  
    380c:	ea000004 	b	3824 <IMFS_print_jnode+0x8c>                    
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
    3810:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    3814:	e59f1070 	ldr	r1, [pc, #112]	; 388c <IMFS_print_jnode+0xf4> <== NOT EXECUTED
    3818:	e5930008 	ldr	r0, [r3, #8]                                  <== NOT EXECUTED
    381c:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          <== NOT EXECUTED
    3820:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          <== NOT EXECUTED
    3824:	eb003371 	bl	105f0 <fprintf>                                
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
    3828:	ea000012 	b	3878 <IMFS_print_jnode+0xe0>                    
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
    382c:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    3830:	e59f1058 	ldr	r1, [pc, #88]	; 3890 <IMFS_print_jnode+0xf8>  <== NOT EXECUTED
    3834:	e5930008 	ldr	r0, [r3, #8]                                  <== NOT EXECUTED
    3838:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          <== NOT EXECUTED
    383c:	eb00336b 	bl	105f0 <fprintf>                                <== NOT EXECUTED
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
    3840:	ea00000c 	b	3878 <IMFS_print_jnode+0xe0>                    <== NOT EXECUTED
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
    3844:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    3848:	e59f0044 	ldr	r0, [pc, #68]	; 3894 <IMFS_print_jnode+0xfc>  <== NOT EXECUTED
    384c:	ea000001 	b	3858 <IMFS_print_jnode+0xc0>                    <== NOT EXECUTED
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
    3850:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    3854:	e59f003c 	ldr	r0, [pc, #60]	; 3898 <IMFS_print_jnode+0x100> <== NOT EXECUTED
    3858:	e5931008 	ldr	r1, [r3, #8]                                  <== NOT EXECUTED
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
    385c:	e8bd4030 	pop	{r4, r5, lr}                                  <== NOT EXECUTED
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
    3860:	ea0033b7 	b	10744 <fputs>                                   <== NOT EXECUTED
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
    3864:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    3868:	e59f102c 	ldr	r1, [pc, #44]	; 389c <IMFS_print_jnode+0x104> <== NOT EXECUTED
    386c:	e5930008 	ldr	r0, [r3, #8]                                  <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
    3870:	e8bd4030 	pop	{r4, r5, lr}                                  <== NOT EXECUTED
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
    3874:	ea00335d 	b	105f0 <fprintf>                                 <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
    3878:	e59f0020 	ldr	r0, [pc, #32]	; 38a0 <IMFS_print_jnode+0x108> 
}                                                                     
    387c:	e8bd4030 	pop	{r4, r5, lr}                                  
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
    3880:	ea003aa3 	b	12314 <puts>                                    
                                                                      

000016e0 <IMFS_readlink>: ) { IMFS_jnode_t *node; int i; node = loc->node_access;
    16e0:	e5903000 	ldr	r3, [r0]                                      
                                                                      
  if ( node->type != IMFS_SYM_LINK )                                  
    16e4:	e593004c 	ldr	r0, [r3, #76]	; 0x4c                          
    16e8:	e3500004 	cmp	r0, #4                                        
int IMFS_readlink(                                                    
  rtems_filesystem_location_info_t  *loc,                             
 char                               *buf,         /* OUT */           
 size_t                             bufsize                           
)                                                                     
{                                                                     
    16ec:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  IMFS_jnode_t      *node;                                            
  int                i;                                               
                                                                      
  node = loc->node_access;                                            
                                                                      
  if ( node->type != IMFS_SYM_LINK )                                  
    16f0:	03a00000 	moveq	r0, #0                                      
    16f4:	0a000006 	beq	1714 <IMFS_readlink+0x34>                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    16f8:	eb002ccd 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    16fc:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    1700:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1704:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1708:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
    buf[i] = node->info.sym_link.name[i];                             
    170c:	e7c1c000 	strb	ip, [r1, r0]                                 
  node = loc->node_access;                                            
                                                                      
  if ( node->type != IMFS_SYM_LINK )                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
    1710:	e2800001 	add	r0, r0, #1                                    
    1714:	e1500002 	cmp	r0, r2                                        
    1718:	249df004 	popcs	{pc}		; (ldrcs pc, [sp], #4)                
    171c:	e593c050 	ldr	ip, [r3, #80]	; 0x50                          
    1720:	e7dcc000 	ldrb	ip, [ip, r0]                                 
    1724:	e35c0000 	cmp	ip, #0                                        
    1728:	1afffff7 	bne	170c <IMFS_readlink+0x2c>                     
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
    172c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00001730 <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 */ ) {
    1730:	e92d4033 	push	{r0, r1, r4, r5, lr}                         <== NOT EXECUTED
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
    1734:	e5914000 	ldr	r4, [r1]                                      <== NOT EXECUTED
  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 */        
)                                                                     
{                                                                     
    1738:	e1a05002 	mov	r5, r2                                        <== NOT EXECUTED
  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 );                
    173c:	e1a01003 	mov	r1, r3                                        <== NOT EXECUTED
    1740:	e284000c 	add	r0, r4, #12                                   <== NOT EXECUTED
    1744:	e3a02020 	mov	r2, #32                                       <== NOT EXECUTED
    1748:	eb0030c1 	bl	da54 <strncpy>                                 <== NOT EXECUTED
                                                                      
  if ( the_jnode->Parent != NULL )                                    
    174c:	e5943008 	ldr	r3, [r4, #8]                                  <== NOT EXECUTED
    1750:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    1754:	11a00004 	movne	r0, r4                                      <== NOT EXECUTED
    1758:	1b001044 	blne	5870 <_Chain_Extract>                        <== NOT EXECUTED
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
    175c:	e5950000 	ldr	r0, [r5]                                      <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
    1760:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
  the_jnode->Parent = new_parent;                                     
    1764:	e5840008 	str	r0, [r4, #8]                                  <== NOT EXECUTED
    1768:	e2800050 	add	r0, r0, #80	; 0x50                            <== NOT EXECUTED
    176c:	eb001034 	bl	5844 <_Chain_Append>                           <== NOT EXECUTED
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
    1770:	e1a0000d 	mov	r0, sp                                        <== NOT EXECUTED
    1774:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    1778:	eb000196 	bl	1dd8 <gettimeofday>                            <== NOT EXECUTED
    177c:	e59d3000 	ldr	r3, [sp]                                      <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
    1780:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
    1784:	e5843048 	str	r3, [r4, #72]	; 0x48                          <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
    1788:	e8bd803c 	pop	{r2, r3, r4, r5, pc}                          <== NOT EXECUTED
                                                                      

000092c4 <IMFS_stat>: { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access;
    92c4:	e5903000 	ldr	r3, [r0]                                      
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
    92c8:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    92cc:	e2422002 	sub	r2, r2, #2                                    
                                                                      
int IMFS_stat(                                                        
  rtems_filesystem_location_info_t *loc,                              
  struct stat                      *buf                               
)                                                                     
{                                                                     
    92d0:	e92d4800 	push	{fp, lr}                                     
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
    92d4:	e3520005 	cmp	r2, #5                                        
    92d8:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
    92dc:	ea000012 	b	932c <IMFS_stat+0x68>                           <== NOT EXECUTED
    92e0:	000092f8 	.word	0x000092f8                                  <== NOT EXECUTED
    92e4:	0000932c 	.word	0x0000932c                                  <== NOT EXECUTED
    92e8:	00009318 	.word	0x00009318                                  <== NOT EXECUTED
    92ec:	0000930c 	.word	0x0000930c                                  <== NOT EXECUTED
    92f0:	0000930c 	.word	0x0000930c                                  <== NOT EXECUTED
    92f4:	00009318 	.word	0x00009318                                  <== NOT EXECUTED
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
    92f8:	e5932054 	ldr	r2, [r3, #84]	; 0x54                          
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
    92fc:	e593c050 	ldr	ip, [r3, #80]	; 0x50                          
    9300:	e581201c 	str	r2, [r1, #28]                                 
    9304:	e581c018 	str	ip, [r1, #24]                                 
      break;                                                          
    9308:	ea00000c 	b	9340 <IMFS_stat+0x7c>                           
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
    930c:	e283c050 	add	ip, r3, #80	; 0x50                            
    9310:	e89c1800 	ldm	ip, {fp, ip}                                  
    9314:	ea000001 	b	9320 <IMFS_stat+0x5c>                           
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
    9318:	e3a0b000 	mov	fp, #0                                        
    931c:	e3a0c000 	mov	ip, #0                                        
    9320:	e581b020 	str	fp, [r1, #32]                                 
    9324:	e581c024 	str	ip, [r1, #36]	; 0x24                          
      break;                                                          
    9328:	ea000004 	b	9340 <IMFS_stat+0x7c>                           
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
    932c:	eb000dc0 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    9330:	e3a03086 	mov	r3, #134	; 0x86                               <== NOT EXECUTED
    9334:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    9338:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    933c:	e8bd8800 	pop	{fp, pc}                                      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
    9340:	e5902010 	ldr	r2, [r0, #16]                                 
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
    9344:	e5922034 	ldr	r2, [r2, #52]	; 0x34                          
    9348:	e5922000 	ldr	r2, [r2]                                      
  /*                                                                  
   * 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 =                                                       
    934c:	e5812004 	str	r2, [r1, #4]                                  
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
    9350:	e5932030 	ldr	r2, [r3, #48]	; 0x30                          
    9354:	e581200c 	str	r2, [r1, #12]                                 
  buf->st_nlink = the_jnode->st_nlink;                                
    9358:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
    935c:	e1c121b0 	strh	r2, [r1, #16]                                
  buf->st_ino   = the_jnode->st_ino;                                  
    9360:	e5932038 	ldr	r2, [r3, #56]	; 0x38                          
    9364:	e5812008 	str	r2, [r1, #8]                                  
  buf->st_uid   = the_jnode->st_uid;                                  
    9368:	e1d323bc 	ldrh	r2, [r3, #60]	; 0x3c                         
    936c:	e1c121b2 	strh	r2, [r1, #18]                                
  buf->st_gid   = the_jnode->st_gid;                                  
    9370:	e1d323be 	ldrh	r2, [r3, #62]	; 0x3e                         
    9374:	e1c121b4 	strh	r2, [r1, #20]                                
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
    9378:	e5932040 	ldr	r2, [r3, #64]	; 0x40                          
    937c:	e59f001c 	ldr	r0, [pc, #28]	; 93a0 <IMFS_stat+0xdc>         
    9380:	e5812028 	str	r2, [r1, #40]	; 0x28                          
  buf->st_mtime = the_jnode->stat_mtime;                              
    9384:	e2832044 	add	r2, r3, #68	; 0x44                            
    9388:	e892000c 	ldm	r2, {r2, r3}                                  
  /*                                                                  
   * 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 =                                                       
    938c:	e5810000 	str	r0, [r1]                                      
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
    9390:	e5812030 	str	r2, [r1, #48]	; 0x30                          
  buf->st_ctime = the_jnode->stat_ctime;                              
    9394:	e5813038 	str	r3, [r1, #56]	; 0x38                          
                                                                      
  return 0;                                                           
    9398:	e3a00000 	mov	r0, #0                                        
}                                                                     
    939c:	e8bd8800 	pop	{fp, pc}                                      
                                                                      

0000178c <IMFS_symlink>: int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) {
    178c:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    1790:	e1a05000 	mov	r5, r0                                        
    1794:	e24dd040 	sub	sp, sp, #64	; 0x40                            
  int                i;                                               
                                                                      
  /*                                                                  
   * Remove any separators at the end of the string.                  
   */                                                                 
  IMFS_get_token( node_name, strlen( node_name ), new_name, &i );     
    1798:	e1a00002 	mov	r0, r2                                        
int IMFS_symlink(                                                     
  rtems_filesystem_location_info_t  *parent_loc,                      
  const char                        *link_name,                       
  const char                        *node_name                        
)                                                                     
{                                                                     
    179c:	e1a06001 	mov	r6, r1                                        
    17a0:	e1a07002 	mov	r7, r2                                        
  int                i;                                               
                                                                      
  /*                                                                  
   * Remove any separators at the end of the string.                  
   */                                                                 
  IMFS_get_token( node_name, strlen( node_name ), new_name, &i );     
    17a4:	eb003092 	bl	d9f4 <strlen>                                  
    17a8:	e28d4004 	add	r4, sp, #4                                    
    17ac:	e1a01000 	mov	r1, r0                                        
    17b0:	e1a02004 	mov	r2, r4                                        
    17b4:	e28d303c 	add	r3, sp, #60	; 0x3c                            
    17b8:	e1a00007 	mov	r0, r7                                        
    17bc:	eb001e56 	bl	911c <IMFS_get_token>                          
                                                                      
  /*                                                                  
   * Duplicate link name                                              
   */                                                                 
  info.sym_link.name = strdup(link_name);                             
    17c0:	e1a00006 	mov	r0, r6                                        
    17c4:	eb003076 	bl	d9a4 <strdup>                                  
  if (info.sym_link.name == NULL) {                                   
    17c8:	e3500000 	cmp	r0, #0                                        
  IMFS_get_token( node_name, strlen( node_name ), new_name, &i );     
                                                                      
  /*                                                                  
   * Duplicate link name                                              
   */                                                                 
  info.sym_link.name = strdup(link_name);                             
    17cc:	e58d0028 	str	r0, [sp, #40]	; 0x28                          
  if (info.sym_link.name == NULL) {                                   
    17d0:	0a00000b 	beq	1804 <IMFS_symlink+0x78>                      
  new_node = IMFS_create_node(                                        
    parent_loc,                                                       
    IMFS_SYM_LINK,                                                    
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
    17d4:	e28d3028 	add	r3, sp, #40	; 0x28                            
   *        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.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
    17d8:	e58d3000 	str	r3, [sp]                                      
    17dc:	e1a00005 	mov	r0, r5                                        
    17e0:	e3a01004 	mov	r1, #4                                        
    17e4:	e1a02004 	mov	r2, r4                                        
    17e8:	e59f302c 	ldr	r3, [pc, #44]	; 181c <IMFS_symlink+0x90>      
    17ec:	eb001bd6 	bl	874c <IMFS_create_node>                        
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
  );                                                                  
                                                                      
  if (new_node == NULL) {                                             
    17f0:	e3500000 	cmp	r0, #0                                        
    free(info.sym_link.name);                                         
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
  }                                                                   
                                                                      
  return 0;                                                           
    17f4:	13a00000 	movne	r0, #0                                      
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
  );                                                                  
                                                                      
  if (new_node == NULL) {                                             
    17f8:	1a000005 	bne	1814 <IMFS_symlink+0x88>                      
    free(info.sym_link.name);                                         
    17fc:	e59d0028 	ldr	r0, [sp, #40]	; 0x28                          <== NOT EXECUTED
    1800:	eb00014b 	bl	1d34 <free>                                    <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
    1804:	eb002c8a 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1808:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    180c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1810:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    1814:	e28dd040 	add	sp, sp, #64	; 0x40                            
    1818:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

00001820 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
    1820:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
    1824:	e5915000 	ldr	r5, [r1]                                      
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
    1828:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    182c:	e3530003 	cmp	r3, #3                                        
                                                                      
int IMFS_unlink(                                                      
  rtems_filesystem_location_info_t  *parentloc, /* IN */              
  rtems_filesystem_location_info_t  *loc        /* IN */              
)                                                                     
{                                                                     
    1830:	e24dd01c 	sub	sp, sp, #28                                   
    1834:	e1a06000 	mov	r6, r0                                        
    1838:	e1a04001 	mov	r4, r1                                        
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
    183c:	1a000024 	bne	18d4 <IMFS_unlink+0xb4>                       
                                                                      
    if ( !node->info.hard_link.link_node )                            
    1840:	e595e050 	ldr	lr, [r5, #80]	; 0x50                          
    1844:	e35e0000 	cmp	lr, #0                                        
    1848:	1a000003 	bne	185c <IMFS_unlink+0x3c>                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    184c:	eb002c78 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1850:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    1854:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1858:	ea000023 	b	18ec <IMFS_unlink+0xcc>                         <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
    185c:	e1a07001 	mov	r7, r1                                        
    1860:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    1864:	e1a0c00d 	mov	ip, sp                                        
    1868:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    186c:	e5973000 	ldr	r3, [r7]                                      
    the_link.node_access = node->info.hard_link.link_node;            
    1870:	e28d701c 	add	r7, sp, #28                                   
    1874:	e527e01c 	str	lr, [r7, #-28]!                               
    IMFS_Set_handlers( &the_link );                                   
    1878:	e1a0000d 	mov	r0, sp                                        
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
    187c:	e58c3000 	str	r3, [ip]                                      
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
    1880:	eb001c0f 	bl	88c4 <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)               
    1884:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
    1888:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
    188c:	e3520001 	cmp	r2, #1                                        
    1890:	1a000007 	bne	18b4 <IMFS_unlink+0x94>                       
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
    1894:	e1a00006 	mov	r0, r6                                        
    1898:	e1a0100d 	mov	r1, sp                                        
    189c:	e59d3008 	ldr	r3, [sp, #8]                                  
    18a0:	e1a0e00f 	mov	lr, pc                                        
    18a4:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
        if ( result != 0 )                                            
    18a8:	e3500000 	cmp	r0, #0                                        
    18ac:	0a000008 	beq	18d4 <IMFS_unlink+0xb4>                       
    18b0:	ea00000d 	b	18ec <IMFS_unlink+0xcc>                         
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
    18b4:	e2422001 	sub	r2, r2, #1                                    
    18b8:	e1c323b4 	strh	r2, [r3, #52]	; 0x34                         
        IMFS_update_ctime( node->info.hard_link.link_node );          
    18bc:	e28d0014 	add	r0, sp, #20                                   
    18c0:	e3a01000 	mov	r1, #0                                        
    18c4:	eb000143 	bl	1dd8 <gettimeofday>                            
    18c8:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
    18cc:	e59d2014 	ldr	r2, [sp, #20]                                 
    18d0:	e5832048 	str	r2, [r3, #72]	; 0x48                          
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
    18d4:	e5943008 	ldr	r3, [r4, #8]                                  
    18d8:	e1a00006 	mov	r0, r6                                        
    18dc:	e1a01004 	mov	r1, r4                                        
    18e0:	e1a0e00f 	mov	lr, pc                                        
    18e4:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
                                                                      
  return result;                                                      
    18e8:	ea000000 	b	18f0 <IMFS_unlink+0xd0>                         
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
        if ( result != 0 )                                            
            return -1;                                                
    18ec:	e3e00000 	mvn	r0, #0                                        
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
                                                                      
  return result;                                                      
}                                                                     
    18f0:	e28dd01c 	add	sp, sp, #28                                   
    18f4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

000018f8 <IMFS_unmount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
    18f8:	e5903008 	ldr	r3, [r0, #8]                                  
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    18fc:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    1900:	e3520001 	cmp	r2, #1                                        
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_unmount(                                                     
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
    1904:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    1908:	0a000002 	beq	1918 <IMFS_unmount+0x20>                      
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    190c:	eb002c48 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1910:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
    1914:	ea000004 	b	192c <IMFS_unmount+0x34>                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
    1918:	e593205c 	ldr	r2, [r3, #92]	; 0x5c                          
    191c:	e3520000 	cmp	r2, #0                                        
    1920:	1a000004 	bne	1938 <IMFS_unmount+0x40>                      
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
    1924:	eb002c42 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1928:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    192c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1930:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1934:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== 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;                                  
    1938:	e3a00000 	mov	r0, #0                                        
    193c:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
                                                                      
  return 0;                                                           
}                                                                     
    1940:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00001294 <Stack_check_Initialize>: Stack_check_Dope_stack(&Stack_check_Interrupt_stack); } #endif Stack_check_Initialized = 1; }
    1294:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00014c58 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) {
   14c58:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
   14c5c:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
   14c60:	e1520003 	cmp	r2, r3                                        
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
   14c64:	e1a06000 	mov	r6, r0                                        
   14c68:	e1a0a001 	mov	sl, r1                                        
   14c6c:	e1a07002 	mov	r7, r2                                        
   14c70:	e59d8020 	ldr	r8, [sp, #32]                                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
   14c74:	8a000013 	bhi	14cc8 <_CORE_message_queue_Broadcast+0x70>    
   *  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 ) {         
   14c78:	e5905048 	ldr	r5, [r0, #72]	; 0x48                          
   14c7c:	e3550000 	cmp	r5, #0                                        
    *count = 0;                                                       
   14c80:	13a00000 	movne	r0, #0                                      
   14c84:	15880000 	strne	r0, [r8]                                    
   *  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 ) {         
   14c88:	0a000007 	beq	14cac <_CORE_message_queue_Broadcast+0x54>    
   14c8c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
   14c90:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
   14c94:	e1a0100a 	mov	r1, sl                                        
   14c98:	e1a02007 	mov	r2, r7                                        
   14c9c:	eb002226 	bl	1d53c <memcpy>                                 
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
   14ca0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
   14ca4:	e5837000 	str	r7, [r3]                                      
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
   14ca8:	e2855001 	add	r5, r5, #1                                    
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
   14cac:	e1a00006 	mov	r0, r6                                        
   14cb0:	eb0009db 	bl	17424 <_Thread_queue_Dequeue>                  
   14cb4:	e2504000 	subs	r4, r0, #0                                   
   14cb8:	1afffff4 	bne	14c90 <_CORE_message_queue_Broadcast+0x38>    
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
   14cbc:	e5885000 	str	r5, [r8]                                      
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
   14cc0:	e1a00004 	mov	r0, r4                                        
   14cc4:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  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;                    
   14cc8:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
   14ccc:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

00006d04 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
    6d04:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
    6d08:	e5903014 	ldr	r3, [r0, #20]                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
    6d0c:	e24dd030 	sub	sp, sp, #48	; 0x30                            
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
    6d10:	e58d3024 	str	r3, [sp, #36]	; 0x24                          
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
    6d14:	e5903024 	ldr	r3, [r0, #36]	; 0x24                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
    6d18:	e59f4500 	ldr	r4, [pc, #1280]	; 7220 <_Heap_Walk+0x51c>     
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  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;                    
    6d1c:	e58d3028 	str	r3, [sp, #40]	; 0x28                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
    6d20:	e59f34fc 	ldr	r3, [pc, #1276]	; 7224 <_Heap_Walk+0x520>     
    6d24:	e31200ff 	tst	r2, #255	; 0xff                               
    6d28:	11a04003 	movne	r4, r3                                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    6d2c:	e59f34f4 	ldr	r3, [pc, #1268]	; 7228 <_Heap_Walk+0x524>     
    6d30:	e5933000 	ldr	r3, [r3]                                      
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
    6d34:	e590c020 	ldr	ip, [r0, #32]                                 
  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() ) ) {                
    6d38:	e3530003 	cmp	r3, #3                                        
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
    6d3c:	e1a06000 	mov	r6, r0                                        
    6d40:	e1a05001 	mov	r5, r1                                        
  uintptr_t const page_size = heap->page_size;                        
    6d44:	e5909010 	ldr	r9, [r0, #16]                                 
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
    6d48:	e58dc020 	str	ip, [sp, #32]                                 
  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() ) ) {                
    6d4c:	1a000127 	bne	71f0 <_Heap_Walk+0x4ec>                       
  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)(                                                         
    6d50:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
    6d54:	e58dc000 	str	ip, [sp]                                      
    6d58:	e5903018 	ldr	r3, [r0, #24]                                 
    6d5c:	e58d3004 	str	r3, [sp, #4]                                  
    6d60:	e590301c 	ldr	r3, [r0, #28]                                 
    6d64:	e59d2020 	ldr	r2, [sp, #32]                                 
    6d68:	e58d3008 	str	r3, [sp, #8]                                  
    6d6c:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    6d70:	e58d200c 	str	r2, [sp, #12]                                 
    6d74:	e58d3010 	str	r3, [sp, #16]                                 
    6d78:	e5903008 	ldr	r3, [r0, #8]                                  
    6d7c:	e58d3014 	str	r3, [sp, #20]                                 
    6d80:	e590300c 	ldr	r3, [r0, #12]                                 
    6d84:	e59f24a0 	ldr	r2, [pc, #1184]	; 722c <_Heap_Walk+0x528>     
    6d88:	e58d3018 	str	r3, [sp, #24]                                 
    6d8c:	e1a00001 	mov	r0, r1                                        
    6d90:	e1a03009 	mov	r3, r9                                        
    6d94:	e3a01000 	mov	r1, #0                                        
    6d98:	e1a0e00f 	mov	lr, pc                                        
    6d9c:	e12fff14 	bx	r4                                             
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    6da0:	e3590000 	cmp	r9, #0                                        
    6da4:	1a000006 	bne	6dc4 <_Heap_Walk+0xc0>                        
    (*printer)( source, true, "page size is zero\n" );                
    6da8:	e1a00005 	mov	r0, r5                                        
    6dac:	e3a01001 	mov	r1, #1                                        
    6db0:	e59f2478 	ldr	r2, [pc, #1144]	; 7230 <_Heap_Walk+0x52c>     
    6db4:	e1a0e00f 	mov	lr, pc                                        
    6db8:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    6dbc:	e1a08009 	mov	r8, r9                                        
    6dc0:	ea00010b 	b	71f4 <_Heap_Walk+0x4f0>                         
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    6dc4:	e2198003 	ands	r8, r9, #3                                   
    (*printer)(                                                       
    6dc8:	11a00005 	movne	r0, r5                                      
    6dcc:	13a01001 	movne	r1, #1                                      
    6dd0:	159f245c 	ldrne	r2, [pc, #1116]	; 7234 <_Heap_Walk+0x530>   
    6dd4:	11a03009 	movne	r3, r9                                      
    6dd8:	1a00010c 	bne	7210 <_Heap_Walk+0x50c>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    6ddc:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
    6de0:	e1a01009 	mov	r1, r9                                        
    6de4:	ebffe76e 	bl	ba4 <__umodsi3>                                
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    6de8:	e250b000 	subs	fp, r0, #0                                   
    6dec:	0a000006 	beq	6e0c <_Heap_Walk+0x108>                       
    (*printer)(                                                       
    6df0:	e1a00005 	mov	r0, r5                                        
    6df4:	e3a01001 	mov	r1, #1                                        
    6df8:	e59f2438 	ldr	r2, [pc, #1080]	; 7238 <_Heap_Walk+0x534>     
    6dfc:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
    6e00:	e1a0e00f 	mov	lr, pc                                        
    6e04:	e12fff14 	bx	r4                                             
    6e08:	ea0000f9 	b	71f4 <_Heap_Walk+0x4f0>                         
    6e0c:	e59dc020 	ldr	ip, [sp, #32]                                 
    6e10:	e1a01009 	mov	r1, r9                                        
    6e14:	e28c0008 	add	r0, ip, #8                                    
    6e18:	ebffe761 	bl	ba4 <__umodsi3>                                
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
    6e1c:	e250a000 	subs	sl, r0, #0                                   
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
    6e20:	11a00005 	movne	r0, r5                                      
    6e24:	13a01001 	movne	r1, #1                                      
    6e28:	159f240c 	ldrne	r2, [pc, #1036]	; 723c <_Heap_Walk+0x538>   
    6e2c:	159d3020 	ldrne	r3, [sp, #32]                               
    6e30:	1a0000cc 	bne	7168 <_Heap_Walk+0x464>                       
  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;                 
    6e34:	e59d2020 	ldr	r2, [sp, #32]                                 
    6e38:	e5928004 	ldr	r8, [r2, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    6e3c:	e2188001 	ands	r8, r8, #1                                   
    (*printer)(                                                       
    6e40:	01a00005 	moveq	r0, r5                                      
    6e44:	03a01001 	moveq	r1, #1                                      
    6e48:	059f23f0 	ldreq	r2, [pc, #1008]	; 7240 <_Heap_Walk+0x53c>   
    6e4c:	0a000009 	beq	6e78 <_Heap_Walk+0x174>                       
    - 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;                
    6e50:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    6e54:	e5937004 	ldr	r7, [r3, #4]                                  
    6e58:	e3c77001 	bic	r7, r7, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    6e5c:	e0837007 	add	r7, r3, r7                                    
  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;                 
    6e60:	e5978004 	ldr	r8, [r7, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    6e64:	e2188001 	ands	r8, r8, #1                                   
    6e68:	1a000005 	bne	6e84 <_Heap_Walk+0x180>                       
    (*printer)(                                                       
    6e6c:	e59f23d0 	ldr	r2, [pc, #976]	; 7244 <_Heap_Walk+0x540>      
    6e70:	e1a00005 	mov	r0, r5                                        
    6e74:	e3a01001 	mov	r1, #1                                        
    6e78:	e1a0e00f 	mov	lr, pc                                        
    6e7c:	e12fff14 	bx	r4                                             
    6e80:	ea0000db 	b	71f4 <_Heap_Walk+0x4f0>                         
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
    6e84:	e59dc020 	ldr	ip, [sp, #32]                                 
    6e88:	e157000c 	cmp	r7, ip                                        
    6e8c:	0a000006 	beq	6eac <_Heap_Walk+0x1a8>                       
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
    6e90:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6e94:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
    6e98:	e59f23a8 	ldr	r2, [pc, #936]	; 7248 <_Heap_Walk+0x544>      <== NOT EXECUTED
    6e9c:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    6ea0:	e12fff14 	bx	r4                                             <== NOT EXECUTED
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    6ea4:	e1a0800a 	mov	r8, sl                                        <== NOT EXECUTED
    6ea8:	ea0000d1 	b	71f4 <_Heap_Walk+0x4f0>                         <== NOT EXECUTED
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
    6eac:	e596b010 	ldr	fp, [r6, #16]                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    6eb0:	e5968008 	ldr	r8, [r6, #8]                                  
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
    6eb4:	e1a0a006 	mov	sl, r6                                        
    6eb8:	ea000034 	b	6f90 <_Heap_Walk+0x28c>                         
  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;             
    6ebc:	e5963020 	ldr	r3, [r6, #32]                                 
    6ec0:	e1530008 	cmp	r3, r8                                        
    6ec4:	83a0c000 	movhi	ip, #0                                      
    6ec8:	8a000003 	bhi	6edc <_Heap_Walk+0x1d8>                       
    6ecc:	e596c024 	ldr	ip, [r6, #36]	; 0x24                          
    6ed0:	e15c0008 	cmp	ip, r8                                        
    6ed4:	33a0c000 	movcc	ip, #0                                      
    6ed8:	23a0c001 	movcs	ip, #1                                      
  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 ) ) {              
    6edc:	e21cc0ff 	ands	ip, ip, #255	; 0xff                          
      (*printer)(                                                     
    6ee0:	01a00005 	moveq	r0, r5                                      
    6ee4:	03a01001 	moveq	r1, #1                                      
    6ee8:	059f235c 	ldreq	r2, [pc, #860]	; 724c <_Heap_Walk+0x548>    
    6eec:	0a000012 	beq	6f3c <_Heap_Walk+0x238>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    6ef0:	e2880008 	add	r0, r8, #8                                    
    6ef4:	e1a0100b 	mov	r1, fp                                        
    6ef8:	ebffe729 	bl	ba4 <__umodsi3>                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
    6efc:	e250c000 	subs	ip, r0, #0                                   
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
    6f00:	11a00005 	movne	r0, r5                                      
    6f04:	13a01001 	movne	r1, #1                                      
    6f08:	159f2340 	ldrne	r2, [pc, #832]	; 7250 <_Heap_Walk+0x54c>    
    6f0c:	11a03008 	movne	r3, r8                                      
    6f10:	1a0000be 	bne	7210 <_Heap_Walk+0x50c>                       
    - 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;                
    6f14:	e5983004 	ldr	r3, [r8, #4]                                  
    6f18:	e3c33001 	bic	r3, r3, #1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    6f1c:	e0883003 	add	r3, r8, r3                                    
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
    6f20:	e5933004 	ldr	r3, [r3, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
    6f24:	e2133001 	ands	r3, r3, #1                                   
    6f28:	e58d302c 	str	r3, [sp, #44]	; 0x2c                          
    6f2c:	0a000009 	beq	6f58 <_Heap_Walk+0x254>                       
      (*printer)(                                                     
    6f30:	e59f231c 	ldr	r2, [pc, #796]	; 7254 <_Heap_Walk+0x550>      
    6f34:	e1a00005 	mov	r0, r5                                        
    6f38:	e3a01001 	mov	r1, #1                                        
    6f3c:	e1a03008 	mov	r3, r8                                        
    6f40:	e58dc01c 	str	ip, [sp, #28]                                 
    6f44:	e1a0e00f 	mov	lr, pc                                        
    6f48:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    6f4c:	e59dc01c 	ldr	ip, [sp, #28]                                 
    6f50:	e1a0800c 	mov	r8, ip                                        
    6f54:	ea0000a6 	b	71f4 <_Heap_Walk+0x4f0>                         
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
    6f58:	e598300c 	ldr	r3, [r8, #12]                                 
    6f5c:	e153000a 	cmp	r3, sl                                        
    6f60:	0a000008 	beq	6f88 <_Heap_Walk+0x284>                       
      (*printer)(                                                     
    6f64:	e58d3000 	str	r3, [sp]                                      
    6f68:	e1a00005 	mov	r0, r5                                        
    6f6c:	e1a03008 	mov	r3, r8                                        
    6f70:	e3a01001 	mov	r1, #1                                        
    6f74:	e59f22dc 	ldr	r2, [pc, #732]	; 7258 <_Heap_Walk+0x554>      
    6f78:	e1a0e00f 	mov	lr, pc                                        
    6f7c:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    6f80:	e59d802c 	ldr	r8, [sp, #44]	; 0x2c                          
    6f84:	ea00009a 	b	71f4 <_Heap_Walk+0x4f0>                         
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
    6f88:	e1a0a008 	mov	sl, r8                                        
    6f8c:	e5988008 	ldr	r8, [r8, #8]                                  
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    6f90:	e1580006 	cmp	r8, r6                                        
    6f94:	1affffc8 	bne	6ebc <_Heap_Walk+0x1b8>                       
    6f98:	ea000000 	b	6fa0 <_Heap_Walk+0x29c>                         
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
    6f9c:	e1a07008 	mov	r7, r8                                        
                                                                      
  return true;                                                        
}                                                                     
    6fa0:	e5973004 	ldr	r3, [r7, #4]                                  
  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;             
    6fa4:	e5962020 	ldr	r2, [r6, #32]                                 
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
    6fa8:	e3c3a001 	bic	sl, r3, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    6fac:	e087800a 	add	r8, r7, sl                                    
  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;             
    6fb0:	e1520008 	cmp	r2, r8                                        
    6fb4:	83a0b000 	movhi	fp, #0                                      
    6fb8:	8a000003 	bhi	6fcc <_Heap_Walk+0x2c8>                       
    6fbc:	e596b024 	ldr	fp, [r6, #36]	; 0x24                          
    6fc0:	e15b0008 	cmp	fp, r8                                        
    6fc4:	33a0b000 	movcc	fp, #0                                      
    6fc8:	23a0b001 	movcs	fp, #1                                      
    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 ) ) {              
    6fcc:	e21bb0ff 	ands	fp, fp, #255	; 0xff                          
    6fd0:	1a000007 	bne	6ff4 <_Heap_Walk+0x2f0>                       
      (*printer)(                                                     
    6fd4:	e58d8000 	str	r8, [sp]                                      
    6fd8:	e1a00005 	mov	r0, r5                                        
    6fdc:	e3a01001 	mov	r1, #1                                        
    6fe0:	e59f2274 	ldr	r2, [pc, #628]	; 725c <_Heap_Walk+0x558>      
    6fe4:	e1a03007 	mov	r3, r7                                        
    6fe8:	e1a0e00f 	mov	lr, pc                                        
    6fec:	e12fff14 	bx	r4                                             
    6ff0:	ea00005e 	b	7170 <_Heap_Walk+0x46c>                         
    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;               
    6ff4:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    6ff8:	e1a0000a 	mov	r0, sl                                        
    6ffc:	e1a01009 	mov	r1, r9                                        
    7000:	e057b002 	subs	fp, r7, r2                                   
    7004:	13a0b001 	movne	fp, #1                                      
    7008:	e58d301c 	str	r3, [sp, #28]                                 
    700c:	ebffe6e4 	bl	ba4 <__umodsi3>                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
    7010:	e3500000 	cmp	r0, #0                                        
    7014:	e59d301c 	ldr	r3, [sp, #28]                                 
    7018:	0a000005 	beq	7034 <_Heap_Walk+0x330>                       
    701c:	e35b0000 	cmp	fp, #0                                        
      (*printer)(                                                     
    7020:	158da000 	strne	sl, [sp]                                    
    7024:	11a00005 	movne	r0, r5                                      
    7028:	13a01001 	movne	r1, #1                                      
    702c:	159f222c 	ldrne	r2, [pc, #556]	; 7260 <_Heap_Walk+0x55c>    
    7030:	1a000014 	bne	7088 <_Heap_Walk+0x384>                       
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
    7034:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
    7038:	e15a000c 	cmp	sl, ip                                        
    703c:	2a000009 	bcs	7068 <_Heap_Walk+0x364>                       
    7040:	e35b0000 	cmp	fp, #0                                        
    7044:	0a000007 	beq	7068 <_Heap_Walk+0x364>                       
      (*printer)(                                                     
    7048:	e88d1400 	stm	sp, {sl, ip}                                  
    704c:	e1a00005 	mov	r0, r5                                        
    7050:	e3a01001 	mov	r1, #1                                        
    7054:	e59f2208 	ldr	r2, [pc, #520]	; 7264 <_Heap_Walk+0x560>      
    7058:	e1a03007 	mov	r3, r7                                        
    705c:	e1a0e00f 	mov	lr, pc                                        
    7060:	e12fff14 	bx	r4                                             
    7064:	ea00006b 	b	7218 <_Heap_Walk+0x514>                         
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
    7068:	e1580007 	cmp	r8, r7                                        
    706c:	8a000009 	bhi	7098 <_Heap_Walk+0x394>                       
    7070:	e35b0000 	cmp	fp, #0                                        
    7074:	0a000007 	beq	7098 <_Heap_Walk+0x394>                       
      (*printer)(                                                     
    7078:	e58d8000 	str	r8, [sp]                                      
    707c:	e59f21e4 	ldr	r2, [pc, #484]	; 7268 <_Heap_Walk+0x564>      
    7080:	e1a00005 	mov	r0, r5                                        
    7084:	e3a01001 	mov	r1, #1                                        
    7088:	e1a03007 	mov	r3, r7                                        
    708c:	e1a0e00f 	mov	lr, pc                                        
    7090:	e12fff14 	bx	r4                                             
    7094:	ea00005f 	b	7218 <_Heap_Walk+0x514>                         
  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;                 
    7098:	e203b001 	and	fp, r3, #1                                    
    709c:	e5983004 	ldr	r3, [r8, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
    70a0:	e3130001 	tst	r3, #1                                        
    70a4:	1a00003b 	bne	7198 <_Heap_Walk+0x494>                       
    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 ?                                 
    70a8:	e597200c 	ldr	r2, [r7, #12]                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
    70ac:	e5963008 	ldr	r3, [r6, #8]                                  
    70b0:	e1520003 	cmp	r2, r3                                        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    70b4:	e596100c 	ldr	r1, [r6, #12]                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
    70b8:	059f01ac 	ldreq	r0, [pc, #428]	; 726c <_Heap_Walk+0x568>    
    70bc:	0a000003 	beq	70d0 <_Heap_Walk+0x3cc>                       
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    70c0:	e59f31a8 	ldr	r3, [pc, #424]	; 7270 <_Heap_Walk+0x56c>      
    70c4:	e1520006 	cmp	r2, r6                                        
    70c8:	e59f01a4 	ldr	r0, [pc, #420]	; 7274 <_Heap_Walk+0x570>      
    70cc:	01a00003 	moveq	r0, r3                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
    70d0:	e5973008 	ldr	r3, [r7, #8]                                  
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
    70d4:	e1530001 	cmp	r3, r1                                        
    70d8:	059f1198 	ldreq	r1, [pc, #408]	; 7278 <_Heap_Walk+0x574>    
    70dc:	0a000003 	beq	70f0 <_Heap_Walk+0x3ec>                       
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
    70e0:	e59fc194 	ldr	ip, [pc, #404]	; 727c <_Heap_Walk+0x578>      
    70e4:	e1530006 	cmp	r3, r6                                        
    70e8:	e59f1184 	ldr	r1, [pc, #388]	; 7274 <_Heap_Walk+0x570>      
    70ec:	01a0100c 	moveq	r1, ip                                      
  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)(                                                         
    70f0:	e58d2004 	str	r2, [sp, #4]                                  
    70f4:	e58d0008 	str	r0, [sp, #8]                                  
    70f8:	e58d300c 	str	r3, [sp, #12]                                 
    70fc:	e58d1010 	str	r1, [sp, #16]                                 
    7100:	e1a03007 	mov	r3, r7                                        
    7104:	e58da000 	str	sl, [sp]                                      
    7108:	e1a00005 	mov	r0, r5                                        
    710c:	e3a01000 	mov	r1, #0                                        
    7110:	e59f2168 	ldr	r2, [pc, #360]	; 7280 <_Heap_Walk+0x57c>      
    7114:	e1a0e00f 	mov	lr, pc                                        
    7118:	e12fff14 	bx	r4                                             
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    711c:	e5983000 	ldr	r3, [r8]                                      
    7120:	e15a0003 	cmp	sl, r3                                        
    7124:	0a000009 	beq	7150 <_Heap_Walk+0x44c>                       
    (*printer)(                                                       
    7128:	e58d3004 	str	r3, [sp, #4]                                  
    712c:	e58da000 	str	sl, [sp]                                      
    7130:	e58d8008 	str	r8, [sp, #8]                                  
    7134:	e1a00005 	mov	r0, r5                                        
    7138:	e3a01001 	mov	r1, #1                                        
    713c:	e59f2140 	ldr	r2, [pc, #320]	; 7284 <_Heap_Walk+0x580>      
    7140:	e1a03007 	mov	r3, r7                                        
    7144:	e1a0e00f 	mov	lr, pc                                        
    7148:	e12fff14 	bx	r4                                             
    714c:	ea000031 	b	7218 <_Heap_Walk+0x514>                         
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    7150:	e35b0000 	cmp	fp, #0                                        
    7154:	1a000007 	bne	7178 <_Heap_Walk+0x474>                       
    (*printer)(                                                       
    7158:	e59f2128 	ldr	r2, [pc, #296]	; 7288 <_Heap_Walk+0x584>      
    715c:	e1a00005 	mov	r0, r5                                        
    7160:	e3a01001 	mov	r1, #1                                        
    7164:	e1a03007 	mov	r3, r7                                        
    7168:	e1a0e00f 	mov	lr, pc                                        
    716c:	e12fff14 	bx	r4                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
    7170:	e1a0800b 	mov	r8, fp                                        
    7174:	ea00001e 	b	71f4 <_Heap_Walk+0x4f0>                         
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    7178:	e5963008 	ldr	r3, [r6, #8]                                  
    717c:	ea000002 	b	718c <_Heap_Walk+0x488>                         
{                                                                     
  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 ) {                                      
    7180:	e1530007 	cmp	r3, r7                                        
    7184:	0a000016 	beq	71e4 <_Heap_Walk+0x4e0>                       
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
    7188:	e5933008 	ldr	r3, [r3, #8]                                  
)                                                                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    718c:	e1530006 	cmp	r3, r6                                        
    7190:	1afffffa 	bne	7180 <_Heap_Walk+0x47c>                       
    7194:	ea000019 	b	7200 <_Heap_Walk+0x4fc>                         
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
    7198:	e35b0000 	cmp	fp, #0                                        
    719c:	0a000007 	beq	71c0 <_Heap_Walk+0x4bc>                       
      (*printer)(                                                     
    71a0:	e58da000 	str	sl, [sp]                                      
    71a4:	e1a00005 	mov	r0, r5                                        
    71a8:	e3a01000 	mov	r1, #0                                        
    71ac:	e59f20d8 	ldr	r2, [pc, #216]	; 728c <_Heap_Walk+0x588>      
    71b0:	e1a03007 	mov	r3, r7                                        
    71b4:	e1a0e00f 	mov	lr, pc                                        
    71b8:	e12fff14 	bx	r4                                             
    71bc:	ea000008 	b	71e4 <_Heap_Walk+0x4e0>                         
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
    71c0:	e58da000 	str	sl, [sp]                                      
    71c4:	e5973000 	ldr	r3, [r7]                                      
    71c8:	e1a00005 	mov	r0, r5                                        
    71cc:	e58d3004 	str	r3, [sp, #4]                                  
    71d0:	e1a0100b 	mov	r1, fp                                        
    71d4:	e59f20b4 	ldr	r2, [pc, #180]	; 7290 <_Heap_Walk+0x58c>      
    71d8:	e1a03007 	mov	r3, r7                                        
    71dc:	e1a0e00f 	mov	lr, pc                                        
    71e0:	e12fff14 	bx	r4                                             
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
    71e4:	e59d2020 	ldr	r2, [sp, #32]                                 
    71e8:	e1580002 	cmp	r8, r2                                        
    71ec:	1affff6a 	bne	6f9c <_Heap_Walk+0x298>                       
  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() ) ) {                
    return true;                                                      
    71f0:	e3a08001 	mov	r8, #1                                        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    71f4:	e1a00008 	mov	r0, r8                                        
    71f8:	e28dd030 	add	sp, sp, #48	; 0x30                            
    71fc:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
    7200:	e59f208c 	ldr	r2, [pc, #140]	; 7294 <_Heap_Walk+0x590>      
    7204:	e1a00005 	mov	r0, r5                                        
    7208:	e3a01001 	mov	r1, #1                                        
    720c:	e1a03007 	mov	r3, r7                                        
    7210:	e1a0e00f 	mov	lr, pc                                        
    7214:	e12fff14 	bx	r4                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
    7218:	e3a08000 	mov	r8, #0                                        
    721c:	eafffff4 	b	71f4 <_Heap_Walk+0x4f0>                         
                                                                      

00007b60 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
    7b60:	e92d4031 	push	{r0, r4, r5, lr}                             
    7b64:	e1a05001 	mov	r5, r1                                        
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
    7b68:	e2501000 	subs	r1, r0, #0                                   
    7b6c:	059f3078 	ldreq	r3, [pc, #120]	; 7bec <_Objects_Id_to_name+0x8c>
    7b70:	05933004 	ldreq	r3, [r3, #4]                                
    7b74:	05931008 	ldreq	r1, [r3, #8]                                
    7b78:	e1a03c21 	lsr	r3, r1, #24                                   
    7b7c:	e2033007 	and	r3, r3, #7                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
    7b80:	e2432001 	sub	r2, r3, #1                                    
    7b84:	e3520002 	cmp	r2, #2                                        
    7b88:	8a000010 	bhi	7bd0 <_Objects_Id_to_name+0x70>               
    7b8c:	ea000011 	b	7bd8 <_Objects_Id_to_name+0x78>                 
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
    7b90:	e1a02da1 	lsr	r2, r1, #27                                   
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
    7b94:	e7930102 	ldr	r0, [r3, r2, lsl #2]                          
  if ( !information )                                                 
    7b98:	e3500000 	cmp	r0, #0                                        
    7b9c:	0a00000b 	beq	7bd0 <_Objects_Id_to_name+0x70>               
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
    7ba0:	e5d04038 	ldrb	r4, [r0, #56]	; 0x38                         
    7ba4:	e3540000 	cmp	r4, #0                                        
    7ba8:	1a000008 	bne	7bd0 <_Objects_Id_to_name+0x70>               
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
    7bac:	e1a0200d 	mov	r2, sp                                        
    7bb0:	ebffffd0 	bl	7af8 <_Objects_Get>                            
  if ( !the_object )                                                  
    7bb4:	e3500000 	cmp	r0, #0                                        
    7bb8:	0a000004 	beq	7bd0 <_Objects_Id_to_name+0x70>               
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
    7bbc:	e590300c 	ldr	r3, [r0, #12]                                 
    7bc0:	e5853000 	str	r3, [r5]                                      
  _Thread_Enable_dispatch();                                          
    7bc4:	eb000216 	bl	8424 <_Thread_Enable_dispatch>                 
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
    7bc8:	e1a00004 	mov	r0, r4                                        
    7bcc:	ea000000 	b	7bd4 <_Objects_Id_to_name+0x74>                 
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
    7bd0:	e3a00003 	mov	r0, #3                                        
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
    7bd4:	e8bd8038 	pop	{r3, r4, r5, pc}                              
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
    7bd8:	e59f2010 	ldr	r2, [pc, #16]	; 7bf0 <_Objects_Id_to_name+0x90>
    7bdc:	e7923103 	ldr	r3, [r2, r3, lsl #2]                          
    7be0:	e3530000 	cmp	r3, #0                                        
    7be4:	1affffe9 	bne	7b90 <_Objects_Id_to_name+0x30>               
    7be8:	eafffff8 	b	7bd0 <_Objects_Id_to_name+0x70>                 <== NOT EXECUTED
                                                                      

00006e4c <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) {
    6e4c:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    6e50:	e1a05000 	mov	r5, r0                                        
    6e54:	e1a06001 	mov	r6, r1                                        
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
    6e58:	e1a00002 	mov	r0, r2                                        
    6e5c:	e1d513ba 	ldrh	r1, [r5, #58]	; 0x3a                         
bool _Objects_Set_name(                                               
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
    6e60:	e1a07002 	mov	r7, r2                                        
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
    6e64:	eb002002 	bl	ee74 <strnlen>                                 
                                                                      
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
    6e68:	e5d53038 	ldrb	r3, [r5, #56]	; 0x38                         
    6e6c:	e3530000 	cmp	r3, #0                                        
{                                                                     
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
    6e70:	e1a04000 	mov	r4, r0                                        
                                                                      
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
    6e74:	0a000011 	beq	6ec0 <_Objects_Set_name+0x74>                 
    char *d;                                                          
                                                                      
    d = _Workspace_Allocate( length + 1 );                            
    6e78:	e2800001 	add	r0, r0, #1                                    
    6e7c:	eb00068b 	bl	88b0 <_Workspace_Allocate>                     
    if ( !d )                                                         
    6e80:	e2505000 	subs	r5, r0, #0                                   
    6e84:	0a000020 	beq	6f0c <_Objects_Set_name+0xc0>                 
      return false;                                                   
                                                                      
    if ( the_object->name.name_p ) {                                  
    6e88:	e596000c 	ldr	r0, [r6, #12]                                 
    6e8c:	e3500000 	cmp	r0, #0                                        
    6e90:	0a000002 	beq	6ea0 <_Objects_Set_name+0x54>                 
      _Workspace_Free( (void *)the_object->name.name_p );             
    6e94:	eb00068b 	bl	88c8 <_Workspace_Free>                         
      the_object->name.name_p = NULL;                                 
    6e98:	e3a03000 	mov	r3, #0                                        
    6e9c:	e586300c 	str	r3, [r6, #12]                                 
    }                                                                 
                                                                      
    strncpy( d, name, length );                                       
    6ea0:	e1a00005 	mov	r0, r5                                        
    6ea4:	e1a01007 	mov	r1, r7                                        
    6ea8:	e1a02004 	mov	r2, r4                                        
    6eac:	eb001fb5 	bl	ed88 <strncpy>                                 
    d[length] = '\0';                                                 
    6eb0:	e3a03000 	mov	r3, #0                                        
    6eb4:	e7c53004 	strb	r3, [r5, r4]                                 
    the_object->name.name_p = d;                                      
    6eb8:	e586500c 	str	r5, [r6, #12]                                 
    6ebc:	ea000010 	b	6f04 <_Objects_Set_name+0xb8>                   
  } else                                                              
#endif                                                                
  {                                                                   
    the_object->name.name_u32 =  _Objects_Build_name(                 
    6ec0:	e3500001 	cmp	r0, #1                                        
    6ec4:	85d73001 	ldrbhi	r3, [r7, #1]                               
    6ec8:	e5d72000 	ldrb	r2, [r7]                                     
    6ecc:	81a03803 	lslhi	r3, r3, #16                                 
    6ed0:	93a03602 	movls	r3, #2097152	; 0x200000                     
    6ed4:	e1a02c02 	lsl	r2, r2, #24                                   
    6ed8:	e3500002 	cmp	r0, #2                                        
    6edc:	e1832002 	orr	r2, r3, r2                                    
    6ee0:	85d73002 	ldrbhi	r3, [r7, #2]                               
    6ee4:	93a03a02 	movls	r3, #8192	; 0x2000                          
    6ee8:	81a03403 	lslhi	r3, r3, #8                                  
    6eec:	e3500003 	cmp	r0, #3                                        
    6ef0:	e1822003 	orr	r2, r2, r3                                    
    6ef4:	85d73003 	ldrbhi	r3, [r7, #3]                               
    6ef8:	93a03020 	movls	r3, #32                                     
    6efc:	e1823003 	orr	r3, r2, r3                                    
    6f00:	e586300c 	str	r3, [r6, #12]                                 
      ((3 <  length) ? s[ 3 ] : ' ')                                  
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
    6f04:	e3a00001 	mov	r0, #1                                        
    6f08:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  if ( information->is_string ) {                                     
    char *d;                                                          
                                                                      
    d = _Workspace_Allocate( length + 1 );                            
    if ( !d )                                                         
      return false;                                                   
    6f0c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
    6f10:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

00005f2c <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) {
    5f2c:	e92d45f1 	push	{r0, r4, r5, r6, r7, r8, sl, lr}             
    5f30:	e1a05000 	mov	r5, r0                                        
    5f34:	e1a04001 	mov	r4, r1                                        
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
    5f38:	e1a00001 	mov	r0, r1                                        
    5f3c:	e1a0100d 	mov	r1, sp                                        
  pthread_cond_t            *cond,                                    
  pthread_mutex_t           *mutex,                                   
  Watchdog_Interval          timeout,                                 
  bool                       already_timedout                         
)                                                                     
{                                                                     
    5f40:	e1a07002 	mov	r7, r2                                        
    5f44:	e20380ff 	and	r8, r3, #255	; 0xff                           
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
    5f48:	eb000057 	bl	60ac <_POSIX_Mutex_Get>                        
    5f4c:	e3500000 	cmp	r0, #0                                        
    5f50:	e1a0600d 	mov	r6, sp                                        
    5f54:	0a000032 	beq	6024 <_POSIX_Condition_variables_Wait_support+0xf8>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
    5f58:	e59f30d0 	ldr	r3, [pc, #208]	; 6030 <_POSIX_Condition_variables_Wait_support+0x104>
    5f5c:	e5932000 	ldr	r2, [r3]                                      
    5f60:	e2422001 	sub	r2, r2, #1                                    
    5f64:	e5832000 	str	r2, [r3]                                      
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
    5f68:	e1a00005 	mov	r0, r5                                        
    5f6c:	e1a0100d 	mov	r1, sp                                        
    5f70:	ebffff7c 	bl	5d68 <_POSIX_Condition_variables_Get>          
  switch ( location ) {                                               
    5f74:	e59d3000 	ldr	r3, [sp]                                      
    5f78:	e3530000 	cmp	r3, #0                                        
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
    5f7c:	e1a0a000 	mov	sl, r0                                        
  switch ( location ) {                                               
    5f80:	1a000027 	bne	6024 <_POSIX_Condition_variables_Wait_support+0xf8>
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {       
    5f84:	e5903014 	ldr	r3, [r0, #20]                                 
    5f88:	e3530000 	cmp	r3, #0                                        
    5f8c:	0a000004 	beq	5fa4 <_POSIX_Condition_variables_Wait_support+0x78>
    5f90:	e5942000 	ldr	r2, [r4]                                      
    5f94:	e1530002 	cmp	r3, r2                                        
    5f98:	0a000001 	beq	5fa4 <_POSIX_Condition_variables_Wait_support+0x78>
        _Thread_Enable_dispatch();                                    
    5f9c:	eb000bd5 	bl	8ef8 <_Thread_Enable_dispatch>                 
    5fa0:	ea00001f 	b	6024 <_POSIX_Condition_variables_Wait_support+0xf8>
        return EINVAL;                                                
      }                                                               
                                                                      
      (void) pthread_mutex_unlock( mutex );                           
    5fa4:	e1a00004 	mov	r0, r4                                        
    5fa8:	eb0000e0 	bl	6330 <pthread_mutex_unlock>                    
        _Thread_Enable_dispatch();                                    
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
    5fac:	e3580000 	cmp	r8, #0                                        
    5fb0:	1a000014 	bne	6008 <_POSIX_Condition_variables_Wait_support+0xdc>
        the_cond->Mutex = *mutex;                                     
    5fb4:	e5943000 	ldr	r3, [r4]                                      
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
    5fb8:	e59f6074 	ldr	r6, [pc, #116]	; 6034 <_POSIX_Condition_variables_Wait_support+0x108>
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
    5fbc:	e58a3014 	str	r3, [sl, #20]                                 
                                                                      
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;
    5fc0:	e3a03001 	mov	r3, #1                                        
    5fc4:	e58a3048 	str	r3, [sl, #72]	; 0x48                          
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
    5fc8:	e5963004 	ldr	r3, [r6, #4]                                  
    5fcc:	e5838034 	str	r8, [r3, #52]	; 0x34                          
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
        _Thread_Executing->Wait.id          = *cond;                  
    5fd0:	e5952000 	ldr	r2, [r5]                                      
      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;  
    5fd4:	e28a0018 	add	r0, sl, #24                                   
        _Thread_Executing->Wait.id          = *cond;                  
    5fd8:	e5832020 	str	r2, [r3, #32]                                 
      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;  
    5fdc:	e5830044 	str	r0, [r3, #68]	; 0x44                          
        _Thread_Executing->Wait.id          = *cond;                  
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
    5fe0:	e1a01007 	mov	r1, r7                                        
    5fe4:	e59f204c 	ldr	r2, [pc, #76]	; 6038 <_POSIX_Condition_variables_Wait_support+0x10c>
    5fe8:	eb000cf3 	bl	93bc <_Thread_queue_Enqueue_with_handler>      
                                                                      
        _Thread_Enable_dispatch();                                    
    5fec:	eb000bc1 	bl	8ef8 <_Thread_Enable_dispatch>                 
        /*                                                            
         *  Switch ourself out because we blocked as a result of the  
         *  _Thread_queue_Enqueue.                                    
         */                                                           
                                                                      
        status = _Thread_Executing->Wait.return_code;                 
    5ff0:	e5963004 	ldr	r3, [r6, #4]                                  
    5ff4:	e5935034 	ldr	r5, [r3, #52]	; 0x34                          
        if ( status && status != ETIMEDOUT )                          
    5ff8:	e3550074 	cmp	r5, #116	; 0x74                               
    5ffc:	13550000 	cmpne	r5, #0                                      
    6000:	0a000002 	beq	6010 <_POSIX_Condition_variables_Wait_support+0xe4>
    6004:	ea000007 	b	6028 <_POSIX_Condition_variables_Wait_support+0xfc><== NOT EXECUTED
          return status;                                              
                                                                      
      } else {                                                        
        _Thread_Enable_dispatch();                                    
    6008:	eb000bba 	bl	8ef8 <_Thread_Enable_dispatch>                 
        status = ETIMEDOUT;                                           
    600c:	e3a05074 	mov	r5, #116	; 0x74                               
                                                                      
      /*                                                              
       *  When we get here the dispatch disable level is 0.           
       */                                                             
                                                                      
      mutex_status = pthread_mutex_lock( mutex );                     
    6010:	e1a00004 	mov	r0, r4                                        
    6014:	eb0000a6 	bl	62b4 <pthread_mutex_lock>                      
      if ( mutex_status )                                             
        return EINVAL;                                                
    6018:	e3500000 	cmp	r0, #0                                        
    601c:	13a05016 	movne	r5, #22                                     
    6020:	ea000000 	b	6028 <_POSIX_Condition_variables_Wait_support+0xfc>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
    6024:	e3a05016 	mov	r5, #22                                       
}                                                                     
    6028:	e1a00005 	mov	r0, r5                                        
    602c:	e8bd85f8 	pop	{r3, r4, r5, r6, r7, r8, sl, pc}              
                                                                      

00007408 <_Thread_queue_Enqueue_priority>:
    7408:	e281303c 	add	r3, r1, #60	; 0x3c                            
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
    740c:	e591c014 	ldr	ip, [r1, #20]                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
    7410:	e5813038 	str	r3, [r1, #56]	; 0x38                          
  the_chain->permanent_null = NULL;                                   
    7414:	e3a03000 	mov	r3, #0                                        
    7418:	e581303c 	str	r3, [r1, #60]	; 0x3c                          
  Chain_Node          *previous_node;                                 
  Chain_Node          *search_node;                                   
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
    741c:	e2813038 	add	r3, r1, #56	; 0x38                            
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (     
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread,                                   
  ISR_Level            *level_p                                       
)                                                                     
{                                                                     
    7420:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  the_chain->last           = _Chain_Head(the_chain);                 
    7424:	e5813040 	str	r3, [r1, #64]	; 0x40                          
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
    7428:	e3a0400c 	mov	r4, #12                                       
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
    742c:	e1a0332c 	lsr	r3, ip, #6                                    
    7430:	e0030394 	mul	r3, r4, r3                                    
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    7434:	e31c0020 	tst	ip, #32                                       
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
    7438:	e0807003 	add	r7, r0, r3                                    
  block_state  = the_thread_queue->state;                             
    743c:	e5908038 	ldr	r8, [r0, #56]	; 0x38                          
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
    7440:	159fa15c 	ldrne	sl, [pc, #348]	; 75a4 <_Thread_queue_Enqueue_priority+0x19c>
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->last;                    
    7444:	11a0b007 	movne	fp, r7                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    7448:	1a000024 	bne	74e0 <_Thread_queue_Enqueue_priority+0xd8>    
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
    744c:	e2833004 	add	r3, r3, #4                                    
    7450:	e080a003 	add	sl, r0, r3                                    
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    7454:	e10f4000 	mrs	r4, CPSR                                      
    7458:	e3843080 	orr	r3, r4, #128	; 0x80                           
    745c:	e129f003 	msr	CPSR_fc, r3                                   
    7460:	e1a05004 	mov	r5, r4                                        
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
    7464:	e3e06000 	mvn	r6, #0                                        
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
    7468:	e5973000 	ldr	r3, [r7]                                      
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
    746c:	ea00000b 	b	74a0 <_Thread_queue_Enqueue_priority+0x98>      
    search_priority = search_thread->current_priority;                
    7470:	e5936014 	ldr	r6, [r3, #20]                                 
    if ( priority <= search_priority )                                
    7474:	e15c0006 	cmp	ip, r6                                        
    7478:	9a00000a 	bls	74a8 <_Thread_queue_Enqueue_priority+0xa0>    
                                                                      
static inline void arm_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t arm_switch_reg;                                            
                                                                      
  asm volatile (                                                      
    747c:	e10f9000 	mrs	r9, CPSR                                      
    7480:	e129f004 	msr	CPSR_fc, r4                                   
    7484:	e129f009 	msr	CPSR_fc, r9                                   
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
    7488:	e5939010 	ldr	r9, [r3, #16]                                 
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
    748c:	e1180009 	tst	r8, r9                                        
    7490:	1a000001 	bne	749c <_Thread_queue_Enqueue_priority+0x94>    
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    7494:	e129f004 	msr	CPSR_fc, r4                                   
    7498:	eaffffed 	b	7454 <_Thread_queue_Enqueue_priority+0x4c>      
      _ISR_Enable( level );                                           
      goto restart_forward_search;                                    
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
    749c:	e5933000 	ldr	r3, [r3]                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
    74a0:	e153000a 	cmp	r3, sl                                        
    74a4:	1afffff1 	bne	7470 <_Thread_queue_Enqueue_priority+0x68>    
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
    74a8:	e5907030 	ldr	r7, [r0, #48]	; 0x30                          
    74ac:	e3570001 	cmp	r7, #1                                        
    74b0:	1a000038 	bne	7598 <_Thread_queue_Enqueue_priority+0x190>   
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    74b4:	e3a02000 	mov	r2, #0                                        
                                                                      
  if ( priority == search_priority )                                  
    74b8:	e15c0006 	cmp	ip, r6                                        
                                                                      
  if ( the_thread_queue->sync_state !=                                
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    74bc:	e5802030 	str	r2, [r0, #48]	; 0x30                          
                                                                      
  if ( priority == search_priority )                                  
    74c0:	0a00002a 	beq	7570 <_Thread_queue_Enqueue_priority+0x168>   
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
    74c4:	e5932004 	ldr	r2, [r3, #4]                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
    74c8:	e5813000 	str	r3, [r1]                                      
  the_node->previous     = previous_node;                             
    74cc:	e5812004 	str	r2, [r1, #4]                                  
  previous_node->next    = the_node;                                  
    74d0:	e5821000 	str	r1, [r2]                                      
  search_node->previous  = the_node;                                  
    74d4:	e5831004 	str	r1, [r3, #4]                                  
  the_thread->Wait.queue = the_thread_queue;                          
    74d8:	e5810044 	str	r0, [r1, #68]	; 0x44                          
  _ISR_Enable( level );                                               
    74dc:	ea000021 	b	7568 <_Thread_queue_Enqueue_priority+0x160>     
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
    74e0:	e5da6000 	ldrb	r6, [sl]                                     
    74e4:	e2866001 	add	r6, r6, #1                                    
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    74e8:	e10f4000 	mrs	r4, CPSR                                      
    74ec:	e3843080 	orr	r3, r4, #128	; 0x80                           
    74f0:	e129f003 	msr	CPSR_fc, r3                                   
    74f4:	e1a05004 	mov	r5, r4                                        
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->last;                    
    74f8:	e59b3008 	ldr	r3, [fp, #8]                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
    74fc:	ea00000b 	b	7530 <_Thread_queue_Enqueue_priority+0x128>     
    search_priority = search_thread->current_priority;                
    7500:	e5936014 	ldr	r6, [r3, #20]                                 
    if ( priority >= search_priority )                                
    7504:	e15c0006 	cmp	ip, r6                                        
    7508:	2a00000a 	bcs	7538 <_Thread_queue_Enqueue_priority+0x130>   
                                                                      
static inline void arm_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t arm_switch_reg;                                            
                                                                      
  asm volatile (                                                      
    750c:	e10f9000 	mrs	r9, CPSR                                      
    7510:	e129f004 	msr	CPSR_fc, r4                                   
    7514:	e129f009 	msr	CPSR_fc, r9                                   
    7518:	e5939010 	ldr	r9, [r3, #16]                                 
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
    751c:	e1180009 	tst	r8, r9                                        
    7520:	1a000001 	bne	752c <_Thread_queue_Enqueue_priority+0x124>   
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    7524:	e129f004 	msr	CPSR_fc, r4                                   <== NOT EXECUTED
    7528:	eaffffec 	b	74e0 <_Thread_queue_Enqueue_priority+0xd8>      <== NOT EXECUTED
      _ISR_Enable( level );                                           
      goto restart_reverse_search;                                    
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
    752c:	e5933004 	ldr	r3, [r3, #4]                                  
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->last;                    
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
    7530:	e1530007 	cmp	r3, r7                                        
    7534:	1afffff1 	bne	7500 <_Thread_queue_Enqueue_priority+0xf8>    
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
    7538:	e5907030 	ldr	r7, [r0, #48]	; 0x30                          
    753c:	e3570001 	cmp	r7, #1                                        
    7540:	1a000014 	bne	7598 <_Thread_queue_Enqueue_priority+0x190>   
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    7544:	e3a02000 	mov	r2, #0                                        
                                                                      
  if ( priority == search_priority )                                  
    7548:	e15c0006 	cmp	ip, r6                                        
                                                                      
  if ( the_thread_queue->sync_state !=                                
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    754c:	e5802030 	str	r2, [r0, #48]	; 0x30                          
                                                                      
  if ( priority == search_priority )                                  
    7550:	0a000006 	beq	7570 <_Thread_queue_Enqueue_priority+0x168>   
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
    7554:	e5932000 	ldr	r2, [r3]                                      
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
    7558:	e881000c 	stm	r1, {r2, r3}                                  
  search_node->next       = the_node;                                 
  next_node->previous    = the_node;                                  
    755c:	e5821004 	str	r1, [r2, #4]                                  
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
    7560:	e5831000 	str	r1, [r3]                                      
  next_node->previous    = the_node;                                  
  the_thread->Wait.queue = the_thread_queue;                          
    7564:	e5810044 	str	r0, [r1, #68]	; 0x44                          
    7568:	e129f004 	msr	CPSR_fc, r4                                   
    756c:	ea000007 	b	7590 <_Thread_queue_Enqueue_priority+0x188>     
    7570:	e283303c 	add	r3, r3, #60	; 0x3c                            
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
    7574:	e5932004 	ldr	r2, [r3, #4]                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
    7578:	e5813000 	str	r3, [r1]                                      
  the_node->previous     = previous_node;                             
    757c:	e5812004 	str	r2, [r1, #4]                                  
  previous_node->next    = the_node;                                  
    7580:	e5821000 	str	r1, [r2]                                      
  search_node->previous  = the_node;                                  
    7584:	e5831004 	str	r1, [r3, #4]                                  
  the_thread->Wait.queue = the_thread_queue;                          
    7588:	e5810044 	str	r0, [r1, #68]	; 0x44                          
    758c:	e129f005 	msr	CPSR_fc, r5                                   
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
    7590:	e3a00001 	mov	r0, #1                                        
    7594:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
   *  For example, the blocking thread could have been given          
   *  the mutex by an ISR or timed out.                               
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
    7598:	e5825000 	str	r5, [r2]                                      
  return the_thread_queue->sync_state;                                
    759c:	e5900030 	ldr	r0, [r0, #48]	; 0x30                          
}                                                                     
    75a0:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

0000ae68 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) {
    ae68:	e92d4070 	push	{r4, r5, r6, lr}                             
    ae6c:	e20220ff 	and	r2, r2, #255	; 0xff                           
    ae70:	e1a04001 	mov	r4, r1                                        
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    ae74:	e10f1000 	mrs	r1, CPSR                                      
    ae78:	e3813080 	orr	r3, r1, #128	; 0x80                           
    ae7c:	e129f003 	msr	CPSR_fc, r3                                   
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
    ae80:	e59f30a8 	ldr	r3, [pc, #168]	; af30 <_Thread_queue_Extract_priority_helper+0xc8>
    ae84:	e5940010 	ldr	r0, [r4, #16]                                 
    ae88:	e0003003 	and	r3, r0, r3                                    
  Chain_Node     *new_second_node;                                    
  Chain_Node     *last_node;                                          
                                                                      
  the_node = (Chain_Node *) the_thread;                               
  _ISR_Disable( level );                                              
  if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
    ae8c:	e3530000 	cmp	r3, #0                                        
    ae90:	1a000000 	bne	ae98 <_Thread_queue_Extract_priority_helper+0x30>
    _ISR_Enable( level );                                             
    ae94:	ea000015 	b	aef0 <_Thread_queue_Extract_priority_helper+0x88>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
    ae98:	e5943038 	ldr	r3, [r4, #56]	; 0x38                          
                                                                      
  /*                                                                  
   *  The thread was actually waiting on a thread queue so let's remove it.
   */                                                                 
                                                                      
  next_node     = the_node->next;                                     
    ae9c:	e8941001 	ldm	r4, {r0, ip}                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
    aea0:	e284503c 	add	r5, r4, #60	; 0x3c                            
  previous_node = the_node->previous;                                 
                                                                      
  if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {              
    aea4:	e1530005 	cmp	r3, r5                                        
                                                                      
      new_first_thread->Wait.Block2n.last = last_node;                
      last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
    }                                                                 
  } else {                                                            
    previous_node->next = next_node;                                  
    aea8:	058c0000 	streq	r0, [ip]                                    
    next_node->previous = previous_node;                              
    aeac:	0580c004 	streq	ip, [r0, #4]                                
   */                                                                 
                                                                      
  next_node     = the_node->next;                                     
  previous_node = the_node->previous;                                 
                                                                      
  if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {              
    aeb0:	0a00000c 	beq	aee8 <_Thread_queue_Extract_priority_helper+0x80>
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
    aeb4:	e5945040 	ldr	r5, [r4, #64]	; 0x40                          
    previous_node->next      = new_first_node;                        
    next_node->previous      = new_first_node;                        
    new_first_node->next     = next_node;                             
    new_first_node->previous = previous_node;                         
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
    aeb8:	e1530005 	cmp	r3, r5                                        
                                                                      
  if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {              
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
    new_second_node  = new_first_node->next;                          
    aebc:	e5936000 	ldr	r6, [r3]                                      
                                                                      
    previous_node->next      = new_first_node;                        
    next_node->previous      = new_first_node;                        
    aec0:	e5803004 	str	r3, [r0, #4]                                  
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
    new_second_node  = new_first_node->next;                          
                                                                      
    previous_node->next      = new_first_node;                        
    aec4:	e58c3000 	str	r3, [ip]                                      
    next_node->previous      = new_first_node;                        
    new_first_node->next     = next_node;                             
    new_first_node->previous = previous_node;                         
    aec8:	e8831001 	stm	r3, {r0, ip}                                  
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
    aecc:	0a000005 	beq	aee8 <_Thread_queue_Extract_priority_helper+0x80>
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
                _Chain_Head( &new_first_thread->Wait.Block2n );       
    aed0:	e2830038 	add	r0, r3, #56	; 0x38                            
    new_first_node->next     = next_node;                             
    new_first_node->previous = previous_node;                         
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
    aed4:	e5860004 	str	r0, [r6, #4]                                  
                _Chain_Head( &new_first_thread->Wait.Block2n );       
      new_first_thread->Wait.Block2n.first = new_second_node;         
    aed8:	e5836038 	str	r6, [r3, #56]	; 0x38                          
                                                                      
      new_first_thread->Wait.Block2n.last = last_node;                
    aedc:	e5835040 	str	r5, [r3, #64]	; 0x40                          
    aee0:	e283303c 	add	r3, r3, #60	; 0x3c                            
      last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
    aee4:	e5853000 	str	r3, [r5]                                      
                                                                      
  /*                                                                  
   *  If we are not supposed to touch timers or the thread's state, return.
   */                                                                 
                                                                      
  if ( requeuing ) {                                                  
    aee8:	e3520000 	cmp	r2, #0                                        
    aeec:	0a000001 	beq	aef8 <_Thread_queue_Extract_priority_helper+0x90>
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    aef0:	e129f001 	msr	CPSR_fc, r1                                   
    aef4:	e8bd8070 	pop	{r4, r5, r6, pc}                              
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {                 
    aef8:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
    aefc:	e3530002 	cmp	r3, #2                                        
    af00:	0a000001 	beq	af0c <_Thread_queue_Extract_priority_helper+0xa4>
    af04:	e129f001 	msr	CPSR_fc, r1                                   
    af08:	ea000004 	b	af20 <_Thread_queue_Extract_priority_helper+0xb8>
    af0c:	e3a03003 	mov	r3, #3                                        <== NOT EXECUTED
    af10:	e5843050 	str	r3, [r4, #80]	; 0x50                          <== NOT EXECUTED
    af14:	e129f001 	msr	CPSR_fc, r1                                   <== NOT EXECUTED
    _ISR_Enable( level );                                             
  } else {                                                            
    _Watchdog_Deactivate( &the_thread->Timer );                       
    _ISR_Enable( level );                                             
    (void) _Watchdog_Remove( &the_thread->Timer );                    
    af18:	e2840048 	add	r0, r4, #72	; 0x48                            <== NOT EXECUTED
    af1c:	ebfff43c 	bl	8014 <_Watchdog_Remove>                        <== NOT EXECUTED
    af20:	e59f100c 	ldr	r1, [pc, #12]	; af34 <_Thread_queue_Extract_priority_helper+0xcc>
    af24:	e1a00004 	mov	r0, r4                                        
                                                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  if ( !_Objects_Is_local_id( the_thread->Object.id ) )               
    _Thread_MP_Free_proxy( the_thread );                              
#endif                                                                
}                                                                     
    af28:	e8bd4070 	pop	{r4, r5, r6, lr}                              
    af2c:	eaffeef9 	b	6b18 <_Thread_Clear_state>                      
                                                                      

000140e8 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
   140e8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
   140ec:	e24dd018 	sub	sp, sp, #24                                   
   140f0:	e28db00c 	add	fp, sp, #12                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
   140f4:	e3a03000 	mov	r3, #0                                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
   140f8:	e28ba004 	add	sl, fp, #4                                    
   140fc:	e28d7004 	add	r7, sp, #4                                    
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
   14100:	e58da00c 	str	sl, [sp, #12]                                 
  the_chain->permanent_null = NULL;                                   
   14104:	e58d3010 	str	r3, [sp, #16]                                 
  the_chain->last           = _Chain_Head(the_chain);                 
   14108:	e58db014 	str	fp, [sp, #20]                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
   1410c:	e58d7000 	str	r7, [sp]                                      
  the_chain->permanent_null = NULL;                                   
   14110:	e98d2008 	stmib	sp, {r3, sp}                                
   14114:	e1a04000 	mov	r4, r0                                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
   14118:	e1a0500d 	mov	r5, sp                                        
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
   1411c:	e2809030 	add	r9, r0, #48	; 0x30                            
{                                                                     
  /*                                                                  
   *  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;                                    
   14120:	e584b078 	str	fp, [r4, #120]	; 0x78                         
     /*                                                               
      *  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 ); 
   14124:	e2848068 	add	r8, r4, #104	; 0x68                           
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
   14128:	e59f2150 	ldr	r2, [pc, #336]	; 14280 <_Timer_server_Body+0x198>
   1412c:	e5923000 	ldr	r3, [r2]                                      
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
   14130:	e594103c 	ldr	r1, [r4, #60]	; 0x3c                          
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
   14134:	e1a02005 	mov	r2, r5                                        
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
   14138:	e584303c 	str	r3, [r4, #60]	; 0x3c                          
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
   1413c:	e0611003 	rsb	r1, r1, r3                                    
   14140:	e1a00009 	mov	r0, r9                                        
   14144:	eb0010d6 	bl	184a4 <_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();
   14148:	e59f3134 	ldr	r3, [pc, #308]	; 14284 <_Timer_server_Body+0x19c>
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
   1414c:	e5942074 	ldr	r2, [r4, #116]	; 0x74                         
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
   14150:	e5936000 	ldr	r6, [r3]                                      
  /*                                                                  
   *  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 ) {                                   
   14154:	e1560002 	cmp	r6, r2                                        
   14158:	9a000004 	bls	14170 <_Timer_server_Body+0x88>               
    /*                                                                
     *  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 );
   1415c:	e0621006 	rsb	r1, r2, r6                                    
   14160:	e1a00008 	mov	r0, r8                                        
   14164:	e1a02005 	mov	r2, r5                                        
   14168:	eb0010cd 	bl	184a4 <_Watchdog_Adjust_to_chain>              
   1416c:	ea000003 	b	14180 <_Timer_server_Body+0x98>                 
     /*                                                               
      *  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 ); 
   14170:	31a00008 	movcc	r0, r8                                      
   14174:	33a01001 	movcc	r1, #1                                      
   14178:	30662002 	rsbcc	r2, r6, r2                                  
   1417c:	3b0010a0 	blcc	18404 <_Watchdog_Adjust>                     
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
   14180:	e5846074 	str	r6, [r4, #116]	; 0x74                         
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
   14184:	e5940078 	ldr	r0, [r4, #120]	; 0x78                         
   14188:	eb000295 	bl	14be4 <_Chain_Get>                             
                                                                      
    if ( timer == NULL ) {                                            
   1418c:	e2506000 	subs	r6, r0, #0                                   
   14190:	0a000009 	beq	141bc <_Timer_server_Body+0xd4>               
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
   14194:	e5963038 	ldr	r3, [r6, #56]	; 0x38                          
   14198:	e3530001 	cmp	r3, #1                                        
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
   1419c:	01a00009 	moveq	r0, r9                                      
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
   141a0:	0a000002 	beq	141b0 <_Timer_server_Body+0xc8>               
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
   141a4:	e3530003 	cmp	r3, #3                                        
   141a8:	1afffff5 	bne	14184 <_Timer_server_Body+0x9c>               
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
   141ac:	e1a00008 	mov	r0, r8                                        
   141b0:	e2861010 	add	r1, r6, #16                                   
   141b4:	eb0010e5 	bl	18550 <_Watchdog_Insert>                       
   141b8:	eafffff1 	b	14184 <_Timer_server_Body+0x9c>                 
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
   141bc:	ebffff97 	bl	14020 <arm_interrupt_disable>                  
    if ( _Chain_Is_empty( insert_chain ) ) {                          
   141c0:	e59d300c 	ldr	r3, [sp, #12]                                 
   141c4:	e153000a 	cmp	r3, sl                                        
   141c8:	1a000006 	bne	141e8 <_Timer_server_Body+0x100>              
      ts->insert_chain = NULL;                                        
   141cc:	e5846078 	str	r6, [r4, #120]	; 0x78                         
   141d0:	e129f000 	msr	CPSR_fc, r0                                   
  _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 ) ) {                          
   141d4:	e59d3000 	ldr	r3, [sp]                                      
   141d8:	e1530007 	cmp	r3, r7                                        
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
   141dc:	13a06000 	movne	r6, #0                                      
   141e0:	1a000002 	bne	141f0 <_Timer_server_Body+0x108>              
   141e4:	ea000013 	b	14238 <_Timer_server_Body+0x150>                
   141e8:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
   141ec:	eaffffcd 	b	14128 <_Timer_server_Body+0x40>                 <== 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 );                                        
   141f0:	ebffff8a 	bl	14020 <arm_interrupt_disable>                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
   141f4:	e59d3000 	ldr	r3, [sp]                                      
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
   141f8:	e1530007 	cmp	r3, r7                                        
   141fc:	0a00000b 	beq	14230 <_Timer_server_Body+0x148>              
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
   14200:	e5932000 	ldr	r2, [r3]                                      
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
   14204:	e3530000 	cmp	r3, #0                                        
  the_chain->first    = new_first;                                    
   14208:	e58d2000 	str	r2, [sp]                                      
  new_first->previous = _Chain_Head(the_chain);                       
   1420c:	e5825004 	str	r5, [r2, #4]                                  
   14210:	0a000006 	beq	14230 <_Timer_server_Body+0x148>              
          watchdog->state = WATCHDOG_INACTIVE;                        
   14214:	e5836008 	str	r6, [r3, #8]                                  
   14218:	e129f000 	msr	CPSR_fc, r0                                   
        /*                                                            
         *  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 );    
   1421c:	e2830020 	add	r0, r3, #32                                   
   14220:	e8900003 	ldm	r0, {r0, r1}                                  
   14224:	e1a0e00f 	mov	lr, pc                                        
   14228:	e593f01c 	ldr	pc, [r3, #28]                                 
      }                                                               
   1422c:	eaffffef 	b	141f0 <_Timer_server_Body+0x108>                
   14230:	e129f000 	msr	CPSR_fc, r0                                   
   14234:	eaffffb9 	b	14120 <_Timer_server_Body+0x38>                 
    } else {                                                          
      ts->active = false;                                             
   14238:	e3a03000 	mov	r3, #0                                        
   1423c:	e5c4307c 	strb	r3, [r4, #124]	; 0x7c                        
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
   14240:	ebffff7a 	bl	14030 <_Thread_Disable_dispatch>               
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
   14244:	e3a01008 	mov	r1, #8                                        
   14248:	e5940000 	ldr	r0, [r4]                                      
   1424c:	eb000e1b 	bl	17ac0 <_Thread_Set_state>                      
        _Timer_server_Reset_interval_system_watchdog( ts );           
   14250:	e1a00004 	mov	r0, r4                                        
   14254:	ebffff7b 	bl	14048 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
   14258:	e1a00004 	mov	r0, r4                                        
   1425c:	ebffff8d 	bl	14098 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
   14260:	eb000b97 	bl	170c4 <_Thread_Enable_dispatch>                
                                                                      
      ts->active = true;                                              
   14264:	e3a03001 	mov	r3, #1                                        
   14268:	e5c4307c 	strb	r3, [r4, #124]	; 0x7c                        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
   1426c:	e2840008 	add	r0, r4, #8                                    
   14270:	eb00110c 	bl	186a8 <_Watchdog_Remove>                       
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
   14274:	e2840040 	add	r0, r4, #64	; 0x40                            
   14278:	eb00110a 	bl	186a8 <_Watchdog_Remove>                       
   1427c:	eaffffa7 	b	14120 <_Timer_server_Body+0x38>                 
                                                                      

00011c78 <_exit>: extern void FINI_SYMBOL( void ); #endif void EXIT_SYMBOL(int status) {
   11c78:	e1a04000 	mov	r4, r0                                        
   11c7c:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  /*                                                                  
   *  If the toolset uses init/fini sections, then we need to         
   *  run the global destructors now.                                 
   */                                                                 
  #if defined(__USE_INIT_FINI__)                                      
    FINI_SYMBOL();                                                    
   11c80:	eb00021e 	bl	12500 <___DTOR_END__>                          
   *  We need to do the exit processing on the global reentrancy structure.
   *  This has already been done on the per task reentrancy structure 
   *  associated with this task.                                      
   */                                                                 
                                                                      
  libc_wrapup();                                                      
   11c84:	ebffffdf 	bl	11c08 <libc_wrapup>                            
  rtems_shutdown_executive(status);                                   
   11c88:	e1a00004 	mov	r0, r4                                        
   11c8c:	eb000036 	bl	11d6c <rtems_shutdown_executive>               
   11c90:	eafffffe 	b	11c90 <_exit+0x18>                              <== NOT EXECUTED
                                                                      

000056a4 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
    56a4:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
    56a8:	e1a00001 	mov	r0, r1                                        <== NOT EXECUTED
int _rename_r(                                                        
  struct _reent *ptr __attribute__((unused)),                         
  const char    *old,                                                 
  const char    *new                                                  
)                                                                     
{                                                                     
    56ac:	e24dd048 	sub	sp, sp, #72	; 0x48                            <== NOT EXECUTED
    56b0:	e1a04001 	mov	r4, r1                                        <== NOT EXECUTED
    56b4:	e1a06002 	mov	r6, r2                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
    56b8:	ebfffb2f 	bl	437c <rtems_filesystem_dirname>                <== NOT EXECUTED
                                                                      
  if ( old_parent_pathlen == 0 )                                      
    56bc:	e2507000 	subs	r7, r0, #0                                   <== NOT EXECUTED
    56c0:	e28d3018 	add	r3, sp, #24                                   <== NOT EXECUTED
    56c4:	1a000005 	bne	56e0 <_rename_r+0x3c>                         <== NOT EXECUTED
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
    56c8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    56cc:	e28d1044 	add	r1, sp, #68	; 0x44                            <== NOT EXECUTED
    56d0:	e1a02003 	mov	r2, r3                                        <== NOT EXECUTED
    56d4:	eb0000dd 	bl	5a50 <rtems_filesystem_get_start_loc>          <== NOT EXECUTED
  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;     
    56d8:	e1a05007 	mov	r5, r7                                        <== NOT EXECUTED
    56dc:	ea000008 	b	5704 <_rename_r+0x60>                           <== NOT EXECUTED
  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, 
    56e0:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
    56e4:	e58d2000 	str	r2, [sp]                                      <== NOT EXECUTED
    56e8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    56ec:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
    56f0:	e2822002 	add	r2, r2, #2                                    <== NOT EXECUTED
    56f4:	ebfffb02 	bl	4304 <rtems_filesystem_evaluate_path>          <== NOT EXECUTED
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
    56f8:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    56fc:	1a000054 	bne	5854 <_rename_r+0x1b0>                        <== NOT EXECUTED
      return -1;                                                      
                                                                      
    free_old_parentloc = true;                                        
    5700:	e3a05001 	mov	r5, #1                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
    5704:	e28de018 	add	lr, sp, #24                                   <== NOT EXECUTED
    5708:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         <== NOT EXECUTED
    570c:	e28dc02c 	add	ip, sp, #44	; 0x2c                            <== NOT EXECUTED
    5710:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       <== NOT EXECUTED
    5714:	e59e3000 	ldr	r3, [lr]                                      <== NOT EXECUTED
  name = old + old_parent_pathlen;                                    
    5718:	e0844007 	add	r4, r4, r7                                    <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
    571c:	e58c3000 	str	r3, [ip]                                      <== NOT EXECUTED
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5720:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
    5724:	e58d4040 	str	r4, [sp, #64]	; 0x40                          <== NOT EXECUTED
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5728:	eb00360a 	bl	12f58 <strlen>                                 <== NOT EXECUTED
    572c:	e1a01000 	mov	r1, r0                                        <== NOT EXECUTED
    5730:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    5734:	ebfffb1e 	bl	43b4 <rtems_filesystem_prefix_separators>      <== NOT EXECUTED
    5738:	e0844000 	add	r4, r4, r0                                    <== NOT EXECUTED
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    573c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
   * 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 ) ); 
    5740:	e58d4040 	str	r4, [sp, #64]	; 0x40                          <== NOT EXECUTED
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    5744:	eb003603 	bl	12f58 <strlen>                                 <== NOT EXECUTED
    5748:	e28d802c 	add	r8, sp, #44	; 0x2c                            <== NOT EXECUTED
    574c:	e1a01000 	mov	r1, r0                                        <== NOT EXECUTED
    5750:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
    5754:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    5758:	e1a03008 	mov	r3, r8                                        <== NOT EXECUTED
    575c:	e58d2000 	str	r2, [sp]                                      <== NOT EXECUTED
    5760:	ebfffabf 	bl	4264 <rtems_filesystem_evaluate_relative_path> <== NOT EXECUTED
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    5764:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    5768:	0a000003 	beq	577c <_rename_r+0xd8>                         <== NOT EXECUTED
    if ( free_old_parentloc )                                         
    576c:	e3550000 	cmp	r5, #0                                        <== NOT EXECUTED
      rtems_filesystem_freenode( &old_parent_loc );                   
    5770:	128d0018 	addne	r0, sp, #24                                 <== NOT EXECUTED
  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 )                                         
    5774:	0a000036 	beq	5854 <_rename_r+0x1b0>                        <== NOT EXECUTED
    5778:	ea000013 	b	57cc <_rename_r+0x128>                          <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
    577c:	e28d4004 	add	r4, sp, #4                                    <== NOT EXECUTED
    5780:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    5784:	e28d1044 	add	r1, sp, #68	; 0x44                            <== NOT EXECUTED
    5788:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    578c:	eb0000af 	bl	5a50 <rtems_filesystem_get_start_loc>          <== NOT EXECUTED
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
    5790:	e59d0044 	ldr	r0, [sp, #68]	; 0x44                          <== NOT EXECUTED
    5794:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    5798:	e0860000 	add	r0, r6, r0                                    <== NOT EXECUTED
    579c:	e28d2040 	add	r2, sp, #64	; 0x40                            <== NOT EXECUTED
    57a0:	e59d3010 	ldr	r3, [sp, #16]                                 <== NOT EXECUTED
    57a4:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    57a8:	e593f004 	ldr	pc, [r3, #4]                                  <== NOT EXECUTED
  if ( result != 0 ) {                                                
    57ac:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    57b0:	0a000007 	beq	57d4 <_rename_r+0x130>                        <== NOT EXECUTED
    rtems_filesystem_freenode( &new_parent_loc );                     
    57b4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    57b8:	ebfffb0c 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
    if ( free_old_parentloc )                                         
    57bc:	e3550000 	cmp	r5, #0                                        <== NOT EXECUTED
      rtems_filesystem_freenode( &old_parent_loc );                   
    57c0:	128d0018 	addne	r0, sp, #24                                 <== NOT EXECUTED
    57c4:	1bfffb09 	blne	43f0 <rtems_filesystem_freenode>             <== NOT EXECUTED
    rtems_filesystem_freenode( &old_loc );                            
    57c8:	e28d002c 	add	r0, sp, #44	; 0x2c                            <== NOT EXECUTED
    57cc:	ebfffb07 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
    57d0:	ea00001f 	b	5854 <_rename_r+0x1b0>                          <== NOT EXECUTED
  /*                                                                  
   *  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 ) {         
    57d4:	e59d3014 	ldr	r3, [sp, #20]                                 <== NOT EXECUTED
    57d8:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          <== NOT EXECUTED
    57dc:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    57e0:	0a00000a 	beq	5810 <_rename_r+0x16c>                        <== NOT EXECUTED
    rtems_filesystem_freenode( &new_parent_loc );                     
    57e4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    57e8:	ebfffb00 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
    if ( free_old_parentloc )                                         
    57ec:	e3550000 	cmp	r5, #0                                        <== NOT EXECUTED
      rtems_filesystem_freenode( &old_parent_loc );                   
    57f0:	128d0018 	addne	r0, sp, #24                                 <== NOT EXECUTED
    57f4:	1bfffafd 	blne	43f0 <rtems_filesystem_freenode>             <== NOT EXECUTED
    rtems_filesystem_freenode( &old_loc );                            
    57f8:	e28d002c 	add	r0, sp, #44	; 0x2c                            <== NOT EXECUTED
    57fc:	ebfffafb 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EXDEV );                    
    5800:	eb0028ef 	bl	fbc4 <__errno>                                 <== NOT EXECUTED
    5804:	e3a03012 	mov	r3, #18                                       <== NOT EXECUTED
    5808:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    580c:	ea000010 	b	5854 <_rename_r+0x1b0>                          <== NOT EXECUTED
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
    5810:	e28d6018 	add	r6, sp, #24                                   <== NOT EXECUTED
    5814:	e1a01008 	mov	r1, r8                                        <== NOT EXECUTED
    5818:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    581c:	e59d3040 	ldr	r3, [sp, #64]	; 0x40                          <== NOT EXECUTED
    5820:	e59dc010 	ldr	ip, [sp, #16]                                 <== NOT EXECUTED
    5824:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    5828:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    582c:	e59cf040 	ldr	pc, [ip, #64]	; 0x40                          <== NOT EXECUTED
    5830:	e1a07000 	mov	r7, r0                                        <== NOT EXECUTED
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
    5834:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    5838:	ebfffaec 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
  if ( free_old_parentloc )                                           
    583c:	e3550000 	cmp	r5, #0                                        <== NOT EXECUTED
    rtems_filesystem_freenode( &old_parent_loc );                     
    5840:	11a00006 	movne	r0, r6                                      <== NOT EXECUTED
    5844:	1bfffae9 	blne	43f0 <rtems_filesystem_freenode>             <== NOT EXECUTED
  rtems_filesystem_freenode( &old_loc );                              
    5848:	e28d002c 	add	r0, sp, #44	; 0x2c                            <== NOT EXECUTED
    584c:	ebfffae7 	bl	43f0 <rtems_filesystem_freenode>               <== NOT EXECUTED
                                                                      
  return result;                                                      
    5850:	ea000000 	b	5858 <_rename_r+0x1b4>                          <== NOT EXECUTED
  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 );                   
    return -1;                                                        
    5854:	e3e07000 	mvn	r7, #0                                        <== NOT EXECUTED
  if ( free_old_parentloc )                                           
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
                                                                      
  return result;                                                      
}                                                                     
    5858:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    585c:	e28dd048 	add	sp, sp, #72	; 0x48                            <== NOT EXECUTED
    5860:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
                                                                      

00005750 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path );
    5750:	e1a00001 	mov	r0, r1                                        <== NOT EXECUTED
    5754:	eaffffa9 	b	5600 <unlink>                                   <== NOT EXECUTED
                                                                      

00001c20 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
    1c20:	e92d4070 	push	{r4, r5, r6, lr}                             
  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) {             
    1c24:	e59f50b4 	ldr	r5, [pc, #180]	; 1ce0 <chroot+0xc0>           
    1c28:	e59f30b4 	ldr	r3, [pc, #180]	; 1ce4 <chroot+0xc4>           
    1c2c:	e5954000 	ldr	r4, [r5]                                      
    1c30:	e1540003 	cmp	r4, r3                                        
#include <rtems/seterr.h>                                             
                                                                      
int chroot(                                                           
  const char *pathname                                                
)                                                                     
{                                                                     
    1c34:	e24dd018 	sub	sp, sp, #24                                   
    1c38:	e1a06000 	mov	r6, 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) {             
    1c3c:	1a000007 	bne	1c60 <chroot+0x40>                            
   rtems_libio_set_private_env(); /* try to set a new private env*/   
    1c40:	eb0004b6 	bl	2f20 <rtems_libio_set_private_env>             
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
    1c44:	e5953000 	ldr	r3, [r5]                                      
    1c48:	e1530004 	cmp	r3, r4                                        
    1c4c:	1a000003 	bne	1c60 <chroot+0x40>                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
    1c50:	eb002c80 	bl	ce58 <__errno>                                 <== NOT EXECUTED
    1c54:	e3a03086 	mov	r3, #134	; 0x86                               <== NOT EXECUTED
    1c58:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1c5c:	ea000008 	b	1c84 <chroot+0x64>                              <== NOT EXECUTED
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
    1c60:	e1a00006 	mov	r0, r6                                        
    1c64:	eb001fa6 	bl	9b04 <chdir>                                   
  if (result) {                                                       
    1c68:	e2502000 	subs	r2, r0, #0                                   
    1c6c:	0a000006 	beq	1c8c <chroot+0x6c>                            
    rtems_set_errno_and_return_minus_one( errno );                    
    1c70:	eb002c78 	bl	ce58 <__errno>                                 <== NOT EXECUTED
    1c74:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
    1c78:	eb002c76 	bl	ce58 <__errno>                                 <== NOT EXECUTED
    1c7c:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
    1c80:	e5843000 	str	r3, [r4]                                      <== NOT EXECUTED
    1c84:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1c88:	ea000012 	b	1cd8 <chroot+0xb8>                              <== NOT EXECUTED
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
    1c8c:	e28d4004 	add	r4, sp, #4                                    
    1c90:	e59f0050 	ldr	r0, [pc, #80]	; 1ce8 <chroot+0xc8>            
    1c94:	e3a01001 	mov	r1, #1                                        
    1c98:	e1a03004 	mov	r3, r4                                        
    1c9c:	e58d2000 	str	r2, [sp]                                      
    1ca0:	eb000059 	bl	1e0c <rtems_filesystem_evaluate_path>          
    1ca4:	e2505000 	subs	r5, r0, #0                                   
    1ca8:	1afffff0 	bne	1c70 <chroot+0x50>                            
    /* 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);                  
    1cac:	e59f602c 	ldr	r6, [pc, #44]	; 1ce0 <chroot+0xc0>            
    1cb0:	e5960000 	ldr	r0, [r6]                                      
    1cb4:	e2800018 	add	r0, r0, #24                                   
    1cb8:	eb00008e 	bl	1ef8 <rtems_filesystem_freenode>               
  rtems_filesystem_root = loc;                                        
    1cbc:	e596c000 	ldr	ip, [r6]                                      
    1cc0:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    1cc4:	e28cc018 	add	ip, ip, #24                                   
    1cc8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    1ccc:	e5943000 	ldr	r3, [r4]                                      
    1cd0:	e58c3000 	str	r3, [ip]                                      
                                                                      
  return 0;                                                           
    1cd4:	e1a00005 	mov	r0, r5                                        
}                                                                     
    1cd8:	e28dd018 	add	sp, sp, #24                                   
    1cdc:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

000085a8 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
    85a8:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
     assert( 0 );                                                     
     rtems_set_errno_and_return_minus_one( EIO );                     
  }                                                                   
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
    85ac:	e5936000 	ldr	r6, [r3]                                      
  if (!device_name_table)                                             
    85b0:	e3560000 	cmp	r6, #0                                        
  const char                        *pathname,                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
    85b4:	e1a09000 	mov	r9, r0                                        
    85b8:	e1a04001 	mov	r4, r1                                        
    85bc:	e1a05003 	mov	r5, r3                                        
     rtems_set_errno_and_return_minus_one( EIO );                     
  }                                                                   
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    85c0:	13a07000 	movne	r7, #0                                      
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    85c4:	159fa094 	ldrne	sl, [pc, #148]	; 8660 <devFS_evaluate_path+0xb8>
     rtems_set_errno_and_return_minus_one( EIO );                     
  }                                                                   
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    85c8:	1a00001c 	bne	8640 <devFS_evaluate_path+0x98>               
    rtems_set_errno_and_return_minus_one( EFAULT );                   
    85cc:	eb000963 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    85d0:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    85d4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    85d8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    85dc:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              <== NOT EXECUTED
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
    85e0:	e5968000 	ldr	r8, [r6]                                      
    85e4:	e3580000 	cmp	r8, #0                                        
    85e8:	0a000012 	beq	8638 <devFS_evaluate_path+0x90>               
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
    85ec:	e1a00009 	mov	r0, r9                                        
    85f0:	e1a01008 	mov	r1, r8                                        
    85f4:	e1a02004 	mov	r2, r4                                        
    85f8:	eb000d21 	bl	ba84 <strncmp>                                 
    85fc:	e3500000 	cmp	r0, #0                                        
    8600:	1a00000c 	bne	8638 <devFS_evaluate_path+0x90>               
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
    8604:	e7d80004 	ldrb	r0, [r8, r4]                                 
    8608:	e3500000 	cmp	r0, #0                                        
    860c:	1a000009 	bne	8638 <devFS_evaluate_path+0x90>               
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    8610:	e59f304c 	ldr	r3, [pc, #76]	; 8664 <devFS_evaluate_path+0xbc>
    8614:	e5853008 	str	r3, [r5, #8]                                  
    pathloc->ops = &devFS_ops;                                        
    8618:	e59f3048 	ldr	r3, [pc, #72]	; 8668 <devFS_evaluate_path+0xc0>
    861c:	e585300c 	str	r3, [r5, #12]                                 
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    8620:	e59f3044 	ldr	r3, [pc, #68]	; 866c <devFS_evaluate_path+0xc4>
    8624:	e5933000 	ldr	r3, [r3]                                      
    8628:	e5933028 	ldr	r3, [r3, #40]	; 0x28                          
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    862c:	e5856000 	str	r6, [r5]                                      
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    8630:	e5853010 	str	r3, [r5, #16]                                 
    return 0;                                                         
    8634:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
  /* 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++) {                     
    8638:	e2877001 	add	r7, r7, #1                                    
    863c:	e2866014 	add	r6, r6, #20                                   
    8640:	e59a3000 	ldr	r3, [sl]                                      
    8644:	e1570003 	cmp	r7, r3                                        
    8648:	3affffe4 	bcc	85e0 <devFS_evaluate_path+0x38>               
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
    864c:	eb000943 	bl	ab60 <__errno>                                 
    8650:	e3a03002 	mov	r3, #2                                        
    8654:	e5803000 	str	r3, [r0]                                      
    8658:	e3e00000 	mvn	r0, #0                                        
}                                                                     
    865c:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      

000014e4 <devFS_initialize>: int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry, const void *data ) {
    14e4:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* allocate device only filesystem name table */                    
  device_name_table = (rtems_device_name_t *)_Workspace_Allocate(     
    14e8:	e59f7058 	ldr	r7, [pc, #88]	; 1548 <devFS_initialize+0x64>  
                                                                      
int devFS_initialize(                                                 
  rtems_filesystem_mount_table_entry_t *temp_mt_entry,                
  const void                           *data                          
)                                                                     
{                                                                     
    14ec:	e1a04000 	mov	r4, r0                                        
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* allocate device only filesystem name table */                    
  device_name_table = (rtems_device_name_t *)_Workspace_Allocate(     
    14f0:	e5970000 	ldr	r0, [r7]                                      
    14f4:	e3a06014 	mov	r6, #20                                       
    14f8:	e0000096 	mul	r0, r6, r0                                    
    14fc:	eb001aa7 	bl	7fa0 <_Workspace_Allocate>                     
        sizeof( rtems_device_name_t ) * ( rtems_device_table_size )   
        );                                                            
                                                                      
  /* no memory for device filesystem */                               
  if (!device_name_table)                                             
    1500:	e2505000 	subs	r5, r0, #0                                   
    1504:	1a000004 	bne	151c <devFS_initialize+0x38>                  
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
    1508:	eb002594 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    150c:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    1510:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1514:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1518:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      
  memset(                                                             
    151c:	e5972000 	ldr	r2, [r7]                                      
    1520:	e3a01000 	mov	r1, #0                                        
    1524:	e0020296 	mul	r2, r6, r2                                    
    1528:	eb0027f9 	bl	b514 <memset>                                  
    device_name_table, 0,                                             
    sizeof( rtems_device_name_t ) * ( rtems_device_table_size )       
    );                                                                
                                                                      
  /* set file handlers */                                             
  temp_mt_entry->mt_fs_root.handlers     = &devFS_file_handlers;      
    152c:	e59f3018 	ldr	r3, [pc, #24]	; 154c <devFS_initialize+0x68>  
    1530:	e5843024 	str	r3, [r4, #36]	; 0x24                          
  temp_mt_entry->mt_fs_root.ops          = &devFS_ops;                
    1534:	e2833038 	add	r3, r3, #56	; 0x38                            
    1538:	e5843028 	str	r3, [r4, #40]	; 0x28                          
                                                                      
  /* Set the node_access to device name table */                      
  temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;  
    153c:	e584501c 	str	r5, [r4, #28]                                 
                                                                      
  return 0;                                                           
    1540:	e3a00000 	mov	r0, #0                                        
}                                                                     
    1544:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

00001550 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
    1550:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
    1554:	e58d2000 	str	r2, [sp]                                      
    1558:	e1a09003 	mov	r9, r3                                        
   * 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') &&                         
    155c:	e5d03000 	ldrb	r3, [r0]                                     
    1560:	e3530064 	cmp	r3, #100	; 0x64                               
  const char                        *path,                            
  mode_t                             mode,                            
  dev_t                              dev,                             
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
    1564:	e1a04000 	mov	r4, r0                                        
    1568:	e1a05001 	mov	r5, r1                                        
   * condition and do not create the '/dev' and the 'path'            
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
    156c:	1a000008 	bne	1594 <devFS_mknod+0x44>                       
    1570:	e5d03001 	ldrb	r3, [r0, #1]                                 
    1574:	e3530065 	cmp	r3, #101	; 0x65                               
    1578:	1a000005 	bne	1594 <devFS_mknod+0x44>                       
    157c:	e5d03002 	ldrb	r3, [r0, #2]                                 
    1580:	e3530076 	cmp	r3, #118	; 0x76                               
    1584:	1a000002 	bne	1594 <devFS_mknod+0x44>                       
      (path[2] == 'v') && (path[3] == '\0'))                          
    1588:	e5d00003 	ldrb	r0, [r0, #3]                                 
    158c:	e3500000 	cmp	r0, #0                                        
    1590:	0a000039 	beq	167c <devFS_mknod+0x12c>                      
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
    1594:	e205aa0f 	and	sl, r5, #61440	; 0xf000                       
    1598:	e35a0a02 	cmp	sl, #8192	; 0x2000                            
    159c:	135a0a06 	cmpne	sl, #24576	; 0x6000                         
    15a0:	03a0a000 	moveq	sl, #0                                      
    15a4:	13a0a001 	movne	sl, #1                                      
    15a8:	0a000002 	beq	15b8 <devFS_mknod+0x68>                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    15ac:	eb00256b 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    15b0:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    15b4:	ea000008 	b	15dc <devFS_mknod+0x8c>                         <== NOT EXECUTED
  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;    
    15b8:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    15bc:	e5936000 	ldr	r6, [r3]                                      
  if (!device_name_table)                                             
    15c0:	e3560000 	cmp	r6, #0                                        
    15c4:	13e07000 	mvnne	r7, #0                                      
    15c8:	11a0800a 	movne	r8, sl                                      
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
    15cc:	159fb0ac 	ldrne	fp, [pc, #172]	; 1680 <devFS_mknod+0x130>   
    15d0:	1a000011 	bne	161c <devFS_mknod+0xcc>                       
    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 );                   
    15d4:	eb002561 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    15d8:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    15dc:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    15e0:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    15e4:	ea000024 	b	167c <devFS_mknod+0x12c>                        <== NOT EXECUTED
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
    15e8:	e796100a 	ldr	r1, [r6, sl]                                  
    15ec:	e3510000 	cmp	r1, #0                                        
    15f0:	0a000006 	beq	1610 <devFS_mknod+0xc0>                       
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
    15f4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    15f8:	eb002841 	bl	b704 <strcmp>                                  <== NOT EXECUTED
    15fc:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    1600:	1a000003 	bne	1614 <devFS_mknod+0xc4>                       <== NOT EXECUTED
              rtems_set_errno_and_return_minus_one( EEXIST );         
    1604:	eb002555 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    1608:	e3a03011 	mov	r3, #17                                       <== NOT EXECUTED
    160c:	eafffff2 	b	15dc <devFS_mknod+0x8c>                         <== NOT EXECUTED
  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;                                                   
    1610:	e1a07008 	mov	r7, r8                                        
  /* 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++){           
    1614:	e2888001 	add	r8, r8, #1                                    
    1618:	e28aa014 	add	sl, sl, #20                                   
    161c:	e59b3000 	ldr	r3, [fp]                                      
    1620:	e1580003 	cmp	r8, r3                                        
    1624:	3affffef 	bcc	15e8 <devFS_mknod+0x98>                       
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
    1628:	e3770001 	cmn	r7, #1                                        
    162c:	1a000004 	bne	1644 <devFS_mknod+0xf4>                       
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
    1630:	eb00254a 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    1634:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    1638:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    163c:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    1640:	ea00000d 	b	167c <devFS_mknod+0x12c>                        <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    1644:	e10fa000 	mrs	sl, CPSR                                      
    1648:	e38a3080 	orr	r3, sl, #128	; 0x80                           
    164c:	e129f003 	msr	CPSR_fc, r3                                   
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
    1650:	e3a03014 	mov	r3, #20                                       
    1654:	e0070793 	mul	r7, r3, r7                                    
  device_name_table[slot].device_name_length = strlen(path);          
    1658:	e1a00004 	mov	r0, r4                                        
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
    165c:	e7864007 	str	r4, [r6, r7]                                  
  device_name_table[slot].device_name_length = strlen(path);          
    1660:	eb0028ef 	bl	ba24 <strlen>                                  
  device_name_table[slot].major = major;                              
    1664:	e59d3000 	ldr	r3, [sp]                                      
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
    1668:	e0868007 	add	r8, r6, r7                                    
  device_name_table[slot].device_name_length = strlen(path);          
    166c:	e9880209 	stmib	r8, {r0, r3, r9}                            
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
  device_name_table[slot].mode  = mode;                               
    1670:	e5885010 	str	r5, [r8, #16]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    1674:	e129f00a 	msr	CPSR_fc, sl                                   
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
    1678:	e3a00000 	mov	r0, #0                                        
}                                                                     
    167c:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

0000175c <devFS_read>: ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) {
    175c:	e92d487f 	push	{r0, r1, r2, r3, r4, r5, r6, fp, lr}         <== NOT EXECUTED
  np               = (rtems_device_name_t *)iop->pathinfo.node_access;
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
    1760:	e58d2010 	str	r2, [sp, #16]                                 <== NOT EXECUTED
  args.flags       = iop->flags;                                      
    1764:	e2802014 	add	r2, r0, #20                                   <== NOT EXECUTED
    1768:	e892000c 	ldm	r2, {r2, r3}                                  <== NOT EXECUTED
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->pathinfo.node_access;
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
    176c:	e280c00c 	add	ip, r0, #12                                   <== NOT EXECUTED
    1770:	e89c1800 	ldm	ip, {fp, ip}                                  <== NOT EXECUTED
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
    1774:	e58d2014 	str	r2, [sp, #20]                                 <== NOT EXECUTED
  args.bytes_moved = 0;                                               
    1778:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
  rtems_status_code       status;                                     
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->pathinfo.node_access;
                                                                      
  args.iop         = iop;                                             
    177c:	e58d0000 	str	r0, [sp]                                      <== NOT EXECUTED
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
    1780:	e58d100c 	str	r1, [sp, #12]                                 <== NOT EXECUTED
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
    1784:	e58d2018 	str	r2, [sp, #24]                                 <== NOT EXECUTED
                                                                      
  status = rtems_io_read(                                             
    1788:	e2830008 	add	r0, r3, #8                                    <== NOT EXECUTED
    178c:	e8900003 	ldm	r0, {r0, r1}                                  <== NOT EXECUTED
    1790:	e1a0200d 	mov	r2, sp                                        <== NOT EXECUTED
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->pathinfo.node_access;
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
    1794:	e98d1800 	stmib	sp, {fp, ip}                                <== NOT EXECUTED
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
                                                                      
  status = rtems_io_read(                                             
    1798:	eb000f40 	bl	54a0 <rtems_io_read>                           <== NOT EXECUTED
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
    179c:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    return rtems_deviceio_errno(status);                              
                                                                      
  return (ssize_t) args.bytes_moved;                                  
    17a0:	059d0018 	ldreq	r0, [sp, #24]                               <== NOT EXECUTED
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
    return rtems_deviceio_errno(status);                              
    17a4:	1b001bb4 	blne	867c <rtems_deviceio_errno>                  <== NOT EXECUTED
                                                                      
  return (ssize_t) args.bytes_moved;                                  
}                                                                     
    17a8:	e28dd01c 	add	sp, sp, #28                                   <== NOT EXECUTED
    17ac:	e8bd8800 	pop	{fp, pc}                                      <== NOT EXECUTED
                                                                      

000017b0 <devFS_stat>: struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access;
    17b0:	e5903000 	ldr	r3, [r0]                                      
  if (!the_dev)                                                       
    17b4:	e3530000 	cmp	r3, #0                                        
                                                                      
int devFS_stat(                                                       
  rtems_filesystem_location_info_t *loc,                              
  struct stat                      *buf                               
)                                                                     
{                                                                     
    17b8:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  rtems_device_name_t *the_dev;                                       
                                                                      
  the_dev = (rtems_device_name_t *)loc->node_access;                  
  if (!the_dev)                                                       
    17bc:	1a000004 	bne	17d4 <devFS_stat+0x24>                        
    rtems_set_errno_and_return_minus_one( EFAULT );                   
    17c0:	eb0024e6 	bl	ab60 <__errno>                                 <== NOT EXECUTED
    17c4:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    17c8:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    17cc:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    17d0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
    17d4:	e2830008 	add	r0, r3, #8                                    
    17d8:	e890000d 	ldm	r0, {r0, r2, r3}                              
                                                                      
  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
    17dc:	e5810018 	str	r0, [r1, #24]                                 
    17e0:	e581201c 	str	r2, [r1, #28]                                 
                                                                      
  buf->st_mode = the_dev->mode;                                       
    17e4:	e581300c 	str	r3, [r1, #12]                                 
                                                                      
  return 0;                                                           
    17e8:	e3a00000 	mov	r0, #0                                        
}                                                                     
    17ec:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

0000be0c <device_ftruncate>: rtems_libio_t *iop, rtems_off64_t length ) { return 0; }
    be0c:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    be10:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00002b90 <drainOutput>: drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
    2b90:	e59030b4 	ldr	r3, [r0, #180]	; 0xb4                         
    2b94:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Drain output queue                                                 
 */                                                                   
static void                                                           
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
    2b98:	e92d4030 	push	{r4, r5, lr}                                 
    2b9c:	e1a04000 	mov	r4, r0                                        
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    2ba0:	08bd8030 	popeq	{r4, r5, pc}                                
    rtems_interrupt_disable (level);                                  
    2ba4:	ebfffff5 	bl	2b80 <arm_interrupt_disable>                   
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
    2ba8:	e3a05002 	mov	r5, #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) {              
    2bac:	ea000008 	b	2bd4 <drainOutput+0x44>                         
      tty->rawOutBufState = rob_wait;                                 
    2bb0:	e5845094 	str	r5, [r4, #148]	; 0x94                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    2bb4:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
    2bb8:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    2bbc:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         <== NOT EXECUTED
    2bc0:	e1a02001 	mov	r2, r1                                        <== NOT EXECUTED
    2bc4:	eb0008ca 	bl	4ef4 <rtems_semaphore_obtain>                  <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
    2bc8:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
    2bcc:	1b000a5f 	blne	5550 <rtems_fatal_error_occurred>            <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
    2bd0:	ebffffea 	bl	2b80 <arm_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) {              
    2bd4:	e5942084 	ldr	r2, [r4, #132]	; 0x84                         
    2bd8:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    2bdc:	e1520003 	cmp	r2, r3                                        
    2be0:	1afffff2 	bne	2bb0 <drainOutput+0x20>                       
    2be4:	e129f000 	msr	CPSR_fc, r0                                   
    2be8:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00003868 <erase>: * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0)
    3868:	e5903020 	ldr	r3, [r0, #32]                                 
    386c:	e3530000 	cmp	r3, #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)                   
{                                                                     
    3870:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    3874:	e1a04000 	mov	r4, r0                                        
    3878:	e1a07001 	mov	r7, r1                                        
  if (tty->ccount == 0)                                               
    387c:	08bd81f0 	popeq	{r4, r5, r6, r7, r8, pc}                    
    return;                                                           
  if (lineFlag) {                                                     
    3880:	e3510000 	cmp	r1, #0                                        
    3884:	0a000060 	beq	3a0c <erase+0x1a4>                            
    if (!(tty->termios.c_lflag & ECHO)) {                             
    3888:	e590303c 	ldr	r3, [r0, #60]	; 0x3c                          
    388c:	e2132008 	ands	r2, r3, #8                                   
      tty->ccount = 0;                                                
    3890:	05802020 	streq	r2, [r0, #32]                               
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
    3894:	08bd81f0 	popeq	{r4, r5, r6, r7, r8, pc}                    
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
    3898:	e2133010 	ands	r3, r3, #16                                  
    389c:	1a00005a 	bne	3a0c <erase+0x1a4>                            
      tty->ccount = 0;                                                
    38a0:	e5803020 	str	r3, [r0, #32]                                 <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
    38a4:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    38a8:	e5d00044 	ldrb	r0, [r0, #68]	; 0x44                         <== NOT EXECUTED
    38ac:	ebffffca 	bl	37dc <echo>                                    <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
    38b0:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
    38b4:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
        echo ('\n', tty);                                             
    38b8:	13a0000a 	movne	r0, #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)                               
    38bc:	08bd81f0 	popeq	{r4, r5, r6, r7, r8, pc}                    <== NOT EXECUTED
    38c0:	ea00000b 	b	38f4 <erase+0x8c>                               <== NOT EXECUTED
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
    38c4:	e2411001 	sub	r1, r1, #1                                    
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
    38c8:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
    38cc:	e594001c 	ldr	r0, [r4, #28]                                 
    38d0:	e5841020 	str	r1, [r4, #32]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
    38d4:	e3130008 	tst	r3, #8                                        
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
    38d8:	e7d05001 	ldrb	r5, [r0, r1]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
    38dc:	0a000047 	beq	3a00 <erase+0x198>                            
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
    38e0:	e3570000 	cmp	r7, #0                                        
    38e4:	1a000005 	bne	3900 <erase+0x98>                             
    38e8:	e3130010 	tst	r3, #16                                       
    38ec:	1a000003 	bne	3900 <erase+0x98>                             
        echo (tty->termios.c_cc[VERASE], tty);                        
    38f0:	e5d40043 	ldrb	r0, [r4, #67]	; 0x43                         <== NOT EXECUTED
    38f4:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
    38f8:	e8bd41f0 	pop	{r4, r5, r6, r7, r8, lr}                      <== 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);                        
    38fc:	eaffffb6 	b	37dc <echo>                                     <== NOT EXECUTED
      } else if (c == '\t') {                                         
    3900:	e3550009 	cmp	r5, #9                                        
    3904:	1a00001f 	bne	3988 <erase+0x120>                            
        int col = tty->read_start_column;                             
    3908:	e594502c 	ldr	r5, [r4, #44]	; 0x2c                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
    390c:	e5968000 	ldr	r8, [r6]                                      
    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;                                                    
    3910:	e3a02000 	mov	r2, #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)                       
    3914:	e2033c02 	and	r3, r3, #512	; 0x200                          
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
    3918:	ea00000c 	b	3950 <erase+0xe8>                               
          c = tty->cbuf[i++];                                         
    391c:	e7d0c002 	ldrb	ip, [r0, r2]                                 
          if (c == '\t') {                                            
    3920:	e35c0009 	cmp	ip, #9                                        
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
    3924:	e2822001 	add	r2, r2, #1                                    
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
    3928:	03855007 	orreq	r5, r5, #7                                  
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
    392c:	0a000006 	beq	394c <erase+0xe4>                             
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
    3930:	e088c00c 	add	ip, r8, ip                                    
    3934:	e5dcc001 	ldrb	ip, [ip, #1]                                 
    3938:	e31c0020 	tst	ip, #32                                       
    393c:	0a000002 	beq	394c <erase+0xe4>                             
            if (tty->termios.c_lflag & ECHOCTL)                       
    3940:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
              col += 2;                                               
    3944:	12855002 	addne	r5, r5, #2                                  <== NOT EXECUTED
    3948:	ea000000 	b	3950 <erase+0xe8>                               <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
    394c:	e2855001 	add	r5, r5, #1                                    
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
    3950:	e1520001 	cmp	r2, r1                                        
    3954:	1afffff0 	bne	391c <erase+0xb4>                             
    3958:	ea000006 	b	3978 <erase+0x110>                              
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
    395c:	e59f00bc 	ldr	r0, [pc, #188]	; 3a20 <erase+0x1b8>           
    3960:	e3a01001 	mov	r1, #1                                        
    3964:	e1a02004 	mov	r2, r4                                        
    3968:	ebffff07 	bl	358c <rtems_termios_puts>                      
          tty->column--;                                              
    396c:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    3970:	e2433001 	sub	r3, r3, #1                                    
    3974:	e5843028 	str	r3, [r4, #40]	; 0x28                          
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
    3978:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    397c:	e1530005 	cmp	r3, r5                                        
    3980:	cafffff5 	bgt	395c <erase+0xf4>                             
    3984:	ea00001d 	b	3a00 <erase+0x198>                              
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
    3988:	e5962000 	ldr	r2, [r6]                                      
    398c:	e2855001 	add	r5, r5, #1                                    
    3990:	e7d22005 	ldrb	r2, [r2, r5]                                 
    3994:	e3120020 	tst	r2, #32                                       
    3998:	0a000009 	beq	39c4 <erase+0x15c>                            
    399c:	e3130c02 	tst	r3, #512	; 0x200                              <== NOT EXECUTED
    39a0:	0a000007 	beq	39c4 <erase+0x15c>                            <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
    39a4:	e59f0078 	ldr	r0, [pc, #120]	; 3a24 <erase+0x1bc>           <== NOT EXECUTED
    39a8:	e3a01003 	mov	r1, #3                                        <== NOT EXECUTED
    39ac:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    39b0:	ebfffef5 	bl	358c <rtems_termios_puts>                      <== NOT EXECUTED
          if (tty->column)                                            
    39b4:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
    39b8:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->column--;                                            
    39bc:	12433001 	subne	r3, r3, #1                                  <== NOT EXECUTED
    39c0:	15843028 	strne	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
    39c4:	e5963000 	ldr	r3, [r6]                                      
    39c8:	e7d33005 	ldrb	r3, [r3, r5]                                 
    39cc:	e3130020 	tst	r3, #32                                       
    39d0:	0a000002 	beq	39e0 <erase+0x178>                            
    39d4:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
    39d8:	e3130c02 	tst	r3, #512	; 0x200                              <== NOT EXECUTED
    39dc:	0a000007 	beq	3a00 <erase+0x198>                            <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
    39e0:	e59f003c 	ldr	r0, [pc, #60]	; 3a24 <erase+0x1bc>            
    39e4:	e3a01003 	mov	r1, #3                                        
    39e8:	e1a02004 	mov	r2, r4                                        
    39ec:	ebfffee6 	bl	358c <rtems_termios_puts>                      
          if (tty->column)                                            
    39f0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    39f4:	e3530000 	cmp	r3, #0                                        
            tty->column--;                                            
    39f8:	12433001 	subne	r3, r3, #1                                  
    39fc:	15843028 	strne	r3, [r4, #40]	; 0x28                        
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
    3a00:	e3570000 	cmp	r7, #0                                        
    3a04:	1a000001 	bne	3a10 <erase+0x1a8>                            
    3a08:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
    3a0c:	e59f6014 	ldr	r6, [pc, #20]	; 3a28 <erase+0x1c0>            
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    3a10:	e5941020 	ldr	r1, [r4, #32]                                 
    3a14:	e3510000 	cmp	r1, #0                                        
    3a18:	1affffa9 	bne	38c4 <erase+0x5c>                             
    3a1c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

000025d4 <fcntl>: int fcntl( int fd, int cmd, ... ) {
    25d4:	e92d000e 	push	{r1, r2, r3}                                 
    25d8:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    25dc:	e59f21a4 	ldr	r2, [pc, #420]	; 2788 <fcntl+0x1b4>           
    25e0:	e5921000 	ldr	r1, [r2]                                      
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
    25e4:	e28d301c 	add	r3, sp, #28                                   
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    25e8:	e1500001 	cmp	r0, r1                                        
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
    25ec:	e59d7018 	ldr	r7, [sp, #24]                                 
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
    25f0:	e58d3000 	str	r3, [sp]                                      
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    25f4:	2a000006 	bcs	2614 <fcntl+0x40>                             
  iop = rtems_libio_iop( fd );                                        
    25f8:	e59f218c 	ldr	r2, [pc, #396]	; 278c <fcntl+0x1b8>           
    25fc:	e5922000 	ldr	r2, [r2]                                      
    2600:	e3a04038 	mov	r4, #56	; 0x38                                
    2604:	e0242490 	mla	r4, r0, r4, r2                                
  rtems_libio_check_is_open(iop);                                     
    2608:	e5940014 	ldr	r0, [r4, #20]                                 
    260c:	e3100c01 	tst	r0, #256	; 0x100                              
    2610:	1a000002 	bne	2620 <fcntl+0x4c>                             
    2614:	eb002cd1 	bl	d960 <__errno>                                 
    2618:	e3a03009 	mov	r3, #9                                        
    261c:	ea000047 	b	2740 <fcntl+0x16c>                              
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    2620:	e3570009 	cmp	r7, #9                                        
    2624:	979ff107 	ldrls	pc, [pc, r7, lsl #2]                        
    2628:	ea000042 	b	2738 <fcntl+0x164>                              
    262c:	00002654 	.word	0x00002654                                  <== NOT EXECUTED
    2630:	000026c4 	.word	0x000026c4                                  <== NOT EXECUTED
    2634:	000026d4 	.word	0x000026d4                                  <== NOT EXECUTED
    2638:	000026f4 	.word	0x000026f4                                  <== NOT EXECUTED
    263c:	00002700 	.word	0x00002700                                  <== NOT EXECUTED
    2640:	0000272c 	.word	0x0000272c                                  <== NOT EXECUTED
    2644:	0000272c 	.word	0x0000272c                                  <== NOT EXECUTED
    2648:	0000272c 	.word	0x0000272c                                  <== NOT EXECUTED
    264c:	0000272c 	.word	0x0000272c                                  <== NOT EXECUTED
    2650:	0000272c 	.word	0x0000272c                                  <== NOT EXECUTED
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
    2654:	e5933000 	ldr	r3, [r3]                                      
      if ( fd2 )                                                      
    2658:	e3530000 	cmp	r3, #0                                        
    265c:	0a000004 	beq	2674 <fcntl+0xa0>                             
        diop = rtems_libio_iop( fd2 );                                
    2660:	e1530001 	cmp	r3, r1                                        <== NOT EXECUTED
    2664:	33a06038 	movcc	r6, #56	; 0x38                              <== NOT EXECUTED
    2668:	30262693 	mlacc	r6, r3, r6, r2                              <== NOT EXECUTED
    266c:	3a000005 	bcc	2688 <fcntl+0xb4>                             <== NOT EXECUTED
    2670:	ea000003 	b	2684 <fcntl+0xb0>                               <== NOT EXECUTED
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
    2674:	eb000190 	bl	2cbc <rtems_libio_allocate>                    
        if ( diop == 0 ) {                                            
    2678:	e2506000 	subs	r6, r0, #0                                   
    267c:	1a000001 	bne	2688 <fcntl+0xb4>                             
    2680:	ea00003b 	b	2774 <fcntl+0x1a0>                              <== NOT EXECUTED
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
      if ( fd2 )                                                      
        diop = rtems_libio_iop( fd2 );                                
    2684:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
    2688:	e5943014 	ldr	r3, [r4, #20]                                 
      diop->pathinfo   = iop->pathinfo;                               
    268c:	e2845018 	add	r5, r4, #24                                   
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
    2690:	e5863014 	str	r3, [r6, #20]                                 
      diop->pathinfo   = iop->pathinfo;                               
    2694:	e8b5000f 	ldm	r5!, {r0, r1, r2, r3}                         
    2698:	e286c018 	add	ip, r6, #24                                   
    269c:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    26a0:	e5953000 	ldr	r3, [r5]                                      
    26a4:	e58c3000 	str	r3, [ip]                                      
      ret = (int) (diop - rtems_libio_iops);                          
    26a8:	e59f30dc 	ldr	r3, [pc, #220]	; 278c <fcntl+0x1b8>           
    26ac:	e5933000 	ldr	r3, [r3]                                      
    26b0:	e0636006 	rsb	r6, r3, r6                                    
    26b4:	e59f30d4 	ldr	r3, [pc, #212]	; 2790 <fcntl+0x1bc>           
    26b8:	e1a061c6 	asr	r6, r6, #3                                    
    26bc:	e0060693 	mul	r6, r3, r6                                    
    26c0:	ea000020 	b	2748 <fcntl+0x174>                              
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
    26c4:	e3100b02 	tst	r0, #2048	; 0x800                             
    26c8:	03a06000 	moveq	r6, #0                                      
    26cc:	13a06001 	movne	r6, #1                                      
    26d0:	ea00001e 	b	2750 <fcntl+0x17c>                              
       *  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 ) )                                        
    26d4:	e5936000 	ldr	r6, [r3]                                      
    26d8:	e3560000 	cmp	r6, #0                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
    26dc:	13800b02 	orrne	r0, r0, #2048	; 0x800                       
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
    26e0:	03c00b02 	biceq	r0, r0, #2048	; 0x800                       
       *  processes, then we can ignore this one except to make       
       *  F_GETFD work.                                               
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
    26e4:	15840014 	strne	r0, [r4, #20]                               
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
    26e8:	05840014 	streq	r0, [r4, #20]                               
       *  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 ) )                                        
    26ec:	0a000017 	beq	2750 <fcntl+0x17c>                            
    26f0:	ea00000b 	b	2724 <fcntl+0x150>                              
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
    26f4:	eb00015e 	bl	2c74 <rtems_libio_to_fcntl_flags>              
    26f8:	e1a06000 	mov	r6, r0                                        
    26fc:	ea000011 	b	2748 <fcntl+0x174>                              
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
    2700:	e5930000 	ldr	r0, [r3]                                      
    2704:	eb00014d 	bl	2c40 <rtems_libio_fcntl_flags>                 
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
    2708:	e5942014 	ldr	r2, [r4, #20]                                 
    270c:	e59f3080 	ldr	r3, [pc, #128]	; 2794 <fcntl+0x1c0>           
    2710:	e3c22c02 	bic	r2, r2, #512	; 0x200                          
    2714:	e0003003 	and	r3, r0, r3                                    
    2718:	e3c22001 	bic	r2, r2, #1                                    
    271c:	e1833002 	orr	r3, r3, r2                                    
    2720:	e5843014 	str	r3, [r4, #20]                                 
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
    2724:	e3a06000 	mov	r6, #0                                        
    2728:	ea000008 	b	2750 <fcntl+0x17c>                              
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
    272c:	eb002c8b 	bl	d960 <__errno>                                 
    2730:	e3a03086 	mov	r3, #134	; 0x86                               
    2734:	ea000001 	b	2740 <fcntl+0x16c>                              
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
    2738:	eb002c88 	bl	d960 <__errno>                                 
    273c:	e3a03016 	mov	r3, #22                                       
    2740:	e5803000 	str	r3, [r0]                                      
    2744:	ea00000a 	b	2774 <fcntl+0x1a0>                              
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    2748:	e3560000 	cmp	r6, #0                                        
    274c:	ba000009 	blt	2778 <fcntl+0x1a4>                            
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
    2750:	e5943020 	ldr	r3, [r4, #32]                                 
    2754:	e1a01004 	mov	r1, r4                                        
    2758:	e1a00007 	mov	r0, r7                                        
    275c:	e1a0e00f 	mov	lr, pc                                        
    2760:	e593f030 	ldr	pc, [r3, #48]	; 0x30                          
    if (err) {                                                        
    2764:	e2504000 	subs	r4, r0, #0                                   
    2768:	0a000002 	beq	2778 <fcntl+0x1a4>                            
      errno = err;                                                    
    276c:	eb002c7b 	bl	d960 <__errno>                                 <== NOT EXECUTED
    2770:	e5804000 	str	r4, [r0]                                      <== NOT EXECUTED
      ret = -1;                                                       
    2774:	e3e06000 	mvn	r6, #0                                        
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
    2778:	e1a00006 	mov	r0, r6                                        
    277c:	e8bd40f8 	pop	{r3, r4, r5, r6, r7, lr}                      
    2780:	e28dd00c 	add	sp, sp, #12                                   
    2784:	e12fff1e 	bx	lr                                             
                                                                      

0000abb8 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
    abb8:	e92d45f7 	push	{r0, r1, r2, r4, r5, r6, r7, r8, sl, lr}     
    abbc:	e1a06000 	mov	r6, r0                                        
    abc0:	e1a07001 	mov	r7, r1                                        
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
    abc4:	ebffff87 	bl	a9e8 <pipe_lock>                               
  if (err)                                                            
    abc8:	e250a000 	subs	sl, r0, #0                                   
    abcc:	1a0000c9 	bne	aef8 <fifo_open+0x340>                        
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
    abd0:	e5964000 	ldr	r4, [r6]                                      
  if (pipe == NULL) {                                                 
    abd4:	e3540000 	cmp	r4, #0                                        
    abd8:	1a00004b 	bne	ad0c <fifo_open+0x154>                        
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
    abdc:	e2800034 	add	r0, r0, #52	; 0x34                            
    abe0:	ebffe22d 	bl	349c <malloc>                                  
  if (pipe == NULL)                                                   
    abe4:	e2508000 	subs	r8, r0, #0                                   
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
    abe8:	e1a04000 	mov	r4, r0                                        
  if (pipe == NULL)                                                   
    abec:	0a000044 	beq	ad04 <fifo_open+0x14c>                        
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
    abf0:	e1a0100a 	mov	r1, sl                                        
    abf4:	e3a02034 	mov	r2, #52	; 0x34                                
    abf8:	eb00109b 	bl	ee6c <memset>                                  
                                                                      
  pipe->Size = PIPE_BUF;                                              
    abfc:	e3a00c02 	mov	r0, #512	; 0x200                              
    ac00:	e5840004 	str	r0, [r4, #4]                                  
  pipe->Buffer = malloc(pipe->Size);                                  
    ac04:	ebffe224 	bl	349c <malloc>                                  
  if (! pipe->Buffer)                                                 
    ac08:	e3500000 	cmp	r0, #0                                        
  if (pipe == NULL)                                                   
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
                                                                      
  pipe->Size = PIPE_BUF;                                              
  pipe->Buffer = malloc(pipe->Size);                                  
    ac0c:	e5840000 	str	r0, [r4]                                      
  if (! pipe->Buffer)                                                 
    ac10:	0a000039 	beq	acfc <fifo_open+0x144>                        
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
    ac14:	e59f52e4 	ldr	r5, [pc, #740]	; af00 <fifo_open+0x348>       
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
    ac18:	e59f02e4 	ldr	r0, [pc, #740]	; af04 <fifo_open+0x34c>       
        rtems_build_name ('P', 'I', 'r', c),                          
    ac1c:	e5d53000 	ldrb	r3, [r5]                                     
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
    ac20:	e1a0100a 	mov	r1, sl                                        
    ac24:	e1830000 	orr	r0, r3, r0                                    
    ac28:	e1a0200a 	mov	r2, sl                                        
    ac2c:	e284302c 	add	r3, r4, #44	; 0x2c                            
    ac30:	eb00068a 	bl	c660 <rtems_barrier_create>                    
    ac34:	e2501000 	subs	r1, r0, #0                                   
    ac38:	1a00002d 	bne	acf4 <fifo_open+0x13c>                        
        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),                          
    ac3c:	e5d53000 	ldrb	r3, [r5]                                     
  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(                                           
    ac40:	e59f02c0 	ldr	r0, [pc, #704]	; af08 <fifo_open+0x350>       
    ac44:	e1a02001 	mov	r2, r1                                        
    ac48:	e1830000 	orr	r0, r3, r0                                    
    ac4c:	e2843030 	add	r3, r4, #48	; 0x30                            
    ac50:	eb000682 	bl	c660 <rtems_barrier_create>                    
    ac54:	e2503000 	subs	r3, r0, #0                                   
    ac58:	1a000023 	bne	acec <fifo_open+0x134>                        
        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,                       
    ac5c:	e5d52000 	ldrb	r2, [r5]                                     
  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(                                         
    ac60:	e59f02a4 	ldr	r0, [pc, #676]	; af0c <fifo_open+0x354>       
    ac64:	e2841028 	add	r1, r4, #40	; 0x28                            
    ac68:	e58d1000 	str	r1, [sp]                                      
    ac6c:	e1820000 	orr	r0, r2, r0                                    
    ac70:	e3a01001 	mov	r1, #1                                        
    ac74:	e3a02010 	mov	r2, #16                                       
    ac78:	ebffed89 	bl	62a4 <rtems_semaphore_create>                  
    ac7c:	e3500000 	cmp	r0, #0                                        
    ac80:	1a000017 	bne	ace4 <fifo_open+0x12c>                        
/* 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
    ac84:	e28d8004 	add	r8, sp, #4                                    
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
    _Objects_Get( &_Barrier_Information, id, location );              
    ac88:	e594102c 	ldr	r1, [r4, #44]	; 0x2c                          
    ac8c:	e1a02008 	mov	r2, r8                                        
    ac90:	e59f0278 	ldr	r0, [pc, #632]	; af10 <fifo_open+0x358>       
    ac94:	ebfff3de 	bl	7c14 <_Objects_Get>                            
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
    ac98:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    ac9c:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
    aca0:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
    aca4:	ebfff5de 	bl	8424 <_Thread_Enable_dispatch>                 
    aca8:	e1a02008 	mov	r2, r8                                        
    acac:	e5941030 	ldr	r1, [r4, #48]	; 0x30                          
    acb0:	e59f0258 	ldr	r0, [pc, #600]	; af10 <fifo_open+0x358>       
    acb4:	ebfff3d6 	bl	7c14 <_Objects_Get>                            
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
    acb8:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    acbc:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
    acc0:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
    acc4:	ebfff5d6 	bl	8424 <_Thread_Enable_dispatch>                 
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
    acc8:	e5d53000 	ldrb	r3, [r5]                                     
    accc:	e353007a 	cmp	r3, #122	; 0x7a                               
    acd0:	e2832001 	add	r2, r3, #1                                    
    c = 'a';                                                          
    acd4:	03a03061 	moveq	r3, #97	; 0x61                              
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
    acd8:	e5c52000 	strb	r2, [r5]                                     
    c = 'a';                                                          
    acdc:	05c53000 	strbeq	r3, [r5]                                   
    ace0:	ea000009 	b	ad0c <fifo_open+0x154>                          
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
    ace4:	e5980030 	ldr	r0, [r8, #48]	; 0x30                          
    ace8:	eb00068c 	bl	c720 <rtems_barrier_delete>                    
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
    acec:	e598002c 	ldr	r0, [r8, #44]	; 0x2c                          
    acf0:	eb00068a 	bl	c720 <rtems_barrier_delete>                    
err_rbar:                                                             
  free(pipe->Buffer);                                                 
    acf4:	e5980000 	ldr	r0, [r8]                                      
    acf8:	ebffe077 	bl	2edc <free>                                    
err_buf:                                                              
  free(pipe);                                                         
    acfc:	e1a00008 	mov	r0, r8                                        
    ad00:	ebffe075 	bl	2edc <free>                                    
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
    ad04:	e3e0a00b 	mvn	sl, #11                                       
    ad08:	ea00000d 	b	ad44 <fifo_open+0x18c>                          
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    ad0c:	e3a01000 	mov	r1, #0                                        
    ad10:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    ad14:	e1a02001 	mov	r2, r1                                        
    ad18:	ebffedf3 	bl	64ec <rtems_semaphore_obtain>                  
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    ad1c:	e5963000 	ldr	r3, [r6]                                      
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
    ad20:	e3500000 	cmp	r0, #0                                        
    ad24:	03a0a000 	moveq	sl, #0                                      
    ad28:	13e0a003 	mvnne	sl, #3                                      
                                                                      
  if (*pipep == NULL) {                                               
    ad2c:	e3530000 	cmp	r3, #0                                        
    ad30:	1a000003 	bne	ad44 <fifo_open+0x18c>                        
    if (err)                                                          
    ad34:	e35a0000 	cmp	sl, #0                                        
      pipe_free(pipe);                                                
    else                                                              
      *pipep = pipe;                                                  
    ad38:	05864000 	streq	r4, [r6]                                    
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    if (err)                                                          
      pipe_free(pipe);                                                
    ad3c:	11a00004 	movne	r0, r4                                      
    ad40:	1bffff4c 	blne	aa78 <pipe_free>                             
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
    ad44:	ebffff58 	bl	aaac <pipe_unlock>                             
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    ad48:	e35a0000 	cmp	sl, #0                                        
    ad4c:	1a000069 	bne	aef8 <fifo_open+0x340>                        
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    ad50:	e5973014 	ldr	r3, [r7, #20]                                 
    ad54:	e2033006 	and	r3, r3, #6                                    
    ad58:	e3530004 	cmp	r3, #4                                        
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
    ad5c:	e5964000 	ldr	r4, [r6]                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    ad60:	0a000024 	beq	adf8 <fifo_open+0x240>                        
    ad64:	e3530006 	cmp	r3, #6                                        
    ad68:	0a000047 	beq	ae8c <fifo_open+0x2d4>                        
    ad6c:	e3530002 	cmp	r3, #2                                        
    ad70:	1a000059 	bne	aedc <fifo_open+0x324>                        
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
    ad74:	e5943020 	ldr	r3, [r4, #32]                                 
    ad78:	e2833001 	add	r3, r3, #1                                    
    ad7c:	e5843020 	str	r3, [r4, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    ad80:	e5943010 	ldr	r3, [r4, #16]                                 
    ad84:	e2832001 	add	r2, r3, #1                                    
    ad88:	e3530000 	cmp	r3, #0                                        
    ad8c:	e5842010 	str	r2, [r4, #16]                                 
        PIPE_WAKEUPWRITERS(pipe);                                     
    ad90:	05940030 	ldreq	r0, [r4, #48]	; 0x30                        
    ad94:	028d1008 	addeq	r1, sp, #8                                  
    ad98:	0b000688 	bleq	c7c0 <rtems_barrier_release>                 
                                                                      
      if (pipe->Writers == 0) {                                       
    ad9c:	e5943014 	ldr	r3, [r4, #20]                                 
    ada0:	e3530000 	cmp	r3, #0                                        
    ada4:	1a00004c 	bne	aedc <fifo_open+0x324>                        
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
    ada8:	e5973014 	ldr	r3, [r7, #20]                                 
    adac:	e3130001 	tst	r3, #1                                        
    adb0:	1a000049 	bne	aedc <fifo_open+0x324>                        
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
    adb4:	e5945024 	ldr	r5, [r4, #36]	; 0x24                          
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
    adb8:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    adbc:	ebffee10 	bl	6604 <rtems_semaphore_release>                 
          if (! PIPE_READWAIT(pipe))                                  
    adc0:	e3a01000 	mov	r1, #0                                        
    adc4:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
    adc8:	eb000692 	bl	c818 <rtems_barrier_wait>                      
    adcc:	e2501000 	subs	r1, r0, #0                                   
    add0:	1a000044 	bne	aee8 <fifo_open+0x330>                        
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    add4:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    add8:	e1a02001 	mov	r2, r1                                        
    addc:	ebffedc2 	bl	64ec <rtems_semaphore_obtain>                  
    ade0:	e3500000 	cmp	r0, #0                                        
    ade4:	1a00003f 	bne	aee8 <fifo_open+0x330>                        
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
    ade8:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
    adec:	e1550003 	cmp	r5, r3                                        
    adf0:	0afffff0 	beq	adb8 <fifo_open+0x200>                        
    adf4:	ea000038 	b	aedc <fifo_open+0x324>                          
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
    adf8:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
    adfc:	e2833001 	add	r3, r3, #1                                    
    ae00:	e5843024 	str	r3, [r4, #36]	; 0x24                          
                                                                      
      if (pipe->Writers ++ == 0)                                      
    ae04:	e5943014 	ldr	r3, [r4, #20]                                 
    ae08:	e2832001 	add	r2, r3, #1                                    
    ae0c:	e3530000 	cmp	r3, #0                                        
    ae10:	e5842014 	str	r2, [r4, #20]                                 
        PIPE_WAKEUPREADERS(pipe);                                     
    ae14:	0594002c 	ldreq	r0, [r4, #44]	; 0x2c                        
    ae18:	028d1008 	addeq	r1, sp, #8                                  
    ae1c:	0b000667 	bleq	c7c0 <rtems_barrier_release>                 
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
    ae20:	e5943010 	ldr	r3, [r4, #16]                                 
    ae24:	e3530000 	cmp	r3, #0                                        
    ae28:	1a00002b 	bne	aedc <fifo_open+0x324>                        
    ae2c:	e5973014 	ldr	r3, [r7, #20]                                 
    ae30:	e3130001 	tst	r3, #1                                        
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
    ae34:	05945020 	ldreq	r5, [r4, #32]                               
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
    ae38:	0a000003 	beq	ae4c <fifo_open+0x294>                        
	PIPE_UNLOCK(pipe);                                                   
    ae3c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    ae40:	ebffedef 	bl	6604 <rtems_semaphore_release>                 
        err = -ENXIO;                                                 
    ae44:	e3e0a005 	mvn	sl, #5                                        
        goto out_error;                                               
    ae48:	ea000027 	b	aeec <fifo_open+0x334>                          
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
    ae4c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    ae50:	ebffedeb 	bl	6604 <rtems_semaphore_release>                 
          if (! PIPE_WRITEWAIT(pipe))                                 
    ae54:	e3a01000 	mov	r1, #0                                        
    ae58:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
    ae5c:	eb00066d 	bl	c818 <rtems_barrier_wait>                      
    ae60:	e2501000 	subs	r1, r0, #0                                   
    ae64:	1a00001f 	bne	aee8 <fifo_open+0x330>                        
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    ae68:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    ae6c:	e1a02001 	mov	r2, r1                                        
    ae70:	ebffed9d 	bl	64ec <rtems_semaphore_obtain>                  
    ae74:	e3500000 	cmp	r0, #0                                        
    ae78:	1a00001a 	bne	aee8 <fifo_open+0x330>                        
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
    ae7c:	e5943020 	ldr	r3, [r4, #32]                                 
    ae80:	e1550003 	cmp	r5, r3                                        
    ae84:	0afffff0 	beq	ae4c <fifo_open+0x294>                        
    ae88:	ea000013 	b	aedc <fifo_open+0x324>                          
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
    ae8c:	e5943020 	ldr	r3, [r4, #32]                                 
    ae90:	e2833001 	add	r3, r3, #1                                    
    ae94:	e5843020 	str	r3, [r4, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    ae98:	e5943010 	ldr	r3, [r4, #16]                                 
    ae9c:	e2832001 	add	r2, r3, #1                                    
    aea0:	e3530000 	cmp	r3, #0                                        
    aea4:	e5842010 	str	r2, [r4, #16]                                 
        PIPE_WAKEUPWRITERS(pipe);                                     
    aea8:	05940030 	ldreq	r0, [r4, #48]	; 0x30                        
    aeac:	028d1008 	addeq	r1, sp, #8                                  
    aeb0:	0b000642 	bleq	c7c0 <rtems_barrier_release>                 
      pipe->writerCounter ++;                                         
    aeb4:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
    aeb8:	e2833001 	add	r3, r3, #1                                    
    aebc:	e5843024 	str	r3, [r4, #36]	; 0x24                          
      if (pipe->Writers ++ == 0)                                      
    aec0:	e5943014 	ldr	r3, [r4, #20]                                 
    aec4:	e2832001 	add	r2, r3, #1                                    
    aec8:	e3530000 	cmp	r3, #0                                        
    aecc:	e5842014 	str	r2, [r4, #20]                                 
        PIPE_WAKEUPREADERS(pipe);                                     
    aed0:	0594002c 	ldreq	r0, [r4, #44]	; 0x2c                        
    aed4:	028d1008 	addeq	r1, sp, #8                                  
    aed8:	0b000638 	bleq	c7c0 <rtems_barrier_release>                 
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
    aedc:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    aee0:	ebffedc7 	bl	6604 <rtems_semaphore_release>                 
  return 0;                                                           
    aee4:	ea000003 	b	aef8 <fifo_open+0x340>                          
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
    aee8:	e3e0a003 	mvn	sl, #3                                        <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
    aeec:	e1a00006 	mov	r0, r6                                        
    aef0:	e1a01007 	mov	r1, r7                                        
    aef4:	ebfffef6 	bl	aad4 <pipe_release>                            
  return err;                                                         
}                                                                     
    aef8:	e1a0000a 	mov	r0, sl                                        
    aefc:	e8bd85fe 	pop	{r1, r2, r3, r4, r5, r6, r7, r8, sl, pc}      
                                                                      

00002818 <fpathconf>: { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd);
    2818:	e59f3104 	ldr	r3, [pc, #260]	; 2924 <fpathconf+0x10c>       
    281c:	e5933000 	ldr	r3, [r3]                                      
    2820:	e1500003 	cmp	r0, r3                                        
                                                                      
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
    2824:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
    2828:	2a000006 	bcs	2848 <fpathconf+0x30>                         
  iop = rtems_libio_iop(fd);                                          
    282c:	e59f30f4 	ldr	r3, [pc, #244]	; 2928 <fpathconf+0x110>       
    2830:	e5933000 	ldr	r3, [r3]                                      
    2834:	e3a02038 	mov	r2, #56	; 0x38                                
    2838:	e0203092 	mla	r0, r2, r0, r3                                
  rtems_libio_check_is_open(iop);                                     
    283c:	e5903014 	ldr	r3, [r0, #20]                                 
    2840:	e3130c01 	tst	r3, #256	; 0x100                              
    2844:	1a000002 	bne	2854 <fpathconf+0x3c>                         
    2848:	eb002c44 	bl	d960 <__errno>                                 
    284c:	e3a03009 	mov	r3, #9                                        
    2850:	ea000003 	b	2864 <fpathconf+0x4c>                           
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
    2854:	e3130002 	tst	r3, #2                                        
    2858:	1a000004 	bne	2870 <fpathconf+0x58>                         
    285c:	eb002c3f 	bl	d960 <__errno>                                 <== NOT EXECUTED
    2860:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    2864:	e5803000 	str	r3, [r0]                                      
    2868:	e3e00000 	mvn	r0, #0                                        
    286c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
    2870:	e5903028 	ldr	r3, [r0, #40]	; 0x28                          
                                                                      
  switch ( name ) {                                                   
    2874:	e351000b 	cmp	r1, #11                                       
    2878:	979ff101 	ldrls	pc, [pc, r1, lsl #2]                        
    287c:	ea000023 	b	2910 <fpathconf+0xf8>                           
    2880:	000028b0 	.word	0x000028b0                                  <== NOT EXECUTED
    2884:	000028b8 	.word	0x000028b8                                  <== NOT EXECUTED
    2888:	000028c0 	.word	0x000028c0                                  <== NOT EXECUTED
    288c:	000028c8 	.word	0x000028c8                                  <== NOT EXECUTED
    2890:	000028d0 	.word	0x000028d0                                  <== NOT EXECUTED
    2894:	000028d8 	.word	0x000028d8                                  <== NOT EXECUTED
    2898:	000028e0 	.word	0x000028e0                                  <== NOT EXECUTED
    289c:	000028e8 	.word	0x000028e8                                  <== NOT EXECUTED
    28a0:	000028f0 	.word	0x000028f0                                  <== NOT EXECUTED
    28a4:	000028f8 	.word	0x000028f8                                  <== NOT EXECUTED
    28a8:	00002900 	.word	0x00002900                                  <== NOT EXECUTED
    28ac:	00002908 	.word	0x00002908                                  <== NOT EXECUTED
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
    28b0:	e5930038 	ldr	r0, [r3, #56]	; 0x38                          
      break;                                                          
    28b4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
    28b8:	e593003c 	ldr	r0, [r3, #60]	; 0x3c                          
      break;                                                          
    28bc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
    28c0:	e5930040 	ldr	r0, [r3, #64]	; 0x40                          
      break;                                                          
    28c4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
    28c8:	e5930044 	ldr	r0, [r3, #68]	; 0x44                          
      break;                                                          
    28cc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
    28d0:	e5930048 	ldr	r0, [r3, #72]	; 0x48                          
      break;                                                          
    28d4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
    28d8:	e593004c 	ldr	r0, [r3, #76]	; 0x4c                          
      break;                                                          
    28dc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
    28e0:	e5930054 	ldr	r0, [r3, #84]	; 0x54                          
      break;                                                          
    28e4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
    28e8:	e5930058 	ldr	r0, [r3, #88]	; 0x58                          
      break;                                                          
    28ec:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
    28f0:	e5930064 	ldr	r0, [r3, #100]	; 0x64                         
      break;                                                          
    28f4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
    28f8:	e5930050 	ldr	r0, [r3, #80]	; 0x50                          
      break;                                                          
    28fc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
    2900:	e593005c 	ldr	r0, [r3, #92]	; 0x5c                          
      break;                                                          
    2904:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
    2908:	e5930060 	ldr	r0, [r3, #96]	; 0x60                          
      break;                                                          
    290c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    2910:	eb002c12 	bl	d960 <__errno>                                 
    2914:	e3a03016 	mov	r3, #22                                       
    2918:	e5803000 	str	r3, [r0]                                      
    291c:	e3e00000 	mvn	r0, #0                                        
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
    2920:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00002eec <free_user_env>: static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env
    2eec:	e59f3028 	ldr	r3, [pc, #40]	; 2f1c <free_user_env+0x30>     <== NOT EXECUTED
    2ef0:	e1500003 	cmp	r0, r3                                        <== NOT EXECUTED
 * NOTE: this must be called with                                     
 *       thread dispatching disabled!                                 
 */                                                                   
static void                                                           
free_user_env(void *venv)                                             
{                                                                     
    2ef4:	e92d4010 	push	{r4, lr}                                     <== NOT EXECUTED
    2ef8:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
 if (env != &rtems_global_user_env                                    
    2efc:	08bd8010 	popeq	{r4, pc}                                    <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT                                            
  && --env->refcnt <= 0                                               
#endif                                                                
  ) {                                                                 
  rtems_filesystem_freenode( &env->current_directory);                
    2f00:	e2800004 	add	r0, r0, #4                                    <== NOT EXECUTED
    2f04:	ebfffbfb 	bl	1ef8 <rtems_filesystem_freenode>               <== NOT EXECUTED
  rtems_filesystem_freenode( &env->root_directory);                   
    2f08:	e2840018 	add	r0, r4, #24                                   <== NOT EXECUTED
    2f0c:	ebfffbf9 	bl	1ef8 <rtems_filesystem_freenode>               <== NOT EXECUTED
  free(env);                                                          
    2f10:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
 }                                                                    
}                                                                     
    2f14:	e8bd4010 	pop	{r4, lr}                                      <== NOT EXECUTED
  && --env->refcnt <= 0                                               
#endif                                                                
  ) {                                                                 
  rtems_filesystem_freenode( &env->current_directory);                
  rtems_filesystem_freenode( &env->root_directory);                   
  free(env);                                                          
    2f18:	eafffbfb 	b	1f0c <free>                                     <== NOT EXECUTED
                                                                      

00009424 <ftruncate>: int ftruncate( int fd, off_t length ) {
    9424:	e92d4070 	push	{r4, r5, r6, lr}                             
  rtems_libio_t                    *iop;                              
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  rtems_libio_check_fd( fd );                                         
    9428:	e59f30b8 	ldr	r3, [pc, #184]	; 94e8 <ftruncate+0xc4>        
    942c:	e5933000 	ldr	r3, [r3]                                      
    9430:	e1500003 	cmp	r0, r3                                        
                                                                      
int ftruncate(                                                        
  int     fd,                                                         
  off_t   length                                                      
)                                                                     
{                                                                     
    9434:	e24dd014 	sub	sp, sp, #20                                   
    9438:	e1a05001 	mov	r5, r1                                        
    943c:	e1a06002 	mov	r6, r2                                        
  rtems_libio_t                    *iop;                              
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  rtems_libio_check_fd( fd );                                         
    9440:	2a000006 	bcs	9460 <ftruncate+0x3c>                         
  iop = rtems_libio_iop( fd );                                        
    9444:	e59f30a0 	ldr	r3, [pc, #160]	; 94ec <ftruncate+0xc8>        
    9448:	e5933000 	ldr	r3, [r3]                                      
    944c:	e3a04038 	mov	r4, #56	; 0x38                                
    9450:	e0243490 	mla	r4, r0, r4, r3                                
  rtems_libio_check_is_open(iop);                                     
    9454:	e5943014 	ldr	r3, [r4, #20]                                 
    9458:	e3130c01 	tst	r3, #256	; 0x100                              
    945c:	1a000002 	bne	946c <ftruncate+0x48>                         
    9460:	eb000d73 	bl	ca34 <__errno>                                 
    9464:	e3a03009 	mov	r3, #9                                        
    9468:	ea000013 	b	94bc <ftruncate+0x98>                           
                                                                      
  /*                                                                  
   *  Make sure we are not working on a directory                     
   */                                                                 
                                                                      
  loc = iop->pathinfo;                                                
    946c:	e284e018 	add	lr, r4, #24                                   
    9470:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    9474:	e1a0c00d 	mov	ip, sp                                        
    9478:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    947c:	e59e3000 	ldr	r3, [lr]                                      
  if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
    9480:	e1a0000d 	mov	r0, sp                                        
                                                                      
  /*                                                                  
   *  Make sure we are not working on a directory                     
   */                                                                 
                                                                      
  loc = iop->pathinfo;                                                
    9484:	e58c3000 	str	r3, [ip]                                      
  if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
    9488:	e59d300c 	ldr	r3, [sp, #12]                                 
    948c:	e1a0e00f 	mov	lr, pc                                        
    9490:	e593f010 	ldr	pc, [r3, #16]                                 
    9494:	e3500001 	cmp	r0, #1                                        
    9498:	1a000002 	bne	94a8 <ftruncate+0x84>                         
    rtems_set_errno_and_return_minus_one( EISDIR );                   
    949c:	eb000d64 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    94a0:	e3a03015 	mov	r3, #21                                       <== NOT EXECUTED
    94a4:	ea000004 	b	94bc <ftruncate+0x98>                           <== NOT EXECUTED
                                                                      
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
    94a8:	e5943014 	ldr	r3, [r4, #20]                                 
    94ac:	e3130004 	tst	r3, #4                                        
    94b0:	1a000004 	bne	94c8 <ftruncate+0xa4>                         
    94b4:	eb000d5e 	bl	ca34 <__errno>                                 
    94b8:	e3a03016 	mov	r3, #22                                       
    94bc:	e5803000 	str	r3, [r0]                                      
    94c0:	e3e00000 	mvn	r0, #0                                        
    94c4:	ea000005 	b	94e0 <ftruncate+0xbc>                           
                                                                      
  return (*iop->pathinfo.handlers->ftruncate_h)( iop, length );       
    94c8:	e5943020 	ldr	r3, [r4, #32]                                 
    94cc:	e1a00004 	mov	r0, r4                                        
    94d0:	e1a01005 	mov	r1, r5                                        
    94d4:	e1a02006 	mov	r2, r6                                        
    94d8:	e1a0e00f 	mov	lr, pc                                        
    94dc:	e593f020 	ldr	pc, [r3, #32]                                 
}                                                                     
    94e0:	e28dd014 	add	sp, sp, #20                                   
    94e4:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

0000be14 <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 )
    be14:	e5903018 	ldr	r3, [r0, #24]                                 
    be18:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    be1c:	e3530001 	cmp	r3, #1                                        
  rtems_libio_t  *iop,                                                
  const char *pathname,                                               
  uint32_t   flag,                                                    
  uint32_t   mode                                                     
)                                                                     
{                                                                     
    be20:	e92d4010 	push	{r4, lr}                                     
  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 )                            
    be24:	1a000005 	bne	be40 <imfs_dir_open+0x2c>                     
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
    be28:	e3a03000 	mov	r3, #0                                        
    be2c:	e3a04000 	mov	r4, #0                                        
    be30:	e580300c 	str	r3, [r0, #12]                                 
    be34:	e5804010 	str	r4, [r0, #16]                                 
  return 0;                                                           
    be38:	e3a00000 	mov	r0, #0                                        
    be3c:	e8bd8010 	pop	{r4, pc}                                      
                                                                      
  /* Is the node a directory ? */                                     
  the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;             
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
     return -1;      /* It wasn't a directory --> return error */     
    be40:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
                                                                      
  iop->offset = 0;                                                    
  return 0;                                                           
}                                                                     
    be44:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00003a2c <iproc>: * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP)
    3a2c:	e5913030 	ldr	r3, [r1, #48]	; 0x30                          
    3a30:	e3130020 	tst	r3, #32                                       
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3a34:	e92d4030 	push	{r4, r5, lr}                                 
    3a38:	e20050ff 	and	r5, r0, #255	; 0xff                           
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
    3a3c:	1200507f 	andne	r5, r0, #127	; 0x7f                         
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    3a40:	e3130c02 	tst	r3, #512	; 0x200                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3a44:	e1a04001 	mov	r4, r1                                        
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    3a48:	0a000007 	beq	3a6c <iproc+0x40>                             
    c = tolower (c);                                                  
    3a4c:	e59f2164 	ldr	r2, [pc, #356]	; 3bb8 <iproc+0x18c>           
    3a50:	e5922000 	ldr	r2, [r2]                                      
    3a54:	e0822005 	add	r2, r2, r5                                    
    3a58:	e5d22001 	ldrb	r2, [r2, #1]                                 
    3a5c:	e2022003 	and	r2, r2, #3                                    
    3a60:	e3520001 	cmp	r2, #1                                        
    3a64:	02855020 	addeq	r5, r5, #32                                 
    3a68:	e20550ff 	and	r5, r5, #255	; 0xff                           
                                                                      
  if (c == '\r') {                                                    
    3a6c:	e355000d 	cmp	r5, #13                                       
    3a70:	1a000005 	bne	3a8c <iproc+0x60>                             
    if (tty->termios.c_iflag & IGNCR)                                 
    3a74:	e3130080 	tst	r3, #128	; 0x80                               
    3a78:	1a000048 	bne	3ba0 <iproc+0x174>                            
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
    3a7c:	e3130c01 	tst	r3, #256	; 0x100                              
    3a80:	03a0500d 	moveq	r5, #13                                     
    3a84:	13a0500a 	movne	r5, #10                                     
    3a88:	ea000007 	b	3aac <iproc+0x80>                               
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    3a8c:	e355000a 	cmp	r5, #10                                       
    3a90:	1a000003 	bne	3aa4 <iproc+0x78>                             
    c = '\r';                                                         
    3a94:	e3130040 	tst	r3, #64	; 0x40                                
    3a98:	03a0500a 	moveq	r5, #10                                     
    3a9c:	13a0500d 	movne	r5, #13                                     
    3aa0:	ea000001 	b	3aac <iproc+0x80>                               
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    3aa4:	e3550000 	cmp	r5, #0                                        
    3aa8:	0a00002c 	beq	3b60 <iproc+0x134>                            
    3aac:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
    3ab0:	e3130002 	tst	r3, #2                                        
    3ab4:	0a000029 	beq	3b60 <iproc+0x134>                            
    if (c == tty->termios.c_cc[VERASE]) {                             
    3ab8:	e5d42043 	ldrb	r2, [r4, #67]	; 0x43                         
    3abc:	e1520005 	cmp	r2, r5                                        
      erase (tty, 0);                                                 
    3ac0:	01a00004 	moveq	r0, r4                                      
    3ac4:	03a01000 	moveq	r1, #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]) {                             
    3ac8:	0a000004 	beq	3ae0 <iproc+0xb4>                             
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
    3acc:	e5d42044 	ldrb	r2, [r4, #68]	; 0x44                         
    3ad0:	e1520005 	cmp	r2, r5                                        
    3ad4:	1a000003 	bne	3ae8 <iproc+0xbc>                             
      erase (tty, 1);                                                 
    3ad8:	e1a00004 	mov	r0, r4                                        
    3adc:	e3a01001 	mov	r1, #1                                        
    3ae0:	ebffff60 	bl	3868 <erase>                                   
    3ae4:	ea00002d 	b	3ba0 <iproc+0x174>                              
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
    3ae8:	e5d42045 	ldrb	r2, [r4, #69]	; 0x45                         
    3aec:	e1520005 	cmp	r2, r5                                        
    3af0:	0a00002c 	beq	3ba8 <iproc+0x17c>                            
      return 1;                                                       
    } else if (c == '\n') {                                           
    3af4:	e355000a 	cmp	r5, #10                                       
    3af8:	1a000008 	bne	3b20 <iproc+0xf4>                             
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
    3afc:	e3130048 	tst	r3, #72	; 0x48                                
        echo (c, tty);                                                
    3b00:	11a00005 	movne	r0, r5                                      
    3b04:	11a01004 	movne	r1, r4                                      
    3b08:	1bffff33 	blne	37dc <echo>                                  
      tty->cbuf[tty->ccount++] = c;                                   
    3b0c:	e284201c 	add	r2, r4, #28                                   
    3b10:	e892000c 	ldm	r2, {r2, r3}                                  
    3b14:	e3a0100a 	mov	r1, #10                                       
    3b18:	e7c21003 	strb	r1, [r2, r3]                                 
    3b1c:	ea00000c 	b	3b54 <iproc+0x128>                              
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
    3b20:	e5d4204c 	ldrb	r2, [r4, #76]	; 0x4c                         
    3b24:	e1520005 	cmp	r2, r5                                        
    3b28:	0a000002 	beq	3b38 <iproc+0x10c>                            
    3b2c:	e5d42051 	ldrb	r2, [r4, #81]	; 0x51                         
    3b30:	e1520005 	cmp	r2, r5                                        
    3b34:	1a000009 	bne	3b60 <iproc+0x134>                            
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
    3b38:	e3130008 	tst	r3, #8                                        <== NOT EXECUTED
        echo (c, tty);                                                
    3b3c:	11a00005 	movne	r0, r5                                      <== NOT EXECUTED
    3b40:	11a01004 	movne	r1, r4                                      <== NOT EXECUTED
    3b44:	1bffff24 	blne	37dc <echo>                                  <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
    3b48:	e284201c 	add	r2, r4, #28                                   <== NOT EXECUTED
    3b4c:	e892000c 	ldm	r2, {r2, r3}                                  <== NOT EXECUTED
    3b50:	e7c25003 	strb	r5, [r2, r3]                                 <== NOT EXECUTED
    3b54:	e2833001 	add	r3, r3, #1                                    
    3b58:	e5843020 	str	r3, [r4, #32]                                 
    3b5c:	ea000011 	b	3ba8 <iproc+0x17c>                              
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    3b60:	e59f3054 	ldr	r3, [pc, #84]	; 3bbc <iproc+0x190>            
    3b64:	e5933008 	ldr	r3, [r3, #8]                                  
    3b68:	e5942020 	ldr	r2, [r4, #32]                                 
    3b6c:	e2433001 	sub	r3, r3, #1                                    
    3b70:	e1520003 	cmp	r2, r3                                        
    3b74:	aa00000d 	bge	3bb0 <iproc+0x184>                            
    if (tty->termios.c_lflag & ECHO)                                  
    3b78:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
    3b7c:	e3130008 	tst	r3, #8                                        
      echo (c, tty);                                                  
    3b80:	11a00005 	movne	r0, r5                                      
    3b84:	11a01004 	movne	r1, r4                                      
    3b88:	1bffff13 	blne	37dc <echo>                                  
    tty->cbuf[tty->ccount++] = c;                                     
    3b8c:	e284201c 	add	r2, r4, #28                                   
    3b90:	e892000c 	ldm	r2, {r2, r3}                                  
    3b94:	e7c25003 	strb	r5, [r2, r3]                                 
    3b98:	e2833001 	add	r3, r3, #1                                    
    3b9c:	e5843020 	str	r3, [r4, #32]                                 
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
    3ba0:	e3a00000 	mov	r0, #0                                        
    3ba4:	e8bd8030 	pop	{r4, r5, pc}                                  
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    3ba8:	e3a00001 	mov	r0, #1                                        
    3bac:	e8bd8030 	pop	{r4, r5, pc}                                  
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
    3bb0:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
    3bb4:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      

0000b5d4 <memfile_free_blocks_in_table>: void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
    b5d4:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
   */                                                                 
                                                                      
  #if defined(RTEMS_DEBUG)                                            
    assert( block_table );                                            
  #endif                                                              
  if ( !block_table )                                                 
    b5d8:	e2505000 	subs	r5, r0, #0                                   
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
                                                                      
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
    b5dc:	13a04000 	movne	r4, #0                                      
                                                                      
void memfile_free_blocks_in_table(                                    
  block_p **block_table,                                              
  int       entries                                                   
)                                                                     
{                                                                     
    b5e0:	e1a08001 	mov	r8, r1                                        
   */                                                                 
                                                                      
  #if defined(RTEMS_DEBUG)                                            
    assert( block_table );                                            
  #endif                                                              
  if ( !block_table )                                                 
    b5e4:	15956000 	ldrne	r6, [r5]                                    
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
    if ( b[i] ) {                                                     
      memfile_free_block( b[i] );                                     
      b[i] = 0;                                                       
    b5e8:	11a07004 	movne	r7, r4                                      
   */                                                                 
                                                                      
  #if defined(RTEMS_DEBUG)                                            
    assert( block_table );                                            
  #endif                                                              
  if ( !block_table )                                                 
    b5ec:	1a000006 	bne	b60c <memfile_free_blocks_in_table+0x38>      
    b5f0:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
   */                                                                 
                                                                      
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
    if ( b[i] ) {                                                     
    b5f4:	e4960004 	ldr	r0, [r6], #4                                  
    b5f8:	e3500000 	cmp	r0, #0                                        
    b5fc:	0a000001 	beq	b608 <memfile_free_blocks_in_table+0x34>      
      memfile_free_block( b[i] );                                     
    b600:	ebffffeb 	bl	b5b4 <memfile_free_block>                      
      b[i] = 0;                                                       
    b604:	e5067004 	str	r7, [r6, #-4]                                 
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
                                                                      
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
    b608:	e2844001 	add	r4, r4, #1                                    
    b60c:	e1540008 	cmp	r4, r8                                        
    b610:	bafffff7 	blt	b5f4 <memfile_free_blocks_in_table+0x20>      
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
                                                                      
  memfile_free_block( *block_table );                                 
    b614:	e5950000 	ldr	r0, [r5]                                      
    b618:	ebffffe5 	bl	b5b4 <memfile_free_block>                      
  *block_table = 0;                                                   
    b61c:	e3a03000 	mov	r3, #0                                        
    b620:	e5853000 	str	r3, [r5]                                      
    b624:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

0000bb0c <memfile_ftruncate>: int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
    bb0c:	e92d4013 	push	{r0, r1, r4, lr}                             
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
    bb10:	e5904018 	ldr	r4, [r0, #24]                                 
   *  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 )                           
    bb14:	e5943054 	ldr	r3, [r4, #84]	; 0x54                          
    bb18:	e1530002 	cmp	r3, r2                                        
    bb1c:	ba000003 	blt	bb30 <memfile_ftruncate+0x24>                 
    bb20:	1a000005 	bne	bb3c <memfile_ftruncate+0x30>                 
    bb24:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
    bb28:	e1530001 	cmp	r3, r1                                        
    bb2c:	2a000002 	bcs	bb3c <memfile_ftruncate+0x30>                 
    return IMFS_memfile_extend( the_jnode, length );                  
    bb30:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    bb34:	ebffff08 	bl	b75c <IMFS_memfile_extend>                     <== NOT EXECUTED
    bb38:	ea000008 	b	bb60 <memfile_ftruncate+0x54>                   <== NOT EXECUTED
   *  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;                                 
    bb3c:	e5841050 	str	r1, [r4, #80]	; 0x50                          
    bb40:	e5842054 	str	r2, [r4, #84]	; 0x54                          
  iop->size = the_jnode->info.file.size;                              
    bb44:	e9800006 	stmib	r0, {r1, r2}                                
                                                                      
  IMFS_update_atime( the_jnode );                                     
    bb48:	e3a01000 	mov	r1, #0                                        
    bb4c:	e1a0000d 	mov	r0, sp                                        
    bb50:	ebffd8a0 	bl	1dd8 <gettimeofday>                            
    bb54:	e59d3000 	ldr	r3, [sp]                                      
    bb58:	e5843040 	str	r3, [r4, #64]	; 0x40                          
                                                                      
  return 0;                                                           
    bb5c:	e3a00000 	mov	r0, #0                                        
}                                                                     
    bb60:	e8bd801c 	pop	{r2, r3, r4, pc}                              
                                                                      

0000bb64 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
    bb64:	e92d4030 	push	{r4, r5, lr}                                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
    bb68:	e5905018 	ldr	r5, [r0, #24]                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    bb6c:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    bb70:	e3530006 	cmp	r3, #6                                        
rtems_off64_t memfile_lseek(                                          
  rtems_libio_t   *iop,                                               
  rtems_off64_t    offset,                                            
  int              whence                                             
)                                                                     
{                                                                     
    bb74:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    bb78:	1a00000b 	bne	bbac <memfile_lseek+0x48>                     
    if (iop->offset > the_jnode->info.linearfile.size)                
    bb7c:	e5953054 	ldr	r3, [r5, #84]	; 0x54                          
    bb80:	e5901010 	ldr	r1, [r0, #16]                                 
    bb84:	e1510003 	cmp	r1, r3                                        
    bb88:	e5952050 	ldr	r2, [r5, #80]	; 0x50                          
    bb8c:	ca000003 	bgt	bba0 <memfile_lseek+0x3c>                     
    bb90:	1a000014 	bne	bbe8 <memfile_lseek+0x84>                     
    bb94:	e590100c 	ldr	r1, [r0, #12]                                 
    bb98:	e1510002 	cmp	r1, r2                                        
    bb9c:	9a000011 	bls	bbe8 <memfile_lseek+0x84>                     
      iop->offset = the_jnode->info.linearfile.size;                  
    bba0:	e584200c 	str	r2, [r4, #12]                                 <== NOT EXECUTED
    bba4:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
    bba8:	ea00000e 	b	bbe8 <memfile_lseek+0x84>                       <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
    bbac:	e1a00005 	mov	r0, r5                                        
    bbb0:	e284200c 	add	r2, r4, #12                                   
    bbb4:	e8920006 	ldm	r2, {r1, r2}                                  
    bbb8:	ebfffee7 	bl	b75c <IMFS_memfile_extend>                     
    bbbc:	e3500000 	cmp	r0, #0                                        
    bbc0:	0a000005 	beq	bbdc <memfile_lseek+0x78>                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
    bbc4:	eb00039a 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    bbc8:	e3a0301c 	mov	r3, #28                                       <== NOT EXECUTED
    bbcc:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    bbd0:	e3e04000 	mvn	r4, #0                                        <== NOT EXECUTED
    bbd4:	e3e03000 	mvn	r3, #0                                        <== NOT EXECUTED
    bbd8:	ea000004 	b	bbf0 <memfile_lseek+0x8c>                       <== NOT EXECUTED
                                                                      
    iop->size = the_jnode->info.file.size;                            
    bbdc:	e2853050 	add	r3, r5, #80	; 0x50                            
    bbe0:	e893000c 	ldm	r3, {r2, r3}                                  
    bbe4:	e984000c 	stmib	r4, {r2, r3}                                
  }                                                                   
  return iop->offset;                                                 
    bbe8:	e284400c 	add	r4, r4, #12                                   
    bbec:	e8940018 	ldm	r4, {r3, r4}                                  
}                                                                     
    bbf0:	e1a00003 	mov	r0, r3                                        
    bbf4:	e1a01004 	mov	r1, r4                                        
    bbf8:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

0000ba70 <memfile_open>: the_jnode = iop->pathinfo.node_access; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
    ba70:	e5903014 	ldr	r3, [r0, #20]                                 
    ba74:	e3130f81 	tst	r3, #516	; 0x204                              
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
    ba78:	e92d4031 	push	{r0, r4, r5, lr}                             
    ba7c:	e1a05000 	mov	r5, r0                                        
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
    ba80:	e5904018 	ldr	r4, [r0, #24]                                 
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
    ba84:	0a000015 	beq	bae0 <memfile_open+0x70>                      
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
    ba88:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
    ba8c:	e3530006 	cmp	r3, #6                                        
    ba90:	1a000012 	bne	bae0 <memfile_open+0x70>                      
    uint32_t   count = the_jnode->info.linearfile.size;               
    ba94:	e594c050 	ldr	ip, [r4, #80]	; 0x50                          <== NOT EXECUTED
    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;                         
    ba98:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  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;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    ba9c:	e3a02005 	mov	r2, #5                                        <== NOT EXECUTED
    baa0:	e584204c 	str	r2, [r4, #76]	; 0x4c                          <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    baa4:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    baa8:	e3a02000 	mov	r2, #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)                                                  
    baac:	e15c0000 	cmp	ip, r0                                        <== 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;  
    bab0:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
    bab4:	e5841050 	str	r1, [r4, #80]	; 0x50                          <== NOT EXECUTED
    bab8:	e5842054 	str	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
    babc:	e5840058 	str	r0, [r4, #88]	; 0x58                          <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
    bac0:	e584005c 	str	r0, [r4, #92]	; 0x5c                          <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
    bac4:	e5840060 	str	r0, [r4, #96]	; 0x60                          <== NOT EXECUTED
    if ((count != 0)                                                  
    bac8:	0a000004 	beq	bae0 <memfile_open+0x70>                      <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
    bacc:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    bad0:	e58dc000 	str	ip, [sp]                                      <== NOT EXECUTED
    bad4:	ebffff67 	bl	b878 <IMFS_memfile_write>                      <== NOT EXECUTED
    bad8:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
    badc:	0a000009 	beq	bb08 <memfile_open+0x98>                      <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
    bae0:	e5953014 	ldr	r3, [r5, #20]                                 
    bae4:	e3130c02 	tst	r3, #512	; 0x200                              
    iop->offset = the_jnode->info.file.size;                          
    bae8:	12843050 	addne	r3, r4, #80	; 0x50                          
    baec:	1893000c 	ldmne	r3, {r2, r3}                                
    baf0:	1585200c 	strne	r2, [r5, #12]                               
    baf4:	15853010 	strne	r3, [r5, #16]                               
                                                                      
  iop->size = the_jnode->info.file.size;                              
    baf8:	e2844050 	add	r4, r4, #80	; 0x50                            
    bafc:	e8940018 	ldm	r4, {r3, r4}                                  
    bb00:	e9850018 	stmib	r5, {r3, r4}                                
  return 0;                                                           
    bb04:	e3a00000 	mov	r0, #0                                        
}                                                                     
    bb08:	e8bd8038 	pop	{r3, r4, r5, pc}                              
                                                                      

00002170 <mknod>: int mknod( const char *pathname, mode_t mode, dev_t dev ) {
    2170:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  rtems_filesystem_location_info_t    temp_loc;                       
  int                                 i;                              
  const char                         *name_start;                     
  int                                 result;                         
                                                                      
  if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )                 
    2174:	e3110a0f 	tst	r1, #61440	; 0xf000                           
int mknod(                                                            
  const char *pathname,                                               
  mode_t      mode,                                                   
  dev_t       dev                                                     
)                                                                     
{                                                                     
    2178:	e24dd020 	sub	sp, sp, #32                                   
    217c:	e1a06000 	mov	r6, r0                                        
    2180:	e1a05001 	mov	r5, r1                                        
    2184:	e1a07002 	mov	r7, r2                                        
    2188:	e1a08003 	mov	r8, r3                                        
  rtems_filesystem_location_info_t    temp_loc;                       
  int                                 i;                              
  const char                         *name_start;                     
  int                                 result;                         
                                                                      
  if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )                 
    218c:	1a000003 	bne	21a0 <mknod+0x30>                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    2190:	eb002a27 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    2194:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    2198:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    219c:	ea000018 	b	2204 <mknod+0x94>                               <== NOT EXECUTED
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );          
    21a0:	e28d4004 	add	r4, sp, #4                                    
    21a4:	e28d101c 	add	r1, sp, #28                                   
    21a8:	e1a02004 	mov	r2, r4                                        
    21ac:	eb000241 	bl	2ab8 <rtems_filesystem_get_start_loc>          
                                                                      
  result = (*temp_loc.ops->evalformake_h)(                            
    21b0:	e59d001c 	ldr	r0, [sp, #28]                                 
    21b4:	e1a01004 	mov	r1, r4                                        
    21b8:	e0860000 	add	r0, r6, r0                                    
    21bc:	e28d2018 	add	r2, sp, #24                                   
    21c0:	e59d3010 	ldr	r3, [sp, #16]                                 
    21c4:	e1a0e00f 	mov	lr, pc                                        
    21c8:	e593f004 	ldr	pc, [r3, #4]                                  
    &pathname[i],                                                     
    &temp_loc,                                                        
    &name_start                                                       
  );                                                                  
  if ( result != 0 )                                                  
    21cc:	e3500000 	cmp	r0, #0                                        
    21d0:	1a00000b 	bne	2204 <mknod+0x94>                             
    return -1;                                                        
                                                                      
  result =  (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
    21d4:	e1a01005 	mov	r1, r5                                        
    21d8:	e58d4000 	str	r4, [sp]                                      
    21dc:	e59d0018 	ldr	r0, [sp, #24]                                 
    21e0:	e1a02007 	mov	r2, r7                                        
    21e4:	e1a03008 	mov	r3, r8                                        
    21e8:	e59dc010 	ldr	ip, [sp, #16]                                 
    21ec:	e1a0e00f 	mov	lr, pc                                        
    21f0:	e59cf014 	ldr	pc, [ip, #20]                                 
    21f4:	e1a05000 	mov	r5, r0                                        
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
    21f8:	e1a00004 	mov	r0, r4                                        
    21fc:	ebfffec7 	bl	1d20 <rtems_filesystem_freenode>               
                                                                      
  return result;                                                      
    2200:	ea000000 	b	2208 <mknod+0x98>                               
    &pathname[i],                                                     
    &temp_loc,                                                        
    &name_start                                                       
  );                                                                  
  if ( result != 0 )                                                  
    return -1;                                                        
    2204:	e3e05000 	mvn	r5, #0                                        
  result =  (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
                                                                      
  return result;                                                      
}                                                                     
    2208:	e1a00005 	mov	r0, r5                                        
    220c:	e28dd020 	add	sp, sp, #32                                   
    2210:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

000022a8 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
    22a8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
    22ac:	e3530001 	cmp	r3, #1                                        
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
    22b0:	e24dd028 	sub	sp, sp, #40	; 0x28                            
    22b4:	e1a06000 	mov	r6, r0                                        
    22b8:	e1a07001 	mov	r7, r1                                        
    22bc:	e1a08002 	mov	r8, r2                                        
    22c0:	e58d300c 	str	r3, [sp, #12]                                 
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
    22c4:	8a000004 	bhi	22dc <mount+0x34>                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
    22c8:	e1a00002 	mov	r0, r2                                        
    22cc:	eb001d64 	bl	9864 <rtems_filesystem_get_mount_handler>      
  if ( !mount_h )                                                     
    22d0:	e3500000 	cmp	r0, #0                                        
    22d4:	e58d0010 	str	r0, [sp, #16]                                 
    22d8:	1a000002 	bne	22e8 <mount+0x40>                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    22dc:	eb0029d4 	bl	ca34 <__errno>                                 
    22e0:	e3a03016 	mov	r3, #22                                       
    22e4:	ea000039 	b	23d0 <mount+0x128>                              
{                                                                     
  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;                                   
    22e8:	e2575000 	subs	r5, r7, #0                                   
    22ec:	13a05001 	movne	r5, #1                                      
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
    22f0:	e59f3250 	ldr	r3, [pc, #592]	; 2548 <mount+0x2a0>           
    22f4:	e3550000 	cmp	r5, #0                                        
    22f8:	11a03007 	movne	r3, r7                                      
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
    22fc:	e1a00008 	mov	r0, r8                                        
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
    2300:	e58d3004 	str	r3, [sp, #4]                                  
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
    2304:	eb002dba 	bl	d9f4 <strlen>                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
    2308:	e3560000 	cmp	r6, #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;          
    230c:	e280b001 	add	fp, r0, #1                                    
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
    2310:	01a0a006 	moveq	sl, r6                                      
    2314:	0a000002 	beq	2324 <mount+0x7c>                             
    2318:	e1a00006 	mov	r0, r6                                        
    231c:	eb002db4 	bl	d9f4 <strlen>                                  
    2320:	e280a001 	add	sl, r0, #1                                    
  size_t target_length = strlen( target );                            
    2324:	e59d0004 	ldr	r0, [sp, #4]                                  
    2328:	eb002db1 	bl	d9f4 <strlen>                                  
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_length + 1;          
    232c:	e28b1075 	add	r1, fp, #117	; 0x75                           
    2330:	e0811000 	add	r1, r1, r0                                    
{                                                                     
  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_length = strlen( target );                            
    2334:	e58d0008 	str	r0, [sp, #8]                                  
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_length + 1;          
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
    2338:	e081100a 	add	r1, r1, sl                                    
    233c:	e3a00001 	mov	r0, #1                                        
    2340:	ebfffe00 	bl	1b48 <calloc>                                  
                                                                      
  if ( mt_entry != NULL ) {                                           
    2344:	e2504000 	subs	r4, r0, #0                                   
    2348:	0a00001e 	beq	23c8 <mount+0x120>                            
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
    234c:	e2849074 	add	r9, r4, #116	; 0x74                           
                                                                      
    strcpy( str, filesystemtype );                                    
    2350:	e1a00009 	mov	r0, r9                                        
    2354:	e1a01008 	mov	r1, r8                                        
    2358:	eb002d55 	bl	d8b4 <strcpy>                                  
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    if ( source_or_null != NULL ) {                                   
    235c:	e3560000 	cmp	r6, #0                                        
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    strcpy( str, filesystemtype );                                    
    mt_entry->type = str;                                             
    2360:	e584906c 	str	r9, [r4, #108]	; 0x6c                         
    str += filesystemtype_size;                                       
    2364:	e089900b 	add	r9, r9, fp                                    
                                                                      
    if ( source_or_null != NULL ) {                                   
    2368:	0a000004 	beq	2380 <mount+0xd8>                             
      strcpy( str, source_or_null );                                  
    236c:	e1a00009 	mov	r0, r9                                        
    2370:	e1a01006 	mov	r1, r6                                        
    2374:	eb002d4e 	bl	d8b4 <strcpy>                                  
      mt_entry->dev = str;                                            
    2378:	e5849070 	str	r9, [r4, #112]	; 0x70                         
      str += source_size;                                             
    237c:	e089900a 	add	r9, r9, sl                                    
    }                                                                 
                                                                      
    strcpy( str, target );                                            
    2380:	e59d1004 	ldr	r1, [sp, #4]                                  
    2384:	e1a00009 	mov	r0, r9                                        
    2388:	eb002d49 	bl	d8b4 <strcpy>                                  
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
    238c:	e59d300c 	ldr	r3, [sp, #12]                                 
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
    2390:	e59fe1b4 	ldr	lr, [pc, #436]	; 254c <mount+0x2a4>           
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
    2394:	e5843030 	str	r3, [r4, #48]	; 0x30                          
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
    2398:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    239c:	e284c038 	add	ip, r4, #56	; 0x38                            
    23a0:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    23a4:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    23a8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    23ac:	e89e000f 	ldm	lr, {r0, r1, r2, r3}                          
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    23b0:	e3550000 	cmp	r5, #0                                        
      mt_entry->dev = str;                                            
      str += source_size;                                             
    }                                                                 
                                                                      
    strcpy( str, target );                                            
    mt_entry->target = str;                                           
    23b4:	e5849068 	str	r9, [r4, #104]	; 0x68                         
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
    23b8:	e584402c 	str	r4, [r4, #44]	; 0x2c                          
  mt_entry->options = options;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
    23bc:	e88c000f 	stm	ip, {r0, r1, r2, r3}                          
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    23c0:	0a00002e 	beq	2480 <mount+0x1d8>                            
    23c4:	ea000003 	b	23d8 <mount+0x130>                              
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
    23c8:	eb002999 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    23cc:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    23d0:	e5803000 	str	r3, [r0]                                      
    23d4:	ea000058 	b	253c <mount+0x294>                              
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
    23d8:	e3a03001 	mov	r3, #1                                        
    23dc:	e28d6014 	add	r6, sp, #20                                   
    23e0:	e58d3000 	str	r3, [sp]                                      
    23e4:	e1a00007 	mov	r0, r7                                        
    23e8:	e59d1008 	ldr	r1, [sp, #8]                                  
    23ec:	e3a02007 	mov	r2, #7                                        
    23f0:	e1a03006 	mov	r3, r6                                        
    23f4:	ebfffe0e 	bl	1c34 <rtems_filesystem_evaluate_path>          
    23f8:	e3700001 	cmn	r0, #1                                        
    23fc:	0a000048 	beq	2524 <mount+0x27c>                            
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
    2400:	e1a00006 	mov	r0, r6                                        
    2404:	e59d3020 	ldr	r3, [sp, #32]                                 
    2408:	e1a0e00f 	mov	lr, pc                                        
    240c:	e593f010 	ldr	pc, [r3, #16]                                 
    2410:	e3500001 	cmp	r0, #1                                        
    2414:	0a000002 	beq	2424 <mount+0x17c>                            
      errno = ENOTDIR;                                                
    2418:	eb002985 	bl	ca34 <__errno>                                 
    241c:	e3a03014 	mov	r3, #20                                       
    2420:	ea000006 	b	2440 <mount+0x198>                              
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
    2424:	e59f0124 	ldr	r0, [pc, #292]	; 2550 <mount+0x2a8>           
    2428:	e59d1014 	ldr	r1, [sp, #20]                                 
    242c:	ebffff87 	bl	2250 <rtems_filesystem_mount_iterate>          
    2430:	e3500000 	cmp	r0, #0                                        
    2434:	0a000003 	beq	2448 <mount+0x1a0>                            
      errno = EBUSY;                                                  
    2438:	eb00297d 	bl	ca34 <__errno>                                 
    243c:	e3a03010 	mov	r3, #16                                       
    2440:	e5803000 	str	r3, [r0]                                      
      goto cleanup_and_bail;                                          
    2444:	ea000037 	b	2528 <mount+0x280>                              
     *  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;            
    2448:	e59d3014 	ldr	r3, [sp, #20]                                 
    244c:	e5843008 	str	r3, [r4, #8]                                  
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    2450:	e59d301c 	ldr	r3, [sp, #28]                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
    2454:	e59d2024 	ldr	r2, [sp, #36]	; 0x24                          
     *  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;                  
    2458:	e5843010 	str	r3, [r4, #16]                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
    245c:	e59d3020 	ldr	r3, [sp, #32]                                 
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
    2460:	e5842018 	str	r2, [r4, #24]                                 
     *  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;                            
    2464:	e5843014 	str	r3, [r4, #20]                                 
    /*                                                                
     *  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 ) ) {                             
    2468:	e1a00004 	mov	r0, r4                                        
    246c:	e1a0e00f 	mov	lr, pc                                        
    2470:	e593f020 	ldr	pc, [r3, #32]                                 
    2474:	e3500000 	cmp	r0, #0                                        
    2478:	0a00000b 	beq	24ac <mount+0x204>                            
    247c:	ea000029 	b	2528 <mount+0x280>                              <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
    2480:	e59f30cc 	ldr	r3, [pc, #204]	; 2554 <mount+0x2ac>           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
    2484:	e2832004 	add	r2, r3, #4                                    
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
    2488:	e5933000 	ldr	r3, [r3]                                      
    248c:	e1530002 	cmp	r3, r2                                        
)                                                                     
{                                                                     
  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;           
    2490:	01a06005 	moveq	r6, r5                                      
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
    2494:	0a000004 	beq	24ac <mount+0x204>                            
      errno = EINVAL;                                                 
    2498:	eb002965 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    249c:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    24a0:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
)                                                                     
{                                                                     
  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;           
    24a4:	e1a06005 	mov	r6, r5                                        <== NOT EXECUTED
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
      errno = EINVAL;                                                 
      goto cleanup_and_bail;                                          
    24a8:	ea00001e 	b	2528 <mount+0x280>                              <== 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 ) ) {                               
    24ac:	e1a00004 	mov	r0, r4                                        
    24b0:	e59d104c 	ldr	r1, [sp, #76]	; 0x4c                          
    24b4:	e59d3010 	ldr	r3, [sp, #16]                                 
    24b8:	e1a0e00f 	mov	lr, pc                                        
    24bc:	e12fff13 	bx	r3                                             
    24c0:	e2507000 	subs	r7, r0, #0                                   
    24c4:	0a000004 	beq	24dc <mount+0x234>                            
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
    24c8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    24cc:	e59d3020 	ldr	r3, [sp, #32]                                 <== NOT EXECUTED
    24d0:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    24d4:	e593f028 	ldr	pc, [r3, #40]	; 0x28                          <== NOT EXECUTED
    goto cleanup_and_bail;                                            
    24d8:	ea000012 	b	2528 <mount+0x280>                              <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
    24dc:	ebffff51 	bl	2228 <rtems_libio_lock>                        
    24e0:	e59f006c 	ldr	r0, [pc, #108]	; 2554 <mount+0x2ac>           
    24e4:	e1a01004 	mov	r1, r4                                        
    24e8:	eb000cd5 	bl	5844 <_Chain_Append>                           
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
    24ec:	ebffff53 	bl	2240 <rtems_libio_unlock>                      
                                                                      
  if ( !has_target )                                                  
    24f0:	e3550000 	cmp	r5, #0                                        
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
    24f4:	11a00007 	movne	r0, r7                                      
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    24f8:	1a000010 	bne	2540 <mount+0x298>                            
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
    24fc:	e59f3054 	ldr	r3, [pc, #84]	; 2558 <mount+0x2b0>            
    2500:	e284401c 	add	r4, r4, #28                                   
    2504:	e593c000 	ldr	ip, [r3]                                      
    2508:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    250c:	e28cc018 	add	ip, ip, #24                                   
    2510:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    2514:	e5943000 	ldr	r3, [r4]                                      
                                                                      
  return 0;                                                           
    2518:	e1a00005 	mov	r0, r5                                        
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
    251c:	e58c3000 	str	r3, [ip]                                      
    2520:	ea000006 	b	2540 <mount+0x298>                              
)                                                                     
{                                                                     
  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;           
    2524:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
    2528:	e1a00004 	mov	r0, r4                                        
    252c:	ebfffe00 	bl	1d34 <free>                                    
                                                                      
  if ( loc_to_free )                                                  
    2530:	e3560000 	cmp	r6, #0                                        
    rtems_filesystem_freenode( loc_to_free );                         
    2534:	11a00006 	movne	r0, r6                                      
    2538:	1bfffdf8 	blne	1d20 <rtems_filesystem_freenode>             
                                                                      
  return -1;                                                          
    253c:	e3e00000 	mvn	r0, #0                                        
}                                                                     
    2540:	e28dd028 	add	sp, sp, #40	; 0x28                            
    2544:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

00002560 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
    2560:	e92d4010 	push	{r4, lr}                                     
    2564:	e1a04000 	mov	r4, r0                                        
  switch ( fileno(fp) ) {                                             
    2568:	eb002a34 	bl	ce40 <fileno>                                  
    256c:	e3500002 	cmp	r0, #2                                        
    2570:	8a00000b 	bhi	25a4 <newlib_free_buffers+0x44>               
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
    2574:	e1d430bc 	ldrh	r3, [r4, #12]                                
    2578:	e3130080 	tst	r3, #128	; 0x80                               
    257c:	0a00000a 	beq	25ac <newlib_free_buffers+0x4c>               
        free( fp->_bf._base );                                        
    2580:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    2584:	ebfffdea 	bl	1d34 <free>                                    <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
    2588:	e1d430bc 	ldrh	r3, [r4, #12]                                <== NOT EXECUTED
    258c:	e3c33080 	bic	r3, r3, #128	; 0x80                           <== NOT EXECUTED
    2590:	e1c430bc 	strh	r3, [r4, #12]                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
    2594:	e3a03000 	mov	r3, #0                                        <== NOT EXECUTED
    2598:	e5843000 	str	r3, [r4]                                      <== NOT EXECUTED
    259c:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
    25a0:	ea000001 	b	25ac <newlib_free_buffers+0x4c>                 <== NOT EXECUTED
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
    25a4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    25a8:	eb00296f 	bl	cb6c <fclose>                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
    25ac:	e3a00000 	mov	r0, #0                                        
    25b0:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

0000368c <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
    368c:	e92d4011 	push	{r0, r4, lr}                                 
    3690:	e5cd0000 	strb	r0, [sp]                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    3694:	e5913034 	ldr	r3, [r1, #52]	; 0x34                          
    3698:	e3130001 	tst	r3, #1                                        
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    369c:	e1a04001 	mov	r4, r1                                        
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    36a0:	0a000045 	beq	37bc <oproc+0x130>                            
    switch (c) {                                                      
    36a4:	e5dd2000 	ldrb	r2, [sp]                                     
    36a8:	e2421008 	sub	r1, r2, #8                                    
    36ac:	e3510005 	cmp	r1, #5                                        
    36b0:	979ff101 	ldrls	pc, [pc, r1, lsl #2]                        
    36b4:	ea00002c 	b	376c <oproc+0xe0>                               
    36b8:	00003758 	.word	0x00003758                                  <== NOT EXECUTED
    36bc:	00003730 	.word	0x00003730                                  <== NOT EXECUTED
    36c0:	000036d0 	.word	0x000036d0                                  <== NOT EXECUTED
    36c4:	0000376c 	.word	0x0000376c                                  <== NOT EXECUTED
    36c8:	0000376c 	.word	0x0000376c                                  <== NOT EXECUTED
    36cc:	000036f8 	.word	0x000036f8                                  <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
    36d0:	e3130020 	tst	r3, #32                                       
        tty->column = 0;                                              
    36d4:	13a02000 	movne	r2, #0                                      
    36d8:	15842028 	strne	r2, [r4, #40]	; 0x28                        
      if (tty->termios.c_oflag & ONLCR) {                             
    36dc:	e3130004 	tst	r3, #4                                        
    36e0:	0a000035 	beq	37bc <oproc+0x130>                            
        rtems_termios_puts ("\r", 1, tty);                            
    36e4:	e59f00e4 	ldr	r0, [pc, #228]	; 37d0 <oproc+0x144>           
    36e8:	e3a01001 	mov	r1, #1                                        
    36ec:	e1a02004 	mov	r2, r4                                        
    36f0:	ebffffa5 	bl	358c <rtems_termios_puts>                      
    36f4:	ea00000b 	b	3728 <oproc+0x9c>                               
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
    36f8:	e3130010 	tst	r3, #16                                       <== NOT EXECUTED
    36fc:	0a000002 	beq	370c <oproc+0x80>                             <== NOT EXECUTED
    3700:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          <== NOT EXECUTED
    3704:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    3708:	0a00002f 	beq	37cc <oproc+0x140>                            <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
    370c:	e2132008 	ands	r2, r3, #8                                   <== NOT EXECUTED
        c = '\n';                                                     
        if (tty->termios.c_oflag & ONLRET)                            
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
    3710:	05842028 	streq	r2, [r4, #40]	; 0x28                        <== NOT EXECUTED
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
    3714:	0a000028 	beq	37bc <oproc+0x130>                            <== NOT EXECUTED
        c = '\n';                                                     
    3718:	e3a0200a 	mov	r2, #10                                       <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
    371c:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
        c = '\n';                                                     
    3720:	e5cd2000 	strb	r2, [sp]                                     <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
    3724:	0a000024 	beq	37bc <oproc+0x130>                            <== NOT EXECUTED
          tty->column = 0;                                            
    3728:	e3a03000 	mov	r3, #0                                        
    372c:	ea000021 	b	37b8 <oproc+0x12c>                              
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
    3730:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          
    3734:	e2021007 	and	r1, r2, #7                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3738:	e2033b06 	and	r3, r3, #6144	; 0x1800                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
    373c:	e2611008 	rsb	r1, r1, #8                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3740:	e3530b06 	cmp	r3, #6144	; 0x1800                            
    3744:	e0813002 	add	r3, r1, r2                                    
        tty->column += i;                                             
    3748:	05843028 	streq	r3, [r4, #40]	; 0x28                        
        rtems_termios_puts ( "        ",  i, tty);                    
    374c:	059f0080 	ldreq	r0, [pc, #128]	; 37d4 <oproc+0x148>         
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3750:	1a000018 	bne	37b8 <oproc+0x12c>                            
    3754:	ea00001a 	b	37c4 <oproc+0x138>                              
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
    3758:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
    375c:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
        tty->column--;                                                
    3760:	c2433001 	subgt	r3, r3, #1                                  <== NOT EXECUTED
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
    3764:	ca000013 	bgt	37b8 <oproc+0x12c>                            <== NOT EXECUTED
    3768:	ea000013 	b	37bc <oproc+0x130>                              <== NOT EXECUTED
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
    376c:	e3130002 	tst	r3, #2                                        
    3770:	0a000007 	beq	3794 <oproc+0x108>                            
        c = toupper(c);                                               
    3774:	e59f305c 	ldr	r3, [pc, #92]	; 37d8 <oproc+0x14c>            <== NOT EXECUTED
    3778:	e5933000 	ldr	r3, [r3]                                      <== NOT EXECUTED
    377c:	e0833002 	add	r3, r3, r2                                    <== NOT EXECUTED
    3780:	e5d33001 	ldrb	r3, [r3, #1]                                 <== NOT EXECUTED
    3784:	e2033003 	and	r3, r3, #3                                    <== NOT EXECUTED
    3788:	e3530002 	cmp	r3, #2                                        <== NOT EXECUTED
    378c:	02422020 	subeq	r2, r2, #32                                 <== NOT EXECUTED
    3790:	e5cd2000 	strb	r2, [sp]                                     <== NOT EXECUTED
      if (!iscntrl(c))                                                
    3794:	e59f203c 	ldr	r2, [pc, #60]	; 37d8 <oproc+0x14c>            
    3798:	e5dd3000 	ldrb	r3, [sp]                                     
    379c:	e5922000 	ldr	r2, [r2]                                      
    37a0:	e0823003 	add	r3, r2, r3                                    
    37a4:	e5d33001 	ldrb	r3, [r3, #1]                                 
    37a8:	e3130020 	tst	r3, #32                                       
    37ac:	1a000002 	bne	37bc <oproc+0x130>                            
        tty->column++;                                                
    37b0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    37b4:	e2833001 	add	r3, r3, #1                                    
    37b8:	e5843028 	str	r3, [r4, #40]	; 0x28                          
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
    37bc:	e1a0000d 	mov	r0, sp                                        
    37c0:	e3a01001 	mov	r1, #1                                        
    37c4:	e1a02004 	mov	r2, r4                                        
    37c8:	ebffff6f 	bl	358c <rtems_termios_puts>                      
}                                                                     
    37cc:	e8bd8018 	pop	{r3, r4, pc}                                  
                                                                      

0000b240 <pipe_ioctl>: uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
    b240:	e59f3058 	ldr	r3, [pc, #88]	; b2a0 <pipe_ioctl+0x60>        
    b244:	e1510003 	cmp	r1, r3                                        
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    b248:	e92d4070 	push	{r4, r5, r6, lr}                             
    b24c:	e1a04000 	mov	r4, r0                                        
    b250:	e1a05002 	mov	r5, r2                                        
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
    b254:	13e00015 	mvnne	r0, #21                                     
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    b258:	18bd8070 	popne	{r4, r5, r6, pc}                            
    if (buffer == NULL)                                               
    b25c:	e3520000 	cmp	r2, #0                                        
      return -EFAULT;                                                 
    b260:	03e0000d 	mvneq	r0, #13                                     
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
    b264:	08bd8070 	popeq	{r4, r5, r6, pc}                            
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
    b268:	e3a01000 	mov	r1, #0                                        
    b26c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    b270:	e1a02001 	mov	r2, r1                                        
    b274:	ebffec9c 	bl	64ec <rtems_semaphore_obtain>                  
    b278:	e2506000 	subs	r6, r0, #0                                   
    b27c:	1a000005 	bne	b298 <pipe_ioctl+0x58>                        
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    b280:	e594300c 	ldr	r3, [r4, #12]                                 
    PIPE_UNLOCK(pipe);                                                
    b284:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    b288:	e5853000 	str	r3, [r5]                                      
    PIPE_UNLOCK(pipe);                                                
    b28c:	ebffecdc 	bl	6604 <rtems_semaphore_release>                 
    return 0;                                                         
    b290:	e1a00006 	mov	r0, r6                                        
    b294:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
    b298:	e3e00003 	mvn	r0, #3                                        <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
    b29c:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      

0000af14 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
    af14:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
    af18:	e1a09001 	mov	r9, r1                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    af1c:	e3a01000 	mov	r1, #0                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    af20:	e1a04000 	mov	r4, r0                                        
    af24:	e1a05002 	mov	r5, r2                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    af28:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
    af2c:	e1a02001 	mov	r2, r1                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    af30:	e1a0a003 	mov	sl, r3                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    af34:	ebffed6c 	bl	64ec <rtems_semaphore_obtain>                  
    af38:	e2506000 	subs	r6, r0, #0                                   
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
    af3c:	01a0b00d 	moveq	fp, sp                                      
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    af40:	0a000043 	beq	b054 <pipe_read+0x140>                        
    af44:	ea00004e 	b	b084 <pipe_read+0x170>                          <== NOT EXECUTED
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
    af48:	e5947014 	ldr	r7, [r4, #20]                                 
    af4c:	e3570000 	cmp	r7, #0                                        
    af50:	0a000044 	beq	b068 <pipe_read+0x154>                        
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
    af54:	e59a8014 	ldr	r8, [sl, #20]                                 
    af58:	e2188001 	ands	r8, r8, #1                                   
    af5c:	1a000040 	bne	b064 <pipe_read+0x150>                        
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
    af60:	e5943018 	ldr	r3, [r4, #24]                                 
    af64:	e2833001 	add	r3, r3, #1                                    
    af68:	e5843018 	str	r3, [r4, #24]                                 
      PIPE_UNLOCK(pipe);                                              
    af6c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    af70:	ebffeda3 	bl	6604 <rtems_semaphore_release>                 
      if (! PIPE_READWAIT(pipe))                                      
    af74:	e1a01008 	mov	r1, r8                                        
    af78:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
    af7c:	eb000625 	bl	c818 <rtems_barrier_wait>                      
    af80:	e3500000 	cmp	r0, #0                                        
    af84:	01a07000 	moveq	r7, r0                                      
    af88:	13e07003 	mvnne	r7, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    af8c:	e1a01008 	mov	r1, r8                                        
    af90:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    af94:	e1a02008 	mov	r2, r8                                        
    af98:	ebffed53 	bl	64ec <rtems_semaphore_obtain>                  
    af9c:	e3500000 	cmp	r0, #0                                        
    afa0:	1a000033 	bne	b074 <pipe_read+0x160>                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
    afa4:	e5943018 	ldr	r3, [r4, #24]                                 
      if (ret != 0)                                                   
    afa8:	e3570000 	cmp	r7, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
    afac:	e2433001 	sub	r3, r3, #1                                    
    afb0:	e5843018 	str	r3, [r4, #24]                                 
      if (ret != 0)                                                   
    afb4:	1a00002b 	bne	b068 <pipe_read+0x154>                        
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
    afb8:	e594300c 	ldr	r3, [r4, #12]                                 
    afbc:	e3530000 	cmp	r3, #0                                        
    afc0:	0affffe0 	beq	af48 <pipe_read+0x34>                         
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    afc4:	e0667005 	rsb	r7, r6, r5                                    
    afc8:	e1530007 	cmp	r3, r7                                        
    afcc:	31a07003 	movcc	r7, r3                                      
    chunk1 = pipe->Size - pipe->Start;                                
    afd0:	e5948004 	ldr	r8, [r4, #4]                                  
    afd4:	e5943008 	ldr	r3, [r4, #8]                                  
    afd8:	e5941000 	ldr	r1, [r4]                                      
    afdc:	e0638008 	rsb	r8, r3, r8                                    
    if (chunk > chunk1) {                                             
    afe0:	e1570008 	cmp	r7, r8                                        
    afe4:	e0890006 	add	r0, r9, r6                                    
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
    afe8:	d0811003 	addle	r1, r1, r3                                  
    afec:	d1a02007 	movle	r2, r7                                      
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    if (chunk > chunk1) {                                             
    aff0:	da000006 	ble	b010 <pipe_read+0xfc>                         
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
    aff4:	e0811003 	add	r1, r1, r3                                    
    aff8:	e1a02008 	mov	r2, r8                                        
    affc:	eb000f5b 	bl	ed70 <memcpy>                                  
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    b000:	e0860008 	add	r0, r6, r8                                    
    b004:	e5941000 	ldr	r1, [r4]                                      
    b008:	e0890000 	add	r0, r9, r0                                    
    b00c:	e0682007 	rsb	r2, r8, r7                                    
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
    b010:	eb000f56 	bl	ed70 <memcpy>                                  
                                                                      
    pipe->Start += chunk;                                             
    b014:	e5940008 	ldr	r0, [r4, #8]                                  
    pipe->Start %= pipe->Size;                                        
    b018:	e5941004 	ldr	r1, [r4, #4]                                  
    b01c:	e0870000 	add	r0, r7, r0                                    
    b020:	eb003304 	bl	17c38 <__umodsi3>                              
    pipe->Length -= chunk;                                            
    b024:	e594300c 	ldr	r3, [r4, #12]                                 
    b028:	e0673003 	rsb	r3, r7, r3                                    
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
    b02c:	e3530000 	cmp	r3, #0                                        
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
    b030:	e5840008 	str	r0, [r4, #8]                                  
    pipe->Length -= chunk;                                            
    b034:	e584300c 	str	r3, [r4, #12]                                 
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
    b038:	05843008 	streq	r3, [r4, #8]                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
    b03c:	e594301c 	ldr	r3, [r4, #28]                                 
    b040:	e3530000 	cmp	r3, #0                                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    b044:	15940030 	ldrne	r0, [r4, #48]	; 0x30                        
    b048:	11a0100d 	movne	r1, sp                                      
    b04c:	1b0005db 	blne	c7c0 <rtems_barrier_release>                 
    read += chunk;                                                    
    b050:	e0866007 	add	r6, r6, r7                                    
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    b054:	e1560005 	cmp	r6, r5                                        
    b058:	3affffd6 	bcc	afb8 <pipe_read+0xa4>                         
    b05c:	e3a07000 	mov	r7, #0                                        
    b060:	ea000000 	b	b068 <pipe_read+0x154>                          
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
    b064:	e3e0700a 	mvn	r7, #10                                       
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
    b068:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    b06c:	ebffed64 	bl	6604 <rtems_semaphore_release>                 
    b070:	ea000000 	b	b078 <pipe_read+0x164>                          
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
    b074:	e3e07003 	mvn	r7, #3                                        <== NOT EXECUTED
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
    b078:	e3560000 	cmp	r6, #0                                        
    b07c:	d1a06007 	movle	r6, r7                                      
    b080:	ea000000 	b	b088 <pipe_read+0x174>                          
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
    b084:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
}                                                                     
    b088:	e1a00006 	mov	r0, r6                                        
    b08c:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

0000aad4 <pipe_release>: */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
    aad4:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
    aad8:	e1a06001 	mov	r6, r1                                        
    aadc:	e1a05000 	mov	r5, r0                                        
  pipe_control_t *pipe = *pipep;                                      
    aae0:	e5904000 	ldr	r4, [r0]                                      
  uint32_t mode;                                                      
                                                                      
  if (pipe_lock())                                                    
    aae4:	ebffffbf 	bl	a9e8 <pipe_lock>                               
    aae8:	e2501000 	subs	r1, r0, #0                                   
    aaec:	1a000004 	bne	ab04 <pipe_release+0x30>                      
    /* WARN pipe not freed and pipep not set to NULL! */              
    /* FIXME */                                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
                                                                      
  if (!PIPE_LOCK(pipe))                                               
    aaf0:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    aaf4:	e1a02001 	mov	r2, r1                                        
    aaf8:	ebffee7b 	bl	64ec <rtems_semaphore_obtain>                  
    aafc:	e3500000 	cmp	r0, #0                                        
    ab00:	0a000001 	beq	ab0c <pipe_release+0x38>                      
    /* WARN pipe not released! */                                     
    /* FIXME */                                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
    ab04:	e59f00a8 	ldr	r0, [pc, #168]	; abb4 <pipe_release+0xe0>     <== NOT EXECUTED
    ab08:	ebffeff6 	bl	6ae8 <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
    ab0c:	e5963014 	ldr	r3, [r6, #20]                                 
  if (mode & LIBIO_FLAGS_READ)                                        
    ab10:	e3130002 	tst	r3, #2                                        
  if (!PIPE_LOCK(pipe))                                               
    /* WARN pipe not released! */                                     
    /* FIXME */                                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
    ab14:	e2036006 	and	r6, r3, #6                                    
  if (mode & LIBIO_FLAGS_READ)                                        
     pipe->Readers --;                                                
    ab18:	15943010 	ldrne	r3, [r4, #16]                               
    ab1c:	12433001 	subne	r3, r3, #1                                  
    ab20:	15843010 	strne	r3, [r4, #16]                               
  if (mode & LIBIO_FLAGS_WRITE)                                       
    ab24:	e3160004 	tst	r6, #4                                        
     pipe->Writers --;                                                
    ab28:	15943014 	ldrne	r3, [r4, #20]                               
    ab2c:	12433001 	subne	r3, r3, #1                                  
    ab30:	15843014 	strne	r3, [r4, #20]                               
                                                                      
  PIPE_UNLOCK(pipe);                                                  
    ab34:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    ab38:	ebffeeb1 	bl	6604 <rtems_semaphore_release>                 
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
    ab3c:	e5943010 	ldr	r3, [r4, #16]                                 
    ab40:	e3530000 	cmp	r3, #0                                        
    ab44:	1a000006 	bne	ab64 <pipe_release+0x90>                      
    ab48:	e5947014 	ldr	r7, [r4, #20]                                 
    ab4c:	e3570000 	cmp	r7, #0                                        
    ab50:	1a000003 	bne	ab64 <pipe_release+0x90>                      
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    ab54:	e1a00004 	mov	r0, r4                                        
    ab58:	ebffffc6 	bl	aa78 <pipe_free>                               
    *pipep = NULL;                                                    
    ab5c:	e5857000 	str	r7, [r5]                                      
    ab60:	ea000010 	b	aba8 <pipe_release+0xd4>                        
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
    ab64:	e2562004 	subs	r2, r6, #4                                   
    ab68:	13a02001 	movne	r2, #1                                      
    ab6c:	e3530000 	cmp	r3, #0                                        
    ab70:	13a02000 	movne	r2, #0                                      
    ab74:	e3520000 	cmp	r2, #0                                        
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
    ab78:	15940030 	ldrne	r0, [r4, #48]	; 0x30                        
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
    ab7c:	1a000007 	bne	aba0 <pipe_release+0xcc>                      
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
    ab80:	e5943014 	ldr	r3, [r4, #20]                                 
    ab84:	e2566002 	subs	r6, r6, #2                                   
    ab88:	13a06001 	movne	r6, #1                                      
    ab8c:	e3530000 	cmp	r3, #0                                        
    ab90:	13a06000 	movne	r6, #0                                      
    ab94:	e3560000 	cmp	r6, #0                                        
    ab98:	0a000002 	beq	aba8 <pipe_release+0xd4>                      
    PIPE_WAKEUPREADERS(pipe);                                         
    ab9c:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
    aba0:	e1a0100d 	mov	r1, sp                                        
    aba4:	eb000705 	bl	c7c0 <rtems_barrier_release>                   
                                                                      
  pipe_unlock();                                                      
    aba8:	ebffffbf 	bl	aaac <pipe_unlock>                             
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return -errno;                                                    
#endif                                                                
                                                                      
  return 0;                                                           
}                                                                     
    abac:	e3a00000 	mov	r0, #0                                        
    abb0:	e8bd80f8 	pop	{r3, r4, r5, r6, r7, pc}                      
                                                                      

0000aaac <pipe_unlock>: static void pipe_unlock(void) { rtems_status_code sc = RTEMS_SUCCESSFUL; sc = rtems_semaphore_release(pipe_semaphore);
    aaac:	e59f3018 	ldr	r3, [pc, #24]	; aacc <pipe_unlock+0x20>       
    return -ENOMEM;                                                   
  }                                                                   
}                                                                     
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
    aab0:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
    aab4:	e5930000 	ldr	r0, [r3]                                      
    aab8:	ebffeed1 	bl	6604 <rtems_semaphore_release>                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
    aabc:	e3500000 	cmp	r0, #0                                        
    aac0:	049df004 	popeq	{pc}		; (ldreq pc, [sp], #4)                
    /* FIXME */                                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
    aac4:	e59f0004 	ldr	r0, [pc, #4]	; aad0 <pipe_unlock+0x24>        <== NOT EXECUTED
    aac8:	ebfff006 	bl	6ae8 <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

0000b090 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
    b090:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    b094:	e2527000 	subs	r7, r2, #0                                   
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    b098:	e1a04000 	mov	r4, r0                                        
    b09c:	e1a0b001 	mov	fp, r1                                        
    b0a0:	e1a08003 	mov	r8, r3                                        
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
    b0a4:	01a05007 	moveq	r5, r7                                      
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    b0a8:	0a000062 	beq	b238 <pipe_write+0x1a8>                       
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    b0ac:	e3a01000 	mov	r1, #0                                        
    b0b0:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
    b0b4:	e1a02001 	mov	r2, r1                                        
    b0b8:	ebffed0b 	bl	64ec <rtems_semaphore_obtain>                  
    b0bc:	e3500000 	cmp	r0, #0                                        
    return -EINTR;                                                    
    b0c0:	13e05003 	mvnne	r5, #3                                      
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    b0c4:	1a00005b 	bne	b238 <pipe_write+0x1a8>                       
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    b0c8:	e5945010 	ldr	r5, [r4, #16]                                 
    b0cc:	e3550000 	cmp	r5, #0                                        
    b0d0:	0a00004c 	beq	b208 <pipe_write+0x178>                       
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
    b0d4:	e5949004 	ldr	r9, [r4, #4]                                  
    b0d8:	e1570009 	cmp	r7, r9                                        
    b0dc:	91a09007 	movls	r9, r7                                      
    b0e0:	83a09001 	movhi	r9, #1                                      
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
    b0e4:	e1a05000 	mov	r5, r0                                        
    b0e8:	ea000040 	b	b1f0 <pipe_write+0x160>                         
  /* 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)) {                                       
    b0ec:	e598a014 	ldr	sl, [r8, #20]                                 
    b0f0:	e21aa001 	ands	sl, sl, #1                                   
    b0f4:	1a000041 	bne	b200 <pipe_write+0x170>                       
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
    b0f8:	e594301c 	ldr	r3, [r4, #28]                                 
    b0fc:	e2833001 	add	r3, r3, #1                                    
    b100:	e584301c 	str	r3, [r4, #28]                                 
      PIPE_UNLOCK(pipe);                                              
    b104:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    b108:	ebffed3d 	bl	6604 <rtems_semaphore_release>                 
      if (! PIPE_WRITEWAIT(pipe))                                     
    b10c:	e1a0100a 	mov	r1, sl                                        
    b110:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
    b114:	eb0005bf 	bl	c818 <rtems_barrier_wait>                      
    b118:	e3500000 	cmp	r0, #0                                        
    b11c:	01a06000 	moveq	r6, r0                                      
    b120:	13e06003 	mvnne	r6, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    b124:	e1a0100a 	mov	r1, sl                                        
    b128:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    b12c:	e1a0200a 	mov	r2, sl                                        
    b130:	ebffeced 	bl	64ec <rtems_semaphore_obtain>                  
    b134:	e3500000 	cmp	r0, #0                                        
    b138:	1a00003b 	bne	b22c <pipe_write+0x19c>                       
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
    b13c:	e594301c 	ldr	r3, [r4, #28]                                 
      if (ret != 0)                                                   
    b140:	e3560000 	cmp	r6, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
    b144:	e2433001 	sub	r3, r3, #1                                    
    b148:	e584301c 	str	r3, [r4, #28]                                 
      if (ret != 0)                                                   
    b14c:	1a00002e 	bne	b20c <pipe_write+0x17c>                       
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
    b150:	e5943010 	ldr	r3, [r4, #16]                                 
    b154:	e3530000 	cmp	r3, #0                                        
    b158:	0a00002a 	beq	b208 <pipe_write+0x178>                       
                                                                      
  /* 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) {                                
    b15c:	e594a004 	ldr	sl, [r4, #4]                                  
    b160:	e594300c 	ldr	r3, [r4, #12]                                 
    b164:	e063200a 	rsb	r2, r3, sl                                    
    b168:	e1520009 	cmp	r2, r9                                        
    b16c:	3affffde 	bcc	b0ec <pipe_write+0x5c>                        
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    b170:	e5940008 	ldr	r0, [r4, #8]                                  
    b174:	e1a0100a 	mov	r1, sl                                        
    b178:	e0830000 	add	r0, r3, r0                                    
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    b17c:	e0656007 	rsb	r6, r5, r7                                    
    b180:	e1520006 	cmp	r2, r6                                        
    b184:	31a06002 	movcc	r6, r2                                      
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    b188:	eb0032aa 	bl	17c38 <__umodsi3>                              
    b18c:	e5943000 	ldr	r3, [r4]                                      
    b190:	e060a00a 	rsb	sl, r0, sl                                    
    if (chunk > chunk1) {                                             
    b194:	e156000a 	cmp	r6, sl                                        
    b198:	e08b1005 	add	r1, fp, r5                                    
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
    b19c:	d0830000 	addle	r0, r3, r0                                  
    b1a0:	d1a02006 	movle	r2, r6                                      
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    if (chunk > chunk1) {                                             
    b1a4:	da000006 	ble	b1c4 <pipe_write+0x134>                       
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
    b1a8:	e1a0200a 	mov	r2, sl                                        
    b1ac:	e0830000 	add	r0, r3, r0                                    
    b1b0:	eb000eee 	bl	ed70 <memcpy>                                  
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    b1b4:	e08a1005 	add	r1, sl, r5                                    
    b1b8:	e5940000 	ldr	r0, [r4]                                      
    b1bc:	e08b1001 	add	r1, fp, r1                                    
    b1c0:	e06a2006 	rsb	r2, sl, r6                                    
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
    b1c4:	eb000ee9 	bl	ed70 <memcpy>                                  
                                                                      
    pipe->Length += chunk;                                            
    b1c8:	e594300c 	ldr	r3, [r4, #12]                                 
    b1cc:	e0833006 	add	r3, r3, r6                                    
    b1d0:	e584300c 	str	r3, [r4, #12]                                 
    if (pipe->waitingReaders > 0)                                     
    b1d4:	e5943018 	ldr	r3, [r4, #24]                                 
    b1d8:	e3530000 	cmp	r3, #0                                        
      PIPE_WAKEUPREADERS(pipe);                                       
    b1dc:	1594002c 	ldrne	r0, [r4, #44]	; 0x2c                        
    b1e0:	11a0100d 	movne	r1, sp                                      
    b1e4:	1b000575 	blne	c7c0 <rtems_barrier_release>                 
    written += chunk;                                                 
    b1e8:	e0855006 	add	r5, r5, r6                                    
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
    b1ec:	e3a09001 	mov	r9, #1                                        
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    b1f0:	e1550007 	cmp	r5, r7                                        
    b1f4:	3affffd8 	bcc	b15c <pipe_write+0xcc>                        
    b1f8:	e3a06000 	mov	r6, #0                                        
    b1fc:	ea000002 	b	b20c <pipe_write+0x17c>                         
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
    b200:	e3e0600a 	mvn	r6, #10                                       
    b204:	ea000000 	b	b20c <pipe_write+0x17c>                         
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
    b208:	e3e0601f 	mvn	r6, #31                                       
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
    b20c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    b210:	ebffecfb 	bl	6604 <rtems_semaphore_release>                 
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    b214:	e3760020 	cmn	r6, #32                                       
    b218:	1a000004 	bne	b230 <pipe_write+0x1a0>                       
    kill(getpid(), SIGPIPE);                                          
    b21c:	eb0001d1 	bl	b968 <getpid>                                  
    b220:	e3a0100d 	mov	r1, #13                                       
    b224:	eb000319 	bl	be90 <kill>                                    
    b228:	ea000000 	b	b230 <pipe_write+0x1a0>                         
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
    b22c:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
    b230:	e3550000 	cmp	r5, #0                                        
    b234:	d1a05006 	movle	r5, r6                                      
    return written;                                                   
  return ret;                                                         
}                                                                     
    b238:	e1a00005 	mov	r0, r5                                        
    b23c:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

00009734 <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
    9734:	e3500000 	cmp	r0, #0                                        
    9738:	0a00000b 	beq	976c <pthread_attr_setschedpolicy+0x38>       
    973c:	e5903000 	ldr	r3, [r0]                                      
    9740:	e3530000 	cmp	r3, #0                                        
    9744:	0a000008 	beq	976c <pthread_attr_setschedpolicy+0x38>       
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
    9748:	e3510004 	cmp	r1, #4                                        
    974c:	8a000008 	bhi	9774 <pthread_attr_setschedpolicy+0x40>       
    9750:	e3a03001 	mov	r3, #1                                        
    9754:	e1a03113 	lsl	r3, r3, r1                                    
    9758:	e3130017 	tst	r3, #23                                       
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
    975c:	15801014 	strne	r1, [r0, #20]                               
      return 0;                                                       
    9760:	13a00000 	movne	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
    9764:	112fff1e 	bxne	lr                                           
    9768:	ea000001 	b	9774 <pthread_attr_setschedpolicy+0x40>         <== NOT EXECUTED
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
    976c:	e3a00016 	mov	r0, #22                                       
    9770:	e12fff1e 	bx	lr                                             
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
    9774:	e3a00086 	mov	r0, #134	; 0x86                               
  }                                                                   
}                                                                     
    9778:	e12fff1e 	bx	lr                                             
                                                                      

00004f80 <pthread_key_create>:
    4f80:	e59f30f4 	ldr	r3, [pc, #244]	; 507c <pthread_key_create+0xfc>
    4f84:	e5932000 	ldr	r2, [r3]                                      
    4f88:	e2822001 	add	r2, r2, #1                                    
                                                                      
int pthread_key_create(                                               
  pthread_key_t  *key,                                                
  void          (*destructor)( void * )                               
)                                                                     
{                                                                     
    4f8c:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
    4f90:	e5832000 	str	r2, [r3]                                      
    4f94:	e1a08000 	mov	r8, r0                                        
    4f98:	e1a05001 	mov	r5, r1                                        
 *  the inactive chain of free keys control blocks.                   
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) 
{                                                                     
  return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
    4f9c:	e59f00dc 	ldr	r0, [pc, #220]	; 5080 <pthread_key_create+0x100>
    4fa0:	eb000834 	bl	7078 <_Objects_Allocate>                       
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_key = _POSIX_Keys_Allocate();                                   
                                                                      
  if ( !the_key ) {                                                   
    4fa4:	e2504000 	subs	r4, r0, #0                                   
    4fa8:	1a000002 	bne	4fb8 <pthread_key_create+0x38>                
    _Thread_Enable_dispatch();                                        
    4fac:	eb000b51 	bl	7cf8 <_Thread_Enable_dispatch>                 
    return EAGAIN;                                                    
    4fb0:	e3a0000b 	mov	r0, #11                                       
    4fb4:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  }                                                                   
                                                                      
  the_key->destructor = destructor;                                   
    4fb8:	e59f70c4 	ldr	r7, [pc, #196]	; 5084 <pthread_key_create+0x104>
    4fbc:	e5845010 	str	r5, [r4, #16]                                 
    4fc0:	e1a06004 	mov	r6, r4                                        
   *  APIs are optional.                                              
   *                                                                  
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
    4fc4:	e3a05001 	mov	r5, #1                                        
        the_api <= OBJECTS_APIS_LAST;                                 
        the_api++ ) {                                                 
                                                                      
    if ( _Objects_Information_table[ the_api ] ) {                    
    4fc8:	e5b73004 	ldr	r3, [r7, #4]!                                 
    4fcc:	e3530000 	cmp	r3, #0                                        
    4fd0:	0a000019 	beq	503c <pthread_key_create+0xbc>                
            true,                                                     
            INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY    
          );                                                          
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
    4fd4:	e5933004 	ldr	r3, [r3, #4]                                  
    4fd8:	e1d3a1b0 	ldrh	sl, [r3, #16]                                
    4fdc:	e28aa001 	add	sl, sl, #1                                    
            INTERNAL_ERROR_CORE,                                      
            true,                                                     
            INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY    
          );                                                          
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
    4fe0:	e1a0a10a 	lsl	sl, sl, #2                                    
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
    4fe4:	e1a0000a 	mov	r0, sl                                        
    4fe8:	eb001049 	bl	9114 <_Workspace_Allocate>                     
      if ( !table ) {                                                 
    4fec:	e2503000 	subs	r3, r0, #0                                   
    4ff0:	1a00000c 	bne	5028 <pthread_key_create+0xa8>                
int	_EXFUN(pthread_once,                                              
	(pthread_once_t *__once_control, void (*__init_routine)(void)));     
                                                                      
/* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */      
                                                                      
int	_EXFUN(pthread_key_create,                                        
    4ff4:	e2856005 	add	r6, r5, #5                                    
    4ff8:	e0846106 	add	r6, r4, r6, lsl #2                            
        for ( --the_api;                                              
    4ffc:	ea000001 	b	5008 <pthread_key_create+0x88>                  
              the_api >= 1;                                           
              the_api-- )                                             
          _Workspace_Free( the_key->Values[ the_api ] );              
    5000:	e5360004 	ldr	r0, [r6, #-4]!                                
    5004:	eb001048 	bl	912c <_Workspace_Free>                         
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
      if ( !table ) {                                                 
        for ( --the_api;                                              
    5008:	e2555001 	subs	r5, r5, #1                                   
    500c:	1afffffb 	bne	5000 <pthread_key_create+0x80>                
 */                                                                   
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (                          
  POSIX_Keys_Control *the_key                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Keys_Information, &the_key->Object );        
    5010:	e59f0068 	ldr	r0, [pc, #104]	; 5080 <pthread_key_create+0x100>
    5014:	e1a01004 	mov	r1, r4                                        
    5018:	eb0008de 	bl	7398 <_Objects_Free>                           
              the_api >= 1;                                           
              the_api-- )                                             
          _Workspace_Free( the_key->Values[ the_api ] );              
                                                                      
        _POSIX_Keys_Free( the_key );                                  
        _Thread_Enable_dispatch();                                    
    501c:	eb000b35 	bl	7cf8 <_Thread_Enable_dispatch>                 
        return ENOMEM;                                                
    5020:	e3a0000c 	mov	r0, #12                                       
    5024:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
      }                                                               
                                                                      
      the_key->Values[ the_api ] = table;                             
    5028:	e5863018 	str	r3, [r6, #24]                                 
      memset( table, '\0', bytes_to_allocate );                       
    502c:	e3a01000 	mov	r1, #0                                        
    5030:	e1a0200a 	mov	r2, sl                                        
    5034:	eb00244f 	bl	e178 <memset>                                  
    5038:	ea000000 	b	5040 <pthread_key_create+0xc0>                  
    } else {                                                          
      the_key->Values[ the_api ] = NULL;                              
    503c:	e5863018 	str	r3, [r6, #24]                                 <== NOT EXECUTED
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
        the_api <= OBJECTS_APIS_LAST;                                 
        the_api++ ) {                                                 
    5040:	e2855001 	add	r5, r5, #1                                    
   *  APIs are optional.                                              
   *                                                                  
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
    5044:	e3550004 	cmp	r5, #4                                        
        the_api <= OBJECTS_APIS_LAST;                                 
        the_api++ ) {                                                 
    5048:	e2866004 	add	r6, r6, #4                                    
   *  APIs are optional.                                              
   *                                                                  
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
    504c:	1affffdd 	bne	4fc8 <pthread_key_create+0x48>                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
    5050:	e59f2028 	ldr	r2, [pc, #40]	; 5080 <pthread_key_create+0x100>
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    5054:	e5943008 	ldr	r3, [r4, #8]                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
    5058:	e592201c 	ldr	r2, [r2, #28]                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    505c:	e1d410b8 	ldrh	r1, [r4, #8]                                 
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
    5060:	e3a05000 	mov	r5, #0                                        
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
    5064:	e7824101 	str	r4, [r2, r1, lsl #2]                          
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
    5068:	e584500c 	str	r5, [r4, #12]                                 
                                                                      
  }                                                                   
                                                                      
  _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); 
                                                                      
  *key = the_key->Object.id;                                          
    506c:	e5883000 	str	r3, [r8]                                      
                                                                      
  _Thread_Enable_dispatch();                                          
    5070:	eb000b20 	bl	7cf8 <_Thread_Enable_dispatch>                 
                                                                      
  return 0;                                                           
    5074:	e1a00005 	mov	r0, r5                                        
}                                                                     
    5078:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      

000070b8 <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
    70b8:	e3500000 	cmp	r0, #0                                        
    70bc:	0a000007 	beq	70e0 <pthread_mutexattr_setpshared+0x28>      
    70c0:	e5903000 	ldr	r3, [r0]                                      
    70c4:	e3530000 	cmp	r3, #0                                        
    70c8:	0a000004 	beq	70e0 <pthread_mutexattr_setpshared+0x28>      
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    70cc:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
    70d0:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
    70d4:	93a00000 	movls	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    70d8:	912fff1e 	bxls	lr                                           
    70dc:	ea000001 	b	70e8 <pthread_mutexattr_setpshared+0x30>        <== NOT EXECUTED
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
    70e0:	e3a00016 	mov	r0, #22                                       
    70e4:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
    70e8:	e3a00016 	mov	r0, #22                                       <== NOT EXECUTED
  }                                                                   
}                                                                     
    70ec:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00006b20 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
    6b20:	e3500000 	cmp	r0, #0                                        
    6b24:	0a000007 	beq	6b48 <pthread_rwlockattr_setpshared+0x28>     
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    6b28:	e5903000 	ldr	r3, [r0]                                      
    6b2c:	e3530000 	cmp	r3, #0                                        
    6b30:	0a000004 	beq	6b48 <pthread_rwlockattr_setpshared+0x28>     
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    6b34:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
    6b38:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
    6b3c:	93a00000 	movls	r0, #0                                      
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    6b40:	912fff1e 	bxls	lr                                           
    6b44:	ea000001 	b	6b50 <pthread_rwlockattr_setpshared+0x30>       <== NOT EXECUTED
{                                                                     
  if ( !attr )                                                        
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
    6b48:	e3a00016 	mov	r0, #22                                       
    6b4c:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
    6b50:	e3a00016 	mov	r0, #22                                       <== NOT EXECUTED
  }                                                                   
}                                                                     
    6b54:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00011c94 <read>: ssize_t read( int fd, void *buffer, size_t count ) {
   11c94:	e92d4030 	push	{r4, r5, lr}                                 
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
   11c98:	e59f4098 	ldr	r4, [pc, #152]	; 11d38 <read+0xa4>            
   11c9c:	e5944000 	ldr	r4, [r4]                                      
   11ca0:	e1500004 	cmp	r0, r4                                        
   11ca4:	2a000006 	bcs	11cc4 <read+0x30>                             
  iop = rtems_libio_iop( fd );                                        
   11ca8:	e59f408c 	ldr	r4, [pc, #140]	; 11d3c <read+0xa8>            
   11cac:	e5944000 	ldr	r4, [r4]                                      
   11cb0:	e3a05038 	mov	r5, #56	; 0x38                                
   11cb4:	e0244095 	mla	r4, r5, r0, r4                                
  rtems_libio_check_is_open( iop );                                   
   11cb8:	e5940014 	ldr	r0, [r4, #20]                                 
   11cbc:	e3100c01 	tst	r0, #256	; 0x100                              
   11cc0:	1a000002 	bne	11cd0 <read+0x3c>                             
   11cc4:	ebffeb5a 	bl	ca34 <__errno>                                 
   11cc8:	e3a03009 	mov	r3, #9                                        
   11ccc:	ea000007 	b	11cf0 <read+0x5c>                               
  rtems_libio_check_buffer( buffer );                                 
   11cd0:	e3510000 	cmp	r1, #0                                        
   11cd4:	0a000003 	beq	11ce8 <read+0x54>                             
  rtems_libio_check_count( count );                                   
   11cd8:	e3520000 	cmp	r2, #0                                        
   11cdc:	0a000013 	beq	11d30 <read+0x9c>                             
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
   11ce0:	e3100002 	tst	r0, #2                                        
   11ce4:	1a000004 	bne	11cfc <read+0x68>                             
   11ce8:	ebffeb51 	bl	ca34 <__errno>                                 <== NOT EXECUTED
   11cec:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
   11cf0:	e5803000 	str	r3, [r0]                                      
   11cf4:	e3e00000 	mvn	r0, #0                                        
   11cf8:	e8bd8030 	pop	{r4, r5, pc}                                  
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
   11cfc:	e5943020 	ldr	r3, [r4, #32]                                 
   11d00:	e1a00004 	mov	r0, r4                                        
   11d04:	e1a0e00f 	mov	lr, pc                                        
   11d08:	e593f008 	ldr	pc, [r3, #8]                                  
                                                                      
  if ( rc > 0 )                                                       
   11d0c:	e3500000 	cmp	r0, #0                                        
   11d10:	d8bd8030 	pople	{r4, r5, pc}                                
    iop->offset += rc;                                                
   11d14:	e284300c 	add	r3, r4, #12                                   
   11d18:	e893000c 	ldm	r3, {r2, r3}                                  
   11d1c:	e0922000 	adds	r2, r2, r0                                   
   11d20:	e0a33fc0 	adc	r3, r3, r0, asr #31                           
   11d24:	e584200c 	str	r2, [r4, #12]                                 
   11d28:	e5843010 	str	r3, [r4, #16]                                 
   11d2c:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
   11d30:	e1a00002 	mov	r0, r2                                        <== NOT EXECUTED
                                                                      
  if ( rc > 0 )                                                       
    iop->offset += rc;                                                
                                                                      
  return rc;                                                          
}                                                                     
   11d34:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      

000050a4 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
    50a4:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
    50a8:	e2516000 	subs	r6, r1, #0                                   
ssize_t readlink(                                                     
  const char *pathname,                                               
  char       *buf,                                                    
  size_t      bufsize                                                 
)                                                                     
{                                                                     
    50ac:	e24dd018 	sub	sp, sp, #24                                   
    50b0:	e1a07000 	mov	r7, r0                                        
    50b4:	e1a05002 	mov	r5, r2                                        
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
    50b8:	1a000002 	bne	50c8 <readlink+0x24>                          
    rtems_set_errno_and_return_minus_one( EFAULT );                   
    50bc:	eb002a17 	bl	f920 <__errno>                                 <== NOT EXECUTED
    50c0:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    50c4:	ea000013 	b	5118 <readlink+0x74>                            <== NOT EXECUTED
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
    50c8:	eb003199 	bl	11734 <strlen>                                 
    50cc:	e28d4004 	add	r4, sp, #4                                    
    50d0:	e1a01000 	mov	r1, r0                                        
    50d4:	e3a02000 	mov	r2, #0                                        
    50d8:	e1a00007 	mov	r0, r7                                        
    50dc:	e1a03004 	mov	r3, r4                                        
    50e0:	e58d2000 	str	r2, [sp]                                      
    50e4:	ebfffbb3 	bl	3fb8 <rtems_filesystem_evaluate_path>          
                                           0, &loc, false );          
  if ( result != 0 )                                                  
    50e8:	e3500000 	cmp	r0, #0                                        
    50ec:	1a000015 	bne	5148 <readlink+0xa4>                          
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
    50f0:	e1a00004 	mov	r0, r4                                        
    50f4:	e59d3010 	ldr	r3, [sp, #16]                                 
    50f8:	e1a0e00f 	mov	lr, pc                                        
    50fc:	e593f010 	ldr	pc, [r3, #16]                                 
    5100:	e3500004 	cmp	r0, #4                                        
    5104:	0a000005 	beq	5120 <readlink+0x7c>                          
    rtems_filesystem_freenode( &loc );                                
    5108:	e1a00004 	mov	r0, r4                                        
    510c:	ebfffbe4 	bl	40a4 <rtems_filesystem_freenode>               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    5110:	eb002a02 	bl	f920 <__errno>                                 
    5114:	e3a03016 	mov	r3, #22                                       
    5118:	e5803000 	str	r3, [r0]                                      
    511c:	ea000009 	b	5148 <readlink+0xa4>                            
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
    5120:	e1a02005 	mov	r2, r5                                        
    5124:	e1a00004 	mov	r0, r4                                        
    5128:	e1a01006 	mov	r1, r6                                        
    512c:	e59d3010 	ldr	r3, [sp, #16]                                 
    5130:	e1a0e00f 	mov	lr, pc                                        
    5134:	e593f03c 	ldr	pc, [r3, #60]	; 0x3c                          
    5138:	e1a05000 	mov	r5, r0                                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    513c:	e1a00004 	mov	r0, r4                                        
    5140:	ebfffbd7 	bl	40a4 <rtems_filesystem_freenode>               
                                                                      
  return result;                                                      
    5144:	ea000000 	b	514c <readlink+0xa8>                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
                                           0, &loc, false );          
  if ( result != 0 )                                                  
     return -1;                                                       
    5148:	e3e05000 	mvn	r5, #0                                        
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
                                                                      
  rtems_filesystem_freenode( &loc );                                  
                                                                      
  return result;                                                      
}                                                                     
    514c:	e1a00005 	mov	r0, r5                                        
    5150:	e28dd018 	add	sp, sp, #24                                   
    5154:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

00011d98 <realloc>: ) { uintptr_t old_size; char *new_area; MSBUMP(realloc_calls, 1);
   11d98:	e59f310c 	ldr	r3, [pc, #268]	; 11eac <realloc+0x114>        
   11d9c:	e5932010 	ldr	r2, [r3, #16]                                 
   11da0:	e2822001 	add	r2, r2, #1                                    
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
   11da4:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
   11da8:	e5832010 	str	r2, [r3, #16]                                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   11dac:	e59f30fc 	ldr	r3, [pc, #252]	; 11eb0 <realloc+0x118>        
   11db0:	e5933000 	ldr	r3, [r3]                                      
   11db4:	e3530003 	cmp	r3, #3                                        
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
   11db8:	e1a04000 	mov	r4, r0                                        
   11dbc:	e1a05001 	mov	r5, r1                                        
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   11dc0:	1a000009 	bne	11dec <realloc+0x54>                          
    if (_Thread_Dispatch_disable_level > 0)                           
   11dc4:	e59f30e8 	ldr	r3, [pc, #232]	; 11eb4 <realloc+0x11c>        
   11dc8:	e5933000 	ldr	r3, [r3]                                      
   11dcc:	e3530000 	cmp	r3, #0                                        
      return (void *) 0;                                              
   11dd0:	13a04000 	movne	r4, #0                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_disable_level > 0)                           
   11dd4:	1a000032 	bne	11ea4 <realloc+0x10c>                         
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
   11dd8:	e59f20d8 	ldr	r2, [pc, #216]	; 11eb8 <realloc+0x120>        
   11ddc:	e5922000 	ldr	r2, [r2]                                      
   11de0:	e3520000 	cmp	r2, #0                                        
      return (void *) 0;                                              
   11de4:	11a04003 	movne	r4, r3                                      
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_disable_level > 0)                           
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
   11de8:	1a00002d 	bne	11ea4 <realloc+0x10c>                         
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
   11dec:	e3540000 	cmp	r4, #0                                        
   11df0:	1a000003 	bne	11e04 <realloc+0x6c>                          
    return malloc( size );                                            
   11df4:	e1a00005 	mov	r0, r5                                        
   11df8:	ebffc09c 	bl	2070 <malloc>                                  
   11dfc:	e1a04000 	mov	r4, r0                                        
   11e00:	ea000027 	b	11ea4 <realloc+0x10c>                           
                                                                      
  if ( !size ) {                                                      
   11e04:	e3550000 	cmp	r5, #0                                        
   11e08:	1a000003 	bne	11e1c <realloc+0x84>                          
    free( ptr );                                                      
   11e0c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
   11e10:	ebffbfc7 	bl	1d34 <free>                                    <== NOT EXECUTED
    return (void *) 0;                                                
   11e14:	e1a04005 	mov	r4, r5                                        <== NOT EXECUTED
   11e18:	ea000021 	b	11ea4 <realloc+0x10c>                           <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
   11e1c:	e59f6098 	ldr	r6, [pc, #152]	; 11ebc <realloc+0x124>        
   11e20:	e1a01004 	mov	r1, r4                                        
   11e24:	e5960000 	ldr	r0, [r6]                                      
   11e28:	e1a0200d 	mov	r2, sp                                        
   11e2c:	eb00004e 	bl	11f6c <_Protected_heap_Get_block_size>         
   11e30:	e2507000 	subs	r7, r0, #0                                   
   11e34:	1a000004 	bne	11e4c <realloc+0xb4>                          
    errno = EINVAL;                                                   
   11e38:	ebffeafd 	bl	ca34 <__errno>                                 
   11e3c:	e3a03016 	mov	r3, #22                                       
   11e40:	e5803000 	str	r3, [r0]                                      
    return (void *) 0;                                                
   11e44:	e1a04007 	mov	r4, r7                                        
   11e48:	ea000015 	b	11ea4 <realloc+0x10c>                           
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
   11e4c:	e5960000 	ldr	r0, [r6]                                      
   11e50:	e1a01004 	mov	r1, r4                                        
   11e54:	e1a02005 	mov	r2, r5                                        
   11e58:	eb000054 	bl	11fb0 <_Protected_heap_Resize_block>           
   11e5c:	e3500000 	cmp	r0, #0                                        
   11e60:	1a00000f 	bne	11ea4 <realloc+0x10c>                         
   *  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 );                                          
   11e64:	e1a00005 	mov	r0, r5                                        
   11e68:	ebffc080 	bl	2070 <malloc>                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
   11e6c:	e59f3038 	ldr	r3, [pc, #56]	; 11eac <realloc+0x114>         
   11e70:	e5932004 	ldr	r2, [r3, #4]                                  
                                                                      
  if ( !new_area ) {                                                  
   11e74:	e2506000 	subs	r6, r0, #0                                   
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
   11e78:	e2422001 	sub	r2, r2, #1                                    
   11e7c:	e5832004 	str	r2, [r3, #4]                                  
                                                                      
  if ( !new_area ) {                                                  
   11e80:	0a000006 	beq	11ea0 <realloc+0x108>                         
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
   11e84:	e59d2000 	ldr	r2, [sp]                                      
   11e88:	e1a01004 	mov	r1, r4                                        
   11e8c:	e1550002 	cmp	r5, r2                                        
   11e90:	31a02005 	movcc	r2, r5                                      
   11e94:	ebffed14 	bl	d2ec <memcpy>                                  
  free( ptr );                                                        
   11e98:	e1a00004 	mov	r0, r4                                        
   11e9c:	ebffbfa4 	bl	1d34 <free>                                    
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
   11ea0:	e1a04006 	mov	r4, r6                                        
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
   11ea4:	e1a00004 	mov	r0, r4                                        
   11ea8:	e8bd80f8 	pop	{r3, r4, r5, r6, r7, pc}                      
                                                                      

00003ce0 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
    3ce0:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    3ce4:	e24dd030 	sub	sp, sp, #48	; 0x30                            
    3ce8:	e1a06000 	mov	r6, r0                                        
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
    3cec:	ebfffb54 	bl	2a44 <rtems_filesystem_dirname>                
                                                                      
  if ( parentpathlen == 0 )                                           
    3cf0:	e2504000 	subs	r4, r0, #0                                   
    3cf4:	e28d3018 	add	r3, sp, #24                                   
    3cf8:	1a000005 	bne	3d14 <rmdir+0x34>                             
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
    3cfc:	e1a00006 	mov	r0, r6                                        
    3d00:	e28d102c 	add	r1, sp, #44	; 0x2c                            
    3d04:	e1a02003 	mov	r2, r3                                        
    3d08:	eb000048 	bl	3e30 <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;           
    3d0c:	e1a05004 	mov	r5, r4                                        
    3d10:	ea000008 	b	3d38 <rmdir+0x58>                               
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
    3d14:	e3a02000 	mov	r2, #0                                        
    3d18:	e58d2000 	str	r2, [sp]                                      
    3d1c:	e1a00006 	mov	r0, r6                                        
    3d20:	e1a01004 	mov	r1, r4                                        
    3d24:	e2822002 	add	r2, r2, #2                                    
    3d28:	ebfffb27 	bl	29cc <rtems_filesystem_evaluate_path>          
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
    3d2c:	e3500000 	cmp	r0, #0                                        
    3d30:	1a00003a 	bne	3e20 <rmdir+0x140>                            
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
    3d34:	e3a05001 	mov	r5, #1                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    3d38:	e28de018 	add	lr, sp, #24                                   
    3d3c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    3d40:	e28dc004 	add	ip, sp, #4                                    
    3d44:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
  name = pathname + parentpathlen;                                    
    3d48:	e0864004 	add	r4, r6, r4                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    3d4c:	e59e3000 	ldr	r3, [lr]                                      
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    3d50:	e1a00004 	mov	r0, r4                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    3d54:	e58c3000 	str	r3, [ip]                                      
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    3d58:	eb002b3d 	bl	ea54 <strlen>                                  
    3d5c:	e1a01000 	mov	r1, r0                                        
    3d60:	e1a00004 	mov	r0, r4                                        
    3d64:	ebfffb44 	bl	2a7c <rtems_filesystem_prefix_separators>      
    3d68:	e0846000 	add	r6, r4, r0                                    
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    3d6c:	e1a00006 	mov	r0, r6                                        
    3d70:	eb002b37 	bl	ea54 <strlen>                                  
    3d74:	e28d4004 	add	r4, sp, #4                                    
    3d78:	e1a01000 	mov	r1, r0                                        
    3d7c:	e3a02000 	mov	r2, #0                                        
    3d80:	e1a00006 	mov	r0, r6                                        
    3d84:	e1a03004 	mov	r3, r4                                        
    3d88:	e58d2000 	str	r2, [sp]                                      
    3d8c:	ebfffae6 	bl	292c <rtems_filesystem_evaluate_relative_path> 
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    3d90:	e3500000 	cmp	r0, #0                                        
    3d94:	0a000004 	beq	3dac <rmdir+0xcc>                             
    if ( free_parentloc )                                             
    3d98:	e3550000 	cmp	r5, #0                                        
    3d9c:	0a00001f 	beq	3e20 <rmdir+0x140>                            
      rtems_filesystem_freenode( &parentloc );                        
    3da0:	e28d0018 	add	r0, sp, #24                                   <== NOT EXECUTED
    3da4:	ebfffbd0 	bl	2cec <rtems_filesystem_freenode>               <== NOT EXECUTED
    3da8:	ea00001c 	b	3e20 <rmdir+0x140>                              <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
    3dac:	e1a00004 	mov	r0, r4                                        
    3db0:	e59d3010 	ldr	r3, [sp, #16]                                 
    3db4:	e1a0e00f 	mov	lr, pc                                        
    3db8:	e593f010 	ldr	pc, [r3, #16]                                 
    3dbc:	e3500001 	cmp	r0, #1                                        
    3dc0:	0a000008 	beq	3de8 <rmdir+0x108>                            
    rtems_filesystem_freenode( &loc );                                
    3dc4:	e1a00004 	mov	r0, r4                                        
    3dc8:	ebfffbc7 	bl	2cec <rtems_filesystem_freenode>               
    if ( free_parentloc )                                             
    3dcc:	e3550000 	cmp	r5, #0                                        
      rtems_filesystem_freenode( &parentloc );                        
    3dd0:	128d0018 	addne	r0, sp, #24                                 
    3dd4:	1bfffbc4 	blne	2cec <rtems_filesystem_freenode>             
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    3dd8:	eb002758 	bl	db40 <__errno>                                 
    3ddc:	e3a03014 	mov	r3, #20                                       
    3de0:	e5803000 	str	r3, [r0]                                      
    3de4:	ea00000d 	b	3e20 <rmdir+0x140>                              
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
    3de8:	e28d6018 	add	r6, sp, #24                                   
    3dec:	e1a01004 	mov	r1, r4                                        
    3df0:	e59d300c 	ldr	r3, [sp, #12]                                 
    3df4:	e1a00006 	mov	r0, r6                                        
    3df8:	e1a0e00f 	mov	lr, pc                                        
    3dfc:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
    3e00:	e1a07000 	mov	r7, r0                                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    3e04:	e1a00004 	mov	r0, r4                                        
    3e08:	ebfffbb7 	bl	2cec <rtems_filesystem_freenode>               
  if ( free_parentloc )                                               
    3e0c:	e3550000 	cmp	r5, #0                                        
    3e10:	0a000003 	beq	3e24 <rmdir+0x144>                            
    rtems_filesystem_freenode( &parentloc );                          
    3e14:	e1a00006 	mov	r0, r6                                        
    3e18:	ebfffbb3 	bl	2cec <rtems_filesystem_freenode>               
    3e1c:	ea000000 	b	3e24 <rmdir+0x144>                              
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
    3e20:	e3e07000 	mvn	r7, #0                                        
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
    3e24:	e1a00007 	mov	r0, r7                                        
    3e28:	e28dd030 	add	sp, sp, #48	; 0x30                            
    3e2c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

000022f8 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
    22f8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
    22fc:	e251a000 	subs	sl, r1, #0                                   
                                                                      
void rtems_cpu_usage_report_with_plugin(                              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
    2300:	e24dd040 	sub	sp, sp, #64	; 0x40                            
    2304:	e1a08000 	mov	r8, r0                                        
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
    2308:	0a000057 	beq	246c <rtems_cpu_usage_report_with_plugin+0x174>
   *  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 );                                       
    230c:	e28d5030 	add	r5, sp, #48	; 0x30                            
    2310:	e1a00005 	mov	r0, r5                                        
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
    2314:	e28d4028 	add	r4, sp, #40	; 0x28                            
   *  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 );                                       
    2318:	eb00149c 	bl	7590 <_TOD_Get_uptime>                         
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
    231c:	e1a01005 	mov	r1, r5                                        
    2320:	e59f014c 	ldr	r0, [pc, #332]	; 2474 <rtems_cpu_usage_report_with_plugin+0x17c>
    2324:	e1a02004 	mov	r2, r4                                        
    2328:	eb001d80 	bl	9930 <_Timespec_Subtract>                      
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
    232c:	e1a00008 	mov	r0, r8                                        
    2330:	e59f1140 	ldr	r1, [pc, #320]	; 2478 <rtems_cpu_usage_report_with_plugin+0x180>
    2334:	e1a0e00f 	mov	lr, pc                                        
    2338:	e12fff1a 	bx	sl                                             
    233c:	e59f5138 	ldr	r5, [pc, #312]	; 247c <rtems_cpu_usage_report_with_plugin+0x184>
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
    2340:	e28db008 	add	fp, sp, #8                                    
  );                                                                  
                                                                      
  for ( api_index = 1 ;                                               
        api_index <= OBJECTS_APIS_LAST ;                              
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
    2344:	e5b53004 	ldr	r3, [r5, #4]!                                 
    2348:	e3530000 	cmp	r3, #0                                        
    234c:	0a00003a 	beq	243c <rtems_cpu_usage_report_with_plugin+0x144>
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
    2350:	e5936004 	ldr	r6, [r3, #4]                                  
    if ( information ) {                                              
    2354:	e3560000 	cmp	r6, #0                                        
    2358:	13a07001 	movne	r7, #1                                      
           * 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(                                      
    235c:	128d9018 	addne	r9, sp, #24                                 
        api_index <= OBJECTS_APIS_LAST ;                              
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
    2360:	1a000032 	bne	2430 <rtems_cpu_usage_report_with_plugin+0x138>
    2364:	ea000034 	b	243c <rtems_cpu_usage_report_with_plugin+0x144> <== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
    2368:	e596301c 	ldr	r3, [r6, #28]                                 
    236c:	e7934107 	ldr	r4, [r3, r7, lsl #2]                          
                                                                      
        if ( !the_thread )                                            
    2370:	e3540000 	cmp	r4, #0                                        
    2374:	0a00002c 	beq	242c <rtems_cpu_usage_report_with_plugin+0x134>
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
    2378:	e3a0100d 	mov	r1, #13                                       
    237c:	e1a0200b 	mov	r2, fp                                        
    2380:	e5940008 	ldr	r0, [r4, #8]                                  
    2384:	eb000fe4 	bl	631c <rtems_object_get_name>                   
                                                                      
        (*print)(                                                     
    2388:	e5942008 	ldr	r2, [r4, #8]                                  
    238c:	e1a0300b 	mov	r3, fp                                        
    2390:	e1a00008 	mov	r0, r8                                        
    2394:	e59f10e4 	ldr	r1, [pc, #228]	; 2480 <rtems_cpu_usage_report_with_plugin+0x188>
    2398:	e1a0e00f 	mov	lr, pc                                        
    239c:	e12fff1a 	bx	sl                                             
        #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;                            
    23a0:	e2843084 	add	r3, r4, #132	; 0x84                           
    23a4:	e893000c 	ldm	r3, {r2, r3}                                  
    23a8:	e58d2020 	str	r2, [sp, #32]                                 
    23ac:	e58d3024 	str	r3, [sp, #36]	; 0x24                          
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
    23b0:	e59f20cc 	ldr	r2, [pc, #204]	; 2484 <rtems_cpu_usage_report_with_plugin+0x18c>
    23b4:	e5923004 	ldr	r3, [r2, #4]                                  
    23b8:	e5932008 	ldr	r2, [r3, #8]                                  
    23bc:	e5943008 	ldr	r3, [r4, #8]                                  
    23c0:	e1520003 	cmp	r2, r3                                        
    23c4:	1a000006 	bne	23e4 <rtems_cpu_usage_report_with_plugin+0xec>
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
    23c8:	e59f00b8 	ldr	r0, [pc, #184]	; 2488 <rtems_cpu_usage_report_with_plugin+0x190>
    23cc:	e28d1030 	add	r1, sp, #48	; 0x30                            
    23d0:	e1a02009 	mov	r2, r9                                        
    23d4:	eb001d55 	bl	9930 <_Timespec_Subtract>                      
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
    23d8:	e28d0020 	add	r0, sp, #32                                   
    23dc:	e1a01009 	mov	r1, r9                                        
    23e0:	eb001d17 	bl	9844 <_Timespec_Add_to>                        
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
    23e4:	e28d203c 	add	r2, sp, #60	; 0x3c                            
    23e8:	e28d3038 	add	r3, sp, #56	; 0x38                            
    23ec:	e28d0020 	add	r0, sp, #32                                   
    23f0:	e28d1028 	add	r1, sp, #40	; 0x28                            
    23f4:	eb001d2a 	bl	98a4 <_Timespec_Divide>                        
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
    23f8:	e3a01ffa 	mov	r1, #1000	; 0x3e8                             
    23fc:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
    2400:	eb00552e 	bl	178c0 <__aeabi_uidiv>                          
    2404:	e59d203c 	ldr	r2, [sp, #60]	; 0x3c                          
    2408:	e58d2000 	str	r2, [sp]                                      
    240c:	e59d2038 	ldr	r2, [sp, #56]	; 0x38                          
    2410:	e1a03000 	mov	r3, r0                                        
    2414:	e58d2004 	str	r2, [sp, #4]                                  
    2418:	e1a00008 	mov	r0, r8                                        
    241c:	e59f1068 	ldr	r1, [pc, #104]	; 248c <rtems_cpu_usage_report_with_plugin+0x194>
    2420:	e59d2020 	ldr	r2, [sp, #32]                                 
    2424:	e1a0e00f 	mov	lr, pc                                        
    2428:	e12fff1a 	bx	sl                                             
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
    242c:	e2877001 	add	r7, r7, #1                                    
    2430:	e1d631b0 	ldrh	r3, [r6, #16]                                
    2434:	e1570003 	cmp	r7, r3                                        
    2438:	9affffca 	bls	2368 <rtems_cpu_usage_report_with_plugin+0x70>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ;                                               
    243c:	e59f304c 	ldr	r3, [pc, #76]	; 2490 <rtems_cpu_usage_report_with_plugin+0x198>
    2440:	e1550003 	cmp	r5, r3                                        
    2444:	1affffbe 	bne	2344 <rtems_cpu_usage_report_with_plugin+0x4c>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
    2448:	e3a01ffa 	mov	r1, #1000	; 0x3e8                             
    244c:	e59d002c 	ldr	r0, [sp, #44]	; 0x2c                          
    2450:	eb00551a 	bl	178c0 <__aeabi_uidiv>                          
    2454:	e59f1038 	ldr	r1, [pc, #56]	; 2494 <rtems_cpu_usage_report_with_plugin+0x19c>
    2458:	e1a03000 	mov	r3, r0                                        
    245c:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
    2460:	e1a00008 	mov	r0, r8                                        
    2464:	e1a0e00f 	mov	lr, pc                                        
    2468:	e12fff1a 	bx	sl                                             
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
    246c:	e28dd040 	add	sp, sp, #64	; 0x40                            
    2470:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

0000c988 <rtems_deviceio_errno>: [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) { if (sc == RTEMS_SUCCESSFUL) {
    c988:	e3500000 	cmp	r0, #0                                        
  [RTEMS_IO_ERROR]                 = EIO,                             
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
    c98c:	e92d4010 	push	{r4, lr}                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
    c990:	08bd8010 	popeq	{r4, pc}                                    
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
    c994:	e350001c 	cmp	r0, #28                                       <== NOT EXECUTED
      eno = status_code_to_errno [sc];                                
    c998:	959f3014 	ldrls	r3, [pc, #20]	; c9b4 <rtems_deviceio_errno+0x2c><== NOT EXECUTED
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
    c99c:	83a04016 	movhi	r4, #22                                     <== NOT EXECUTED
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
      eno = status_code_to_errno [sc];                                
    c9a0:	97934100 	ldrls	r4, [r3, r0, lsl #2]                        <== NOT EXECUTED
    }                                                                 
                                                                      
    errno = eno;                                                      
    c9a4:	eb000022 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    c9a8:	e5804000 	str	r4, [r0]                                      <== NOT EXECUTED
                                                                      
    return -1;                                                        
    c9ac:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
  }                                                                   
}                                                                     
    c9b0:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00001c34 <rtems_filesystem_evaluate_path>: size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) {
    1c34:	e92d40f3 	push	{r0, r1, r4, r5, r6, r7, lr}                 
    1c38:	e1a06003 	mov	r6, r3                                        
                                                                      
  /*                                                                  
   * Verify Input parameters.                                         
   */                                                                 
                                                                      
  if ( !pathname )                                                    
    1c3c:	e2507000 	subs	r7, r0, #0                                   
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc,                         
  int                                follow_link                      
)                                                                     
{                                                                     
  int                           i = 0;                                
    1c40:	e3a03000 	mov	r3, #0                                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc,                         
  int                                follow_link                      
)                                                                     
{                                                                     
    1c44:	e1a05001 	mov	r5, r1                                        
    1c48:	e1a04002 	mov	r4, r2                                        
  int                           i = 0;                                
    1c4c:	e58d3004 	str	r3, [sp, #4]                                  
                                                                      
  /*                                                                  
   * Verify Input parameters.                                         
   */                                                                 
                                                                      
  if ( !pathname )                                                    
    1c50:	1a000002 	bne	1c60 <rtems_filesystem_evaluate_path+0x2c>    
    rtems_set_errno_and_return_minus_one( EFAULT );                   
    1c54:	eb002b76 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1c58:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    1c5c:	ea000003 	b	1c70 <rtems_filesystem_evaluate_path+0x3c>      <== NOT EXECUTED
                                                                      
  if ( !pathloc )                                                     
    1c60:	e3560000 	cmp	r6, #0                                        
    1c64:	1a000004 	bne	1c7c <rtems_filesystem_evaluate_path+0x48>    
    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
    1c68:	eb002b71 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1c6c:	e3a03005 	mov	r3, #5                                        <== NOT EXECUTED
    1c70:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1c74:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1c78:	ea00000a 	b	1ca8 <rtems_filesystem_evaluate_path+0x74>      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Evaluate the path using the optable evalpath.                    
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, pathloc );            
    1c7c:	e28d1004 	add	r1, sp, #4                                    
    1c80:	e1a02006 	mov	r2, r6                                        
    1c84:	eb00038b 	bl	2ab8 <rtems_filesystem_get_start_loc>          
                                                                      
  /*                                                                  
   * We evaluation the path relative to the start location we get got.
   */                                                                 
  return rtems_filesystem_evaluate_relative_path( &pathname[i],       
    1c88:	e59d1004 	ldr	r1, [sp, #4]                                  
    1c8c:	e59d301c 	ldr	r3, [sp, #28]                                 
    1c90:	e0870001 	add	r0, r7, r1                                    
    1c94:	e58d3000 	str	r3, [sp]                                      
    1c98:	e0611005 	rsb	r1, r1, r5                                    
    1c9c:	e1a02004 	mov	r2, r4                                        
    1ca0:	e1a03006 	mov	r3, r6                                        
    1ca4:	ebffffba 	bl	1b94 <rtems_filesystem_evaluate_relative_path> 
                                                  pathnamelen - i,    
                                                  flags,              
                                                  pathloc,            
                                                  follow_link );      
}                                                                     
    1ca8:	e8bd80fc 	pop	{r2, r3, r4, r5, r6, r7, pc}                  
                                                                      

00001b94 <rtems_filesystem_evaluate_relative_path>: /* * Verify Input parameters. */ if ( !pathname )
    1b94:	e3500000 	cmp	r0, #0                                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc,                         
  int                                follow_link                      
)                                                                     
{                                                                     
    1b98:	e92d4030 	push	{r4, r5, lr}                                 
    1b9c:	e1a05002 	mov	r5, r2                                        
    1ba0:	e1a04003 	mov	r4, r3                                        
                                                                      
  /*                                                                  
   * Verify Input parameters.                                         
   */                                                                 
                                                                      
  if ( !pathname )                                                    
    1ba4:	1a000002 	bne	1bb4 <rtems_filesystem_evaluate_relative_path+0x20>
    rtems_set_errno_and_return_minus_one( EFAULT );                   
    1ba8:	eb002ba1 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1bac:	e3a0300e 	mov	r3, #14                                       <== NOT EXECUTED
    1bb0:	ea000003 	b	1bc4 <rtems_filesystem_evaluate_relative_path+0x30><== NOT EXECUTED
                                                                      
  if ( !pathloc )                                                     
    1bb4:	e3530000 	cmp	r3, #0                                        
    1bb8:	1a000004 	bne	1bd0 <rtems_filesystem_evaluate_relative_path+0x3c>
    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
    1bbc:	eb002b9c 	bl	ca34 <__errno>                                 <== NOT EXECUTED
    1bc0:	e3a03005 	mov	r3, #5                                        <== NOT EXECUTED
    1bc4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1bc8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1bcc:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      
  result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
    1bd0:	e593c00c 	ldr	ip, [r3, #12]                                 
    1bd4:	e1a0e00f 	mov	lr, pc                                        
    1bd8:	e59cf000 	ldr	pc, [ip]                                      
  /*                                                                  
   * Get the Node type and determine if you need to follow the link or
   * not.                                                             
   */                                                                 
                                                                      
  if ( (result == 0) && follow_link ) {                               
    1bdc:	e59d200c 	ldr	r2, [sp, #12]                                 
    1be0:	e2703001 	rsbs	r3, r0, #1                                   
    1be4:	33a03000 	movcc	r3, #0                                      
    1be8:	e3520000 	cmp	r2, #0                                        
    1bec:	03a03000 	moveq	r3, #0                                      
    1bf0:	e3530000 	cmp	r3, #0                                        
    1bf4:	08bd8030 	popeq	{r4, r5, pc}                                
                                                                      
    type = (*pathloc->ops->node_type_h)( pathloc );                   
    1bf8:	e594300c 	ldr	r3, [r4, #12]                                 
    1bfc:	e1a00004 	mov	r0, r4                                        
    1c00:	e1a0e00f 	mov	lr, pc                                        
    1c04:	e593f010 	ldr	pc, [r3, #16]                                 
                                                                      
    if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||                    
    1c08:	e2400003 	sub	r0, r0, #3                                    
    1c0c:	e3500001 	cmp	r0, #1                                        
    1c10:	8a000005 	bhi	1c2c <rtems_filesystem_evaluate_relative_path+0x98>
         *    pathloc will be passed up (and eventually released).    
         *    Hence, the (valid) originial node that we submit to     
         *    eval_link_h() should be released by the handler.        
         */                                                           
                                                                      
        result =  (*pathloc->ops->eval_link_h)( pathloc, flags );     
    1c14:	e594300c 	ldr	r3, [r4, #12]                                 
    1c18:	e1a00004 	mov	r0, r4                                        
    1c1c:	e1a01005 	mov	r1, r5                                        
    1c20:	e1a0e00f 	mov	lr, pc                                        
    1c24:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
    1c28:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  if ( (result == 0) && follow_link ) {                               
                                                                      
    type = (*pathloc->ops->node_type_h)( pathloc );                   
                                                                      
    if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||                    
    1c2c:	e3a00000 	mov	r0, #0                                        
        result =  (*pathloc->ops->eval_link_h)( pathloc, flags );     
    }                                                                 
  }                                                                   
                                                                      
  return result;                                                      
}                                                                     
    1c30:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00001a38 <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 ) {
    1a38:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
    1a3c:	e59f60e0 	ldr	r6, [pc, #224]	; 1b24 <rtems_filesystem_initialize+0xec>
    1a40:	e5963000 	ldr	r3, [r6]                                      
    1a44:	e3a02012 	mov	r2, #18                                       
    1a48:	e583202c 	str	r2, [r3, #44]	; 0x2c                          
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1a4c:	e59f30d4 	ldr	r3, [pc, #212]	; 1b28 <rtems_filesystem_initialize+0xf0>
    1a50:	e5933000 	ldr	r3, [r3]                                      
    1a54:	e3530000 	cmp	r3, #0                                        
 *  configuration is a single instantiation of the IMFS or miniIMFS with
 *  a single "/dev" directory in it.                                  
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
    1a58:	e24dd018 	sub	sp, sp, #24                                   
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
    1a5c:	059f00c8 	ldreq	r0, [pc, #200]	; 1b2c <rtems_filesystem_initialize+0xf4>
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1a60:	0a00000a 	beq	1a90 <rtems_filesystem_initialize+0x58>       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
    1a64:	e59f30c4 	ldr	r3, [pc, #196]	; 1b30 <rtems_filesystem_initialize+0xf8>
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
    1a68:	e3a05000 	mov	r5, #0                                        
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
    1a6c:	e5933000 	ldr	r3, [r3]                                      
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
    1a70:	e58d5000 	str	r5, [sp]                                      
    1a74:	e2830008 	add	r0, r3, #8                                    
    1a78:	e8900003 	ldm	r0, {r0, r1}                                  
    1a7c:	e893000c 	ldm	r3, {r2, r3}                                  
    1a80:	eb000208 	bl	22a8 <mount>                                   
                                                                      
  if ( status == -1 )                                                 
    1a84:	e3700001 	cmn	r0, #1                                        
    1a88:	1a000001 	bne	1a94 <rtems_filesystem_initialize+0x5c>       
    rtems_fatal_error_occurred( 0xABCD0002 );                         
    1a8c:	e59f00a0 	ldr	r0, [pc, #160]	; 1b34 <rtems_filesystem_initialize+0xfc><== NOT EXECUTED
    1a90:	eb000eae 	bl	5550 <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      
  rtems_filesystem_link_counts = 0;                                   
    1a94:	e5963000 	ldr	r3, [r6]                                      
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1a98:	e28d4004 	add	r4, sp, #4                                    
  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;                                   
    1a9c:	e1c353b0 	strh	r5, [r3, #48]	; 0x30                         
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1aa0:	e3a01001 	mov	r1, #1                                        
    1aa4:	e1a03004 	mov	r3, r4                                        
    1aa8:	e1a02005 	mov	r2, r5                                        
    1aac:	e59f0084 	ldr	r0, [pc, #132]	; 1b38 <rtems_filesystem_initialize+0x100>
  rtems_filesystem_root        = loc;                                 
    1ab0:	e1a07004 	mov	r7, r4                                        
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1ab4:	e58d5000 	str	r5, [sp]                                      
    1ab8:	eb00005d 	bl	1c34 <rtems_filesystem_evaluate_path>          
  rtems_filesystem_root        = loc;                                 
    1abc:	e596c000 	ldr	ip, [r6]                                      
    1ac0:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    1ac4:	e28cc018 	add	ip, ip, #24                                   
    1ac8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    1acc:	e5973000 	ldr	r3, [r7]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1ad0:	e3a01001 	mov	r1, #1                                        
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
    1ad4:	e58c3000 	str	r3, [ip]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1ad8:	e1a02005 	mov	r2, r5                                        
    1adc:	e1a03004 	mov	r3, r4                                        
    1ae0:	e59f0050 	ldr	r0, [pc, #80]	; 1b38 <rtems_filesystem_initialize+0x100>
    1ae4:	e58d5000 	str	r5, [sp]                                      
    1ae8:	eb000051 	bl	1c34 <rtems_filesystem_evaluate_path>          
  rtems_filesystem_current     = loc;                                 
    1aec:	e596c000 	ldr	ip, [r6]                                      
    1af0:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    1af4:	e28cc004 	add	ip, ip, #4                                    
    1af8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    1afc:	e5973000 	ldr	r3, [r7]                                      
   *                                                                  
   *  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);                                      
    1b00:	e59f0034 	ldr	r0, [pc, #52]	; 1b3c <rtems_filesystem_initialize+0x104>
  /* 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;                                 
    1b04:	e58c3000 	str	r3, [ip]                                      
   *                                                                  
   *  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);                                      
    1b08:	e59f1030 	ldr	r1, [pc, #48]	; 1b40 <rtems_filesystem_initialize+0x108>
    1b0c:	eb000193 	bl	2160 <mkdir>                                   
  if ( status != 0 )                                                  
    1b10:	e3500000 	cmp	r0, #0                                        
    rtems_fatal_error_occurred( 0xABCD0003 );                         
    1b14:	159f0028 	ldrne	r0, [pc, #40]	; 1b44 <rtems_filesystem_initialize+0x10c>
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
  if ( status != 0 )                                                  
    1b18:	1affffdc 	bne	1a90 <rtems_filesystem_initialize+0x58>       
   *  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.        
   */                                                                 
}                                                                     
    1b1c:	e28dd018 	add	sp, sp, #24                                   
    1b20:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

000097cc <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
    97cc:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    97d0:	e1a06000 	mov	r6, r0                                        
    97d4:	e1a07001 	mov	r7, r1                                        
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
    97d8:	e3a00000 	mov	r0, #0                                        
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
    97dc:	e59f4078 	ldr	r4, [pc, #120]	; 985c <rtems_filesystem_iterate+0x90>
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    97e0:	ea000004 	b	97f8 <rtems_filesystem_iterate+0x2c>            
    stop = (*routine)( table_entry, routine_arg );                    
    97e4:	e1a00004 	mov	r0, r4                                        
    97e8:	e1a01007 	mov	r1, r7                                        
    97ec:	e1a0e00f 	mov	lr, pc                                        
    97f0:	e12fff16 	bx	r6                                             
    ++table_entry;                                                    
    97f4:	e2844008 	add	r4, r4, #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 ) {                              
    97f8:	e5943000 	ldr	r3, [r4]                                      
    97fc:	e3530000 	cmp	r3, #0                                        
    9800:	0a000002 	beq	9810 <rtems_filesystem_iterate+0x44>          
    9804:	e3500000 	cmp	r0, #0                                        
    9808:	0afffff5 	beq	97e4 <rtems_filesystem_iterate+0x18>          
    980c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    9810:	e2508000 	subs	r8, r0, #0                                   
    9814:	18bd81f0 	popne	{r4, r5, r6, r7, r8, pc}                    
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
    9818:	e59f5040 	ldr	r5, [pc, #64]	; 9860 <rtems_filesystem_iterate+0x94>
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    981c:	ebffffe0 	bl	97a4 <rtems_libio_lock>                        
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
    9820:	e4954004 	ldr	r4, [r5], #4                                  
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
    9824:	ea000005 	b	9840 <rtems_filesystem_iterate+0x74>            
      !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 );                  
    9828:	e2840008 	add	r0, r4, #8                                    
    982c:	e1a01007 	mov	r1, r7                                        
    9830:	e1a0e00f 	mov	lr, pc                                        
    9834:	e12fff16 	bx	r6                                             
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
    9838:	e5944000 	ldr	r4, [r4]                                      
      !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 );                  
    983c:	e1a08000 	mov	r8, r0                                        
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
    9840:	e1540005 	cmp	r4, r5                                        
    9844:	0a000001 	beq	9850 <rtems_filesystem_iterate+0x84>          
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
    9848:	e3580000 	cmp	r8, #0                                        
    984c:	0afffff5 	beq	9828 <rtems_filesystem_iterate+0x5c>          
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
    9850:	ebffffd9 	bl	97bc <rtems_libio_unlock>                      
    9854:	e1a00008 	mov	r0, r8                                        
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
    9858:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

00002624 <rtems_gxx_getspecific>: void *rtems_gxx_getspecific(__gthread_key_t key) {
    2624:	e92d4031 	push	{r0, r4, r5, lr}                             
    2628:	e1a04000 	mov	r4, r0                                        
  rtems_status_code  status;                                          
  void              *p= 0;                                            
    262c:	e3a05000 	mov	r5, #0                                        
    2630:	e28d2004 	add	r2, sp, #4                                    
    2634:	e5225004 	str	r5, [r2, #-4]!                                
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_get( RTEMS_SELF, (void **)key, &p );   
    2638:	e1a00005 	mov	r0, r5                                        
    263c:	e1a01004 	mov	r1, r4                                        
    2640:	e1a0200d 	mov	r2, sp                                        
    2644:	eb000e2e 	bl	5f04 <rtems_task_variable_get>                 
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    2648:	e1500005 	cmp	r0, r5                                        
    /* We do not have to do this, but what the heck ! */              
     p= key->val;                                                     
    264c:	05943000 	ldreq	r3, [r4]                                    
    2650:	058d3000 	streq	r3, [sp]                                    
  rtems_status_code  status;                                          
  void              *p= 0;                                            
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_get( RTEMS_SELF, (void **)key, &p );   
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    2654:	0a000007 	beq	2678 <rtems_gxx_getspecific+0x54>             
     p= key->val;                                                     
  } else {                                                            
    /* fisrt time, always set to zero, it is unknown the value that the others
     * threads are using at the moment of this call                   
     */                                                               
    status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
    2658:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    265c:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    2660:	e5942004 	ldr	r2, [r4, #4]                                  <== NOT EXECUTED
    2664:	eb000dde 	bl	5de4 <rtems_task_variable_add>                 <== NOT EXECUTED
    if ( status != RTEMS_SUCCESSFUL ) {                               
    2668:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
       rtems_panic ("rtems_gxx_getspecific");                         
    }                                                                 
    key->val = (void *)0;                                             
    266c:	05840000 	streq	r0, [r4]                                    <== NOT EXECUTED
    /* fisrt time, always set to zero, it is unknown the value that the others
     * threads are using at the moment of this call                   
     */                                                               
    status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
    if ( status != RTEMS_SUCCESSFUL ) {                               
       rtems_panic ("rtems_gxx_getspecific");                         
    2670:	159f0008 	ldrne	r0, [pc, #8]	; 2680 <rtems_gxx_getspecific+0x5c><== NOT EXECUTED
    2674:	1b001ec6 	blne	a194 <rtems_panic>                           <== NOT EXECUTED
       p,                                                             
       rtems_task_self()                                              
    );                                                                
  #endif                                                              
  return p;                                                           
}                                                                     
    2678:	e59d0000 	ldr	r0, [sp]                                      
    267c:	e8bd8038 	pop	{r3, r4, r5, pc}                              
                                                                      

000025e4 <rtems_gxx_key_dtor>: { #ifdef DEBUG_GXX_WRAPPERS printk( "gxx_wrappers: dtor key=%x, ptr=%x\n", key, ptr ); #endif key->val = 0;
    25e4:	e3a03000 	mov	r3, #0                                        <== NOT EXECUTED
    25e8:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
  return 0;                                                           
}                                                                     
    25ec:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
    25f0:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00002704 <rtems_gxx_mutex_destroy>: int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex) {
    2704:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 <== NOT EXECUTED
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: destroy mutex=%X\n", *mutex );             
  #endif                                                              
                                                                      
  status = rtems_semaphore_delete(*(rtems_id *)mutex);                
    2708:	e5900000 	ldr	r0, [r0]                                      <== NOT EXECUTED
    270c:	eb000c1a 	bl	577c <rtems_semaphore_delete>                  <== NOT EXECUTED
  if ( status == RTEMS_SUCCESSFUL )                                   
    2710:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    return 0;                                                         
  return -1;                                                          
}                                                                     
    2714:	13e00000 	mvnne	r0, #0                                      <== NOT EXECUTED
    2718:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      

00002f20 <rtems_libio_set_private_env>: } } rtems_status_code rtems_libio_set_private_env(void) {
    2f20:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  rtems_status_code      sc;                                          
  rtems_id               task_id;                                     
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  sc=rtems_task_ident(RTEMS_SELF,0,&task_id);                         
    2f24:	e3a00000 	mov	r0, #0                                        
  free(env);                                                          
 }                                                                    
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
    2f28:	e24dd01c 	sub	sp, sp, #28                                   
  rtems_status_code      sc;                                          
  rtems_id               task_id;                                     
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  sc=rtems_task_ident(RTEMS_SELF,0,&task_id);                         
    2f2c:	e1a01000 	mov	r1, r0                                        
    2f30:	e28d2018 	add	r2, sp, #24                                   
    2f34:	eb000a64 	bl	58cc <rtems_task_ident>                        
  if (sc != RTEMS_SUCCESSFUL) return sc;                              
    2f38:	e2508000 	subs	r8, r0, #0                                   
    2f3c:	1a000037 	bne	3020 <rtems_libio_set_private_env+0x100>      
                                                                      
  /* Only for the first time a malloc is necesary */                  
  if (rtems_current_user_env==&rtems_global_user_env) {               
    2f40:	e59f40e4 	ldr	r4, [pc, #228]	; 302c <rtems_libio_set_private_env+0x10c>
    2f44:	e59f30e4 	ldr	r3, [pc, #228]	; 3030 <rtems_libio_set_private_env+0x110>
    2f48:	e5942000 	ldr	r2, [r4]                                      
    2f4c:	e1520003 	cmp	r2, r3                                        
    2f50:	1a00000f 	bne	2f94 <rtems_libio_set_private_env+0x74>       
   rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));          
    2f54:	e2800048 	add	r0, r0, #72	; 0x48                            
    2f58:	ebfffd51 	bl	24a4 <malloc>                                  
   if (!tmp)                                                          
    2f5c:	e2505000 	subs	r5, r0, #0                                   
     return RTEMS_NO_MEMORY;                                          
    2f60:	03a0801a 	moveq	r8, #26                                     
  if (sc != RTEMS_SUCCESSFUL) return sc;                              
                                                                      
  /* Only for the first time a malloc is necesary */                  
  if (rtems_current_user_env==&rtems_global_user_env) {               
   rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));          
   if (!tmp)                                                          
    2f64:	0a00002d 	beq	3020 <rtems_libio_set_private_env+0x100>      
                                                                      
#ifdef HAVE_USERENV_REFCNT                                            
   tmp->refcnt = 1;                                                   
#endif                                                                
                                                                      
   sc = rtems_task_variable_add(                                      
    2f68:	e1a00008 	mov	r0, r8                                        
    2f6c:	e1a01004 	mov	r1, r4                                        
    2f70:	e59f20bc 	ldr	r2, [pc, #188]	; 3034 <rtems_libio_set_private_env+0x114>
    2f74:	eb000aa4 	bl	5a0c <rtems_task_variable_add>                 
    RTEMS_SELF,                                                       
    (void*)&rtems_current_user_env,                                   
    (void(*)(void *))free_user_env                                    
   );                                                                 
   if (sc != RTEMS_SUCCESSFUL) {                                      
    2f78:	e2506000 	subs	r6, r0, #0                                   
     * not initialized yet                                            
     */                                                               
     free(tmp);                                                       
     return sc;                                                       
   }                                                                  
   rtems_current_user_env = tmp;                                      
    2f7c:	05845000 	streq	r5, [r4]                                    
   sc = rtems_task_variable_add(                                      
    RTEMS_SELF,                                                       
    (void*)&rtems_current_user_env,                                   
    (void(*)(void *))free_user_env                                    
   );                                                                 
   if (sc != RTEMS_SUCCESSFUL) {                                      
    2f80:	0a000003 	beq	2f94 <rtems_libio_set_private_env+0x74>       
    /* don't use free_user_env because the pathlocs are               
     * not initialized yet                                            
     */                                                               
     free(tmp);                                                       
    2f84:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    2f88:	ebfffbdf 	bl	1f0c <free>                                    <== NOT EXECUTED
     return sc;                                                       
    2f8c:	e1a08006 	mov	r8, r6                                        <== NOT EXECUTED
    2f90:	ea000022 	b	3020 <rtems_libio_set_private_env+0x100>        <== NOT EXECUTED
   }                                                                  
   rtems_current_user_env = tmp;                                      
  }                                                                   
                                                                      
  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
    2f94:	e59f6090 	ldr	r6, [pc, #144]	; 302c <rtems_libio_set_private_env+0x10c>
    2f98:	e5964000 	ldr	r4, [r6]                                      
    2f9c:	e59f108c 	ldr	r1, [pc, #140]	; 3030 <rtems_libio_set_private_env+0x110>
    2fa0:	e1a00004 	mov	r0, r4                                        
    2fa4:	e3a02048 	mov	r2, #72	; 0x48                                
    2fa8:	eb0029d8 	bl	d710 <memcpy>                                  
  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
    2fac:	e59d3018 	ldr	r3, [sp, #24]                                 
   * 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_evaluate_path("/", 1, 0, &loc, 0);                 
    2fb0:	e3a05000 	mov	r5, #0                                        
   }                                                                  
   rtems_current_user_env = tmp;                                      
  }                                                                   
                                                                      
  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
    2fb4:	e5843000 	str	r3, [r4]                                      
   * 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_evaluate_path("/", 1, 0, &loc, 0);                 
    2fb8:	e28d4004 	add	r4, sp, #4                                    
    2fbc:	e1a03004 	mov	r3, r4                                        
    2fc0:	e3a01001 	mov	r1, #1                                        
    2fc4:	e1a02005 	mov	r2, r5                                        
    2fc8:	e59f0068 	ldr	r0, [pc, #104]	; 3038 <rtems_libio_set_private_env+0x118>
  rtems_filesystem_root    = loc;                                     
    2fcc:	e1a07004 	mov	r7, r4                                        
   * 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_evaluate_path("/", 1, 0, &loc, 0);                 
    2fd0:	e58d5000 	str	r5, [sp]                                      
    2fd4:	ebfffb8c 	bl	1e0c <rtems_filesystem_evaluate_path>          
  rtems_filesystem_root    = loc;                                     
    2fd8:	e596c000 	ldr	ip, [r6]                                      
    2fdc:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    2fe0:	e28cc018 	add	ip, ip, #24                                   
    2fe4:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    2fe8:	e5973000 	ldr	r3, [r7]                                      
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    2fec:	e3a01001 	mov	r1, #1                                        
   * clones. The reason is a pathloc can be allocated by the          
   * file system and needs to be freed when deleting the environment. 
   */                                                                 
                                                                      
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root    = loc;                                     
    2ff0:	e58c3000 	str	r3, [ip]                                      
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    2ff4:	e1a02005 	mov	r2, r5                                        
    2ff8:	e1a03004 	mov	r3, r4                                        
    2ffc:	e59f0034 	ldr	r0, [pc, #52]	; 3038 <rtems_libio_set_private_env+0x118>
    3000:	e58d5000 	str	r5, [sp]                                      
    3004:	ebfffb80 	bl	1e0c <rtems_filesystem_evaluate_path>          
  rtems_filesystem_current = loc;                                     
    3008:	e596c000 	ldr	ip, [r6]                                      
    300c:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    3010:	e28cc004 	add	ip, ip, #4                                    
    3014:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    3018:	e5973000 	ldr	r3, [r7]                                      
    301c:	e58c3000 	str	r3, [ip]                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    3020:	e1a00008 	mov	r0, r8                                        
    3024:	e28dd01c 	add	sp, sp, #28                                   
    3028:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

0000303c <rtems_libio_share_private_env>: * while changing any of those (chdir(), chroot()). */ #ifndef HAVE_USERENV_REFCNT rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
    303c:	e92d4033 	push	{r0, r1, r4, r5, lr}                         <== NOT EXECUTED
    3040:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
  rtems_status_code  sc;                                              
  rtems_user_env_t * shared_user_env;                                 
  rtems_id           current_task_id;                                 
                                                                      
  sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id);                 
    3044:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    3048:	e1a01000 	mov	r1, r0                                        <== NOT EXECUTED
    304c:	e1a0200d 	mov	r2, sp                                        <== NOT EXECUTED
    3050:	eb000a1d 	bl	58cc <rtems_task_ident>                        <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL) return sc;                              
    3054:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    3058:	1a00001c 	bne	30d0 <rtems_libio_share_private_env+0x94>     <== NOT EXECUTED
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
    305c:	e59f1074 	ldr	r1, [pc, #116]	; 30d8 <rtems_libio_share_private_env+0x9c><== NOT EXECUTED
    3060:	e5915000 	ldr	r5, [r1]                                      <== NOT EXECUTED
    3064:	e59d3000 	ldr	r3, [sp]                                      <== NOT EXECUTED
    3068:	e5952000 	ldr	r2, [r5]                                      <== NOT EXECUTED
    306c:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    3070:	1a000005 	bne	308c <rtems_libio_share_private_env+0x50>     <== NOT EXECUTED
   /* kill the current user env & task_var*/                          
   rtems_user_env_t  *tmp = rtems_current_user_env;                   
   sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
    3074:	eb000a8e 	bl	5ab4 <rtems_task_variable_delete>              <== NOT EXECUTED
   if (sc != RTEMS_SUCCESSFUL) return sc;                             
    3078:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    307c:	1a000013 	bne	30d0 <rtems_libio_share_private_env+0x94>     <== NOT EXECUTED
   free_user_env(tmp);                                                
    3080:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    3084:	ebffff98 	bl	2eec <free_user_env>                           <== NOT EXECUTED
    3088:	ea000004 	b	30a0 <rtems_libio_share_private_env+0x64>       <== NOT EXECUTED
  } else {                                                            
    sc = rtems_task_variable_get(                                     
    308c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    3090:	e28d2004 	add	r2, sp, #4                                    <== NOT EXECUTED
    3094:	eb000aa4 	bl	5b2c <rtems_task_variable_get>                 <== NOT EXECUTED
      task_id,(void*)&rtems_current_user_env, (void*)&shared_user_env );
    if (sc != RTEMS_SUCCESSFUL)                                       
    3098:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    309c:	1a000008 	bne	30c4 <rtems_libio_share_private_env+0x88>     <== NOT EXECUTED
      goto bailout;                                                   
  }                                                                   
                                                                      
  /* AT THIS POINT, rtems_current_user_env is DANGLING */             
                                                                      
  sc = rtems_task_variable_add(                                       
    30a0:	e59f4030 	ldr	r4, [pc, #48]	; 30d8 <rtems_libio_share_private_env+0x9c><== NOT EXECUTED
    30a4:	e59f2030 	ldr	r2, [pc, #48]	; 30dc <rtems_libio_share_private_env+0xa0><== NOT EXECUTED
    30a8:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    30ac:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    30b0:	eb000a55 	bl	5a0c <rtems_task_variable_add>                 <== NOT EXECUTED
    RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);         
  if (sc != RTEMS_SUCCESSFUL)                                         
    30b4:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    goto bailout;                                                     
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
    30b8:	059d2004 	ldreq	r2, [sp, #4]                                <== NOT EXECUTED
    30bc:	05842000 	streq	r2, [r4]                                    <== NOT EXECUTED
                                                                      
  /* AT THIS POINT, rtems_current_user_env is DANGLING */             
                                                                      
  sc = rtems_task_variable_add(                                       
    RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);         
  if (sc != RTEMS_SUCCESSFUL)                                         
    30c0:	0a000002 	beq	30d0 <rtems_libio_share_private_env+0x94>     <== NOT EXECUTED
                                                                      
  return RTEMS_SUCCESSFUL;                                            
                                                                      
bailout:                                                              
  /* fallback to the global env */                                    
  rtems_current_user_env = &rtems_global_user_env;                    
    30c4:	e59f1014 	ldr	r1, [pc, #20]	; 30e0 <rtems_libio_share_private_env+0xa4><== NOT EXECUTED
    30c8:	e59f2008 	ldr	r2, [pc, #8]	; 30d8 <rtems_libio_share_private_env+0x9c><== NOT EXECUTED
    30cc:	e5821000 	str	r1, [r2]                                      <== NOT EXECUTED
  return sc;                                                          
}                                                                     
    30d0:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
    30d4:	e8bd803c 	pop	{r2, r3, r4, r5, pc}                          <== NOT EXECUTED
                                                                      

00009574 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
    9574:	e2003006 	and	r3, r0, #6                                    
    9578:	e3530006 	cmp	r3, #6                                        
    fcntl_flags |= O_RDWR;                                            
    957c:	03a03002 	moveq	r3, #2                                      
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    9580:	0a000005 	beq	959c <rtems_libio_to_fcntl_flags+0x28>        
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
    9584:	e3100002 	tst	r0, #2                                        
    fcntl_flags |= O_RDONLY;                                          
    9588:	13a03000 	movne	r3, #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) {       
    958c:	1a000002 	bne	959c <rtems_libio_to_fcntl_flags+0x28>        
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
    9590:	e3100004 	tst	r0, #4                                        <== NOT EXECUTED
    9594:	03a03000 	moveq	r3, #0                                      <== NOT EXECUTED
    9598:	13a03001 	movne	r3, #1                                      <== 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 ) {     
    959c:	e3100001 	tst	r0, #1                                        
    fcntl_flags |= O_NONBLOCK;                                        
    95a0:	13833901 	orrne	r3, r3, #16384	; 0x4000                     
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
    95a4:	e3100c02 	tst	r0, #512	; 0x200                              
    fcntl_flags |= O_APPEND;                                          
    95a8:	13833008 	orrne	r3, r3, #8                                  
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
    95ac:	e3100b01 	tst	r0, #1024	; 0x400                             
    fcntl_flags |= O_CREAT;                                           
    95b0:	13833c02 	orrne	r3, r3, #512	; 0x200                        
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
    95b4:	e1a00003 	mov	r0, r3                                        
    95b8:	e12fff1e 	bx	lr                                             
                                                                      

0000bbc4 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
    bbc4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    bbc8:	e24dd048 	sub	sp, sp, #72	; 0x48                            
    bbcc:	e1a0b001 	mov	fp, r1                                        
	int success = 0;                                                     
	char *dup_path = strdup(path);                                       
    bbd0:	eb000e20 	bl	f458 <strdup>                                  
                                                                      
	if (dup_path != NULL) {                                              
    bbd4:	e2505000 	subs	r5, r0, #0                                   
		success = build(dup_path, mode);                                    
		free(dup_path);                                                     
	}                                                                    
                                                                      
	return success != 0 ? 0 : -1;                                        
    bbd8:	03e00000 	mvneq	r0, #0                                      
rtems_mkdir(const char *path, mode_t mode)                            
{                                                                     
	int success = 0;                                                     
	char *dup_path = strdup(path);                                       
                                                                      
	if (dup_path != NULL) {                                              
    bbdc:	0a000056 	beq	bd3c <rtems_mkdir+0x178>                      
	char *p;                                                             
                                                                      
	p = path;                                                            
	oumask = 0;                                                          
	retval = 1;                                                          
	if (p[0] == '/')		/* Skip leading '/'. */                            
    bbe0:	e5d53000 	ldrb	r3, [r5]                                     
    bbe4:	e3a06000 	mov	r6, #0                                        
    bbe8:	e353002f 	cmp	r3, #47	; 0x2f                                
		++p;                                                                
    bbec:	02857001 	addeq	r7, r5, #1                                  
	char *p;                                                             
                                                                      
	p = path;                                                            
	oumask = 0;                                                          
	retval = 1;                                                          
	if (p[0] == '/')		/* Skip leading '/'. */                            
    bbf0:	11a07005 	movne	r7, r5                                      
    bbf4:	e3a03001 	mov	r3, #1                                        
		++p;                                                                
	for (first = 1, last = 0; !last ; ++p) {                             
		if (p[0] == '\0')                                                   
			last = 1;                                                          
		else if (p[0] != '/')                                               
    bbf8:	e1a09006 	mov	r9, r6                                        
				retval = 0;                                                       
				break;                                                            
			}                                                                  
		}                                                                   
		if (!last)                                                          
		    *p = '/';                                                       
    bbfc:	e3a0a02f 	mov	sl, #47	; 0x2f                                
		}                                                                   
		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) {                                        
    bc00:	e1a0800d 	mov	r8, sp                                        
	oumask = 0;                                                          
	retval = 1;                                                          
	if (p[0] == '/')		/* Skip leading '/'. */                            
		++p;                                                                
	for (first = 1, last = 0; !last ; ++p) {                             
		if (p[0] == '\0')                                                   
    bc04:	e4d72001 	ldrb	r2, [r7], #1                                 
    bc08:	e3520000 	cmp	r2, #0                                        
			last = 1;                                                          
    bc0c:	03a02001 	moveq	r2, #1                                      
	oumask = 0;                                                          
	retval = 1;                                                          
	if (p[0] == '/')		/* Skip leading '/'. */                            
		++p;                                                                
	for (first = 1, last = 0; !last ; ++p) {                             
		if (p[0] == '\0')                                                   
    bc10:	0a000002 	beq	bc20 <rtems_mkdir+0x5c>                       
			last = 1;                                                          
		else if (p[0] != '/')                                               
    bc14:	e352002f 	cmp	r2, #47	; 0x2f                                
    bc18:	03a02000 	moveq	r2, #0                                      
    bc1c:	1afffff8 	bne	bc04 <rtems_mkdir+0x40>                       
			continue;                                                          
		*p = '\0';                                                          
		if (!last && p[1] == '\0')                                          
    bc20:	e3520000 	cmp	r2, #0                                        
	for (first = 1, last = 0; !last ; ++p) {                             
		if (p[0] == '\0')                                                   
			last = 1;                                                          
		else if (p[0] != '/')                                               
			continue;                                                          
		*p = '\0';                                                          
    bc24:	e5479001 	strb	r9, [r7, #-1]                                
		if (!last && p[1] == '\0')                                          
    bc28:	13a04001 	movne	r4, #1                                      
    bc2c:	1a000002 	bne	bc3c <rtems_mkdir+0x78>                       
    bc30:	e5d74000 	ldrb	r4, [r7]                                     
    bc34:	e2744001 	rsbs	r4, r4, #1                                   
    bc38:	33a04000 	movcc	r4, #0                                      
			last = 1;                                                          
		if (first) {                                                        
    bc3c:	e3530000 	cmp	r3, #0                                        
    bc40:	0a000004 	beq	bc58 <rtems_mkdir+0x94>                       
			 *    mkdir [-m mode] dir                                          
			 *                                                                 
			 * We change the user's umask and then restore it,                 
			 * instead of doing chmod's.                                       
			 */                                                                
			oumask = umask(0);                                                 
    bc44:	e3a00000 	mov	r0, #0                                        
    bc48:	eb000069 	bl	bdf4 <umask>                                   
    bc4c:	e1a06000 	mov	r6, r0                                        
			numask = oumask & ~(S_IWUSR | S_IXUSR);                            
			(void)umask(numask);                                               
    bc50:	e3c000c0 	bic	r0, r0, #192	; 0xc0                           
    bc54:	eb000066 	bl	bdf4 <umask>                                   
			first = 0;                                                         
		}                                                                   
		if (last)                                                           
    bc58:	e3540000 	cmp	r4, #0                                        
			(void)umask(oumask);                                               
		if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {  
    bc5c:	059f10f0 	ldreq	r1, [pc, #240]	; bd54 <rtems_mkdir+0x190>   
			oumask = umask(0);                                                 
			numask = oumask & ~(S_IWUSR | S_IXUSR);                            
			(void)umask(numask);                                               
			first = 0;                                                         
		}                                                                   
		if (last)                                                           
    bc60:	0a000002 	beq	bc70 <rtems_mkdir+0xac>                       
			(void)umask(oumask);                                               
    bc64:	e1a00006 	mov	r0, r6                                        
    bc68:	eb000061 	bl	bdf4 <umask>                                   
		if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {  
    bc6c:	e1a0100b 	mov	r1, fp                                        
    bc70:	e1a00005 	mov	r0, r5                                        
    bc74:	ebffde44 	bl	358c <mkdir>                                   
    bc78:	e3500000 	cmp	r0, #0                                        
    bc7c:	aa00001f 	bge	bd00 <rtems_mkdir+0x13c>                      
			if (errno == EEXIST || errno == EISDIR) {                          
    bc80:	eb000a0c 	bl	e4b8 <__errno>                                 
    bc84:	e5903000 	ldr	r3, [r0]                                      
    bc88:	e3530011 	cmp	r3, #17                                       
    bc8c:	0a000003 	beq	bca0 <rtems_mkdir+0xdc>                       
    bc90:	eb000a08 	bl	e4b8 <__errno>                                 <== NOT EXECUTED
    bc94:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
    bc98:	e3530015 	cmp	r3, #21                                       <== NOT EXECUTED
    bc9c:	1a00001c 	bne	bd14 <rtems_mkdir+0x150>                      <== NOT EXECUTED
				if (stat(path, &sb) < 0) {                                        
    bca0:	e1a00005 	mov	r0, r5                                        
    bca4:	e1a0100d 	mov	r1, sp                                        
    bca8:	eb00002a 	bl	bd58 <stat>                                    
    bcac:	e3500000 	cmp	r0, #0                                        
    bcb0:	ba000017 	blt	bd14 <rtems_mkdir+0x150>                      
					retval = 0;                                                      
					break;                                                           
				} else if (!S_ISDIR(sb.st_mode)) {                                
    bcb4:	e59d300c 	ldr	r3, [sp, #12]                                 
    bcb8:	e2033a0f 	and	r3, r3, #61440	; 0xf000                       
    bcbc:	e3530901 	cmp	r3, #16384	; 0x4000                           
    bcc0:	0a00000b 	beq	bcf4 <rtems_mkdir+0x130>                      
					if (last)                                                        
    bcc4:	e3540000 	cmp	r4, #0                                        
    bcc8:	0a000004 	beq	bce0 <rtems_mkdir+0x11c>                      
						errno = EEXIST;                                                 
    bccc:	eb0009f9 	bl	e4b8 <__errno>                                 
    bcd0:	e3a03011 	mov	r3, #17                                       
    bcd4:	e5803000 	str	r3, [r0]                                      
					else                                                             
						errno = ENOTDIR;                                                
					retval = 0;                                                      
    bcd8:	e3a07000 	mov	r7, #0                                        
    bcdc:	ea000011 	b	bd28 <rtems_mkdir+0x164>                        
					break;                                                           
				} else if (!S_ISDIR(sb.st_mode)) {                                
					if (last)                                                        
						errno = EEXIST;                                                 
					else                                                             
						errno = ENOTDIR;                                                
    bce0:	eb0009f4 	bl	e4b8 <__errno>                                 <== NOT EXECUTED
    bce4:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
    bce8:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
					retval = 0;                                                      
    bcec:	e1a07004 	mov	r7, r4                                        <== NOT EXECUTED
    bcf0:	ea00000a 	b	bd20 <rtems_mkdir+0x15c>                        <== NOT EXECUTED
					break;                                                           
				}                                                                 
				if (last)                                                         
    bcf4:	e3540000 	cmp	r4, #0                                        
    bcf8:	1a000011 	bne	bd44 <rtems_mkdir+0x180>                      
    bcfc:	ea000001 	b	bd08 <rtems_mkdir+0x144>                        
			} else {                                                           
				retval = 0;                                                       
				break;                                                            
			}                                                                  
		}                                                                   
		if (!last)                                                          
    bd00:	e3540000 	cmp	r4, #0                                        
    bd04:	1a000010 	bne	bd4c <rtems_mkdir+0x188>                      
		    *p = '/';                                                       
    bd08:	e547a001 	strb	sl, [r7, #-1]                                
    bd0c:	e3a03000 	mov	r3, #0                                        
    bd10:	eaffffbb 	b	bc04 <rtems_mkdir+0x40>                         
	}                                                                    
	if (!first && !last)                                                 
    bd14:	e3540000 	cmp	r4, #0                                        <== NOT EXECUTED
		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;                                                      
    bd18:	e3a07000 	mov	r7, #0                                        <== NOT EXECUTED
			}                                                                  
		}                                                                   
		if (!last)                                                          
		    *p = '/';                                                       
	}                                                                    
	if (!first && !last)                                                 
    bd1c:	1a000001 	bne	bd28 <rtems_mkdir+0x164>                      <== NOT EXECUTED
		(void)umask(oumask);                                                
    bd20:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    bd24:	eb000032 	bl	bdf4 <umask>                                   <== NOT EXECUTED
	int success = 0;                                                     
	char *dup_path = strdup(path);                                       
                                                                      
	if (dup_path != NULL) {                                              
		success = build(dup_path, mode);                                    
		free(dup_path);                                                     
    bd28:	e1a00005 	mov	r0, r5                                        
    bd2c:	ebffdc6a 	bl	2edc <free>                                    
	}                                                                    
                                                                      
	return success != 0 ? 0 : -1;                                        
    bd30:	e3570000 	cmp	r7, #0                                        
    bd34:	13a00000 	movne	r0, #0                                      
    bd38:	03e00000 	mvneq	r0, #0                                      
}                                                                     
    bd3c:	e28dd048 	add	sp, sp, #72	; 0x48                            
    bd40:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
						errno = ENOTDIR;                                                
					retval = 0;                                                      
					break;                                                           
				}                                                                 
				if (last)                                                         
					retval = 2;                                                      
    bd44:	e3a07002 	mov	r7, #2                                        
    bd48:	eafffff6 	b	bd28 <rtems_mkdir+0x164>                        
			} else {                                                           
				retval = 0;                                                       
				break;                                                            
			}                                                                  
		}                                                                   
		if (!last)                                                          
    bd4c:	e3a07001 	mov	r7, #1                                        
    bd50:	eafffff4 	b	bd28 <rtems_mkdir+0x164>                        
                                                                      

000013e8 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
    13e8:	e59f303c 	ldr	r3, [pc, #60]	; 142c <rtems_stack_checker_is_blown+0x44>
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
    13ec:	e92d4800 	push	{fp, lr}                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
    13f0:	e5932004 	ldr	r2, [r3, #4]                                  
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    13f4:	e59230c8 	ldr	r3, [r2, #200]	; 0xc8                         
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
    13f8:	e28db004 	add	fp, sp, #4                                    
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    13fc:	e15b0003 	cmp	fp, r3                                        
    1400:	3a000003 	bcc	1414 <rtems_stack_checker_is_blown+0x2c>      
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
    1404:	e59220c4 	ldr	r2, [r2, #196]	; 0xc4                         
    1408:	e0833002 	add	r3, r3, r2                                    
    140c:	e15b0003 	cmp	fp, r3                                        
    1410:	9a000003 	bls	1424 <rtems_stack_checker_is_blown+0x3c>      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
    1414:	e59f3010 	ldr	r3, [pc, #16]	; 142c <rtems_stack_checker_is_blown+0x44><== NOT EXECUTED
    1418:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
    141c:	e5930004 	ldr	r0, [r3, #4]                                  <== NOT EXECUTED
    1420:	ebffffad 	bl	12dc <Stack_check_report_blown_task>           <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
    1424:	e3a00000 	mov	r0, #0                                        
    1428:	e8bd8800 	pop	{fp, pc}                                      
                                                                      

0000ae58 <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
    ae58:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    ae5c:	e2514000 	subs	r4, r1, #0                                   
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
    ae60:	e1a05000 	mov	r5, r0                                        
    ae64:	e1a06002 	mov	r6, r2                                        
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
    ae68:	03a00009 	moveq	r0, #9                                      
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    ae6c:	0a000018 	beq	aed4 <rtems_string_to_pointer+0x7c>           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
    ae70:	eb000aa5 	bl	d90c <__errno>                                 
    ae74:	e3a03000 	mov	r3, #0                                        
    ae78:	e5803000 	str	r3, [r0]                                      
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
    ae7c:	e1a0100d 	mov	r1, sp                                        
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
    ae80:	e5843000 	str	r3, [r4]                                      
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
    ae84:	e1a00005 	mov	r0, r5                                        
    ae88:	e3a02010 	mov	r2, #16                                       
    ae8c:	eb00182b 	bl	10f40 <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 )                                                       
    ae90:	e3560000 	cmp	r6, #0                                        
    *endptr = end;                                                    
    ae94:	159d3000 	ldrne	r3, [sp]                                    
    ae98:	15863000 	strne	r3, [r6]                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
    ae9c:	e59d3000 	ldr	r3, [sp]                                      
    aea0:	e1530005 	cmp	r3, r5                                        
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
    aea4:	e1a07000 	mov	r7, r0                                        
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
    aea8:	03a0000b 	moveq	r0, #11                                     
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
    aeac:	0a000008 	beq	aed4 <rtems_string_to_pointer+0x7c>           
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
    aeb0:	e3770001 	cmn	r7, #1                                        
    aeb4:	1a000004 	bne	aecc <rtems_string_to_pointer+0x74>           
    aeb8:	eb000a93 	bl	d90c <__errno>                                 <== NOT EXECUTED
    aebc:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
    aec0:	e3530022 	cmp	r3, #34	; 0x22                                <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
    aec4:	03a0000a 	moveq	r0, #10                                     <== NOT EXECUTED
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
    aec8:	0a000001 	beq	aed4 <rtems_string_to_pointer+0x7c>           <== 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;                          
    aecc:	e5847000 	str	r7, [r4]                                      
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
    aed0:	e3a00000 	mov	r0, #0                                        
}                                                                     
    aed4:	e8bd80f8 	pop	{r3, r4, r5, r6, r7, pc}                      
                                                                      

0000166c <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
    166c:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    1670:	e24ddf6b 	sub	sp, sp, #428	; 0x1ac                          
    1674:	e58d1010 	str	r1, [sp, #16]                                 
    1678:	e58d2018 	str	r2, [sp, #24]                                 
    167c:	e58d000c 	str	r0, [sp, #12]                                 
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
    1680:	eb003cc0 	bl	10988 <strlen>                                 
    1684:	e3a02000 	mov	r2, #0                                        
    1688:	e1a01000 	mov	r1, r0                                        
    168c:	e28d3f65 	add	r3, sp, #404	; 0x194                          
    1690:	e59d000c 	ldr	r0, [sp, #12]                                 
    1694:	e58d2000 	str	r2, [sp]                                      
    1698:	eb0002b3 	bl	216c <rtems_filesystem_evaluate_path>          
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
    169c:	e2504000 	subs	r4, r0, #0                                   
    16a0:	1a00006c 	bne	1858 <rtems_tarfs_load+0x1ec>                 
      return -1;                                                      
                                                                      
   if (root_loc.ops != &IMFS_ops                                      
    16a4:	e59d31a0 	ldr	r3, [sp, #416]	; 0x1a0                        
    16a8:	e59f21c0 	ldr	r2, [pc, #448]	; 1870 <rtems_tarfs_load+0x204>
    16ac:	e1530002 	cmp	r3, r2                                        
    16b0:	0a000005 	beq	16cc <rtems_tarfs_load+0x60>                  
       && root_loc.ops != &fifoIMFS_ops)                              
    16b4:	e59f21b8 	ldr	r2, [pc, #440]	; 1874 <rtems_tarfs_load+0x208><== NOT EXECUTED
    16b8:	e1530002 	cmp	r3, r2                                        <== NOT EXECUTED
    16bc:	1a000065 	bne	1858 <rtems_tarfs_load+0x1ec>                 <== NOT EXECUTED
    16c0:	ea000001 	b	16cc <rtems_tarfs_load+0x60>                    <== NOT EXECUTED
    16c4:	e1a08004 	mov	r8, r4                                        
    16c8:	ea000006 	b	16e8 <rtems_tarfs_load+0x7c>                    
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    16cc:	e28d2f65 	add	r2, sp, #404	; 0x194                          
    16d0:	e58d2004 	str	r2, [sp, #4]                                  
      0                                                               
   );                                                                 
   if (status != 0)                                                   
      return -1;                                                      
                                                                      
   if (root_loc.ops != &IMFS_ops                                      
    16d4:	e1a08004 	mov	r8, r4                                        
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar  ", 7))                         
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    16d8:	e28d7f47 	add	r7, sp, #284	; 0x11c                          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    16dc:	e28d9d06 	add	r9, sp, #384	; 0x180                          
     * - 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);                              
    16e0:	e28d501c 	add	r5, sp, #28                                   
    16e4:	e1a0a004 	mov	sl, r4                                        
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
    16e8:	e59d3018 	ldr	r3, [sp, #24]                                 
    16ec:	e2884c02 	add	r4, r8, #512	; 0x200                          
    16f0:	e1540003 	cmp	r4, r3                                        
    16f4:	8a000059 	bhi	1860 <rtems_tarfs_load+0x1f4>                 
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    16f8:	e59de010 	ldr	lr, [sp, #16]                                 
    16fc:	e08e8008 	add	r8, lr, r8                                    
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar  ", 7))                         
    1700:	e2880c01 	add	r0, r8, #256	; 0x100                          
    1704:	e2800001 	add	r0, r0, #1                                    
    1708:	e59f1168 	ldr	r1, [pc, #360]	; 1878 <rtems_tarfs_load+0x20c>
    170c:	e3a02007 	mov	r2, #7                                        
    1710:	eb003cb4 	bl	109e8 <strncmp>                                
    1714:	e2506000 	subs	r6, r0, #0                                   
    1718:	1a000050 	bne	1860 <rtems_tarfs_load+0x1f4>                 
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    171c:	e3a02063 	mov	r2, #99	; 0x63                                
    1720:	e1a01008 	mov	r1, r8                                        
    1724:	e1a00007 	mov	r0, r7                                        
    1728:	eb003d0a 	bl	10b58 <strncpy>                                
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
    172c:	e5cd617f 	strb	r6, [sp, #383]	; 0x17f                       
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    1730:	e3a01008 	mov	r1, #8                                        
    1734:	e2880064 	add	r0, r8, #100	; 0x64                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    1738:	e5d8609c 	ldrb	r6, [r8, #156]	; 0x9c                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    173c:	eb001d63 	bl	8cd0 <_rtems_octal2ulong>                      
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
    1740:	e3a0100c 	mov	r1, #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);                
    1744:	e58d0014 	str	r0, [sp, #20]                                 
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
    1748:	e288007c 	add	r0, r8, #124	; 0x7c                           
    174c:	eb001d5f 	bl	8cd0 <_rtems_octal2ulong>                      
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
    1750:	e3a01008 	mov	r1, #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);               
    1754:	e1a0b000 	mov	fp, r0                                        
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
    1758:	e2880094 	add	r0, r8, #148	; 0x94                           
    175c:	eb001d5b 	bl	8cd0 <_rtems_octal2ulong>                      
    1760:	e1a03000 	mov	r3, r0                                        
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
    1764:	e1a00008 	mov	r0, r8                                        
    1768:	e58d3008 	str	r3, [sp, #8]                                  
    176c:	eb001d65 	bl	8d08 <_rtems_tar_header_checksum>              
    1770:	e59d3008 	ldr	r3, [sp, #8]                                  
    1774:	e1500003 	cmp	r0, r3                                        
    1778:	1a000038 	bne	1860 <rtems_tarfs_load+0x1f4>                 
     * 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) {                                        
    177c:	e3560035 	cmp	r6, #53	; 0x35                                
    1780:	1a000012 	bne	17d0 <rtems_tarfs_load+0x164>                 
      strcpy(full_filename, mountpoint);                              
    1784:	e59d100c 	ldr	r1, [sp, #12]                                 
    1788:	e1a00005 	mov	r0, r5                                        
    178c:	eb003ab9 	bl	10278 <strcpy>                                 
      if (full_filename[strlen(full_filename)-1] != '/')              
    1790:	e1a00005 	mov	r0, r5                                        
    1794:	eb003c7b 	bl	10988 <strlen>                                 
    1798:	e28d2f6b 	add	r2, sp, #428	; 0x1ac                          
    179c:	e0820000 	add	r0, r2, r0                                    
    17a0:	e5503191 	ldrb	r3, [r0, #-401]	; 0x191                      
    17a4:	e353002f 	cmp	r3, #47	; 0x2f                                
        strcat(full_filename, "/");                                   
    17a8:	11a00005 	movne	r0, r5                                      
    17ac:	159f10c8 	ldrne	r1, [pc, #200]	; 187c <rtems_tarfs_load+0x210>
    17b0:	1b0039f9 	blne	ff9c <strcat>                                
      strcat(full_filename, filename);                                
    17b4:	e1a01007 	mov	r1, r7                                        
    17b8:	e1a00005 	mov	r0, r5                                        
    17bc:	eb0039f6 	bl	ff9c <strcat>                                  
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
    17c0:	e1a00005 	mov	r0, r5                                        
    17c4:	e59f10b4 	ldr	r1, [pc, #180]	; 1880 <rtems_tarfs_load+0x214>
    17c8:	eb000487 	bl	29ec <mkdir>                                   
    17cc:	eaffffbc 	b	16c4 <rtems_tarfs_load+0x58>                    
     *        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) {                                   
    17d0:	e3560030 	cmp	r6, #48	; 0x30                                
    17d4:	1affffba 	bne	16c4 <rtems_tarfs_load+0x58>                  
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    17d8:	e59dc004 	ldr	ip, [sp, #4]                                  
    17dc:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    17e0:	e1a0e009 	mov	lr, r9                                        
    17e4:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    17e8:	e59c2000 	ldr	r2, [ip]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
    17ec:	e1a00007 	mov	r0, r7                                        
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    17f0:	e58e2000 	str	r2, [lr]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
    17f4:	e1a01009 	mov	r1, r9                                        
    17f8:	e28d2f6a 	add	r2, sp, #424	; 0x1a8                          
    17fc:	eb00202b 	bl	98b0 <IMFS_evaluate_for_make>                  
    1800:	e2506000 	subs	r6, r0, #0                                   
    1804:	1a00000d 	bne	1840 <rtems_tarfs_load+0x1d4>                 
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
    1808:	e59d2014 	ldr	r2, [sp, #20]                                 
    180c:	e1a03b82 	lsl	r3, r2, #23                                   
    1810:	e1a03ba3 	lsr	r3, r3, #23                                   
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
    1814:	e59d21a8 	ldr	r2, [sp, #424]	; 0x1a8                        
    1818:	e3833902 	orr	r3, r3, #32768	; 0x8000                       
    181c:	e1a00009 	mov	r0, r9                                        
    1820:	e3a01006 	mov	r1, #6                                        
    1824:	e58d6000 	str	r6, [sp]                                      
    1828:	eb001e91 	bl	9274 <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];            
    182c:	e59d2010 	ldr	r2, [sp, #16]                                 
    1830:	e0823004 	add	r3, r2, r4                                    
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
    1834:	e580b050 	str	fp, [r0, #80]	; 0x50                          
    1838:	e5806054 	str	r6, [r0, #84]	; 0x54                          
        node->info.linearfile.direct = &tar_image[offset];            
    183c:	e5803058 	str	r3, [r0, #88]	; 0x58                          
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
    1840:	e28bbf7f 	add	fp, fp, #508	; 0x1fc                          
    1844:	e28bb003 	add	fp, fp, #3                                    
      offset += 512 * nblocks;                                        
    1848:	e3cbbf7f 	bic	fp, fp, #508	; 0x1fc                          
    184c:	e3cbb003 	bic	fp, fp, #3                                    
    1850:	e08b4004 	add	r4, fp, r4                                    
    1854:	eaffff9a 	b	16c4 <rtems_tarfs_load+0x58>                    
   if (status != 0)                                                   
      return -1;                                                      
                                                                      
   if (root_loc.ops != &IMFS_ops                                      
       && root_loc.ops != &fifoIMFS_ops)                              
      return -1;                                                      
    1858:	e3e04000 	mvn	r4, #0                                        <== NOT EXECUTED
    185c:	ea000000 	b	1864 <rtems_tarfs_load+0x1f8>                   <== NOT EXECUTED
    1860:	e1a0400a 	mov	r4, sl                                        
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
    1864:	e1a00004 	mov	r0, r4                                        
    1868:	e28ddf6b 	add	sp, sp, #428	; 0x1ac                          
    186c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

0000c548 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
    c548:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    c54c:	e252a000 	subs	sl, r2, #0                                   
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
    c550:	e1a04000 	mov	r4, r0                                        
    c554:	e1a05001 	mov	r5, r1                                        
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
    c558:	03a00009 	moveq	r0, #9                                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    c55c:	08bd87f0 	popeq	{r4, r5, r6, r7, r8, r9, sl, pc}            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
    c560:	e59f314c 	ldr	r3, [pc, #332]	; c6b4 <rtems_task_mode+0x16c> 
    c564:	e5937004 	ldr	r7, [r3, #4]                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    c568:	e5d78074 	ldrb	r8, [r7, #116]	; 0x74                        
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
    c56c:	e5976104 	ldr	r6, [r7, #260]	; 0x104                        
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    c570:	e597307c 	ldr	r3, [r7, #124]	; 0x7c                         
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    c574:	e3580000 	cmp	r8, #0                                        
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    c578:	e5d69008 	ldrb	r9, [r6, #8]                                 
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    c57c:	03a08c01 	moveq	r8, #256	; 0x100                            
    c580:	13a08000 	movne	r8, #0                                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    c584:	e3530000 	cmp	r3, #0                                        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
    c588:	13888c02 	orrne	r8, r8, #512	; 0x200                        
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    c58c:	e3590000 	cmp	r9, #0                                        
    c590:	03a09b01 	moveq	r9, #1024	; 0x400                           
    c594:	13a09000 	movne	r9, #0                                      
  old_mode |= _ISR_Get_level();                                       
    c598:	ebffeff9 	bl	8584 <_CPU_ISR_Get_level>                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    c59c:	e1899000 	orr	r9, r9, r0                                    
  old_mode |= _ISR_Get_level();                                       
    c5a0:	e1898008 	orr	r8, r9, r8                                    
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    c5a4:	e3150c01 	tst	r5, #256	; 0x100                              
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
                                                                      
  *previous_mode_set = old_mode;                                      
    c5a8:	e58a8000 	str	r8, [sl]                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    c5ac:	0a000003 	beq	c5c0 <rtems_task_mode+0x78>                   
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
    c5b0:	e3140c01 	tst	r4, #256	; 0x100                              
    c5b4:	13a03000 	movne	r3, #0                                      
    c5b8:	03a03001 	moveq	r3, #1                                      
    c5bc:	e5c73074 	strb	r3, [r7, #116]	; 0x74                        
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    c5c0:	e3150c02 	tst	r5, #512	; 0x200                              
    c5c4:	0a000006 	beq	c5e4 <rtems_task_mode+0x9c>                   
    if ( _Modes_Is_timeslice(mode_set) ) {                            
    c5c8:	e2143c02 	ands	r3, r4, #512	; 0x200                         
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
    c5cc:	13a03001 	movne	r3, #1                                      
    c5d0:	1587307c 	strne	r3, [r7, #124]	; 0x7c                       
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    c5d4:	159f30dc 	ldrne	r3, [pc, #220]	; c6b8 <rtems_task_mode+0x170>
    c5d8:	15933000 	ldrne	r3, [r3]                                    
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
    c5dc:	0587307c 	streq	r3, [r7, #124]	; 0x7c                       
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    c5e0:	15873078 	strne	r3, [r7, #120]	; 0x78                       
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
    c5e4:	e3150080 	tst	r5, #128	; 0x80                               
    c5e8:	0a000001 	beq	c5f4 <rtems_task_mode+0xac>                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
    c5ec:	e2040080 	and	r0, r4, #128	; 0x80                           
    c5f0:	ebffefde 	bl	8570 <_CPU_ISR_Set_level>                      
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    c5f4:	e2150b01 	ands	r0, r5, #1024	; 0x400                        
    c5f8:	0a000013 	beq	c64c <rtems_task_mode+0x104>                  
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
    c5fc:	e3140b01 	tst	r4, #1024	; 0x400                             
  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 ) {                        
    c600:	e5d62008 	ldrb	r2, [r6, #8]                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
    c604:	13a03000 	movne	r3, #0                                      
    c608:	03a03001 	moveq	r3, #1                                      
  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 ) {                        
    c60c:	e1520003 	cmp	r2, r3                                        
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
    c610:	03a00000 	moveq	r0, #0                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
    c614:	0a00000c 	beq	c64c <rtems_task_mode+0x104>                  
      asr->is_enabled = is_asr_enabled;                               
    c618:	e5c63008 	strb	r3, [r6, #8]                                 
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    c61c:	e10f3000 	mrs	r3, CPSR                                      
    c620:	e3832080 	orr	r2, r3, #128	; 0x80                           
    c624:	e129f002 	msr	CPSR_fc, r2                                   
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    c628:	e2861014 	add	r1, r6, #20                                   
    c62c:	e8910006 	ldm	r1, {r1, r2}                                  
    information->signals_pending = information->signals_posted;       
    information->signals_posted  = _signals;                          
    c630:	e5862014 	str	r2, [r6, #20]                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
    c634:	e5861018 	str	r1, [r6, #24]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    c638:	e129f003 	msr	CPSR_fc, r3                                   
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
    c63c:	e5960014 	ldr	r0, [r6, #20]                                 
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
    c640:	e3500000 	cmp	r0, #0                                        
    c644:	13a00001 	movne	r0, #1                                      
    c648:	03a00000 	moveq	r0, #0                                      
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
    c64c:	e59f3068 	ldr	r3, [pc, #104]	; c6bc <rtems_task_mode+0x174> 
    c650:	e5933000 	ldr	r3, [r3]                                      
    c654:	e3530003 	cmp	r3, #3                                        
    c658:	1a000013 	bne	c6ac <rtems_task_mode+0x164>                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Thread_Evaluate_mode( void )               
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
    c65c:	e59f2050 	ldr	r2, [pc, #80]	; c6b4 <rtems_task_mode+0x16c>  
    c660:	e5923004 	ldr	r3, [r2, #4]                                  
                                                                      
  if ( !_States_Is_ready( executing->current_state ) ||               
    c664:	e5931010 	ldr	r1, [r3, #16]                                 
    c668:	e3510000 	cmp	r1, #0                                        
    c66c:	1a000005 	bne	c688 <rtems_task_mode+0x140>                  
    c670:	e5922008 	ldr	r2, [r2, #8]                                  
    c674:	e1530002 	cmp	r3, r2                                        
    c678:	0a000006 	beq	c698 <rtems_task_mode+0x150>                  
       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
    c67c:	e5d33074 	ldrb	r3, [r3, #116]	; 0x74                        
    c680:	e3530000 	cmp	r3, #0                                        
    c684:	0a000003 	beq	c698 <rtems_task_mode+0x150>                  
    _Context_Switch_necessary = true;                                 
    c688:	e59f3024 	ldr	r3, [pc, #36]	; c6b4 <rtems_task_mode+0x16c>  
    c68c:	e3a02001 	mov	r2, #1                                        
    c690:	e5c32010 	strb	r2, [r3, #16]                                
    c694:	ea000001 	b	c6a0 <rtems_task_mode+0x158>                    
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
    c698:	e3500000 	cmp	r0, #0                                        
    c69c:	08bd87f0 	popeq	{r4, r5, r6, r7, r8, r9, sl, pc}            
      _Thread_Dispatch();                                             
    c6a0:	ebffe9bb 	bl	6d94 <_Thread_Dispatch>                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
    c6a4:	e3a00000 	mov	r0, #0                                        
    c6a8:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
    c6ac:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
    c6b0:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              <== NOT EXECUTED
                                                                      

000031d8 <rtems_termios_bufsize>: int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize;
    31d8:	e59f300c 	ldr	r3, [pc, #12]	; 31ec <rtems_termios_bufsize+0x14><== NOT EXECUTED
    31dc:	e5830008 	str	r0, [r3, #8]                                  <== NOT EXECUTED
  rtems_termios_raw_input_size  = raw_input;                          
    31e0:	e8830006 	stm	r3, {r1, r2}                                  <== NOT EXECUTED
  rtems_termios_raw_output_size = raw_output;                         
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    31e4:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    31e8:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

00003040 <rtems_termios_close>: rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
    3040:	e5903000 	ldr	r3, [r0]                                      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
    3044:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
    3048:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
    304c:	e59f3174 	ldr	r3, [pc, #372]	; 31c8 <rtems_termios_close+0x188>
    3050:	e3a01000 	mov	r1, #0                                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
    3054:	e1a05000 	mov	r5, 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(                                        
    3058:	e1a02001 	mov	r2, r1                                        
    305c:	e5930000 	ldr	r0, [r3]                                      
    3060:	eb0007a3 	bl	4ef4 <rtems_semaphore_obtain>                  
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
    3064:	e3500000 	cmp	r0, #0                                        
    3068:	1a000022 	bne	30f8 <rtems_termios_close+0xb8>               
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
    306c:	e5943008 	ldr	r3, [r4, #8]                                  
    3070:	e2433001 	sub	r3, r3, #1                                    
    3074:	e3530000 	cmp	r3, #0                                        
    3078:	e5843008 	str	r3, [r4, #8]                                  
    307c:	1a00004c 	bne	31b4 <rtems_termios_close+0x174>              
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
    3080:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    3084:	e59f3140 	ldr	r3, [pc, #320]	; 31cc <rtems_termios_close+0x18c>
    3088:	e0833282 	add	r3, r3, r2, lsl #5                            
    308c:	e5931004 	ldr	r1, [r3, #4]                                  
    3090:	e3510000 	cmp	r1, #0                                        
    3094:	0a000003 	beq	30a8 <rtems_termios_close+0x68>               
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    3098:	e1a00004 	mov	r0, r4                                        
    309c:	e1a0e00f 	mov	lr, pc                                        
    30a0:	e12fff11 	bx	r1                                             
    30a4:	ea000006 	b	30c4 <rtems_termios_close+0x84>                 
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    30a8:	e5940018 	ldr	r0, [r4, #24]                                 
    30ac:	e1a02001 	mov	r2, r1                                        
    30b0:	eb00078f 	bl	4ef4 <rtems_semaphore_obtain>                  
      if (sc != RTEMS_SUCCESSFUL) {                                   
    30b4:	e3500000 	cmp	r0, #0                                        
    30b8:	1a00000e 	bne	30f8 <rtems_termios_close+0xb8>               
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
    30bc:	e1a00004 	mov	r0, r4                                        
    30c0:	ebfffeb2 	bl	2b90 <drainOutput>                             
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    30c4:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    30c8:	e3530002 	cmp	r3, #2                                        
    30cc:	1a00000a 	bne	30fc <rtems_termios_close+0xbc>               
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
    30d0:	e59400c4 	ldr	r0, [r4, #196]	; 0xc4                         
    30d4:	e3a01001 	mov	r1, #1                                        
    30d8:	eb000673 	bl	4aac <rtems_event_send>                        
      if (sc != RTEMS_SUCCESSFUL)                                     
    30dc:	e3500000 	cmp	r0, #0                                        
    30e0:	1a000004 	bne	30f8 <rtems_termios_close+0xb8>               
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
    30e4:	e59400c8 	ldr	r0, [r4, #200]	; 0xc8                         
    30e8:	e3a01001 	mov	r1, #1                                        
    30ec:	eb00066e 	bl	4aac <rtems_event_send>                        
      if (sc != RTEMS_SUCCESSFUL)                                     
    30f0:	e3500000 	cmp	r0, #0                                        
    30f4:	0a000000 	beq	30fc <rtems_termios_close+0xbc>               
        rtems_fatal_error_occurred (sc);                              
    30f8:	eb000914 	bl	5550 <rtems_fatal_error_occurred>              <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
    30fc:	e594309c 	ldr	r3, [r4, #156]	; 0x9c                         
    3100:	e3530000 	cmp	r3, #0                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    3104:	1284000c 	addne	r0, r4, #12                                 
    3108:	18900003 	ldmne	r0, {r0, r1}                                
    310c:	11a02005 	movne	r2, r5                                      
    3110:	11a0e00f 	movne	lr, pc                                      
    3114:	112fff13 	bxne	r3                                           
    if (tty->forw == NULL) {                                          
    3118:	e894000c 	ldm	r4, {r2, r3}                                  
    311c:	e3520000 	cmp	r2, #0                                        
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    3120:	15823004 	strne	r3, [r2, #4]                                
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
    3124:	1a000003 	bne	3138 <rtems_termios_close+0xf8>               
      rtems_termios_ttyTail = tty->back;                              
    3128:	e59f10a0 	ldr	r1, [pc, #160]	; 31d0 <rtems_termios_close+0x190>
      if ( rtems_termios_ttyTail != NULL ) {                          
    312c:	e3530000 	cmp	r3, #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;                              
    3130:	e5813000 	str	r3, [r1]                                      
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
    3134:	15832000 	strne	r2, [r3]                                    
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
    3138:	e5942004 	ldr	r2, [r4, #4]                                  
    313c:	e5943000 	ldr	r3, [r4]                                      
    3140:	e3520000 	cmp	r2, #0                                        
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
    3144:	15823000 	strne	r3, [r2]                                    
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
    3148:	1a000003 	bne	315c <rtems_termios_close+0x11c>              
      rtems_termios_ttyHead = tty->forw;                              
    314c:	e59f1080 	ldr	r1, [pc, #128]	; 31d4 <rtems_termios_close+0x194>
      if ( rtems_termios_ttyHead != NULL ) {                          
    3150:	e3530000 	cmp	r3, #0                                        
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
    3154:	e5813000 	str	r3, [r1]                                      
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
    3158:	15832004 	strne	r2, [r3, #4]                                
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
    315c:	e5940014 	ldr	r0, [r4, #20]                                 
    3160:	eb00073c 	bl	4e58 <rtems_semaphore_delete>                  
    rtems_semaphore_delete (tty->osem);                               
    3164:	e5940018 	ldr	r0, [r4, #24]                                 
    3168:	eb00073a 	bl	4e58 <rtems_semaphore_delete>                  
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
    316c:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
    3170:	eb000738 	bl	4e58 <rtems_semaphore_delete>                  
    if ((tty->device.pollRead == NULL) ||                             
    3174:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    3178:	e3530000 	cmp	r3, #0                                        
    317c:	0a000002 	beq	318c <rtems_termios_close+0x14c>              
    3180:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    3184:	e3530002 	cmp	r3, #2                                        
    3188:	1a000001 	bne	3194 <rtems_termios_close+0x154>              
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    318c:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
    3190:	eb000730 	bl	4e58 <rtems_semaphore_delete>                  
    free (tty->rawInBuf.theBuf);                                      
    3194:	e5940058 	ldr	r0, [r4, #88]	; 0x58                          
    3198:	ebfffae5 	bl	1d34 <free>                                    
    free (tty->rawOutBuf.theBuf);                                     
    319c:	e594007c 	ldr	r0, [r4, #124]	; 0x7c                         
    31a0:	ebfffae3 	bl	1d34 <free>                                    
    free (tty->cbuf);                                                 
    31a4:	e594001c 	ldr	r0, [r4, #28]                                 
    31a8:	ebfffae1 	bl	1d34 <free>                                    
    free (tty);                                                       
    31ac:	e1a00004 	mov	r0, r4                                        
    31b0:	ebfffadf 	bl	1d34 <free>                                    
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
    31b4:	e59f300c 	ldr	r3, [pc, #12]	; 31c8 <rtems_termios_close+0x188>
    31b8:	e5930000 	ldr	r0, [r3]                                      
    31bc:	eb000792 	bl	500c <rtems_semaphore_release>                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    31c0:	e3a00000 	mov	r0, #0                                        
    31c4:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00004554 <rtems_termios_dequeue_characters>: rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len;
    4554:	e5902090 	ldr	r2, [r0, #144]	; 0x90                         
    4558:	e0822001 	add	r2, r2, r1                                    
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    455c:	e59010b4 	ldr	r1, [r0, #180]	; 0xb4                         
    4560:	e3510002 	cmp	r1, #2                                        
 * for each transmitted character.                                    
 * It returns number of characters left to transmit                   
 */                                                                   
int                                                                   
rtems_termios_dequeue_characters (void *ttyp, int len)                
{                                                                     
    4564:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
    4568:	e5802090 	str	r2, [r0, #144]	; 0x90                         
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    456c:	1a000004 	bne	4584 <rtems_termios_dequeue_characters+0x30>  
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
    4570:	e59000c8 	ldr	r0, [r0, #200]	; 0xc8                         
    4574:	eb00014c 	bl	4aac <rtems_event_send>                        
    if (sc != RTEMS_SUCCESSFUL)                                       
    4578:	e2503000 	subs	r3, r0, #0                                   
    457c:	0a00000d 	beq	45b8 <rtems_termios_dequeue_characters+0x64>  
      rtems_fatal_error_occurred (sc);                                
    4580:	eb0003f2 	bl	5550 <rtems_fatal_error_occurred>              <== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    4584:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
    4588:	e3530005 	cmp	r3, #5                                        
    458c:	1a000007 	bne	45b0 <rtems_termios_dequeue_characters+0x5c>  
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
    4590:	e59f3028 	ldr	r3, [pc, #40]	; 45c0 <rtems_termios_dequeue_characters+0x6c>
    4594:	e59330b4 	ldr	r3, [r3, #180]	; 0xb4                         
    4598:	e3530000 	cmp	r3, #0                                        
    459c:	0a000005 	beq	45b8 <rtems_termios_dequeue_characters+0x64>  
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    45a0:	e1a0e00f 	mov	lr, pc                                        
    45a4:	e12fff13 	bx	r3                                             
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
    45a8:	e3a03000 	mov	r3, #0                                        
    45ac:	ea000001 	b	45b8 <rtems_termios_dequeue_characters+0x64>    
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
    45b0:	e49de004 	pop	{lr}		; (ldr lr, [sp], #4)                    
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
    45b4:	eaffff5a 	b	4324 <rtems_termios_refill_transmitter>         
}                                                                     
    45b8:	e1a00003 	mov	r0, r3                                        
    45bc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00004020 <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) {
    4020:	e92d4ff3 	push	{r0, r1, r4, r5, r6, r7, r8, r9, sl, fp, lr} 
  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) {             
    4024:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
    4028:	e59f7288 	ldr	r7, [pc, #648]	; 42b8 <rtems_termios_enqueue_raw_characters+0x298>
    402c:	e0873283 	add	r3, r7, r3, lsl #5                            
    4030:	e5939010 	ldr	r9, [r3, #16]                                 
    4034:	e3590000 	cmp	r9, #0                                        
 *       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) 
{                                                                     
    4038:	e1a04000 	mov	r4, r0                                        
    403c:	e1a06001 	mov	r6, 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) {             
    4040:	11a05002 	movne	r5, r2                                      
    4044:	1a00000d 	bne	4080 <rtems_termios_enqueue_raw_characters+0x60>
                                                                      
        /*                                                            
         * 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); 
    4048:	e2803030 	add	r3, r0, #48	; 0x30                            
    404c:	e58d3000 	str	r3, [sp]                                      
          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,                          
    4050:	e280304a 	add	r3, r0, #74	; 0x4a                            
  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) {             
    4054:	e1a08002 	mov	r8, r2                                        
    4058:	e1a05009 	mov	r5, r9                                        
          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,                          
    405c:	e58d3004 	str	r3, [sp, #4]                                  
    4060:	ea00008b 	b	4294 <rtems_termios_enqueue_raw_characters+0x274>
  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);                
    4064:	e59430cc 	ldr	r3, [r4, #204]	; 0xcc                         
    4068:	e4d60001 	ldrb	r0, [r6], #1                                 
    406c:	e0873283 	add	r3, r7, r3, lsl #5                            
    4070:	e1a01004 	mov	r1, r4                                        
    4074:	e1a0e00f 	mov	lr, pc                                        
    4078:	e593f010 	ldr	pc, [r3, #16]                                 
    407c:	e2455001 	sub	r5, r5, #1                                    
  int dropped = 0;                                                    
  bool flow_rcv = false; /* true, if flow control char received */    
  rtems_interrupt_level level;                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {             
    while (len--) {                                                   
    4080:	e3550000 	cmp	r5, #0                                        
    4084:	1afffff6 	bne	4064 <rtems_termios_enqueue_raw_characters+0x44>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
    4088:	e59430e4 	ldr	r3, [r4, #228]	; 0xe4                         
    408c:	e3530000 	cmp	r3, #0                                        
    4090:	1a000086 	bne	42b0 <rtems_termios_enqueue_raw_characters+0x290>
    4094:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
    4098:	e3530000 	cmp	r3, #0                                        
    409c:	0a000083 	beq	42b0 <rtems_termios_enqueue_raw_characters+0x290>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
    40a0:	e2840030 	add	r0, r4, #48	; 0x30                            <== NOT EXECUTED
    40a4:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         <== NOT EXECUTED
    40a8:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    40ac:	e12fff13 	bx	r3                                             <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
    40b0:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    40b4:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         <== NOT EXECUTED
    40b8:	ea00007c 	b	42b0 <rtems_termios_enqueue_raw_characters+0x290><== NOT EXECUTED
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
    40bc:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    40c0:	e3130c02 	tst	r3, #512	; 0x200                              
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    40c4:	e4d6a001 	ldrb	sl, [r6], #1                                 
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
    40c8:	0a00000f 	beq	410c <rtems_termios_enqueue_raw_characters+0xec>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
    40cc:	e5d4204a 	ldrb	r2, [r4, #74]	; 0x4a                         
    40d0:	e152000a 	cmp	r2, sl                                        
    40d4:	e5d43049 	ldrb	r3, [r4, #73]	; 0x49                         
    40d8:	1a000007 	bne	40fc <rtems_termios_enqueue_raw_characters+0xdc>
        if (c == tty->termios.c_cc[VSTART]) {                         
    40dc:	e1530002 	cmp	r3, r2                                        <== NOT EXECUTED
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
    40e0:	059430b8 	ldreq	r3, [r4, #184]	; 0xb8                       <== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
    40e4:	159430b8 	ldrne	r3, [r4, #184]	; 0xb8                       <== NOT EXECUTED
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
    40e8:	02233010 	eoreq	r3, r3, #16                                 <== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
    40ec:	13833010 	orrne	r3, r3, #16                                 <== NOT EXECUTED
    40f0:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
 *       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) 
{                                                                     
    40f4:	e3a09001 	mov	r9, #1                                        <== NOT EXECUTED
    40f8:	ea000005 	b	4114 <rtems_termios_enqueue_raw_characters+0xf4><== NOT EXECUTED
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
    40fc:	e153000a 	cmp	r3, sl                                        
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
    4100:	059430b8 	ldreq	r3, [r4, #184]	; 0xb8                       
    4104:	03c33010 	biceq	r3, r3, #16                                 
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
    4108:	0afffff8 	beq	40f0 <rtems_termios_enqueue_raw_characters+0xd0>
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
    410c:	e3590000 	cmp	r9, #0                                        
    4110:	0a000014 	beq	4168 <rtems_termios_enqueue_raw_characters+0x148>
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
    4114:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4118:	e2033030 	and	r3, r3, #48	; 0x30                            <== NOT EXECUTED
    411c:	e3530020 	cmp	r3, #32                                       <== NOT EXECUTED
    4120:	1a00005a 	bne	4290 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
    4124:	ebfffa95 	bl	2b80 <arm_interrupt_disable>                   <== NOT EXECUTED
    4128:	e1a07000 	mov	r7, r0                                        <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
    412c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4130:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
    4134:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
    4138:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    413c:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    4140:	0a000006 	beq	4160 <rtems_termios_enqueue_raw_characters+0x140><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
    4144:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         <== 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)(                                       
    4148:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         <== NOT EXECUTED
    414c:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    4150:	e0811003 	add	r1, r1, r3                                    <== NOT EXECUTED
    4154:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4158:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    415c:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    4160:	e129f007 	msr	CPSR_fc, r7                                   <== NOT EXECUTED
    4164:	ea000049 	b	4290 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
    4168:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          
    416c:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    4170:	e2800001 	add	r0, r0, #1                                    
    4174:	eb003075 	bl	10350 <__umodsi3>                              
    4178:	e1a07000 	mov	r7, r0                                        
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
    417c:	ebfffa7f 	bl	2b80 <arm_interrupt_disable>                   
    4180:	e1a0b000 	mov	fp, r0                                        
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
    4184:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
    4188:	e5940064 	ldr	r0, [r4, #100]	; 0x64                         
    418c:	e0630000 	rsb	r0, r3, r0                                    
            % tty->rawInBuf.Size) > tty->highwater) &&                
    4190:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    4194:	e0800007 	add	r0, r0, r7                                    
    4198:	eb00306c 	bl	10350 <__umodsi3>                              
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
    419c:	e59430c0 	ldr	r3, [r4, #192]	; 0xc0                         
    41a0:	e1500003 	cmp	r0, r3                                        
    41a4:	9a000025 	bls	4240 <rtems_termios_enqueue_raw_characters+0x220>
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
    41a8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== 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) &&                
    41ac:	e3130001 	tst	r3, #1                                        <== NOT EXECUTED
    41b0:	1a000022 	bne	4240 <rtems_termios_enqueue_raw_characters+0x220><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
    41b4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    41b8:	e3833001 	orr	r3, r3, #1                                    <== NOT EXECUTED
    41bc:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
    41c0:	e59f30f4 	ldr	r3, [pc, #244]	; 42bc <rtems_termios_enqueue_raw_characters+0x29c><== NOT EXECUTED
    41c4:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    41c8:	e0023003 	and	r3, r2, r3                                    <== NOT EXECUTED
    41cc:	e3530b01 	cmp	r3, #1024	; 0x400                             <== NOT EXECUTED
    41d0:	1a00000e 	bne	4210 <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
    41d4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    41d8:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    41dc:	1a000002 	bne	41ec <rtems_termios_enqueue_raw_characters+0x1cc><== NOT EXECUTED
    41e0:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    41e4:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    41e8:	1a000014 	bne	4240 <rtems_termios_enqueue_raw_characters+0x220><== 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;                             
    41ec:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    41f0:	e3833002 	orr	r3, r3, #2                                    <== NOT EXECUTED
    41f4:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
    41f8:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    41fc:	e59d1004 	ldr	r1, [sp, #4]                                  <== NOT EXECUTED
    4200:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4204:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4208:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    420c:	ea00000b 	b	4240 <rtems_termios_enqueue_raw_characters+0x220><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
    4210:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4214:	e2033f41 	and	r3, r3, #260	; 0x104                          <== NOT EXECUTED
    4218:	e3530c01 	cmp	r3, #256	; 0x100                              <== NOT EXECUTED
    421c:	1a000007 	bne	4240 <rtems_termios_enqueue_raw_characters+0x220><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
    4220:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4224:	e3833004 	orr	r3, r3, #4                                    <== NOT EXECUTED
    4228:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
    422c:	e59430ac 	ldr	r3, [r4, #172]	; 0xac                         <== NOT EXECUTED
    4230:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
    4234:	15940010 	ldrne	r0, [r4, #16]                               <== NOT EXECUTED
    4238:	11a0e00f 	movne	lr, pc                                      <== NOT EXECUTED
    423c:	112fff13 	bxne	r3                                           <== NOT EXECUTED
    4240:	e129f00b 	msr	CPSR_fc, fp                                   
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
    4244:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
    4248:	e1570003 	cmp	r7, r3                                        
        dropped++;                                                    
    424c:	02855001 	addeq	r5, r5, #1                                  
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
    4250:	0a00000e 	beq	4290 <rtems_termios_enqueue_raw_characters+0x270>
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
    4254:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
    4258:	e7c3a007 	strb	sl, [r3, r7]                                 
        tty->rawInBuf.Tail = newTail;                                 
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
    425c:	e59430e4 	ldr	r3, [r4, #228]	; 0xe4                         
    4260:	e3530000 	cmp	r3, #0                                        
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
    4264:	e5847060 	str	r7, [r4, #96]	; 0x60                          
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
    4268:	1a000008 	bne	4290 <rtems_termios_enqueue_raw_characters+0x270>
    426c:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
    4270:	e3530000 	cmp	r3, #0                                        
    4274:	0a000005 	beq	4290 <rtems_termios_enqueue_raw_characters+0x270>
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
    4278:	e59d0000 	ldr	r0, [sp]                                      <== NOT EXECUTED
    427c:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         <== NOT EXECUTED
    4280:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4284:	e12fff13 	bx	r3                                             <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
    4288:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    428c:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         <== NOT EXECUTED
    4290:	e2488001 	sub	r8, r8, #1                                    
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    4294:	e3580000 	cmp	r8, #0                                        
    4298:	1affff87 	bne	40bc <rtems_termios_enqueue_raw_characters+0x9c>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
    429c:	e5943078 	ldr	r3, [r4, #120]	; 0x78                         
    42a0:	e0833005 	add	r3, r3, r5                                    
    42a4:	e5843078 	str	r3, [r4, #120]	; 0x78                         
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
    42a8:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
    42ac:	eb000356 	bl	500c <rtems_semaphore_release>                 
  return dropped;                                                     
}                                                                     
    42b0:	e1a00005 	mov	r0, r5                                        
    42b4:	e8bd8ffc 	pop	{r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}  
                                                                      

000031f0 <rtems_termios_ioctl>: rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
    31f0:	e5903000 	ldr	r3, [r0]                                      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
    31f4:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
    31f8:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
    31fc:	e3a01000 	mov	r1, #0                                        
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
    3200:	e5907008 	ldr	r7, [r0, #8]                                  
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
    3204:	e580100c 	str	r1, [r0, #12]                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
    3208:	e1a05000 	mov	r5, 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);
    320c:	e1a02001 	mov	r2, r1                                        
    3210:	e5940018 	ldr	r0, [r4, #24]                                 
    3214:	eb000736 	bl	4ef4 <rtems_semaphore_obtain>                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    3218:	e2506000 	subs	r6, r0, #0                                   
    321c:	1a0000d4 	bne	3574 <rtems_termios_ioctl+0x384>              
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    3220:	e5953004 	ldr	r3, [r5, #4]                                  
    3224:	e3530004 	cmp	r3, #4                                        
    3228:	0a0000a8 	beq	34d0 <rtems_termios_ioctl+0x2e0>              
    322c:	8a000005 	bhi	3248 <rtems_termios_ioctl+0x58>               
    3230:	e3530002 	cmp	r3, #2                                        
    3234:	0a000029 	beq	32e0 <rtems_termios_ioctl+0xf0>               
    3238:	8a00009d 	bhi	34b4 <rtems_termios_ioctl+0x2c4>              
    323c:	e3530001 	cmp	r3, #1                                        
    3240:	1a000010 	bne	3288 <rtems_termios_ioctl+0x98>               
    3244:	ea00001b 	b	32b8 <rtems_termios_ioctl+0xc8>                 
    3248:	e59f2330 	ldr	r2, [pc, #816]	; 3580 <rtems_termios_ioctl+0x390>
    324c:	e1530002 	cmp	r3, r2                                        
    3250:	0a0000ba 	beq	3540 <rtems_termios_ioctl+0x350>              
    3254:	8a000002 	bhi	3264 <rtems_termios_ioctl+0x74>               
    3258:	e3530005 	cmp	r3, #5                                        
    325c:	1a000009 	bne	3288 <rtems_termios_ioctl+0x98>               
    3260:	ea000096 	b	34c0 <rtems_termios_ioctl+0x2d0>                <== NOT EXECUTED
    3264:	e59f2318 	ldr	r2, [pc, #792]	; 3584 <rtems_termios_ioctl+0x394>
    3268:	e1530002 	cmp	r3, r2                                        
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    326c:	05953008 	ldreq	r3, [r5, #8]                                
    3270:	059420cc 	ldreq	r2, [r4, #204]	; 0xcc                       
    3274:	05832000 	streq	r2, [r3]                                    
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    3278:	0a0000bb 	beq	356c <rtems_termios_ioctl+0x37c>              
    327c:	e2822105 	add	r2, r2, #1073741825	; 0x40000001              
    3280:	e1530002 	cmp	r3, r2                                        
    3284:	0a000095 	beq	34e0 <rtems_termios_ioctl+0x2f0>              
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
    3288:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    328c:	e59f32f4 	ldr	r3, [pc, #756]	; 3588 <rtems_termios_ioctl+0x398>
    3290:	e0833282 	add	r3, r3, r2, lsl #5                            
    3294:	e5933018 	ldr	r3, [r3, #24]                                 
    3298:	e3530000 	cmp	r3, #0                                        
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
    329c:	03a0600a 	moveq	r6, #10                                     
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
    32a0:	0a0000b1 	beq	356c <rtems_termios_ioctl+0x37c>              
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    32a4:	e1a00004 	mov	r0, r4                                        
    32a8:	e1a01005 	mov	r1, r5                                        
    32ac:	e1a0e00f 	mov	lr, pc                                        
    32b0:	e12fff13 	bx	r3                                             
    32b4:	ea00009f 	b	3538 <rtems_termios_ioctl+0x348>                
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    32b8:	e5957008 	ldr	r7, [r5, #8]                                  
    32bc:	e284c030 	add	ip, r4, #48	; 0x30                            
    32c0:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    32c4:	e1a0e007 	mov	lr, r7                                        
    32c8:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    32cc:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    32d0:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    32d4:	e59c3000 	ldr	r3, [ip]                                      
    32d8:	e58e3000 	str	r3, [lr]                                      
    break;                                                            
    32dc:	ea0000a2 	b	356c <rtems_termios_ioctl+0x37c>                
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
    32e0:	e595e008 	ldr	lr, [r5, #8]                                  
    32e4:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    32e8:	e284c030 	add	ip, r4, #48	; 0x30                            
    32ec:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    32f0:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    32f4:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    32f8:	e59e3000 	ldr	r3, [lr]                                      
    32fc:	e58c3000 	str	r3, [ip]                                      
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
    3300:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3304:	e3130c02 	tst	r3, #512	; 0x200                              
    3308:	0a000018 	beq	3370 <rtems_termios_ioctl+0x180>              
      !(tty->termios.c_iflag & IXON)) {                               
    330c:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
    3310:	e3130b01 	tst	r3, #1024	; 0x400                             
    3314:	1a000015 	bne	3370 <rtems_termios_ioctl+0x180>              
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
    3318:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    331c:	e3c33e21 	bic	r3, r3, #528	; 0x210                          <== NOT EXECUTED
    3320:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
    3324:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    3328:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    332c:	0a00000f 	beq	3370 <rtems_termios_ioctl+0x180>              <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
    3330:	ebfffe12 	bl	2b80 <arm_interrupt_disable>                   <== NOT EXECUTED
    3334:	e1a07000 	mov	r7, r0                                        <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
    3338:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    333c:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
    3340:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
    3344:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    3348:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    334c:	0a000006 	beq	336c <rtems_termios_ioctl+0x17c>              <== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
    3350:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         <== 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)(                                         
    3354:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         <== NOT EXECUTED
    3358:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    335c:	e0811003 	add	r1, r1, r3                                    <== NOT EXECUTED
    3360:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    3364:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    3368:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    336c:	e129f007 	msr	CPSR_fc, r7                                   <== 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)) {
    3370:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3374:	e3130b01 	tst	r3, #1024	; 0x400                             
    3378:	0a000008 	beq	33a0 <rtems_termios_ioctl+0x1b0>              
    337c:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          <== NOT EXECUTED
    3380:	e3130a01 	tst	r3, #4096	; 0x1000                            <== NOT EXECUTED
    3384:	1a000005 	bne	33a0 <rtems_termios_ioctl+0x1b0>              <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
    3388:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    338c:	e3c33b01 	bic	r3, r3, #1024	; 0x400                         <== NOT EXECUTED
    3390:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
    3394:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    3398:	e3c33002 	bic	r3, r3, #2                                    <== NOT EXECUTED
    339c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
    33a0:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    33a4:	e3130c01 	tst	r3, #256	; 0x100                              
    33a8:	0a000010 	beq	33f0 <rtems_termios_ioctl+0x200>              
    33ac:	e5943038 	ldr	r3, [r4, #56]	; 0x38                          <== NOT EXECUTED
    33b0:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    33b4:	ba00000d 	blt	33f0 <rtems_termios_ioctl+0x200>              <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
    33b8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    33bc:	e3c33c01 	bic	r3, r3, #256	; 0x100                          <== NOT EXECUTED
    33c0:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
    33c4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    33c8:	e3130004 	tst	r3, #4                                        <== NOT EXECUTED
    33cc:	0a000004 	beq	33e4 <rtems_termios_ioctl+0x1f4>              <== NOT EXECUTED
    33d0:	e59430b0 	ldr	r3, [r4, #176]	; 0xb0                         <== NOT EXECUTED
    33d4:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
    33d8:	15940010 	ldrne	r0, [r4, #16]                               <== NOT EXECUTED
    33dc:	11a0e00f 	movne	lr, pc                                      <== NOT EXECUTED
    33e0:	112fff13 	bxne	r3                                           <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
    33e4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    33e8:	e3c33004 	bic	r3, r3, #4                                    <== NOT EXECUTED
    33ec:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== 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) {                               
    33f0:	e5943038 	ldr	r3, [r4, #56]	; 0x38                          
    33f4:	e3530000 	cmp	r3, #0                                        
    tty->flow_ctrl |= FL_MDRTS;                                       
    33f8:	b59430b8 	ldrlt	r3, [r4, #184]	; 0xb8                       
    33fc:	b3833c01 	orrlt	r3, r3, #256	; 0x100                        
    3400:	b58430b8 	strlt	r3, [r4, #184]	; 0xb8                       
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
    3404:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
    3408:	e3130a01 	tst	r3, #4096	; 0x1000                            
    tty->flow_ctrl |= FL_MDXOF;                                       
    340c:	159420b8 	ldrne	r2, [r4, #184]	; 0xb8                       
    3410:	13822b01 	orrne	r2, r2, #1024	; 0x400                       
    3414:	158420b8 	strne	r2, [r4, #184]	; 0xb8                       
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
    3418:	e3130b01 	tst	r3, #1024	; 0x400                             
    tty->flow_ctrl |= FL_MDXON;                                       
    341c:	159430b8 	ldrne	r3, [r4, #184]	; 0xb8                       
    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) {                              
    3420:	e594703c 	ldr	r7, [r4, #60]	; 0x3c                          
  if (tty->termios.c_iflag & IXOFF) {                                 
    tty->flow_ctrl |= FL_MDXOF;                                       
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
    tty->flow_ctrl |= FL_MDXON;                                       
    3424:	13833c02 	orrne	r3, r3, #512	; 0x200                        
    3428:	158430b8 	strne	r3, [r4, #184]	; 0xb8                       
    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) {                              
    342c:	e2177002 	ands	r7, r7, #2                                   
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
    3430:	13a03000 	movne	r3, #0                                      
    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) {                              
    3434:	1a000013 	bne	3488 <rtems_termios_ioctl+0x298>              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
    3438:	e5d48046 	ldrb	r8, [r4, #70]	; 0x46                         
                    rtems_clock_get_ticks_per_second() / 10;          
    343c:	eb000519 	bl	48a8 <rtems_clock_get_ticks_per_second>        
    3440:	e3a0100a 	mov	r1, #10                                       
    3444:	e0000098 	mul	r0, r8, r0                                    
    3448:	eb003328 	bl	100f0 <__aeabi_uidiv>                          
      if (tty->termios.c_cc[VTIME]) {                                 
    344c:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
    3450:	e3530000 	cmp	r3, #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] *                    
    3454:	e5840054 	str	r0, [r4, #84]	; 0x54                          
    3458:	e5d42047 	ldrb	r2, [r4, #71]	; 0x47                         
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
    345c:	0a000005 	beq	3478 <rtems_termios_ioctl+0x288>              
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3460:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
    3464:	e5840070 	str	r0, [r4, #112]	; 0x70                         <== NOT EXECUTED
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3468:	13a00000 	movne	r0, #0                                      <== NOT EXECUTED
      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;                   
    346c:	e584706c 	str	r7, [r4, #108]	; 0x6c                         <== NOT EXECUTED
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3470:	e5840074 	str	r0, [r4, #116]	; 0x74                         <== NOT EXECUTED
    3474:	ea000006 	b	3494 <rtems_termios_ioctl+0x2a4>                <== NOT EXECUTED
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
    3478:	e3520000 	cmp	r2, #0                                        
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
    347c:	03a03001 	moveq	r3, #1                                      
    3480:	0584306c 	streq	r3, [r4, #108]	; 0x6c                       
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
    3484:	0a000002 	beq	3494 <rtems_termios_ioctl+0x2a4>              
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
    3488:	e584306c 	str	r3, [r4, #108]	; 0x6c                         
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
    348c:	e5843070 	str	r3, [r4, #112]	; 0x70                         
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3490:	e5843074 	str	r3, [r4, #116]	; 0x74                         
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
    3494:	e59430a8 	ldr	r3, [r4, #168]	; 0xa8                         
    3498:	e3530000 	cmp	r3, #0                                        
    349c:	0a000032 	beq	356c <rtems_termios_ioctl+0x37c>              
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
    34a0:	e5940010 	ldr	r0, [r4, #16]                                 
    34a4:	e2841030 	add	r1, r4, #48	; 0x30                            
    34a8:	e1a0e00f 	mov	lr, pc                                        
    34ac:	e12fff13 	bx	r3                                             
    34b0:	ea00002d 	b	356c <rtems_termios_ioctl+0x37c>                
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    34b4:	e1a00004 	mov	r0, r4                                        
    34b8:	ebfffdb4 	bl	2b90 <drainOutput>                             
    break;                                                            
    34bc:	ea00002a 	b	356c <rtems_termios_ioctl+0x37c>                
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    34c0:	e897000c 	ldm	r7, {r2, r3}                                  <== NOT EXECUTED
    34c4:	e58420d4 	str	r2, [r4, #212]	; 0xd4                         <== NOT EXECUTED
    34c8:	e58430d8 	str	r3, [r4, #216]	; 0xd8                         <== NOT EXECUTED
    break;                                                            
    34cc:	ea000026 	b	356c <rtems_termios_ioctl+0x37c>                <== NOT EXECUTED
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
    34d0:	e897000c 	ldm	r7, {r2, r3}                                  <== NOT EXECUTED
    34d4:	e58420dc 	str	r2, [r4, #220]	; 0xdc                         <== NOT EXECUTED
    34d8:	e58430e0 	str	r3, [r4, #224]	; 0xe0                         <== NOT EXECUTED
    break;                                                            
    34dc:	ea000022 	b	356c <rtems_termios_ioctl+0x37c>                <== NOT EXECUTED
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
    34e0:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    34e4:	e59f309c 	ldr	r3, [pc, #156]	; 3588 <rtems_termios_ioctl+0x398>
    34e8:	e0833282 	add	r3, r3, r2, lsl #5                            
    34ec:	e5933004 	ldr	r3, [r3, #4]                                  
    34f0:	e3530000 	cmp	r3, #0                                        
    34f4:	0a000003 	beq	3508 <rtems_termios_ioctl+0x318>              
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    34f8:	e1a00004 	mov	r0, r4                                        
    34fc:	e1a0e00f 	mov	lr, pc                                        
    3500:	e12fff13 	bx	r3                                             
    3504:	e1a06000 	mov	r6, r0                                        
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
    3508:	e5953008 	ldr	r3, [r5, #8]                                  
    tty->t_sc = NULL; /* ensure that no more valid data */            
    350c:	e3a02000 	mov	r2, #0                                        
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
    3510:	e5933000 	ldr	r3, [r3]                                      
    tty->t_sc = NULL; /* ensure that no more valid data */            
    3514:	e58420d0 	str	r2, [r4, #208]	; 0xd0                         
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
    3518:	e59f2068 	ldr	r2, [pc, #104]	; 3588 <rtems_termios_ioctl+0x398>
     * 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);                                
    351c:	e58430cc 	str	r3, [r4, #204]	; 0xcc                         
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
    3520:	e7923283 	ldr	r3, [r2, r3, lsl #5]                          
    3524:	e3530000 	cmp	r3, #0                                        
    3528:	0a00000f 	beq	356c <rtems_termios_ioctl+0x37c>              
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
    352c:	e1a00004 	mov	r0, r4                                        
    3530:	e1a0e00f 	mov	lr, pc                                        
    3534:	e12fff13 	bx	r3                                             
    3538:	e1a06000 	mov	r6, r0                                        
    353c:	ea00000a 	b	356c <rtems_termios_ioctl+0x37c>                
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
    3540:	e5942060 	ldr	r2, [r4, #96]	; 0x60                          <== NOT EXECUTED
    3544:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          <== NOT EXECUTED
      if ( rawnc < 0 )                                                
    3548:	e0523003 	subs	r3, r2, r3                                   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
    354c:	45942064 	ldrmi	r2, [r4, #100]	; 0x64                       <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    3550:	e2840020 	add	r0, r4, #32                                   <== NOT EXECUTED
    3554:	e8900003 	ldm	r0, {r0, r1}                                  <== NOT EXECUTED
    3558:	e0401001 	sub	r1, r0, r1                                    <== NOT EXECUTED
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
      if ( rawnc < 0 )                                                
        rawnc += tty->rawInBuf.Size;                                  
    355c:	40833002 	addmi	r3, r3, r2                                  <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    3560:	e5952008 	ldr	r2, [r5, #8]                                  <== NOT EXECUTED
    3564:	e0813003 	add	r3, r1, r3                                    <== NOT EXECUTED
    3568:	e5823000 	str	r3, [r2]                                      <== NOT EXECUTED
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
    356c:	e5940018 	ldr	r0, [r4, #24]                                 
    3570:	eb0006a5 	bl	500c <rtems_semaphore_release>                 
  args->ioctl_return = sc;                                            
    3574:	e585600c 	str	r6, [r5, #12]                                 
  return sc;                                                          
}                                                                     
    3578:	e1a00006 	mov	r0, r6                                        
    357c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

00002bec <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
    2bec:	e92d4fff 	push	{r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
    2bf0:	e58d300c 	str	r3, [sp, #12]                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2bf4:	e59f3404 	ldr	r3, [pc, #1028]	; 3000 <rtems_termios_open+0x414>
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
    2bf8:	e1a0a001 	mov	sl, r1                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2bfc:	e3a01000 	mov	r1, #0                                        
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
    2c00:	e1a09000 	mov	r9, r0                                        
    2c04:	e1a08002 	mov	r8, r2                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2c08:	e5930000 	ldr	r0, [r3]                                      
    2c0c:	e1a02001 	mov	r2, r1                                        
    2c10:	eb0008b7 	bl	4ef4 <rtems_semaphore_obtain>                  
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
    2c14:	e2506000 	subs	r6, r0, #0                                   
    2c18:	1a0000ee 	bne	2fd8 <rtems_termios_open+0x3ec>               
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
    2c1c:	e59f33e0 	ldr	r3, [pc, #992]	; 3004 <rtems_termios_open+0x418>
    2c20:	e5937000 	ldr	r7, [r3]                                      
    2c24:	e1a05007 	mov	r5, r7                                        
    2c28:	ea000006 	b	2c48 <rtems_termios_open+0x5c>                  
    if ((tty->major == major) && (tty->minor == minor))               
    2c2c:	e595300c 	ldr	r3, [r5, #12]                                 
    2c30:	e1530009 	cmp	r3, r9                                        
    2c34:	1a000002 	bne	2c44 <rtems_termios_open+0x58>                
    2c38:	e5953010 	ldr	r3, [r5, #16]                                 
    2c3c:	e153000a 	cmp	r3, sl                                        
    2c40:	0a0000c3 	beq	2f54 <rtems_termios_open+0x368>               
  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) { 
    2c44:	e5955000 	ldr	r5, [r5]                                      
    2c48:	e3550000 	cmp	r5, #0                                        
    2c4c:	1afffff6 	bne	2c2c <rtems_termios_open+0x40>                
    2c50:	ea0000e3 	b	2fe4 <rtems_termios_open+0x3f8>                 
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    2c54:	e59f23ac 	ldr	r2, [pc, #940]	; 3008 <rtems_termios_open+0x41c>
    2c58:	e5923000 	ldr	r3, [r2]                                      
    2c5c:	e5853064 	str	r3, [r5, #100]	; 0x64                         
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    2c60:	e5950064 	ldr	r0, [r5, #100]	; 0x64                         
    2c64:	e58d2008 	str	r2, [sp, #8]                                  
    2c68:	ebfffd00 	bl	2070 <malloc>                                  
    if (tty->rawInBuf.theBuf == NULL) {                               
    2c6c:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    2c70:	e1a0b000 	mov	fp, r0                                        
    2c74:	e5850058 	str	r0, [r5, #88]	; 0x58                          
    if (tty->rawInBuf.theBuf == NULL) {                               
    2c78:	e59d2008 	ldr	r2, [sp, #8]                                  
    2c7c:	1a000006 	bne	2c9c <rtems_termios_open+0xb0>                
            free(tty);                                                
    2c80:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    2c84:	ebfffc2a 	bl	1d34 <free>                                    <== NOT EXECUTED
      rtems_semaphore_release (rtems_termios_ttyMutex);               
    2c88:	e59f3370 	ldr	r3, [pc, #880]	; 3000 <rtems_termios_open+0x414><== NOT EXECUTED
    2c8c:	e5930000 	ldr	r0, [r3]                                      <== NOT EXECUTED
    2c90:	eb0008dd 	bl	500c <rtems_semaphore_release>                 <== NOT EXECUTED
      return RTEMS_NO_MEMORY;                                         
    2c94:	e3a0601a 	mov	r6, #26                                       <== NOT EXECUTED
    2c98:	ea0000ce 	b	2fd8 <rtems_termios_open+0x3ec>                 <== NOT EXECUTED
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    2c9c:	e5923004 	ldr	r3, [r2, #4]                                  
    2ca0:	e5853088 	str	r3, [r5, #136]	; 0x88                         
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
    2ca4:	e5950088 	ldr	r0, [r5, #136]	; 0x88                         
    2ca8:	e58d2008 	str	r2, [sp, #8]                                  
    2cac:	ebfffcef 	bl	2070 <malloc>                                  
    if (tty->rawOutBuf.theBuf == NULL) {                              
    2cb0:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
    2cb4:	e1a03000 	mov	r3, r0                                        
    2cb8:	e585007c 	str	r0, [r5, #124]	; 0x7c                         
    if (tty->rawOutBuf.theBuf == NULL) {                              
    2cbc:	e59d2008 	ldr	r2, [sp, #8]                                  
    2cc0:	0a000008 	beq	2ce8 <rtems_termios_open+0xfc>                
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    2cc4:	e5920008 	ldr	r0, [r2, #8]                                  
    2cc8:	e58d3008 	str	r3, [sp, #8]                                  
    2ccc:	ebfffce7 	bl	2070 <malloc>                                  
    if (tty->cbuf == NULL) {                                          
    2cd0:	e3500000 	cmp	r0, #0                                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    2cd4:	e585001c 	str	r0, [r5, #28]                                 
    if (tty->cbuf == NULL) {                                          
    2cd8:	e59d3008 	ldr	r3, [sp, #8]                                  
    2cdc:	1a000004 	bne	2cf4 <rtems_termios_open+0x108>               
            free((void *)(tty->rawOutBuf.theBuf));                    
    2ce0:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
    2ce4:	ebfffc12 	bl	1d34 <free>                                    <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
    2ce8:	e1a0000b 	mov	r0, fp                                        <== NOT EXECUTED
    2cec:	ebfffc10 	bl	1d34 <free>                                    <== NOT EXECUTED
    2cf0:	eaffffe2 	b	2c80 <rtems_termios_open+0x94>                  <== NOT EXECUTED
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
    2cf4:	e3a03000 	mov	r3, #0                                        
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    2cf8:	e5853004 	str	r3, [r5, #4]                                  
    if (rtems_termios_ttyHead != NULL)                                
    2cfc:	e1570003 	cmp	r7, r3                                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
    2d00:	e58530d4 	str	r3, [r5, #212]	; 0xd4                         
    tty->tty_snd.sw_arg = NULL;                                       
    2d04:	e58530d8 	str	r3, [r5, #216]	; 0xd8                         
    tty->tty_rcv.sw_pfn = NULL;                                       
    2d08:	e58530dc 	str	r3, [r5, #220]	; 0xdc                         
    tty->tty_rcv.sw_arg = NULL;                                       
    2d0c:	e58530e0 	str	r3, [r5, #224]	; 0xe0                         
    tty->tty_rcvwakeup  = 0;                                          
    2d10:	e58530e4 	str	r3, [r5, #228]	; 0xe4                         
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    2d14:	e59f32e8 	ldr	r3, [pc, #744]	; 3004 <rtems_termios_open+0x418>
    2d18:	e5834000 	str	r4, [r3]                                      
    if (rtems_termios_ttyTail == NULL)                                
    2d1c:	e59f32e8 	ldr	r3, [pc, #744]	; 300c <rtems_termios_open+0x420>
    2d20:	e5932000 	ldr	r2, [r3]                                      
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    2d24:	15875004 	strne	r5, [r7, #4]                                
    tty->tty_rcvwakeup  = 0;                                          
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    2d28:	e5857000 	str	r7, [r5]                                      
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
    2d2c:	e59f72d4 	ldr	r7, [pc, #724]	; 3008 <rtems_termios_open+0x41c>
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
    2d30:	e3520000 	cmp	r2, #0                                        
      rtems_termios_ttyTail = tty;                                    
    2d34:	05834000 	streq	r4, [r3]                                    
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    2d38:	e59f02d0 	ldr	r0, [pc, #720]	; 3010 <rtems_termios_open+0x424>
      rtems_build_name ('T', 'R', 'i', c),                            
    2d3c:	e5d7300c 	ldrb	r3, [r7, #12]                                
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    2d40:	e2842014 	add	r2, r4, #20                                   
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
    2d44:	e584a010 	str	sl, [r4, #16]                                 
    tty->major = major;                                               
    2d48:	e584900c 	str	r9, [r4, #12]                                 
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    2d4c:	e1830000 	orr	r0, r3, r0                                    
    2d50:	e58d2000 	str	r2, [sp]                                      
    2d54:	e3a03000 	mov	r3, #0                                        
    2d58:	e3a01001 	mov	r1, #1                                        
    2d5c:	e3a02054 	mov	r2, #84	; 0x54                                
    2d60:	eb0007d1 	bl	4cac <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)                                       
    2d64:	e2503000 	subs	r3, r0, #0                                   
    2d68:	1a000096 	bne	2fc8 <rtems_termios_open+0x3dc>               
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
    2d6c:	e5d7200c 	ldrb	r2, [r7, #12]                                
      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 (                                     
    2d70:	e59f029c 	ldr	r0, [pc, #668]	; 3014 <rtems_termios_open+0x428>
    2d74:	e2841018 	add	r1, r4, #24                                   
    2d78:	e58d1000 	str	r1, [sp]                                      
    2d7c:	e1820000 	orr	r0, r2, r0                                    
    2d80:	e3a01001 	mov	r1, #1                                        
    2d84:	e3a02054 	mov	r2, #84	; 0x54                                
    2d88:	eb0007c7 	bl	4cac <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)                                       
    2d8c:	e2501000 	subs	r1, r0, #0                                   
    2d90:	1a00008c 	bne	2fc8 <rtems_termios_open+0x3dc>               
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
    2d94:	e5d7300c 	ldrb	r3, [r7, #12]                                
      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 (                                     
    2d98:	e59f0278 	ldr	r0, [pc, #632]	; 3018 <rtems_termios_open+0x42c>
    2d9c:	e284208c 	add	r2, r4, #140	; 0x8c                           
    2da0:	e58d2000 	str	r2, [sp]                                      
    2da4:	e1830000 	orr	r0, r3, r0                                    
    2da8:	e3a02020 	mov	r2, #32                                       
    2dac:	e1a03001 	mov	r3, r1                                        
    2db0:	eb0007bd 	bl	4cac <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)                                       
    2db4:	e250b000 	subs	fp, r0, #0                                   
    2db8:	1a000082 	bne	2fc8 <rtems_termios_open+0x3dc>               
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
    2dbc:	e59de00c 	ldr	lr, [sp, #12]                                 
    2dc0:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    2dc4:	e284c098 	add	ip, r4, #152	; 0x98                           
    2dc8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    2dcc:	e89e000f 	ldm	lr, {r0, r1, r2, r3}                          
    2dd0:	e88c000f 	stm	ip, {r0, r1, r2, r3}                          
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    2dd4:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    2dd8:	e3530002 	cmp	r3, #2                                        
      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;                                   
    2ddc:	e584b094 	str	fp, [r4, #148]	; 0x94                         
    tty->device = *callbacks;                                         
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    2de0:	1a000017 	bne	2e44 <rtems_termios_open+0x258>               
      sc = rtems_task_create (                                        
                                   rtems_build_name ('T', 'x', 'T', c),
    2de4:	e5d7300c 	ldrb	r3, [r7, #12]                                
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
    2de8:	e59f022c 	ldr	r0, [pc, #556]	; 301c <rtems_termios_open+0x430>
    2dec:	e28420c8 	add	r2, r4, #200	; 0xc8                           
    2df0:	e58d2004 	str	r2, [sp, #4]                                  
    2df4:	e1830000 	orr	r0, r3, r0                                    
    2df8:	e3a02b01 	mov	r2, #1024	; 0x400                             
    2dfc:	e3a0100a 	mov	r1, #10                                       
    2e00:	e3a03c05 	mov	r3, #1280	; 0x500                             
    2e04:	e58db000 	str	fp, [sp]                                      
    2e08:	eb0008a6 	bl	50a8 <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)                                     
    2e0c:	e2502000 	subs	r2, r0, #0                                   
    2e10:	1a00006c 	bne	2fc8 <rtems_termios_open+0x3dc>               
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
    2e14:	e5d7300c 	ldrb	r3, [r7, #12]                                
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
    2e18:	e59f0200 	ldr	r0, [pc, #512]	; 3020 <rtems_termios_open+0x434>
    2e1c:	e58d2000 	str	r2, [sp]                                      
    2e20:	e28420c4 	add	r2, r4, #196	; 0xc4                           
    2e24:	e58d2004 	str	r2, [sp, #4]                                  
    2e28:	e1830000 	orr	r0, r3, r0                                    
    2e2c:	e3a01009 	mov	r1, #9                                        
    2e30:	e3a02b01 	mov	r2, #1024	; 0x400                             
    2e34:	e3a03c05 	mov	r3, #1280	; 0x500                             
    2e38:	eb00089a 	bl	50a8 <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)                                     
    2e3c:	e3500000 	cmp	r0, #0                                        
    2e40:	1a000060 	bne	2fc8 <rtems_termios_open+0x3dc>               
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
    2e44:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    2e48:	e3530000 	cmp	r3, #0                                        
    2e4c:	0a000002 	beq	2e5c <rtems_termios_open+0x270>               
    2e50:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    2e54:	e3530002 	cmp	r3, #2                                        
    2e58:	1a00000b 	bne	2e8c <rtems_termios_open+0x2a0>               
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
    2e5c:	e59f31a4 	ldr	r3, [pc, #420]	; 3008 <rtems_termios_open+0x41c>
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
    2e60:	e59f01bc 	ldr	r0, [pc, #444]	; 3024 <rtems_termios_open+0x438>
        rtems_build_name ('T', 'R', 'r', c),                          
    2e64:	e5d3300c 	ldrb	r3, [r3, #12]                                
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
    2e68:	e2842068 	add	r2, r4, #104	; 0x68                           
    2e6c:	e3a01000 	mov	r1, #0                                        
    2e70:	e58d2000 	str	r2, [sp]                                      
    2e74:	e1830000 	orr	r0, r3, r0                                    
    2e78:	e3a02024 	mov	r2, #36	; 0x24                                
    2e7c:	e1a03001 	mov	r3, r1                                        
    2e80:	eb000789 	bl	4cac <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)                                     
    2e84:	e3500000 	cmp	r0, #0                                        
    2e88:	1a00004e 	bne	2fc8 <rtems_termios_open+0x3dc>               
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    2e8c:	e59f3194 	ldr	r3, [pc, #404]	; 3028 <rtems_termios_open+0x43c>
    2e90:	e5843030 	str	r3, [r4, #48]	; 0x30                          
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    2e94:	e59f3190 	ldr	r3, [pc, #400]	; 302c <rtems_termios_open+0x440>
    2e98:	e5843034 	str	r3, [r4, #52]	; 0x34                          
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    2e9c:	e59f318c 	ldr	r3, [pc, #396]	; 3030 <rtems_termios_open+0x444>
    2ea0:	e5843038 	str	r3, [r4, #56]	; 0x38                          
    tty->termios.c_lflag =                                            
    2ea4:	e59f3188 	ldr	r3, [pc, #392]	; 3034 <rtems_termios_open+0x448>
    2ea8:	e584303c 	str	r3, [r4, #60]	; 0x3c                          
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    2eac:	e3a03003 	mov	r3, #3                                        
    2eb0:	e5c43041 	strb	r3, [r4, #65]	; 0x41                         
    tty->termios.c_cc[VQUIT] = '\034';                                
    2eb4:	e2833019 	add	r3, r3, #25                                   
    2eb8:	e5c43042 	strb	r3, [r4, #66]	; 0x42                         
    tty->termios.c_cc[VERASE] = '\177';                               
    2ebc:	e2833063 	add	r3, r3, #99	; 0x63                            
    2ec0:	e5c43043 	strb	r3, [r4, #67]	; 0x43                         
    tty->termios.c_cc[VKILL] = '\025';                                
    2ec4:	e3a03015 	mov	r3, #21                                       
    2ec8:	e5c43044 	strb	r3, [r4, #68]	; 0x44                         
    tty->termios.c_cc[VEOF] = '\004';                                 
    2ecc:	e3a03004 	mov	r3, #4                                        
    2ed0:	e5c43045 	strb	r3, [r4, #69]	; 0x45                         
    tty->termios.c_cc[VEOL] = '\000';                                 
    2ed4:	e3a03000 	mov	r3, #0                                        
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    tty->termios.c_cc[VLNEXT] = '\026';                               
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
    2ed8:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    2edc:	e5c4304c 	strb	r3, [r4, #76]	; 0x4c                         
    tty->termios.c_cc[VEOL2] = '\000';                                
    2ee0:	e5c43051 	strb	r3, [r4, #81]	; 0x51                         
    tty->termios.c_cc[VSTART] = '\021';                               
    2ee4:	e3a02011 	mov	r2, #17                                       
    /* 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;                        
    2ee8:	e5943064 	ldr	r3, [r4, #100]	; 0x64                         
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    2eec:	e5c42049 	strb	r2, [r4, #73]	; 0x49                         
    tty->termios.c_cc[VSTOP] = '\023';                                
    2ef0:	e2822002 	add	r2, r2, #2                                    
    2ef4:	e5c4204a 	strb	r2, [r4, #74]	; 0x4a                         
    /* 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;                        
    2ef8:	e1a030a3 	lsr	r3, r3, #1                                    
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    2efc:	e2822007 	add	r2, r2, #7                                    
    2f00:	e5c4204b 	strb	r2, [r4, #75]	; 0x4b                         
    /* 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;                        
    2f04:	e58430bc 	str	r3, [r4, #188]	; 0xbc                         
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    2f08:	e3a02012 	mov	r2, #18                                       
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    2f0c:	e5943064 	ldr	r3, [r4, #100]	; 0x64                         
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    2f10:	e5c4204d 	strb	r2, [r4, #77]	; 0x4d                         
    tty->termios.c_cc[VDISCARD] = '\017';                             
    2f14:	e3a0200f 	mov	r2, #15                                       
    2f18:	e5c4204e 	strb	r2, [r4, #78]	; 0x4e                         
    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;                        
    2f1c:	e0833083 	add	r3, r3, r3, lsl #1                            
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    2f20:	e2822008 	add	r2, r2, #8                                    
    2f24:	e5c4204f 	strb	r2, [r4, #79]	; 0x4f                         
    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;                        
    2f28:	e1a03123 	lsr	r3, r3, #2                                    
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    tty->termios.c_cc[VLNEXT] = '\026';                               
    2f2c:	e3a02016 	mov	r2, #22                                       
    2f30:	e5c42050 	strb	r2, [r4, #80]	; 0x50                         
    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;                        
    2f34:	e58430c0 	str	r3, [r4, #192]	; 0xc0                         
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    2f38:	e59f30c8 	ldr	r3, [pc, #200]	; 3008 <rtems_termios_open+0x41c>
    2f3c:	e5d3200c 	ldrb	r2, [r3, #12]                                
    2f40:	e352007a 	cmp	r2, #122	; 0x7a                               
    2f44:	e2821001 	add	r1, r2, #1                                    
      c = 'a';                                                        
    2f48:	03a02061 	moveq	r2, #97	; 0x61                              
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    2f4c:	e5c3100c 	strb	r1, [r3, #12]                                
      c = 'a';                                                        
    2f50:	05c3200c 	strbeq	r2, [r3, #12]                              
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
    2f54:	e5983000 	ldr	r3, [r8]                                      
    2f58:	e5835034 	str	r5, [r3, #52]	; 0x34                          
  if (!tty->refcount++) {                                             
    2f5c:	e5953008 	ldr	r3, [r5, #8]                                  
    2f60:	e2832001 	add	r2, r3, #1                                    
    2f64:	e3530000 	cmp	r3, #0                                        
    2f68:	e5852008 	str	r2, [r5, #8]                                  
    2f6c:	1a000016 	bne	2fcc <rtems_termios_open+0x3e0>               
    if (tty->device.firstOpen)                                        
    2f70:	e5953098 	ldr	r3, [r5, #152]	; 0x98                         
    2f74:	e3530000 	cmp	r3, #0                                        
      (*tty->device.firstOpen)(major, minor, arg);                    
    2f78:	11a00009 	movne	r0, r9                                      
    2f7c:	11a0100a 	movne	r1, sl                                      
    2f80:	11a02008 	movne	r2, r8                                      
    2f84:	11a0e00f 	movne	lr, pc                                      
    2f88:	112fff13 	bxne	r3                                           
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    2f8c:	e59530b4 	ldr	r3, [r5, #180]	; 0xb4                         
    2f90:	e3530002 	cmp	r3, #2                                        
    2f94:	1a00000c 	bne	2fcc <rtems_termios_open+0x3e0>               
      sc = rtems_task_start(                                          
    2f98:	e59500c4 	ldr	r0, [r5, #196]	; 0xc4                         
    2f9c:	e59f1094 	ldr	r1, [pc, #148]	; 3038 <rtems_termios_open+0x44c>
    2fa0:	e1a02005 	mov	r2, r5                                        
    2fa4:	eb0008e7 	bl	5348 <rtems_task_start>                        
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
    2fa8:	e3500000 	cmp	r0, #0                                        
    2fac:	1a000005 	bne	2fc8 <rtems_termios_open+0x3dc>               
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
    2fb0:	e59500c8 	ldr	r0, [r5, #200]	; 0xc8                         
    2fb4:	e59f1080 	ldr	r1, [pc, #128]	; 303c <rtems_termios_open+0x450>
    2fb8:	e1a02005 	mov	r2, r5                                        
    2fbc:	eb0008e1 	bl	5348 <rtems_task_start>                        
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
    2fc0:	e3500000 	cmp	r0, #0                                        
    2fc4:	0a000000 	beq	2fcc <rtems_termios_open+0x3e0>               
        rtems_fatal_error_occurred (sc);                              
    2fc8:	eb000960 	bl	5550 <rtems_fatal_error_occurred>              
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
    2fcc:	e59f302c 	ldr	r3, [pc, #44]	; 3000 <rtems_termios_open+0x414>
    2fd0:	e5930000 	ldr	r0, [r3]                                      
    2fd4:	eb00080c 	bl	500c <rtems_semaphore_release>                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    2fd8:	e1a00006 	mov	r0, r6                                        
    2fdc:	e28dd010 	add	sp, sp, #16                                   
    2fe0:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
    2fe4:	e3a00001 	mov	r0, #1                                        
    2fe8:	e3a010e8 	mov	r1, #232	; 0xe8                               
    2fec:	ebfffad5 	bl	1b48 <calloc>                                  
    if (tty == NULL) {                                                
    2ff0:	e2504000 	subs	r4, r0, #0                                   
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
    2ff4:	e1a05000 	mov	r5, r0                                        
    if (tty == NULL) {                                                
    2ff8:	1affff15 	bne	2c54 <rtems_termios_open+0x68>                
    2ffc:	eaffff21 	b	2c88 <rtems_termios_open+0x9c>                  <== NOT EXECUTED
                                                                      

00003cd4 <rtems_termios_read>: rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
    3cd4:	e5903000 	ldr	r3, [r0]                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
    3cd8:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
    3cdc:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    3ce0:	e3a01000 	mov	r1, #0                                        
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  uint32_t   count = args->count;                                     
    3ce4:	e5908010 	ldr	r8, [r0, #16]                                 
  char      *buffer = args->buffer;                                   
    3ce8:	e590b00c 	ldr	fp, [r0, #12]                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
    3cec:	e1a05000 	mov	r5, 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);
    3cf0:	e1a02001 	mov	r2, r1                                        
    3cf4:	e5940014 	ldr	r0, [r4, #20]                                 
    3cf8:	eb00047d 	bl	4ef4 <rtems_semaphore_obtain>                  
  if (sc != RTEMS_SUCCESSFUL)                                         
    3cfc:	e2507000 	subs	r7, r0, #0                                   
    3d00:	1a0000be 	bne	4000 <rtems_termios_read+0x32c>               
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
    3d04:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    3d08:	e59f32f8 	ldr	r3, [pc, #760]	; 4008 <rtems_termios_read+0x334>
    3d0c:	e0833282 	add	r3, r3, r2, lsl #5                            
    3d10:	e5933008 	ldr	r3, [r3, #8]                                  
    3d14:	e3530000 	cmp	r3, #0                                        
    3d18:	0a000005 	beq	3d34 <rtems_termios_read+0x60>                
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
    3d1c:	e1a00004 	mov	r0, r4                                        
    3d20:	e1a01005 	mov	r1, r5                                        
    3d24:	e1a0e00f 	mov	lr, pc                                        
    3d28:	e12fff13 	bx	r3                                             
    3d2c:	e1a07000 	mov	r7, r0                                        
    3d30:	ea0000ae 	b	3ff0 <rtems_termios_read+0x31c>                 
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    3d34:	e5942024 	ldr	r2, [r4, #36]	; 0x24                          
    3d38:	e5943020 	ldr	r3, [r4, #32]                                 
    3d3c:	e1520003 	cmp	r2, r3                                        
    3d40:	1a0000a1 	bne	3fcc <rtems_termios_read+0x2f8>               
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
    3d44:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    3d48:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
    if (tty->device.pollRead != NULL &&                               
    3d4c:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    3d50:	e3530000 	cmp	r3, #0                                        
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    3d54:	e5847020 	str	r7, [r4, #32]                                 
    3d58:	e5847024 	str	r7, [r4, #36]	; 0x24                          
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
    3d5c:	0a00003b 	beq	3e50 <rtems_termios_read+0x17c>               
    3d60:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    3d64:	e3530000 	cmp	r3, #0                                        
    3d68:	1a000038 	bne	3e50 <rtems_termios_read+0x17c>               
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    3d6c:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
    3d70:	e3130002 	tst	r3, #2                                        
    3d74:	0a00000d 	beq	3db0 <rtems_termios_read+0xdc>                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
    3d78:	e5940010 	ldr	r0, [r4, #16]                                 
    3d7c:	e1a0e00f 	mov	lr, pc                                        
    3d80:	e594f0a0 	ldr	pc, [r4, #160]	; 0xa0                         
      if (n < 0) {                                                    
    3d84:	e3500000 	cmp	r0, #0                                        
    3d88:	aa000002 	bge	3d98 <rtems_termios_read+0xc4>                
        rtems_task_wake_after (1);                                    
    3d8c:	e3a00001 	mov	r0, #1                                        
    3d90:	eb000584 	bl	53a8 <rtems_task_wake_after>                   
    3d94:	eafffff7 	b	3d78 <rtems_termios_read+0xa4>                  
      } else {                                                        
        if  (siproc (n, tty))                                         
    3d98:	e20000ff 	and	r0, r0, #255	; 0xff                           
    3d9c:	e1a01004 	mov	r1, r4                                        
    3da0:	ebffff86 	bl	3bc0 <siproc>                                  
    3da4:	e3500000 	cmp	r0, #0                                        
    3da8:	0afffff2 	beq	3d78 <rtems_termios_read+0xa4>                
    3dac:	ea000086 	b	3fcc <rtems_termios_read+0x2f8>                 
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    3db0:	eb0002c4 	bl	48c8 <rtems_clock_get_ticks_since_boot>        <== NOT EXECUTED
    3db4:	e1a06000 	mov	r6, r0                                        <== NOT EXECUTED
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
    3db8:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    3dbc:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    3dc0:	e594f0a0 	ldr	pc, [r4, #160]	; 0xa0                         <== NOT EXECUTED
      if (n < 0) {                                                    
    3dc4:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    3dc8:	aa000013 	bge	3e1c <rtems_termios_read+0x148>               <== NOT EXECUTED
        if (tty->termios.c_cc[VMIN]) {                                
    3dcc:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         <== NOT EXECUTED
    3dd0:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3dd4:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         <== NOT EXECUTED
    3dd8:	0a000005 	beq	3df4 <rtems_termios_read+0x120>               <== NOT EXECUTED
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
    3ddc:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3de0:	0a00000a 	beq	3e10 <rtems_termios_read+0x13c>               <== NOT EXECUTED
    3de4:	e5943020 	ldr	r3, [r4, #32]                                 <== NOT EXECUTED
    3de8:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3dec:	0a000007 	beq	3e10 <rtems_termios_read+0x13c>               <== NOT EXECUTED
    3df0:	ea000001 	b	3dfc <rtems_termios_read+0x128>                 <== NOT EXECUTED
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
    3df4:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3df8:	0a000073 	beq	3fcc <rtems_termios_read+0x2f8>               <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
    3dfc:	eb0002b1 	bl	48c8 <rtems_clock_get_ticks_since_boot>        <== NOT EXECUTED
          if ((now - then) > tty->vtimeTicks) {                       
    3e00:	e5943054 	ldr	r3, [r4, #84]	; 0x54                          <== NOT EXECUTED
    3e04:	e0660000 	rsb	r0, r6, r0                                    <== NOT EXECUTED
    3e08:	e1500003 	cmp	r0, r3                                        <== NOT EXECUTED
    3e0c:	8a00006e 	bhi	3fcc <rtems_termios_read+0x2f8>               <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
    3e10:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    3e14:	eb000563 	bl	53a8 <rtems_task_wake_after>                   <== NOT EXECUTED
    3e18:	eaffffe6 	b	3db8 <rtems_termios_read+0xe4>                  <== NOT EXECUTED
      } else {                                                        
        siproc (n, tty);                                              
    3e1c:	e20000ff 	and	r0, r0, #255	; 0xff                           <== NOT EXECUTED
    3e20:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    3e24:	ebffff65 	bl	3bc0 <siproc>                                  <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
    3e28:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         <== NOT EXECUTED
    3e2c:	e5942020 	ldr	r2, [r4, #32]                                 <== NOT EXECUTED
    3e30:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    3e34:	aa000064 	bge	3fcc <rtems_termios_read+0x2f8>               <== NOT EXECUTED
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
    3e38:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3e3c:	0affffdd 	beq	3db8 <rtems_termios_read+0xe4>                <== NOT EXECUTED
    3e40:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         <== NOT EXECUTED
    3e44:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3e48:	0affffda 	beq	3db8 <rtems_termios_read+0xe4>                <== NOT EXECUTED
    3e4c:	eaffffd7 	b	3db0 <rtems_termios_read+0xdc>                  <== NOT EXECUTED
        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)(                                       
    3e50:	e2842049 	add	r2, r4, #73	; 0x49                            
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
    3e54:	e594a074 	ldr	sl, [r4, #116]	; 0x74                         
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
    3e58:	e3a06001 	mov	r6, #1                                        
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
    3e5c:	e59f91a8 	ldr	r9, [pc, #424]	; 400c <rtems_termios_read+0x338>
        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)(                                       
    3e60:	e58d2000 	str	r2, [sp]                                      
    3e64:	ea000040 	b	3f6c <rtems_termios_read+0x298>                 
    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;        
    3e68:	e594005c 	ldr	r0, [r4, #92]	; 0x5c                          
    3e6c:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    3e70:	e2800001 	add	r0, r0, #1                                    
    3e74:	eb003135 	bl	10350 <__umodsi3>                              
      c = tty->rawInBuf.theBuf[newHead];                              
    3e78:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
    3e7c:	e7d3a000 	ldrb	sl, [r3, r0]                                 
      tty->rawInBuf.Head = newHead;                                   
    3e80:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
    3e84:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
    3e88:	e5942064 	ldr	r2, [r4, #100]	; 0x64                         
    3e8c:	e0823003 	add	r3, r2, r3                                    
          % tty->rawInBuf.Size)                                       
    3e90:	e0600003 	rsb	r0, r0, r3                                    
    3e94:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    3e98:	eb00312c 	bl	10350 <__umodsi3>                              
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
    3e9c:	e59430bc 	ldr	r3, [r4, #188]	; 0xbc                         
    3ea0:	e1500003 	cmp	r0, r3                                        
    3ea4:	2a00001f 	bcs	3f28 <rtems_termios_read+0x254>               
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
    3ea8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3eac:	e3c33001 	bic	r3, r3, #1                                    
    3eb0:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
    3eb4:	e59f3154 	ldr	r3, [pc, #340]	; 4010 <rtems_termios_read+0x33c>
    3eb8:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         
    3ebc:	e0023003 	and	r3, r2, r3                                    
    3ec0:	e59f2148 	ldr	r2, [pc, #328]	; 4010 <rtems_termios_read+0x33c>
    3ec4:	e1530002 	cmp	r3, r2                                        
    3ec8:	1a00000b 	bne	3efc <rtems_termios_read+0x228>               
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
    3ecc:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    3ed0:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    3ed4:	0a000002 	beq	3ee4 <rtems_termios_read+0x210>               <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
    3ed8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    3edc:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    3ee0:	0a000005 	beq	3efc <rtems_termios_read+0x228>               <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
    3ee4:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    3ee8:	e59d1000 	ldr	r1, [sp]                                      <== NOT EXECUTED
    3eec:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    3ef0:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    3ef4:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    3ef8:	ea00000a 	b	3f28 <rtems_termios_read+0x254>                 <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
    3efc:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3f00:	e3130c01 	tst	r3, #256	; 0x100                              
    3f04:	0a000007 	beq	3f28 <rtems_termios_read+0x254>               
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
    3f08:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    3f0c:	e3c33004 	bic	r3, r3, #4                                    <== NOT EXECUTED
    3f10:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
    3f14:	e59430b0 	ldr	r3, [r4, #176]	; 0xb0                         <== NOT EXECUTED
    3f18:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
    3f1c:	15940010 	ldrne	r0, [r4, #16]                               <== NOT EXECUTED
    3f20:	11a0e00f 	movne	lr, pc                                      <== NOT EXECUTED
    3f24:	112fff13 	bxne	r3                                           <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
    3f28:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
    3f2c:	e3130002 	tst	r3, #2                                        
    3f30:	0a000005 	beq	3f4c <rtems_termios_read+0x278>               
        if (siproc (c, tty))                                          
    3f34:	e1a0000a 	mov	r0, sl                                        
    3f38:	e1a01004 	mov	r1, r4                                        
    3f3c:	ebffff1f 	bl	3bc0 <siproc>                                  
          wait = 0;                                                   
    3f40:	e3500000 	cmp	r0, #0                                        
    3f44:	13a06000 	movne	r6, #0                                      
    3f48:	ea000006 	b	3f68 <rtems_termios_read+0x294>                 
      } else {                                                        
        siproc (c, tty);                                              
    3f4c:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
    3f50:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    3f54:	ebffff19 	bl	3bc0 <siproc>                                  <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
    3f58:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         <== NOT EXECUTED
    3f5c:	e5942020 	ldr	r2, [r4, #32]                                 <== NOT EXECUTED
          wait = 0;                                                   
    3f60:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    3f64:	a3a06000 	movge	r6, #0                                      <== NOT EXECUTED
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
    3f68:	e594a070 	ldr	sl, [r4, #112]	; 0x70                         
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    3f6c:	e594205c 	ldr	r2, [r4, #92]	; 0x5c                          
    3f70:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
    3f74:	e1520003 	cmp	r2, r3                                        
    3f78:	0a000004 	beq	3f90 <rtems_termios_read+0x2bc>               
                       (tty->ccount < (CBUFSIZE-1))) {                
    3f7c:	e5993008 	ldr	r3, [r9, #8]                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    3f80:	e5942020 	ldr	r2, [r4, #32]                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
    3f84:	e2433001 	sub	r3, r3, #1                                    
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    3f88:	e1520003 	cmp	r2, r3                                        
    3f8c:	baffffb5 	blt	3e68 <rtems_termios_read+0x194>               
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
    3f90:	e3560000 	cmp	r6, #0                                        
    3f94:	0a00000c 	beq	3fcc <rtems_termios_read+0x2f8>               
      sc = rtems_semaphore_obtain(                                    
    3f98:	e2840068 	add	r0, r4, #104	; 0x68                           
    3f9c:	e8900003 	ldm	r0, {r0, r1}                                  
    3fa0:	e1a0200a 	mov	r2, sl                                        
    3fa4:	eb0003d2 	bl	4ef4 <rtems_semaphore_obtain>                  
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
    3fa8:	e3500000 	cmp	r0, #0                                        
    3fac:	0affffee 	beq	3f6c <rtems_termios_read+0x298>               
    3fb0:	ea000005 	b	3fcc <rtems_termios_read+0x2f8>                 <== NOT EXECUTED
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    3fb4:	e594201c 	ldr	r2, [r4, #28]                                 
    3fb8:	e7d22003 	ldrb	r2, [r2, r3]                                 
    3fbc:	e2833001 	add	r3, r3, #1                                    
    3fc0:	e4cb2001 	strb	r2, [fp], #1                                 
    3fc4:	e5843024 	str	r3, [r4, #36]	; 0x24                          
    count--;                                                          
    3fc8:	e2488001 	sub	r8, r8, #1                                    
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    3fcc:	e3580000 	cmp	r8, #0                                        
    3fd0:	0a000003 	beq	3fe4 <rtems_termios_read+0x310>               
    3fd4:	e2842020 	add	r2, r4, #32                                   
    3fd8:	e892000c 	ldm	r2, {r2, r3}                                  
    3fdc:	e1530002 	cmp	r3, r2                                        
    3fe0:	bafffff3 	blt	3fb4 <rtems_termios_read+0x2e0>               
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
    3fe4:	e5953010 	ldr	r3, [r5, #16]                                 
    3fe8:	e0688003 	rsb	r8, r8, r3                                    
    3fec:	e5858018 	str	r8, [r5, #24]                                 
  tty->tty_rcvwakeup = 0;                                             
    3ff0:	e3a03000 	mov	r3, #0                                        
    3ff4:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
  rtems_semaphore_release (tty->isem);                                
    3ff8:	e5940014 	ldr	r0, [r4, #20]                                 
    3ffc:	eb000402 	bl	500c <rtems_semaphore_release>                 
  return sc;                                                          
}                                                                     
    4000:	e1a00007 	mov	r0, r7                                        
    4004:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

00004324 <rtems_termios_refill_transmitter>: int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
    4324:	e59020b8 	ldr	r2, [r0, #184]	; 0xb8                         
    4328:	e59f31b8 	ldr	r3, [pc, #440]	; 44e8 <rtems_termios_refill_transmitter+0x1c4>
    432c:	e0023003 	and	r3, r2, r3                                    
    4330:	e59f21b4 	ldr	r2, [pc, #436]	; 44ec <rtems_termios_refill_transmitter+0x1c8>
    4334:	e1530002 	cmp	r3, r2                                        
 * 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)      
{                                                                     
    4338:	e92d4070 	push	{r4, r5, r6, lr}                             
    433c:	e1a04000 	mov	r4, r0                                        
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
    4340:	1a00000c 	bne	4378 <rtems_termios_refill_transmitter+0x54>  
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
    4344:	e284104a 	add	r1, r4, #74	; 0x4a                            <== NOT EXECUTED
    4348:	e2422b01 	sub	r2, r2, #1024	; 0x400                         <== NOT EXECUTED
    434c:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
    4350:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4354:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    4358:	ebfffa08 	bl	2b80 <arm_interrupt_disable>                   <== NOT EXECUTED
    tty->t_dqlen--;                                                   
    435c:	e5943090 	ldr	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    4360:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
    4364:	e5843090 	str	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    4368:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    436c:	e3833002 	orr	r3, r3, #2                                    <== NOT EXECUTED
    4370:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
    4374:	ea00000f 	b	43b8 <rtems_termios_refill_transmitter+0x94>    <== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
    4378:	e59030b8 	ldr	r3, [r0, #184]	; 0xb8                         
    437c:	e2033003 	and	r3, r3, #3                                    
    4380:	e3530002 	cmp	r3, #2                                        
    4384:	1a00000e 	bne	43c4 <rtems_termios_refill_transmitter+0xa0>  
     * 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);
    4388:	e2841049 	add	r1, r4, #73	; 0x49                            <== NOT EXECUTED
    438c:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4390:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
    4394:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4398:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    439c:	ebfff9f7 	bl	2b80 <arm_interrupt_disable>                   <== NOT EXECUTED
    tty->t_dqlen--;                                                   
    43a0:	e5943090 	ldr	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    43a4:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
    43a8:	e5843090 	str	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    43ac:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    43b0:	e3c33002 	bic	r3, r3, #2                                    <== NOT EXECUTED
    43b4:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    43b8:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
    43bc:	e3a05001 	mov	r5, #1                                        <== NOT EXECUTED
    43c0:	ea000046 	b	44e0 <rtems_termios_refill_transmitter+0x1bc>   <== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
    43c4:	e5902080 	ldr	r2, [r0, #128]	; 0x80                         
    43c8:	e5903084 	ldr	r3, [r0, #132]	; 0x84                         
    43cc:	e1520003 	cmp	r2, r3                                        
    43d0:	1a000005 	bne	43ec <rtems_termios_refill_transmitter+0xc8>  
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
    43d4:	e5903094 	ldr	r3, [r0, #148]	; 0x94                         
    43d8:	e3530002 	cmp	r3, #2                                        
    43dc:	1a00003e 	bne	44dc <rtems_termios_refill_transmitter+0x1b8> 
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
    43e0:	e590008c 	ldr	r0, [r0, #140]	; 0x8c                         <== NOT EXECUTED
    43e4:	eb000308 	bl	500c <rtems_semaphore_release>                 <== NOT EXECUTED
    43e8:	ea00003b 	b	44dc <rtems_termios_refill_transmitter+0x1b8>   <== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    43ec:	ebfff9e3 	bl	2b80 <arm_interrupt_disable>                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    43f0:	e3a03000 	mov	r3, #0                                        
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    43f4:	e5942090 	ldr	r2, [r4, #144]	; 0x90                         
    tty->t_dqlen = 0;                                                 
    43f8:	e5843090 	str	r3, [r4, #144]	; 0x90                         
    43fc:	e129f000 	msr	CPSR_fc, r0                                   
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    4400:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         
    4404:	e5941088 	ldr	r1, [r4, #136]	; 0x88                         
    4408:	e0820003 	add	r0, r2, r3                                    
    440c:	eb002fcf 	bl	10350 <__umodsi3>                              
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
    4410:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         
    4414:	e3530002 	cmp	r3, #2                                        
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    4418:	e1a06000 	mov	r6, r0                                        
    tty->rawOutBuf.Tail = newTail;                                    
    441c:	e5840084 	str	r0, [r4, #132]	; 0x84                         
    if (tty->rawOutBufState == rob_wait) {                            
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    4420:	0594008c 	ldreq	r0, [r4, #140]	; 0x8c                       
    4424:	0b0002f8 	bleq	500c <rtems_semaphore_release>               
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
    4428:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    442c:	e1560003 	cmp	r6, r3                                        
    4430:	1a00000a 	bne	4460 <rtems_termios_refill_transmitter+0x13c> 
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    4434:	e59430d4 	ldr	r3, [r4, #212]	; 0xd4                         
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
    4438:	e3a05000 	mov	r5, #0                                        
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    443c:	e1530005 	cmp	r3, r5                                        
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
    4440:	e5845094 	str	r5, [r4, #148]	; 0x94                         
      nToSend = 0;                                                    
    4444:	01a05003 	moveq	r5, r3                                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    4448:	0a000021 	beq	44d4 <rtems_termios_refill_transmitter+0x1b0> 
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
    444c:	e2840030 	add	r0, r4, #48	; 0x30                            <== NOT EXECUTED
    4450:	e59410d8 	ldr	r1, [r4, #216]	; 0xd8                         <== NOT EXECUTED
    4454:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4458:	e12fff13 	bx	r3                                             <== NOT EXECUTED
    445c:	ea00001c 	b	44d4 <rtems_termios_refill_transmitter+0x1b0>   <== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
    4460:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    4464:	e2033e21 	and	r3, r3, #528	; 0x210                          
    4468:	e3530e21 	cmp	r3, #528	; 0x210                              
    446c:	1a000008 	bne	4494 <rtems_termios_refill_transmitter+0x170> 
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
    4470:	ebfff9c2 	bl	2b80 <arm_interrupt_disable>                   <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
    4474:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4478:	e3833020 	orr	r3, r3, #32                                   <== NOT EXECUTED
    447c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
    4480:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    4484:	e5843094 	str	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    4488:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
    448c:	e3a05000 	mov	r5, #0                                        <== NOT EXECUTED
    4490:	ea00000f 	b	44d4 <rtems_termios_refill_transmitter+0x1b0>   <== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
    4494:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    4498:	e1560003 	cmp	r6, r3                                        
        nToSend = tty->rawOutBuf.Size - newTail;                      
    449c:	85945088 	ldrhi	r5, [r4, #136]	; 0x88                       
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
    44a0:	95945080 	ldrls	r5, [r4, #128]	; 0x80                       
      /* 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)) {                   
    44a4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
    44a8:	e0665005 	rsb	r5, r6, r5                                    
      /* 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)) {                   
    44ac:	e3130c06 	tst	r3, #1536	; 0x600                             
        nToSend = 1;                                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
    44b0:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         
        nToSend = tty->rawOutBuf.Head - newTail;                      
      /* 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)) {                   
        nToSend = 1;                                                  
    44b4:	13a05001 	movne	r5, #1                                      
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
    44b8:	e3a03001 	mov	r3, #1                                        
    44bc:	e5843094 	str	r3, [r4, #148]	; 0x94                         
      (*tty->device.write)(                                           
    44c0:	e5940010 	ldr	r0, [r4, #16]                                 
    44c4:	e0811006 	add	r1, r1, r6                                    
    44c8:	e1a02005 	mov	r2, r5                                        
    44cc:	e1a0e00f 	mov	lr, pc                                        
    44d0:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
    44d4:	e5846084 	str	r6, [r4, #132]	; 0x84                         
    44d8:	ea000000 	b	44e0 <rtems_termios_refill_transmitter+0x1bc>   
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
    44dc:	e3a05000 	mov	r5, #0                                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
    44e0:	e1a00005 	mov	r0, r5                                        
    44e4:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

000061d4 <rtems_verror>: { int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) {
    61d4:	e3100202 	tst	r0, #536870912	; 0x20000000                   
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
    61d8:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    61dc:	e1a05000 	mov	r5, r0                                        
    61e0:	e1a08001 	mov	r8, r1                                        
    61e4:	e1a04002 	mov	r4, r2                                        
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    61e8:	0a00000e 	beq	6228 <rtems_verror+0x54>                      
    if (rtems_panic_in_progress++)                                    
    61ec:	e59f212c 	ldr	r2, [pc, #300]	; 6320 <rtems_verror+0x14c>    
    61f0:	e5923000 	ldr	r3, [r2]                                      
    61f4:	e2831001 	add	r1, r3, #1                                    
    61f8:	e3530000 	cmp	r3, #0                                        
    61fc:	e5821000 	str	r1, [r2]                                      
    6200:	0a000003 	beq	6214 <rtems_verror+0x40>                      
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
    6204:	e59f3118 	ldr	r3, [pc, #280]	; 6324 <rtems_verror+0x150>    <== NOT EXECUTED
    6208:	e5932000 	ldr	r2, [r3]                                      <== NOT EXECUTED
    620c:	e2822001 	add	r2, r2, #1                                    <== NOT EXECUTED
    6210:	e5832000 	str	r2, [r3]                                      <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
    6214:	e59f3104 	ldr	r3, [pc, #260]	; 6320 <rtems_verror+0x14c>    
    6218:	e5933000 	ldr	r3, [r3]                                      
    621c:	e3530002 	cmp	r3, #2                                        
      return 0;                                                       
    6220:	c3a04000 	movgt	r4, #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)                                  
    6224:	ca00003b 	bgt	6318 <rtems_verror+0x144>                     
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
    6228:	e59f30f8 	ldr	r3, [pc, #248]	; 6328 <rtems_verror+0x154>    
    622c:	e5933000 	ldr	r3, [r3]                                      
    6230:	e5930008 	ldr	r0, [r3, #8]                                  
    6234:	eb002f33 	bl	11f08 <fflush>                                 
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
    6238:	e3c56207 	bic	r6, r5, #1879048192	; 0x70000000              
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    623c:	e2155101 	ands	r5, r5, #1073741824	; 0x40000000             
    6240:	0a000001 	beq	624c <rtems_verror+0x78>                      
    local_errno = errno;                                              
    6244:	eb002e38 	bl	11b2c <__errno>                                
    6248:	e5905000 	ldr	r5, [r0]                                      
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
    624c:	e59f70d4 	ldr	r7, [pc, #212]	; 6328 <rtems_verror+0x154>    
    6250:	e5973000 	ldr	r3, [r7]                                      
    6254:	e1a02004 	mov	r2, r4                                        
    6258:	e593000c 	ldr	r0, [r3, #12]                                 
    625c:	e1a01008 	mov	r1, r8                                        
    6260:	eb00479f 	bl	180e4 <vfprintf>                               
                                                                      
  if (status)                                                         
    6264:	e3560000 	cmp	r6, #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);          
    6268:	e1a04000 	mov	r4, r0                                        
                                                                      
  if (status)                                                         
    626c:	0a000008 	beq	6294 <rtems_verror+0xc0>                      
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
    6270:	e5973000 	ldr	r3, [r7]                                      
    6274:	e1a00006 	mov	r0, r6                                        
    6278:	e593700c 	ldr	r7, [r3, #12]                                 
    627c:	ebffffd0 	bl	61c4 <rtems_status_text>                       
    6280:	e59f10a4 	ldr	r1, [pc, #164]	; 632c <rtems_verror+0x158>    
    6284:	e1a02000 	mov	r2, r0                                        
    6288:	e1a00007 	mov	r0, r7                                        
    628c:	eb003003 	bl	122a0 <fprintf>                                
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
    6290:	e0844000 	add	r4, r4, r0                                    
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
    6294:	e3550000 	cmp	r5, #0                                        
    6298:	0a000015 	beq	62f4 <rtems_verror+0x120>                     
    if ((local_errno > 0) && *strerror(local_errno))                  
    629c:	da00000d 	ble	62d8 <rtems_verror+0x104>                     
    62a0:	e1a00005 	mov	r0, r5                                        
    62a4:	eb003306 	bl	12ec4 <strerror>                               
    62a8:	e5d03000 	ldrb	r3, [r0]                                     
    62ac:	e3530000 	cmp	r3, #0                                        
    62b0:	0a000008 	beq	62d8 <rtems_verror+0x104>                     
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    62b4:	e59f306c 	ldr	r3, [pc, #108]	; 6328 <rtems_verror+0x154>    
    62b8:	e5933000 	ldr	r3, [r3]                                      
    62bc:	e1a00005 	mov	r0, r5                                        
    62c0:	e593600c 	ldr	r6, [r3, #12]                                 
    62c4:	eb0032fe 	bl	12ec4 <strerror>                               
    62c8:	e59f1060 	ldr	r1, [pc, #96]	; 6330 <rtems_verror+0x15c>     
    62cc:	e1a02000 	mov	r2, r0                                        
    62d0:	e1a00006 	mov	r0, r6                                        
    62d4:	ea000004 	b	62ec <rtems_verror+0x118>                       
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    62d8:	e59f3048 	ldr	r3, [pc, #72]	; 6328 <rtems_verror+0x154>     
    62dc:	e5933000 	ldr	r3, [r3]                                      
    62e0:	e59f104c 	ldr	r1, [pc, #76]	; 6334 <rtems_verror+0x160>     
    62e4:	e593000c 	ldr	r0, [r3, #12]                                 
    62e8:	e1a02005 	mov	r2, r5                                        
    62ec:	eb002feb 	bl	122a0 <fprintf>                                
    62f0:	e0844000 	add	r4, r4, r0                                    
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
    62f4:	e59f502c 	ldr	r5, [pc, #44]	; 6328 <rtems_verror+0x154>     
    62f8:	e5953000 	ldr	r3, [r5]                                      
    62fc:	e59f1034 	ldr	r1, [pc, #52]	; 6338 <rtems_verror+0x164>     
    6300:	e593000c 	ldr	r0, [r3, #12]                                 
    6304:	eb002fe5 	bl	122a0 <fprintf>                                
                                                                      
  (void) fflush(stderr);                                              
    6308:	e5953000 	ldr	r3, [r5]                                      
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
    630c:	e0804004 	add	r4, r0, r4                                    
                                                                      
  (void) fflush(stderr);                                              
    6310:	e593000c 	ldr	r0, [r3, #12]                                 
    6314:	eb002efb 	bl	11f08 <fflush>                                 
                                                                      
  return chars_written;                                               
}                                                                     
    6318:	e1a00004 	mov	r0, r4                                        
    631c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

0000245c <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
    245c:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
    2460:	e3a04000 	mov	r4, #0                                        
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
    2464:	e58d1000 	str	r1, [sp]                                      
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    2468:	e59fb0d4 	ldr	fp, [pc, #212]	; 2544 <scanInt+0xe8>          
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
    246c:	e59f90d4 	ldr	r9, [pc, #212]	; 2548 <scanInt+0xec>          
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
    2470:	e1a05000 	mov	r5, r0                                        
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
    2474:	e3e08102 	mvn	r8, #-2147483648	; 0x80000000                 
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
    2478:	e1a07004 	mov	r7, r4                                        
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
    247c:	e3a0a00a 	mov	sl, #10                                       
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    2480:	e5953004 	ldr	r3, [r5, #4]                                  
    2484:	e2433001 	sub	r3, r3, #1                                    
    2488:	e3530000 	cmp	r3, #0                                        
    248c:	e5853004 	str	r3, [r5, #4]                                  
    2490:	a5953000 	ldrge	r3, [r5]                                    
    2494:	a4d36001 	ldrbge	r6, [r3], #1                               
    2498:	a5853000 	strge	r3, [r5]                                    
    249c:	aa000003 	bge	24b0 <scanInt+0x54>                           
    24a0:	e59b0000 	ldr	r0, [fp]                                      <== NOT EXECUTED
    24a4:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    24a8:	eb003453 	bl	f5fc <__srget_r>                               <== NOT EXECUTED
    24ac:	e1a06000 	mov	r6, r0                                        <== NOT EXECUTED
    if (c == ':')                                                     
    24b0:	e356003a 	cmp	r6, #58	; 0x3a                                
    24b4:	0a000019 	beq	2520 <scanInt+0xc4>                           
      break;                                                          
    if (sign == 0) {                                                  
    24b8:	e3540000 	cmp	r4, #0                                        
    24bc:	1a000004 	bne	24d4 <scanInt+0x78>                           
      if (c == '-') {                                                 
    24c0:	e356002d 	cmp	r6, #45	; 0x2d                                
        sign = -1;                                                    
        limit++;                                                      
    24c4:	02888001 	addeq	r8, r8, #1                                  
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
    24c8:	03e04000 	mvneq	r4, #0                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
    24cc:	0affffeb 	beq	2480 <scanInt+0x24>                           
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    24d0:	e3a04001 	mov	r4, #1                                        
    }                                                                 
    if (!isdigit(c))                                                  
    24d4:	e5993000 	ldr	r3, [r9]                                      
    24d8:	e0833006 	add	r3, r3, r6                                    
    24dc:	e5d30001 	ldrb	r0, [r3, #1]                                 
    24e0:	e2100004 	ands	r0, r0, #4                                   
    24e4:	0a000015 	beq	2540 <scanInt+0xe4>                           
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
    24e8:	e1a00008 	mov	r0, r8                                        
    24ec:	e3a0100a 	mov	r1, #10                                       
    24f0:	eb003d4b 	bl	11a24 <__aeabi_uidiv>                          
    24f4:	e1570000 	cmp	r7, r0                                        
    24f8:	8a00000f 	bhi	253c <scanInt+0xe0>                           
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    24fc:	e2466030 	sub	r6, r6, #48	; 0x30                            
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
    2500:	1a000004 	bne	2518 <scanInt+0xbc>                           
    2504:	e1a00008 	mov	r0, r8                                        <== NOT EXECUTED
    2508:	e3a0100a 	mov	r1, #10                                       <== NOT EXECUTED
    250c:	eb003ddc 	bl	11c84 <__umodsi3>                              <== NOT EXECUTED
    2510:	e1560000 	cmp	r6, r0                                        <== NOT EXECUTED
    2514:	8a000008 	bhi	253c <scanInt+0xe0>                           <== NOT EXECUTED
      return 0;                                                       
    i = i * 10 + d;                                                   
    2518:	e027679a 	mla	r7, sl, r7, r6                                
    251c:	eaffffd7 	b	2480 <scanInt+0x24>                             
  }                                                                   
  if (sign == 0)                                                      
    2520:	e3540000 	cmp	r4, #0                                        
    return 0;                                                         
    2524:	01a00004 	moveq	r0, r4                                      
  *val = i * sign;                                                    
    2528:	10040497 	mulne	r4, r7, r4                                  
    252c:	159d3000 	ldrne	r3, [sp]                                    
  return 1;                                                           
    2530:	13a00001 	movne	r0, #1                                      
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
    2534:	15834000 	strne	r4, [r3]                                    
  return 1;                                                           
    2538:	ea000000 	b	2540 <scanInt+0xe4>                             
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    253c:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
    2540:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

0000254c <scanString>: /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) {
    254c:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    2550:	e1a06003 	mov	r6, r3                                        
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
    2554:	e5923000 	ldr	r3, [r2]                                      
/*                                                                    
 * Extract a string value from the database                           
 */                                                                   
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
    2558:	e59d7018 	ldr	r7, [sp, #24]                                 
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    255c:	e59f80d4 	ldr	r8, [pc, #212]	; 2638 <scanString+0xec>       
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
    2560:	e5813000 	str	r3, [r1]                                      
/*                                                                    
 * Extract a string value from the database                           
 */                                                                   
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
    2564:	e1a04000 	mov	r4, r0                                        
    2568:	e1a05002 	mov	r5, r2                                        
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    256c:	e5943004 	ldr	r3, [r4, #4]                                  
    2570:	e2433001 	sub	r3, r3, #1                                    
    2574:	e3530000 	cmp	r3, #0                                        
    2578:	e5843004 	str	r3, [r4, #4]                                  
    257c:	a5943000 	ldrge	r3, [r4]                                    
    2580:	a4d30001 	ldrbge	r0, [r3], #1                               
    2584:	a5843000 	strge	r3, [r4]                                    
    2588:	b5980000 	ldrlt	r0, [r8]                                    
    258c:	b1a01004 	movlt	r1, r4                                      
    2590:	bb003419 	bllt	f5fc <__srget_r>                             
    if (c == ':') {                                                   
    2594:	e350003a 	cmp	r0, #58	; 0x3a                                
    2598:	1a000002 	bne	25a8 <scanString+0x5c>                        
        if (nlFlag)                                                   
    259c:	e3570000 	cmp	r7, #0                                        
    25a0:	0a000013 	beq	25f4 <scanString+0xa8>                        
    25a4:	ea00001f 	b	2628 <scanString+0xdc>                          
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
    25a8:	e350000a 	cmp	r0, #10                                       
    25ac:	1a000002 	bne	25bc <scanString+0x70>                        
        if (!nlFlag)                                                  
    25b0:	e3570000 	cmp	r7, #0                                        
    25b4:	1a00000e 	bne	25f4 <scanString+0xa8>                        
    25b8:	ea000018 	b	2620 <scanString+0xd4>                          
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
    25bc:	e3700001 	cmn	r0, #1                                        
    25c0:	0a000018 	beq	2628 <scanString+0xdc>                        
      return 0;                                                       
    if (*nleft < 2)                                                   
    25c4:	e5963000 	ldr	r3, [r6]                                      
    25c8:	e3530001 	cmp	r3, #1                                        
    25cc:	9a000017 	bls	2630 <scanString+0xe4>                        
      return 0;                                                       
    **bufp = c;                                                       
    25d0:	e5953000 	ldr	r3, [r5]                                      
    25d4:	e5c30000 	strb	r0, [r3]                                     
    ++(*bufp);                                                        
    25d8:	e5953000 	ldr	r3, [r5]                                      
    25dc:	e2833001 	add	r3, r3, #1                                    
    25e0:	e5853000 	str	r3, [r5]                                      
    --(*nleft);                                                       
    25e4:	e5963000 	ldr	r3, [r6]                                      
    25e8:	e2433001 	sub	r3, r3, #1                                    
    25ec:	e5863000 	str	r3, [r6]                                      
  }                                                                   
    25f0:	eaffffdd 	b	256c <scanString+0x20>                          
  **bufp = '\0';                                                      
    25f4:	e5953000 	ldr	r3, [r5]                                      
    25f8:	e3a02000 	mov	r2, #0                                        
    25fc:	e5c32000 	strb	r2, [r3]                                     
  ++(*bufp);                                                          
    2600:	e5953000 	ldr	r3, [r5]                                      
    2604:	e2833001 	add	r3, r3, #1                                    
    2608:	e5853000 	str	r3, [r5]                                      
  --(*nleft);                                                         
    260c:	e5963000 	ldr	r3, [r6]                                      
    2610:	e2433001 	sub	r3, r3, #1                                    
    2614:	e5863000 	str	r3, [r6]                                      
  return 1;                                                           
    2618:	e3a00001 	mov	r0, #1                                        
    261c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
        if (!nlFlag)                                                  
            return 0;                                                 
    2620:	e1a00007 	mov	r0, r7                                        
    2624:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
      return 0;                                                       
    2628:	e3a00000 	mov	r0, #0                                        
    262c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
    if (*nleft < 2)                                                   
      return 0;                                                       
    2630:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
}                                                                     
    2634:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
                                                                      

000057ac <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
    57ac:	e2523000 	subs	r3, r2, #0                                   
    *oact = _POSIX_signals_Vectors[ sig ];                            
    57b0:	159f20b8 	ldrne	r2, [pc, #184]	; 5870 <sigaction+0xc4>      
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
    57b4:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    57b8:	e1a05001 	mov	r5, r1                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
    57bc:	13a0100c 	movne	r1, #12                                     
    57c0:	10222091 	mlane	r2, r1, r0, r2                              
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
    57c4:	e1a04000 	mov	r4, r0                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
    57c8:	18920007 	ldmne	r2, {r0, r1, r2}                            
    57cc:	18830007 	stmne	r3, {r0, r1, r2}                            
                                                                      
  if ( !sig )                                                         
    57d0:	e3540000 	cmp	r4, #0                                        
    57d4:	0a000004 	beq	57ec <sigaction+0x40>                         
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
    57d8:	e2443001 	sub	r3, r4, #1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    57dc:	e353001f 	cmp	r3, #31                                       
    57e0:	8a000001 	bhi	57ec <sigaction+0x40>                         
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    57e4:	e3540009 	cmp	r4, #9                                        
    57e8:	1a000004 	bne	5800 <sigaction+0x54>                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    57ec:	eb002106 	bl	dc0c <__errno>                                 
    57f0:	e3a03016 	mov	r3, #22                                       
    57f4:	e5803000 	str	r3, [r0]                                      
    57f8:	e3e00000 	mvn	r0, #0                                        
    57fc:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
    5800:	e3550000 	cmp	r5, #0                                        
    5804:	0a000017 	beq	5868 <sigaction+0xbc>                         
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    5808:	e10f6000 	mrs	r6, CPSR                                      
    580c:	e3863080 	orr	r3, r6, #128	; 0x80                           
    5810:	e129f003 	msr	CPSR_fc, r3                                   
     *  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 ) {                             
    5814:	e5953008 	ldr	r3, [r5, #8]                                  
    5818:	e3530000 	cmp	r3, #0                                        
    581c:	e59f704c 	ldr	r7, [pc, #76]	; 5870 <sigaction+0xc4>         
    5820:	1a000007 	bne	5844 <sigaction+0x98>                         
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
    5824:	e283300c 	add	r3, r3, #12                                   
    5828:	e0040493 	mul	r4, r3, r4                                    
    582c:	e59f2040 	ldr	r2, [pc, #64]	; 5874 <sigaction+0xc8>         
    5830:	e0873004 	add	r3, r7, r4                                    
    5834:	e0824004 	add	r4, r2, r4                                    
    5838:	e8940007 	ldm	r4, {r0, r1, r2}                              
    583c:	e8830007 	stm	r3, {r0, r1, r2}                              
    5840:	ea000005 	b	585c <sigaction+0xb0>                           
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
    5844:	e1a00004 	mov	r0, r4                                        
    5848:	eb001580 	bl	ae50 <_POSIX_signals_Clear_process_signals>    
         _POSIX_signals_Vectors[ sig ] = *act;                        
    584c:	e3a0300c 	mov	r3, #12                                       
    5850:	e0247493 	mla	r4, r3, r4, r7                                
    5854:	e8950007 	ldm	r5, {r0, r1, r2}                              
    5858:	e8840007 	stm	r4, {r0, r1, r2}                              
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    585c:	e129f006 	msr	CPSR_fc, r6                                   
   *      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;                                                           
    5860:	e3a00000 	mov	r0, #0                                        
    5864:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
    5868:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
}                                                                     
    586c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

00007ddc <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
    7ddc:	e92d4010 	push	{r4, lr}                                     
    7de0:	e1a04001 	mov	r4, r1                                        
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
    7de4:	e3a01000 	mov	r1, #0                                        
    7de8:	e1a02001 	mov	r2, r1                                        
    7dec:	ebffff8e 	bl	7c2c <sigtimedwait>                            
                                                                      
  if ( status != -1 ) {                                               
    7df0:	e3700001 	cmn	r0, #1                                        
    7df4:	0a000004 	beq	7e0c <sigwait+0x30>                           
    if ( sig )                                                        
    7df8:	e3540000 	cmp	r4, #0                                        
      *sig = status;                                                  
    7dfc:	15840000 	strne	r0, [r4]                                    
    return 0;                                                         
    7e00:	13a00000 	movne	r0, #0                                      
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
    7e04:	18bd8010 	popne	{r4, pc}                                    
    7e08:	ea000002 	b	7e18 <sigwait+0x3c>                             <== NOT EXECUTED
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
    7e0c:	eb002034 	bl	fee4 <__errno>                                 
    7e10:	e5900000 	ldr	r0, [r0]                                      
    7e14:	e8bd8010 	pop	{r4, pc}                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
    7e18:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
    7e1c:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00003bc0 <siproc>: int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    3bc0:	e591203c 	ldr	r2, [r1, #60]	; 0x3c                          
    3bc4:	e59f304c 	ldr	r3, [pc, #76]	; 3c18 <siproc+0x58>            
    3bc8:	e0023003 	and	r3, r2, r3                                    
    3bcc:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
    3bd0:	e92d4030 	push	{r4, r5, lr}                                 
    3bd4:	e1a04001 	mov	r4, r1                                        
    3bd8:	e1a05000 	mov	r5, r0                                        
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    3bdc:	0a00000b 	beq	3c10 <siproc+0x50>                            
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
    3be0:	e5910018 	ldr	r0, [r1, #24]                                 
    3be4:	e3a01000 	mov	r1, #0                                        
    3be8:	e1a02001 	mov	r2, r1                                        
    3bec:	eb0004c0 	bl	4ef4 <rtems_semaphore_obtain>                  
    i = iproc (c, tty);                                               
    3bf0:	e1a01004 	mov	r1, r4                                        
    3bf4:	e1a00005 	mov	r0, r5                                        
    3bf8:	ebffff8b 	bl	3a2c <iproc>                                   
    3bfc:	e1a05000 	mov	r5, r0                                        
    rtems_semaphore_release (tty->osem);                              
    3c00:	e5940018 	ldr	r0, [r4, #24]                                 
    3c04:	eb000500 	bl	500c <rtems_semaphore_release>                 
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
    3c08:	e1a00005 	mov	r0, r5                                        
    3c0c:	e8bd8030 	pop	{r4, r5, pc}                                  
    3c10:	e8bd4030 	pop	{r4, r5, lr}                                  <== 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);                                               
    3c14:	eaffff84 	b	3a2c <iproc>                                    <== NOT EXECUTED
                                                                      

00007568 <truncate>: int truncate( const char *path, off_t length ) {
    7568:	e92d4070 	push	{r4, r5, r6, lr}                             <== NOT EXECUTED
    756c:	e1a05001 	mov	r5, r1                                        <== NOT EXECUTED
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_WRONLY );                                        
    7570:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
                                                                      
int truncate(                                                         
  const char  *path,                                                  
  off_t        length                                                 
)                                                                     
{                                                                     
    7574:	e1a06002 	mov	r6, r2                                        <== NOT EXECUTED
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_WRONLY );                                        
    7578:	ebfff77d 	bl	5374 <open>                                    <== NOT EXECUTED
  if ( fd == -1 )                                                     
    757c:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
)                                                                     
{                                                                     
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_WRONLY );                                        
    7580:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
  if ( fd == -1 )                                                     
    return -1;                                                        
    7584:	01a05000 	moveq	r5, r0                                      <== NOT EXECUTED
{                                                                     
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_WRONLY );                                        
  if ( fd == -1 )                                                     
    7588:	0a000005 	beq	75a4 <truncate+0x3c>                          <== NOT EXECUTED
    return -1;                                                        
                                                                      
  status = ftruncate( fd, length );                                   
    758c:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    7590:	e1a02006 	mov	r2, r6                                        <== NOT EXECUTED
    7594:	eb0014a9 	bl	c840 <ftruncate>                               <== NOT EXECUTED
    7598:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
                                                                      
  (void) close( fd );                                                 
    759c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    75a0:	ebfff30f 	bl	41e4 <close>                                   <== NOT EXECUTED
                                                                      
  return status;                                                      
}                                                                     
    75a4:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    75a8:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      

00005600 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
    5600:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    5604:	e24dd030 	sub	sp, sp, #48	; 0x30                            
    5608:	e1a06000 	mov	r6, r0                                        
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
    560c:	ebfff56b 	bl	2bc0 <rtems_filesystem_dirname>                
                                                                      
  if ( parentpathlen == 0 )                                           
    5610:	e2504000 	subs	r4, r0, #0                                   
    5614:	e28d3018 	add	r3, sp, #24                                   
    5618:	1a000005 	bne	5634 <unlink+0x34>                            
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
    561c:	e1a00006 	mov	r0, r6                                        
    5620:	e28d102c 	add	r1, sp, #44	; 0x2c                            
    5624:	e1a02003 	mov	r2, r3                                        
    5628:	ebfff931 	bl	3af4 <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;           
    562c:	e1a05004 	mov	r5, r4                                        
    5630:	ea000008 	b	5658 <unlink+0x58>                              
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
    5634:	e3a02000 	mov	r2, #0                                        
    5638:	e58d2000 	str	r2, [sp]                                      
    563c:	e1a00006 	mov	r0, r6                                        
    5640:	e1a01004 	mov	r1, r4                                        
    5644:	e2822002 	add	r2, r2, #2                                    
    5648:	ebfff53e 	bl	2b48 <rtems_filesystem_evaluate_path>          
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
    564c:	e3500000 	cmp	r0, #0                                        
    5650:	1a00003a 	bne	5740 <unlink+0x140>                           
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
    5654:	e3a05001 	mov	r5, #1                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    5658:	e28de018 	add	lr, sp, #24                                   
    565c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    5660:	e28dc004 	add	ip, sp, #4                                    
    5664:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
  name = path + parentpathlen;                                        
    5668:	e0864004 	add	r4, r6, r4                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    566c:	e59e3000 	ldr	r3, [lr]                                      
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5670:	e1a00004 	mov	r0, r4                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    5674:	e58c3000 	str	r3, [ip]                                      
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5678:	eb002fcf 	bl	115bc <strlen>                                 
    567c:	e1a01000 	mov	r1, r0                                        
    5680:	e1a00004 	mov	r0, r4                                        
    5684:	ebfff55b 	bl	2bf8 <rtems_filesystem_prefix_separators>      
    5688:	e0846000 	add	r6, r4, r0                                    
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    568c:	e1a00006 	mov	r0, r6                                        
    5690:	eb002fc9 	bl	115bc <strlen>                                 
    5694:	e28d4004 	add	r4, sp, #4                                    
    5698:	e1a01000 	mov	r1, r0                                        
    569c:	e3a02000 	mov	r2, #0                                        
    56a0:	e1a00006 	mov	r0, r6                                        
    56a4:	e1a03004 	mov	r3, r4                                        
    56a8:	e58d2000 	str	r2, [sp]                                      
    56ac:	ebfff4fd 	bl	2aa8 <rtems_filesystem_evaluate_relative_path> 
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    56b0:	e3500000 	cmp	r0, #0                                        
    56b4:	0a000004 	beq	56cc <unlink+0xcc>                            
    if ( free_parentloc )                                             
    56b8:	e3550000 	cmp	r5, #0                                        <== NOT EXECUTED
    56bc:	0a00001f 	beq	5740 <unlink+0x140>                           <== NOT EXECUTED
      rtems_filesystem_freenode( &parentloc );                        
    56c0:	e28d0018 	add	r0, sp, #24                                   <== NOT EXECUTED
    56c4:	ebfff55a 	bl	2c34 <rtems_filesystem_freenode>               <== NOT EXECUTED
    56c8:	ea00001c 	b	5740 <unlink+0x140>                             <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
    56cc:	e1a00004 	mov	r0, r4                                        
    56d0:	e59d3010 	ldr	r3, [sp, #16]                                 
    56d4:	e1a0e00f 	mov	lr, pc                                        
    56d8:	e593f010 	ldr	pc, [r3, #16]                                 
    56dc:	e3500001 	cmp	r0, #1                                        
    56e0:	1a000008 	bne	5708 <unlink+0x108>                           
    rtems_filesystem_freenode( &loc );                                
    56e4:	e1a00004 	mov	r0, r4                                        
    56e8:	ebfff551 	bl	2c34 <rtems_filesystem_freenode>               
    if ( free_parentloc )                                             
    56ec:	e3550000 	cmp	r5, #0                                        
      rtems_filesystem_freenode( &parentloc );                        
    56f0:	128d0018 	addne	r0, sp, #24                                 
    56f4:	1bfff54e 	blne	2c34 <rtems_filesystem_freenode>             
    rtems_set_errno_and_return_minus_one( EISDIR );                   
    56f8:	eb002bea 	bl	106a8 <__errno>                                
    56fc:	e3a03015 	mov	r3, #21                                       
    5700:	e5803000 	str	r3, [r0]                                      
    5704:	ea00000d 	b	5740 <unlink+0x140>                             
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
    5708:	e28d6018 	add	r6, sp, #24                                   
    570c:	e1a01004 	mov	r1, r4                                        
    5710:	e59d3010 	ldr	r3, [sp, #16]                                 
    5714:	e1a00006 	mov	r0, r6                                        
    5718:	e1a0e00f 	mov	lr, pc                                        
    571c:	e593f00c 	ldr	pc, [r3, #12]                                 
    5720:	e1a07000 	mov	r7, r0                                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    5724:	e1a00004 	mov	r0, r4                                        
    5728:	ebfff541 	bl	2c34 <rtems_filesystem_freenode>               
  if ( free_parentloc )                                               
    572c:	e3550000 	cmp	r5, #0                                        
    5730:	0a000003 	beq	5744 <unlink+0x144>                           
    rtems_filesystem_freenode( &parentloc );                          
    5734:	e1a00006 	mov	r0, r6                                        
    5738:	ebfff53d 	bl	2c34 <rtems_filesystem_freenode>               
    573c:	ea000000 	b	5744 <unlink+0x144>                             
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
    5740:	e3e07000 	mvn	r7, #0                                        
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
    5744:	e1a00007 	mov	r0, r7                                        
    5748:	e28dd030 	add	sp, sp, #48	; 0x30                            
    574c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

0000589c <unmount>: */ int unmount( const char *path ) {
    589c:	e92d4070 	push	{r4, r5, r6, lr}                             
    58a0:	e24dd018 	sub	sp, sp, #24                                   
    58a4:	e1a05000 	mov	r5, r0                                        
   *    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 ) )
    58a8:	eb002588 	bl	eed0 <strlen>                                  
    58ac:	e28d4004 	add	r4, sp, #4                                    
    58b0:	e3a03001 	mov	r3, #1                                        
    58b4:	e1a01000 	mov	r1, r0                                        
    58b8:	e58d3000 	str	r3, [sp]                                      
    58bc:	e1a00005 	mov	r0, r5                                        
    58c0:	e3a02000 	mov	r2, #0                                        
    58c4:	e1a03004 	mov	r3, r4                                        
    58c8:	ebfff46e 	bl	2a88 <rtems_filesystem_evaluate_path>          
    58cc:	e3500000 	cmp	r0, #0                                        
    58d0:	1a000040 	bne	59d8 <unmount+0x13c>                          
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
    58d4:	e59d5014 	ldr	r5, [sp, #20]                                 
                                                                      
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
    58d8:	e59d3004 	ldr	r3, [sp, #4]                                  
    58dc:	e595201c 	ldr	r2, [r5, #28]                                 
    58e0:	e1520003 	cmp	r2, r3                                        
    58e4:	0a000004 	beq	58fc <unmount+0x60>                           
    rtems_filesystem_freenode( &loc );                                
    58e8:	e1a00004 	mov	r0, r4                                        
    58ec:	ebfff4a0 	bl	2b74 <rtems_filesystem_freenode>               
    rtems_set_errno_and_return_minus_one( EACCES );                   
    58f0:	eb001ffa 	bl	d8e0 <__errno>                                 
    58f4:	e3a0300d 	mov	r3, #13                                       
    58f8:	ea000011 	b	5944 <unmount+0xa8>                             
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    58fc:	e1a00004 	mov	r0, r4                                        
    5900:	ebfff49b 	bl	2b74 <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 )                
    5904:	e59f30d8 	ldr	r3, [pc, #216]	; 59e4 <unmount+0x148>         
    5908:	e5933000 	ldr	r3, [r3]                                      
    590c:	e5933014 	ldr	r3, [r3, #20]                                 
    5910:	e1530005 	cmp	r3, r5                                        
    5914:	0a000008 	beq	593c <unmount+0xa0>                           
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
    5918:	e59f00c8 	ldr	r0, [pc, #200]	; 59e8 <unmount+0x14c>         
    591c:	e595102c 	ldr	r1, [r5, #44]	; 0x2c                          
    5920:	ebfff6b5 	bl	33fc <rtems_filesystem_mount_iterate>          
    5924:	e3500000 	cmp	r0, #0                                        
    5928:	1a000003 	bne	593c <unmount+0xa0>                           
   *  Run the file descriptor table to determine if there are any file
   *  descriptors that are currently active and reference nodes in the
   *  file system that we are trying to unmount                       
   */                                                                 
                                                                      
  if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )             
    592c:	e1a00005 	mov	r0, r5                                        
    5930:	ebfff56a 	bl	2ee0 <rtems_libio_is_open_files_in_fs>         
    5934:	e3500001 	cmp	r0, #1                                        
    5938:	1a000003 	bne	594c <unmount+0xb0>                           
    rtems_set_errno_and_return_minus_one( EBUSY );                    
    593c:	eb001fe7 	bl	d8e0 <__errno>                                 
    5940:	e3a03010 	mov	r3, #16                                       
    5944:	e5803000 	str	r3, [r0]                                      
    5948:	ea000022 	b	59d8 <unmount+0x13c>                            
   * Allow the file system being unmounted on to do its cleanup.      
   * If it fails it will set the errno to the approprate value        
   * and the fileystem will not be modified.                          
   */                                                                 
                                                                      
  if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )             
    594c:	e5953014 	ldr	r3, [r5, #20]                                 
    5950:	e1a00005 	mov	r0, r5                                        
    5954:	e1a0e00f 	mov	lr, pc                                        
    5958:	e593f028 	ldr	pc, [r3, #40]	; 0x28                          
    595c:	e2506000 	subs	r6, r0, #0                                   
    5960:	1a00001c 	bne	59d8 <unmount+0x13c>                          
   *  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){          
    5964:	e5953028 	ldr	r3, [r5, #40]	; 0x28                          
    5968:	e1a00005 	mov	r0, r5                                        
    596c:	e1a0e00f 	mov	lr, pc                                        
    5970:	e593f02c 	ldr	pc, [r3, #44]	; 0x2c                          
    5974:	e2504000 	subs	r4, r0, #0                                   
    5978:	0a000007 	beq	599c <unmount+0x100>                          
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
    597c:	e5953014 	ldr	r3, [r5, #20]                                 <== NOT EXECUTED
    5980:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    5984:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    5988:	e593f020 	ldr	pc, [r3, #32]                                 <== NOT EXECUTED
    598c:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    5990:	0a000010 	beq	59d8 <unmount+0x13c>                          <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
    5994:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    5998:	eb0003c6 	bl	68b8 <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 );
    599c:	e59f6048 	ldr	r6, [pc, #72]	; 59ec <unmount+0x150>          
    59a0:	e1a01004 	mov	r1, r4                                        
    59a4:	e1a02004 	mov	r2, r4                                        
    59a8:	e5960000 	ldr	r0, [r6]                                      
    59ac:	eb000242 	bl	62bc <rtems_semaphore_obtain>                  
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    59b0:	e1a00005 	mov	r0, r5                                        
    59b4:	eb000487 	bl	6bd8 <_Chain_Extract>                          
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    59b8:	e5960000 	ldr	r0, [r6]                                      
    59bc:	eb000284 	bl	63d4 <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 );                          
    59c0:	e2850008 	add	r0, r5, #8                                    
    59c4:	ebfff46a 	bl	2b74 <rtems_filesystem_freenode>               
  free( mt_entry );                                                   
    59c8:	e1a00005 	mov	r0, r5                                        
    59cc:	ebfff46d 	bl	2b88 <free>                                    
                                                                      
  return 0;                                                           
    59d0:	e1a00004 	mov	r0, r4                                        
    59d4:	ea000000 	b	59dc <unmount+0x140>                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
      rtems_fatal_error_occurred( 0 );                                
    return -1;                                                        
    59d8:	e3e00000 	mvn	r0, #0                                        
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
    59dc:	e28dd018 	add	sp, sp, #24                                   
    59e0:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

000057a4 <utime>: int utime( const char *path, const struct utimbuf *times ) {
    57a4:	e92d4030 	push	{r4, r5, lr}                                 
    57a8:	e24dd020 	sub	sp, sp, #32                                   
    57ac:	e1a04001 	mov	r4, r1                                        
    57b0:	e1a05000 	mov	r5, r0                                        
  rtems_filesystem_location_info_t   temp_loc;                        
  int                                result;                          
  struct utimbuf                     now;                             
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
    57b4:	eb002782 	bl	f5c4 <strlen>                                  
    57b8:	e3a03001 	mov	r3, #1                                        
    57bc:	e1a01000 	mov	r1, r0                                        
    57c0:	e58d3000 	str	r3, [sp]                                      
    57c4:	e1a00005 	mov	r0, r5                                        
    57c8:	e3a02000 	mov	r2, #0                                        
    57cc:	e28d3004 	add	r3, sp, #4                                    
    57d0:	ebfff344 	bl	24e8 <rtems_filesystem_evaluate_path>          
    57d4:	e3500000 	cmp	r0, #0                                        
    return -1;                                                        
    57d8:	13e04000 	mvnne	r4, #0                                      
{                                                                     
  rtems_filesystem_location_info_t   temp_loc;                        
  int                                result;                          
  struct utimbuf                     now;                             
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
    57dc:	1a00000e 	bne	581c <utime+0x78>                             
    return -1;                                                        
                                                                      
  if ( times == NULL ) {                                              
    57e0:	e3540000 	cmp	r4, #0                                        
    57e4:	1a000003 	bne	57f8 <utime+0x54>                             
    now.actime = now.modtime = time( NULL );                          
    57e8:	eb0027c8 	bl	f710 <time>                                    <== NOT EXECUTED
    57ec:	e28d4020 	add	r4, sp, #32                                   <== NOT EXECUTED
    57f0:	e58d001c 	str	r0, [sp, #28]                                 <== NOT EXECUTED
    57f4:	e5240008 	str	r0, [r4, #-8]!                                <== NOT EXECUTED
    times = &now;                                                     
  }                                                                   
                                                                      
  result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
    57f8:	e28d5004 	add	r5, sp, #4                                    
    57fc:	e8940006 	ldm	r4, {r1, r2}                                  
    5800:	e1a00005 	mov	r0, r5                                        
    5804:	e59d3010 	ldr	r3, [sp, #16]                                 
    5808:	e1a0e00f 	mov	lr, pc                                        
    580c:	e593f030 	ldr	pc, [r3, #48]	; 0x30                          
    5810:	e1a04000 	mov	r4, r0                                        
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
    5814:	e1a00005 	mov	r0, r5                                        
    5818:	ebfff443 	bl	292c <rtems_filesystem_freenode>               
                                                                      
  return result;                                                      
}                                                                     
    581c:	e1a00004 	mov	r0, r4                                        
    5820:	e28dd020 	add	sp, sp, #32                                   
    5824:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00011ec0 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
   11ec0:	e92d4030 	push	{r4, r5, lr}                                 
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
   11ec4:	e59f4098 	ldr	r4, [pc, #152]	; 11f64 <write+0xa4>           
   11ec8:	e5944000 	ldr	r4, [r4]                                      
   11ecc:	e1500004 	cmp	r0, r4                                        
   11ed0:	2a000006 	bcs	11ef0 <write+0x30>                            
  iop = rtems_libio_iop( fd );                                        
   11ed4:	e59f408c 	ldr	r4, [pc, #140]	; 11f68 <write+0xa8>           
   11ed8:	e5944000 	ldr	r4, [r4]                                      
   11edc:	e3a05038 	mov	r5, #56	; 0x38                                
   11ee0:	e0244095 	mla	r4, r5, r0, r4                                
  rtems_libio_check_is_open( iop );                                   
   11ee4:	e5940014 	ldr	r0, [r4, #20]                                 
   11ee8:	e3100c01 	tst	r0, #256	; 0x100                              
   11eec:	1a000002 	bne	11efc <write+0x3c>                            
   11ef0:	ebffeacf 	bl	ca34 <__errno>                                 
   11ef4:	e3a03009 	mov	r3, #9                                        
   11ef8:	ea000007 	b	11f1c <write+0x5c>                              
  rtems_libio_check_buffer( buffer );                                 
   11efc:	e3510000 	cmp	r1, #0                                        
   11f00:	0a000003 	beq	11f14 <write+0x54>                            
  rtems_libio_check_count( count );                                   
   11f04:	e3520000 	cmp	r2, #0                                        
   11f08:	0a000013 	beq	11f5c <write+0x9c>                            
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
   11f0c:	e3100004 	tst	r0, #4                                        
   11f10:	1a000004 	bne	11f28 <write+0x68>                            
   11f14:	ebffeac6 	bl	ca34 <__errno>                                 <== NOT EXECUTED
   11f18:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
   11f1c:	e5803000 	str	r3, [r0]                                      
   11f20:	e3e00000 	mvn	r0, #0                                        
   11f24:	e8bd8030 	pop	{r4, r5, pc}                                  
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
   11f28:	e5943020 	ldr	r3, [r4, #32]                                 
   11f2c:	e1a00004 	mov	r0, r4                                        
   11f30:	e1a0e00f 	mov	lr, pc                                        
   11f34:	e593f00c 	ldr	pc, [r3, #12]                                 
                                                                      
  if ( rc > 0 )                                                       
   11f38:	e3500000 	cmp	r0, #0                                        
   11f3c:	d8bd8030 	pople	{r4, r5, pc}                                
    iop->offset += rc;                                                
   11f40:	e284300c 	add	r3, r4, #12                                   
   11f44:	e893000c 	ldm	r3, {r2, r3}                                  
   11f48:	e0922000 	adds	r2, r2, r0                                   
   11f4c:	e0a33fc0 	adc	r3, r3, r0, asr #31                           
   11f50:	e584200c 	str	r2, [r4, #12]                                 
   11f54:	e5843010 	str	r3, [r4, #16]                                 
   11f58:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
   11f5c:	e1a00002 	mov	r0, r2                                        
                                                                      
  if ( rc > 0 )                                                       
    iop->offset += rc;                                                
                                                                      
  return rc;                                                          
}                                                                     
   11f60:	e8bd8030 	pop	{r4, r5, pc}