RTEMS 4.11
Annotated Report
Sat Nov 27 22:07:04 2010

a0008948 <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 ) {                                              
a0008948:	e5902000 	ldr	r2, [r0]                                      
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
a000894c:	e5903010 	ldr	r3, [r0, #16]                                 
  switch( node->type ) {                                              
a0008950:	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;                                   
a0008954:	e5933034 	ldr	r3, [r3, #52]	; 0x34                          
  switch( node->type ) {                                              
a0008958:	e2422001 	sub	r2, r2, #1                                    
a000895c:	e3520006 	cmp	r2, #6                                        
a0008960:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
a0008964:	ea000010 	b	a00089ac <IMFS_Set_handlers+0x64>               <== NOT EXECUTED
a0008968:	a0008984 	.word	0xa0008984                                  <== NOT EXECUTED
a000896c:	a000898c 	.word	0xa000898c                                  <== NOT EXECUTED
a0008970:	a0008994 	.word	0xa0008994                                  <== NOT EXECUTED
a0008974:	a0008994 	.word	0xa0008994                                  <== NOT EXECUTED
a0008978:	a000899c 	.word	0xa000899c                                  <== NOT EXECUTED
a000897c:	a000899c 	.word	0xa000899c                                  <== NOT EXECUTED
a0008980:	a00089a4 	.word	0xa00089a4                                  <== NOT EXECUTED
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
a0008984:	e593300c 	ldr	r3, [r3, #12]                                 
a0008988:	ea000006 	b	a00089a8 <IMFS_Set_handlers+0x60>               
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
a000898c:	e59f3020 	ldr	r3, [pc, #32]	; a00089b4 <IMFS_Set_handlers+0x6c>
a0008990:	ea000004 	b	a00089a8 <IMFS_Set_handlers+0x60>               
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
a0008994:	e59f301c 	ldr	r3, [pc, #28]	; a00089b8 <IMFS_Set_handlers+0x70>
a0008998:	ea000002 	b	a00089a8 <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;                      
a000899c:	e5933008 	ldr	r3, [r3, #8]                                  
a00089a0:	ea000000 	b	a00089a8 <IMFS_Set_handlers+0x60>               
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
a00089a4:	e5933010 	ldr	r3, [r3, #16]                                 
a00089a8:	e5803008 	str	r3, [r0, #8]                                  
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
a00089ac:	e3a00000 	mov	r0, #0                                        
a00089b0:	e12fff1e 	bx	lr                                             
                                                                      

a0008a70 <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
a0008a70:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  char                                token[ IMFS_NAME_MAX + 1 ];     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
a0008a74:	e3d27007 	bics	r7, r2, #7                                   
  const char                        *pathname,     /* IN     */       
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
a0008a78:	e24dd040 	sub	sp, sp, #64	; 0x40                            
a0008a7c:	e58d0000 	str	r0, [sp]                                      
a0008a80:	e1a06001 	mov	r6, r1                                        
a0008a84:	e1a08002 	mov	r8, r2                                        
a0008a88:	e1a04003 	mov	r4, r3                                        
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
a0008a8c:	05935000 	ldreq	r5, [r3]                                    
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
  int                                 len;                            
  IMFS_token_types                    type = IMFS_CURRENT_DIR;        
a0008a90:	03a09001 	moveq	r9, #1                                      
   *  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 );  
a0008a94:	028da004 	addeq	sl, sp, #4                                  
  char                                token[ IMFS_NAME_MAX + 1 ];     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
a0008a98:	0a000057 	beq	a0008bfc <IMFS_eval_path+0x18c>               
    rtems_set_errno_and_return_minus_one( EIO );                      
a0008a9c:	eb001029 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a0008aa0:	e3a03005 	mov	r3, #5                                        <== NOT EXECUTED
a0008aa4:	ea00007e 	b	a0008ca4 <IMFS_eval_path+0x234>                 <== NOT EXECUTED
   *  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 );  
a0008aa8:	e59d2000 	ldr	r2, [sp]                                      
a0008aac:	e28d303c 	add	r3, sp, #60	; 0x3c                            
a0008ab0:	e1a01006 	mov	r1, r6                                        
a0008ab4:	e0820007 	add	r0, r2, r7                                    
a0008ab8:	e1a0200a 	mov	r2, sl                                        
a0008abc:	eb0001ae 	bl	a000917c <IMFS_get_token>                      
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
a0008ac0:	e5943000 	ldr	r3, [r4]                                      
   *  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 );  
a0008ac4:	e1a09000 	mov	r9, r0                                        
    pathnamelen -= len;                                               
a0008ac8:	e59db03c 	ldr	fp, [sp, #60]	; 0x3c                          
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
a0008acc:	e3530000 	cmp	r3, #0                                        
a0008ad0:	0a000041 	beq	a0008bdc <IMFS_eval_path+0x16c>               
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
a0008ad4:	e3500000 	cmp	r0, #0                                        
a0008ad8:	0a000006 	beq	a0008af8 <IMFS_eval_path+0x88>                
      if ( node->type == IMFS_DIRECTORY )                             
a0008adc:	e595104c 	ldr	r1, [r5, #76]	; 0x4c                          
a0008ae0:	e3510001 	cmp	r1, #1                                        
a0008ae4:	1a000003 	bne	a0008af8 <IMFS_eval_path+0x88>                
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
a0008ae8:	e1a00004 	mov	r0, r4                                        
a0008aec:	ebffffb2 	bl	a00089bc <IMFS_evaluate_permission>            
a0008af0:	e3500000 	cmp	r0, #0                                        
a0008af4:	0a000068 	beq	a0008c9c <IMFS_eval_path+0x22c>               
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
a0008af8:	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;                                               
a0008afc:	e06b6006 	rsb	r6, fp, r6                                    
    i += len;                                                         
a0008b00:	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;                                      
a0008b04:	e5945000 	ldr	r5, [r4]                                      
                                                                      
    switch( type ) {                                                  
a0008b08:	0a000014 	beq	a0008b60 <IMFS_eval_path+0xf0>                
a0008b0c:	e3590004 	cmp	r9, #4                                        
a0008b10:	0a000036 	beq	a0008bf0 <IMFS_eval_path+0x180>               
a0008b14:	e3590002 	cmp	r9, #2                                        
a0008b18:	1a000037 	bne	a0008bfc <IMFS_eval_path+0x18c>               
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
a0008b1c:	e59fc194 	ldr	ip, [pc, #404]	; a0008cb8 <IMFS_eval_path+0x248>
a0008b20:	e59c3000 	ldr	r3, [ip]                                      
a0008b24:	e5933018 	ldr	r3, [r3, #24]                                 
a0008b28:	e1550003 	cmp	r5, r3                                        
a0008b2c:	0a000032 	beq	a0008bfc <IMFS_eval_path+0x18c>               
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
a0008b30:	e594e010 	ldr	lr, [r4, #16]                                 
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
a0008b34:	e59e301c 	ldr	r3, [lr, #28]                                 
a0008b38:	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;                
a0008b3c:	028dc028 	addeq	ip, sp, #40	; 0x28                          
a0008b40:	028ee008 	addeq	lr, lr, #8                                  
a0008b44:	0a000037 	beq	a0008c28 <IMFS_eval_path+0x1b8>               
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
a0008b48:	e5955008 	ldr	r5, [r5, #8]                                  
a0008b4c:	e3550000 	cmp	r5, #0                                        
a0008b50:	1a000024 	bne	a0008be8 <IMFS_eval_path+0x178>               
            rtems_set_errno_and_return_minus_one( ENOENT );           
a0008b54:	eb000ffb 	bl	a000cb48 <__errno>                             
a0008b58:	e5809000 	str	r9, [r0]                                      
a0008b5c:	ea000051 	b	a0008ca8 <IMFS_eval_path+0x238>                 
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
a0008b60:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
a0008b64:	e3530003 	cmp	r3, #3                                        
a0008b68:	1a000004 	bne	a0008b80 <IMFS_eval_path+0x110>               
          IMFS_evaluate_hard_link( pathloc, 0 );                      
a0008b6c:	e1a00004 	mov	r0, r4                                        
a0008b70:	e3a01000 	mov	r1, #0                                        
a0008b74:	ebffffaa 	bl	a0008a24 <IMFS_evaluate_hard_link>             
          node = pathloc->node_access;                                
a0008b78:	e5945000 	ldr	r5, [r4]                                      
a0008b7c:	ea000008 	b	a0008ba4 <IMFS_eval_path+0x134>                 
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
a0008b80:	e3530004 	cmp	r3, #4                                        
a0008b84:	1a000006 	bne	a0008ba4 <IMFS_eval_path+0x134>               
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
a0008b88:	e1a00004 	mov	r0, r4                                        
a0008b8c:	e3a01000 	mov	r1, #0                                        
a0008b90:	eb000049 	bl	a0008cbc <IMFS_evaluate_sym_link>              
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
          if ( result == -1 )                                         
a0008b94:	e3700001 	cmn	r0, #1                                        
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
a0008b98:	e1a0b000 	mov	fp, r0                                        
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
a0008b9c:	e5945000 	ldr	r5, [r4]                                      
          if ( result == -1 )                                         
a0008ba0:	0a000041 	beq	a0008cac <IMFS_eval_path+0x23c>               
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
a0008ba4:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
a0008ba8:	e3530001 	cmp	r3, #1                                        
a0008bac:	0a000002 	beq	a0008bbc <IMFS_eval_path+0x14c>               
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
a0008bb0:	eb000fe4 	bl	a000cb48 <__errno>                             
a0008bb4:	e3a03014 	mov	r3, #20                                       
a0008bb8:	ea000039 	b	a0008ca4 <IMFS_eval_path+0x234>                 
                                                                      
        /*                                                            
         *  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 ) {                   
a0008bbc:	e595e05c 	ldr	lr, [r5, #92]	; 0x5c                          
a0008bc0:	e35e0000 	cmp	lr, #0                                        
a0008bc4:	1a000015 	bne	a0008c20 <IMFS_eval_path+0x1b0>               
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
a0008bc8:	e1a00005 	mov	r0, r5                                        
a0008bcc:	e1a0100a 	mov	r1, sl                                        
a0008bd0:	eb000149 	bl	a00090fc <IMFS_find_match_in_dir>              
        if ( !node )                                                  
a0008bd4:	e2505000 	subs	r5, r0, #0                                   
a0008bd8:	1a000002 	bne	a0008be8 <IMFS_eval_path+0x178>               
          rtems_set_errno_and_return_minus_one( ENOENT );             
a0008bdc:	eb000fd9 	bl	a000cb48 <__errno>                             
a0008be0:	e3a03002 	mov	r3, #2                                        
a0008be4:	ea00002e 	b	a0008ca4 <IMFS_eval_path+0x234>                 
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
a0008be8:	e5845000 	str	r5, [r4]                                      
a0008bec:	ea000002 	b	a0008bfc <IMFS_eval_path+0x18c>                 
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
a0008bf0:	eb000fd4 	bl	a000cb48 <__errno>                             
a0008bf4:	e3a0305b 	mov	r3, #91	; 0x5b                                
a0008bf8:	ea000029 	b	a0008ca4 <IMFS_eval_path+0x234>                 
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
a0008bfc:	e3590004 	cmp	r9, #4                                        
a0008c00:	13590000 	cmpne	r9, #0                                      
a0008c04:	1affffa7 	bne	a0008aa8 <IMFS_eval_path+0x38>                
   *  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 ) {                               
a0008c08:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
a0008c0c:	e3530001 	cmp	r3, #1                                        
a0008c10:	1a000019 	bne	a0008c7c <IMFS_eval_path+0x20c>               
    if ( node->info.directory.mt_fs != NULL ) {                       
a0008c14:	e595e05c 	ldr	lr, [r5, #92]	; 0x5c                          
a0008c18:	e35e0000 	cmp	lr, #0                                        
a0008c1c:	0a000016 	beq	a0008c7c <IMFS_eval_path+0x20c>               
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
a0008c20:	e28dc028 	add	ip, sp, #40	; 0x28                            
a0008c24:	e28ee01c 	add	lr, lr, #28                                   
a0008c28:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a0008c2c:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0008c30:	e59ee000 	ldr	lr, [lr]                                      
a0008c34:	e58ce000 	str	lr, [ip]                                      
      *pathloc = newloc;                                              
a0008c38:	e28dc028 	add	ip, sp, #40	; 0x28                            
a0008c3c:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a0008c40:	e1a0c004 	mov	ip, r4                                        
a0008c44:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
a0008c48:	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;                                              
a0008c4c:	e58ce000 	str	lr, [ip]                                      
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
a0008c50:	e594300c 	ldr	r3, [r4, #12]                                 
a0008c54:	e59d2000 	ldr	r2, [sp]                                      
a0008c58:	e0610007 	rsb	r0, r1, r7                                    
a0008c5c:	e593c000 	ldr	ip, [r3]                                      
a0008c60:	e0820000 	add	r0, r2, r0                                    
a0008c64:	e0861001 	add	r1, r6, r1                                    
a0008c68:	e1a02008 	mov	r2, r8                                        
a0008c6c:	e1a03004 	mov	r3, r4                                        
a0008c70:	e12fff3c 	blx	ip                                            
a0008c74:	e1a0b000 	mov	fp, r0                                        
a0008c78:	ea00000b 	b	a0008cac <IMFS_eval_path+0x23c>                 
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
a0008c7c:	e1a00004 	mov	r0, r4                                        
a0008c80:	ebffff30 	bl	a0008948 <IMFS_Set_handlers>                   
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
a0008c84:	e1a01008 	mov	r1, r8                                        
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
a0008c88:	e1a0b000 	mov	fp, r0                                        
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
a0008c8c:	e1a00004 	mov	r0, r4                                        
a0008c90:	ebffff49 	bl	a00089bc <IMFS_evaluate_permission>            
a0008c94:	e3500000 	cmp	r0, #0                                        
a0008c98:	1a000003 	bne	a0008cac <IMFS_eval_path+0x23c>               
    rtems_set_errno_and_return_minus_one( EACCES );                   
a0008c9c:	eb000fa9 	bl	a000cb48 <__errno>                             
a0008ca0:	e3a0300d 	mov	r3, #13                                       
a0008ca4:	e5803000 	str	r3, [r0]                                      
a0008ca8:	e3e0b000 	mvn	fp, #0                                        
                                                                      
  return result;                                                      
}                                                                     
a0008cac:	e1a0000b 	mov	r0, fp                                        
a0008cb0:	e28dd040 	add	sp, sp, #64	; 0x40                            
a0008cb4:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

a0008df8 <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 */ ) {
a0008df8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
a0008dfc:	e24dd03c 	sub	sp, sp, #60	; 0x3c                            
a0008e00:	e1a07000 	mov	r7, r0                                        
a0008e04:	e1a04001 	mov	r4, r1                                        
a0008e08:	e1a0a002 	mov	sl, r2                                        
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
a0008e0c:	e5916000 	ldr	r6, [r1]                                      
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
a0008e10:	eb001336 	bl	a000daf0 <strlen>                              
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
a0008e14:	e3a05000 	mov	r5, #0                                        
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
a0008e18:	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 );          
a0008e1c:	e1a01008 	mov	r1, r8                                        
a0008e20:	e28d3038 	add	r3, sp, #56	; 0x38                            
a0008e24:	e0870005 	add	r0, r7, r5                                    
a0008e28:	e1a0200d 	mov	r2, sp                                        
a0008e2c:	eb0000d2 	bl	a000917c <IMFS_get_token>                      
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
a0008e30:	e5943000 	ldr	r3, [r4]                                      
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
a0008e34:	e59db038 	ldr	fp, [sp, #56]	; 0x38                          
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
a0008e38:	e1a09000 	mov	r9, r0                                        
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
a0008e3c:	e3530000 	cmp	r3, #0                                        
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
a0008e40:	e06b8008 	rsb	r8, fp, r8                                    
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
a0008e44:	0a000060 	beq	a0008fcc <IMFS_evaluate_for_make+0x1d4>       
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
a0008e48:	e3500000 	cmp	r0, #0                                        
a0008e4c:	0a000006 	beq	a0008e6c <IMFS_evaluate_for_make+0x74>        
      if ( node->type == IMFS_DIRECTORY )                             
a0008e50:	e596104c 	ldr	r1, [r6, #76]	; 0x4c                          
a0008e54:	e3510001 	cmp	r1, #1                                        
a0008e58:	1a000003 	bne	a0008e6c <IMFS_evaluate_for_make+0x74>        
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
a0008e5c:	e1a00004 	mov	r0, r4                                        
a0008e60:	ebfffed5 	bl	a00089bc <IMFS_evaluate_permission>            
a0008e64:	e3500000 	cmp	r0, #0                                        
a0008e68:	0a00006c 	beq	a0009020 <IMFS_evaluate_for_make+0x228>       
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
a0008e6c:	e5943000 	ldr	r3, [r4]                                      
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
a0008e70:	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;                                      
a0008e74:	e1a06003 	mov	r6, r3                                        
                                                                      
    switch( type ) {                                                  
a0008e78:	e3590004 	cmp	r9, #4                                        
a0008e7c:	979ff109 	ldrls	pc, [pc, r9, lsl #2]                        
a0008e80:	eaffffe5 	b	a0008e1c <IMFS_evaluate_for_make+0x24>          <== NOT EXECUTED
a0008e84:	a0008f90 	.word	0xa0008f90                                  <== NOT EXECUTED
a0008e88:	a0008e1c 	.word	0xa0008e1c                                  <== NOT EXECUTED
a0008e8c:	a0008e98 	.word	0xa0008e98                                  <== NOT EXECUTED
a0008e90:	a0008ed4 	.word	0xa0008ed4                                  <== NOT EXECUTED
a0008e94:	a0008f9c 	.word	0xa0008f9c                                  <== 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 )
a0008e98:	e59f119c 	ldr	r1, [pc, #412]	; a000903c <IMFS_evaluate_for_make+0x244>
a0008e9c:	e5912000 	ldr	r2, [r1]                                      
a0008ea0:	e5922018 	ldr	r2, [r2, #24]                                 
a0008ea4:	e1530002 	cmp	r3, r2                                        
a0008ea8:	0affffdb 	beq	a0008e1c <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){
a0008eac:	e594e010 	ldr	lr, [r4, #16]                                 
a0008eb0:	e59e201c 	ldr	r2, [lr, #28]                                 
a0008eb4:	e1530002 	cmp	r3, r2                                        
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
a0008eb8:	028dc024 	addeq	ip, sp, #36	; 0x24                          
a0008ebc:	028ee008 	addeq	lr, lr, #8                                  
a0008ec0:	0a000019 	beq	a0008f2c <IMFS_evaluate_for_make+0x134>       
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
a0008ec4:	e5936008 	ldr	r6, [r3, #8]                                  
a0008ec8:	e3560000 	cmp	r6, #0                                        
a0008ecc:	1a00002d 	bne	a0008f88 <IMFS_evaluate_for_make+0x190>       
a0008ed0:	ea00003d 	b	a0008fcc <IMFS_evaluate_for_make+0x1d4>         
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
a0008ed4:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
a0008ed8:	e3530003 	cmp	r3, #3                                        
a0008edc:	0a000001 	beq	a0008ee8 <IMFS_evaluate_for_make+0xf0>        
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
a0008ee0:	e3530004 	cmp	r3, #4                                        
a0008ee4:	1a000005 	bne	a0008f00 <IMFS_evaluate_for_make+0x108>       
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
a0008ee8:	e1a00004 	mov	r0, r4                                        
a0008eec:	e3a01000 	mov	r1, #0                                        
a0008ef0:	ebffff93 	bl	a0008d44 <IMFS_evaluate_link>                  
                                                                      
          if ( result == -1 )                                         
a0008ef4:	e3700001 	cmn	r0, #1                                        
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
a0008ef8:	e1a06000 	mov	r6, r0                                        
                                                                      
          if ( result == -1 )                                         
a0008efc:	0a00004b 	beq	a0009030 <IMFS_evaluate_for_make+0x238>       
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
a0008f00:	e5940000 	ldr	r0, [r4]                                      
        if ( !node )                                                  
a0008f04:	e3500000 	cmp	r0, #0                                        
a0008f08:	0a00003c 	beq	a0009000 <IMFS_evaluate_for_make+0x208>       
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
a0008f0c:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
a0008f10:	e3530001 	cmp	r3, #1                                        
a0008f14:	1a000039 	bne	a0009000 <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 ) {                   
a0008f18:	e590e05c 	ldr	lr, [r0, #92]	; 0x5c                          
a0008f1c:	e35e0000 	cmp	lr, #0                                        
a0008f20:	0a000014 	beq	a0008f78 <IMFS_evaluate_for_make+0x180>       
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
a0008f24:	e28dc024 	add	ip, sp, #36	; 0x24                            
a0008f28:	e28ee01c 	add	lr, lr, #28                                   
a0008f2c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a0008f30:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0008f34:	e59ee000 	ldr	lr, [lr]                                      
a0008f38:	e58ce000 	str	lr, [ip]                                      
          *pathloc = newloc;                                          
a0008f3c:	e28dc024 	add	ip, sp, #36	; 0x24                            
a0008f40:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a0008f44:	e1a0c004 	mov	ip, r4                                        
a0008f48:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
a0008f4c:	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;                                          
a0008f50:	e58ce000 	str	lr, [ip]                                      
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
a0008f54:	e594300c 	ldr	r3, [r4, #12]                                 
a0008f58:	e0625005 	rsb	r5, r2, r5                                    
a0008f5c:	e0870005 	add	r0, r7, r5                                    
a0008f60:	e5933004 	ldr	r3, [r3, #4]                                  
a0008f64:	e1a01004 	mov	r1, r4                                        
a0008f68:	e1a0200a 	mov	r2, sl                                        
a0008f6c:	e12fff33 	blx	r3                                            
a0008f70:	e1a06000 	mov	r6, r0                                        
a0008f74:	ea00002d 	b	a0009030 <IMFS_evaluate_for_make+0x238>         
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
a0008f78:	e1a0100d 	mov	r1, sp                                        
a0008f7c:	eb00005e 	bl	a00090fc <IMFS_find_match_in_dir>              
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
a0008f80:	e2506000 	subs	r6, r0, #0                                   
a0008f84:	0a000007 	beq	a0008fa8 <IMFS_evaluate_for_make+0x1b0>       
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
a0008f88:	e5846000 	str	r6, [r4]                                      
a0008f8c:	eaffffa2 	b	a0008e1c <IMFS_evaluate_for_make+0x24>          
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
a0008f90:	eb000eec 	bl	a000cb48 <__errno>                             
a0008f94:	e3a03011 	mov	r3, #17                                       
a0008f98:	ea000022 	b	a0009028 <IMFS_evaluate_for_make+0x230>         
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
a0008f9c:	eb000ee9 	bl	a000cb48 <__errno>                             
a0008fa0:	e3a0305b 	mov	r3, #91	; 0x5b                                
a0008fa4:	ea00001f 	b	a0009028 <IMFS_evaluate_for_make+0x230>         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
a0008fa8:	e59d3038 	ldr	r3, [sp, #56]	; 0x38                          
a0008fac:	e0633005 	rsb	r3, r3, r5                                    
a0008fb0:	e0873003 	add	r3, r7, r3                                    
a0008fb4:	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(                                           
a0008fb8:	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++) {                                      
a0008fbc:	ea000005 	b	a0008fd8 <IMFS_evaluate_for_make+0x1e0>         
    if ( !IMFS_is_separator( path[ i ] ) )                            
a0008fc0:	ebffe6a7 	bl	a0002a64 <rtems_filesystem_is_separator>       
a0008fc4:	e3500000 	cmp	r0, #0                                        
a0008fc8:	1a000002 	bne	a0008fd8 <IMFS_evaluate_for_make+0x1e0>       
      rtems_set_errno_and_return_minus_one( ENOENT );                 
a0008fcc:	eb000edd 	bl	a000cb48 <__errno>                             
a0008fd0:	e3a03002 	mov	r3, #2                                        
a0008fd4:	ea000013 	b	a0009028 <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++) {                                      
a0008fd8:	e4d50001 	ldrb	r0, [r5], #1                                 
a0008fdc:	e3500000 	cmp	r0, #0                                        
a0008fe0:	1afffff6 	bne	a0008fc0 <IMFS_evaluate_for_make+0x1c8>       
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
a0008fe4:	e1a00004 	mov	r0, r4                                        
a0008fe8:	ebfffe56 	bl	a0008948 <IMFS_Set_handlers>                   
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
a0008fec:	e5943000 	ldr	r3, [r4]                                      
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
a0008ff0:	e1a06000 	mov	r6, r0                                        
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
a0008ff4:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
a0008ff8:	e3530001 	cmp	r3, #1                                        
a0008ffc:	0a000002 	beq	a000900c <IMFS_evaluate_for_make+0x214>       
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
a0009000:	eb000ed0 	bl	a000cb48 <__errno>                             
a0009004:	e3a03014 	mov	r3, #20                                       
a0009008:	ea000006 	b	a0009028 <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 ) )   
a000900c:	e1a00004 	mov	r0, r4                                        
a0009010:	e3a01003 	mov	r1, #3                                        
a0009014:	ebfffe68 	bl	a00089bc <IMFS_evaluate_permission>            
a0009018:	e3500000 	cmp	r0, #0                                        
a000901c:	1a000003 	bne	a0009030 <IMFS_evaluate_for_make+0x238>       
    rtems_set_errno_and_return_minus_one( EACCES );                   
a0009020:	eb000ec8 	bl	a000cb48 <__errno>                             
a0009024:	e3a0300d 	mov	r3, #13                                       
a0009028:	e5803000 	str	r3, [r0]                                      
a000902c:	e3e06000 	mvn	r6, #0                                        
                                                                      
  return result;                                                      
}                                                                     
a0009030:	e1a00006 	mov	r0, r6                                        
a0009034:	e28dd03c 	add	sp, sp, #60	; 0x3c                            
a0009038:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

a00089bc <IMFS_evaluate_permission>: uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) )
a00089bc:	e3d13007 	bics	r3, r1, #7                                   
 */                                                                   
int IMFS_evaluate_permission(                                         
  rtems_filesystem_location_info_t  *node,                            
  int                                flags                            
)                                                                     
{                                                                     
a00089c0:	e92d4070 	push	{r4, r5, r6, lr}                             
a00089c4:	e1a04001 	mov	r4, r1                                        
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
a00089c8:	0a000004 	beq	a00089e0 <IMFS_evaluate_permission+0x24>      
    rtems_set_errno_and_return_minus_one( EPERM );                    
a00089cc:	eb00105d 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a00089d0:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
a00089d4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
a00089d8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
a00089dc:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      
  jnode = node->node_access;                                          
a00089e0:	e5905000 	ldr	r5, [r0]                                      
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
a00089e4:	eb0002df 	bl	a0009568 <geteuid>                             
a00089e8:	e1a06000 	mov	r6, r0                                        
  st_gid = getegid();                                                 
a00089ec:	eb0002d8 	bl	a0009554 <getegid>                             
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
a00089f0:	e1d533bc 	ldrh	r3, [r5, #60]	; 0x3c                         
a00089f4:	e1530006 	cmp	r3, r6                                        
    flags_to_test <<= 6;                                              
a00089f8:	01a04304 	lsleq	r4, r4, #6                                  
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
a00089fc:	0a000002 	beq	a0008a0c <IMFS_evaluate_permission+0x50>      
    flags_to_test <<= 6;                                              
  else if ( st_gid == jnode->st_gid )                                 
a0008a00:	e1d533be 	ldrh	r3, [r5, #62]	; 0x3e                         
a0008a04:	e1530000 	cmp	r3, r0                                        
    flags_to_test <<= 3;                                              
a0008a08:	01a04184 	lsleq	r4, r4, #3                                  
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
a0008a0c:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
a0008a10:	e0040000 	and	r0, r4, r0                                    
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
a0008a14:	e1500004 	cmp	r0, r4                                        
a0008a18:	13a00000 	movne	r0, #0                                      
a0008a1c:	03a00001 	moveq	r0, #1                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
a0008a20:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

a0009040 <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 ) {
a0009040:	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;     
a0009044:	e1a0c000 	mov	ip, r0                                        
a0009048:	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                 
)                                                                     
{                                                                     
a000904c:	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;                                   
a0009050:	e1a0e00d 	mov	lr, sp                                        
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
int IMFS_fsunmount(                                                   
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
a0009054:	e1a05000 	mov	r5, r0                                        
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
   loc = temp_mt_entry->mt_fs_root;                                   
a0009058:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a000905c:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
a0009060:	e59c3000 	ldr	r3, [ip]                                      
a0009064:	e58e3000 	str	r3, [lr]                                      
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
a0009068:	e3a03000 	mov	r3, #0                                        
a000906c:	e585301c 	str	r3, [r5, #28]                                 
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
a0009070:	e1a0500d 	mov	r5, sp                                        
a0009074:	e1a0000d 	mov	r0, sp                                        
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
a0009078:	e5946008 	ldr	r6, [r4, #8]                                  
     loc.node_access = (void *)jnode;                                 
a000907c:	e58d4000 	str	r4, [sp]                                      
     IMFS_Set_handlers( &loc );                                       
a0009080:	ebfffe30 	bl	a0008948 <IMFS_Set_handlers>                   
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
a0009084:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
a0009088:	e3530001 	cmp	r3, #1                                        
a000908c:	1a000003 	bne	a00090a0 <IMFS_fsunmount+0x60>                
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
a0009090:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
a0009094:	e2843054 	add	r3, r4, #84	; 0x54                            
a0009098:	e1520003 	cmp	r2, r3                                        
a000909c:	1a000005 	bne	a00090b8 <IMFS_fsunmount+0x78>                
        result = IMFS_unlink( NULL, &loc );                           
a00090a0:	e3a00000 	mov	r0, #0                                        
a00090a4:	e1a0100d 	mov	r1, sp                                        
a00090a8:	ebffe1b0 	bl	a0001770 <IMFS_unlink>                         
        if (result != 0)                                              
a00090ac:	e3500000 	cmp	r0, #0                                        
a00090b0:	1a00000c 	bne	a00090e8 <IMFS_fsunmount+0xa8>                
          return -1;                                                  
        jnode = next;                                                 
a00090b4:	e1a04006 	mov	r4, r6                                        
     }                                                                
     if ( jnode != NULL ) {                                           
a00090b8:	e3540000 	cmp	r4, #0                                        
a00090bc:	0a00000b 	beq	a00090f0 <IMFS_fsunmount+0xb0>                
       if ( jnode->type == IMFS_DIRECTORY ) {                         
a00090c0:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
a00090c4:	e3530001 	cmp	r3, #1                                        
a00090c8:	1affffe9 	bne	a0009074 <IMFS_fsunmount+0x34>                
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
a00090cc:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
a00090d0:	e2842054 	add	r2, r4, #84	; 0x54                            
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
       if ( jnode->type == IMFS_DIRECTORY ) {                         
         if ( jnode_has_children( jnode ) )                           
a00090d4:	e1530002 	cmp	r3, r2                                        
a00090d8:	0affffe5 	beq	a0009074 <IMFS_fsunmount+0x34>                
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
a00090dc:	e2534000 	subs	r4, r3, #0                                   
a00090e0:	1affffe3 	bne	a0009074 <IMFS_fsunmount+0x34>                
a00090e4:	ea000001 	b	a00090f0 <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;                                                  
a00090e8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
a00090ec:	ea000000 	b	a00090f4 <IMFS_fsunmount+0xb4>                  <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
a00090f0:	e1a00004 	mov	r0, r4                                        
}                                                                     
a00090f4:	e28dd014 	add	sp, sp, #20                                   
a00090f8:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

a000b274 <IMFS_memfile_get_block_pointer>: my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
a000b274:	e59f31e4 	ldr	r3, [pc, #484]	; a000b460 <IMFS_memfile_get_block_pointer+0x1ec>
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
a000b278:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
a000b27c:	e5935000 	ldr	r5, [r3]                                      
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
a000b280:	e1a04000 	mov	r4, r0                                        
a000b284:	e1a06001 	mov	r6, r1                                        
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
a000b288:	e1a05125 	lsr	r5, r5, #2                                    
a000b28c:	e2453001 	sub	r3, r5, #1                                    
a000b290:	e1510003 	cmp	r1, r3                                        
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
a000b294:	e1a08002 	mov	r8, r2                                        
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
a000b298:	8a00000e 	bhi	a000b2d8 <IMFS_memfile_get_block_pointer+0x64>
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
a000b29c:	e3520000 	cmp	r2, #0                                        
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
a000b2a0:	e5900058 	ldr	r0, [r0, #88]	; 0x58                          
                                                                      
    if ( malloc_it ) {                                                
a000b2a4:	0a000007 	beq	a000b2c8 <IMFS_memfile_get_block_pointer+0x54>
                                                                      
      if ( !p ) {                                                     
a000b2a8:	e3500000 	cmp	r0, #0                                        
a000b2ac:	1a000003 	bne	a000b2c0 <IMFS_memfile_get_block_pointer+0x4c>
        p = memfile_alloc_block();                                    
a000b2b0:	ebffffe2 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p )                                                     
a000b2b4:	e3500000 	cmp	r0, #0                                        
a000b2b8:	0a000067 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
           return 0;                                                  
        info->indirect = p;                                           
a000b2bc:	e5840058 	str	r0, [r4, #88]	; 0x58                          
      }                                                               
      return &info->indirect[ my_block ];                             
a000b2c0:	e5940058 	ldr	r0, [r4, #88]	; 0x58                          
a000b2c4:	ea000001 	b	a000b2d0 <IMFS_memfile_get_block_pointer+0x5c>  
    }                                                                 
                                                                      
    if ( !p )                                                         
a000b2c8:	e3500000 	cmp	r0, #0                                        
a000b2cc:	0a000062 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
a000b2d0:	e0800106 	add	r0, r0, r6, lsl #2                            
a000b2d4:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
a000b2d8:	e2853001 	add	r3, r5, #1                                    
a000b2dc:	e0030395 	mul	r3, r5, r3                                    
a000b2e0:	e2432001 	sub	r2, r3, #1                                    
a000b2e4:	e1510002 	cmp	r1, r2                                        
a000b2e8:	8a000021 	bhi	a000b374 <IMFS_memfile_get_block_pointer+0x100>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
a000b2ec:	e0656001 	rsb	r6, r5, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b2f0:	e1a00006 	mov	r0, r6                                        
a000b2f4:	e1a01005 	mov	r1, r5                                        
a000b2f8:	eb001449 	bl	a0010424 <__umodsi3>                           
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b2fc:	e1a01005 	mov	r1, r5                                        
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b300:	e1a07000 	mov	r7, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b304:	e1a00006 	mov	r0, r6                                        
a000b308:	eb0013ad 	bl	a00101c4 <__aeabi_uidiv>                       
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
a000b30c:	e3580000 	cmp	r8, #0                                        
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b310:	e1a05000 	mov	r5, r0                                        
                                                                      
    p = info->doubly_indirect;                                        
a000b314:	e594005c 	ldr	r0, [r4, #92]	; 0x5c                          
    if ( malloc_it ) {                                                
a000b318:	0a00000e 	beq	a000b358 <IMFS_memfile_get_block_pointer+0xe4>
                                                                      
      if ( !p ) {                                                     
a000b31c:	e3500000 	cmp	r0, #0                                        
a000b320:	1a000003 	bne	a000b334 <IMFS_memfile_get_block_pointer+0xc0>
        p = memfile_alloc_block();                                    
a000b324:	ebffffc5 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p )                                                     
a000b328:	e3500000 	cmp	r0, #0                                        
a000b32c:	0a00004a 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
           return 0;                                                  
        info->doubly_indirect = p;                                    
a000b330:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
a000b334:	e0804105 	add	r4, r0, r5, lsl #2                            
a000b338:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
      if ( !p1 ) {                                                    
a000b33c:	e3500000 	cmp	r0, #0                                        
a000b340:	1a000009 	bne	a000b36c <IMFS_memfile_get_block_pointer+0xf8>
        p1 = memfile_alloc_block();                                   
a000b344:	ebffffbd 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p1 )                                                    
a000b348:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
a000b34c:	15840000 	strne	r0, [r4]                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
a000b350:	1a000005 	bne	a000b36c <IMFS_memfile_get_block_pointer+0xf8>
a000b354:	ea000040 	b	a000b45c <IMFS_memfile_get_block_pointer+0x1e8> <== NOT EXECUTED
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
a000b358:	e3500000 	cmp	r0, #0                                        
a000b35c:	0a00003e 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
a000b360:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
    if ( !p )                                                         
a000b364:	e3500000 	cmp	r0, #0                                        
a000b368:	0a00003b 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
a000b36c:	e0800107 	add	r0, r0, r7, lsl #2                            
a000b370:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
a000b374:	e2832001 	add	r2, r3, #1                                    
a000b378:	e0020295 	mul	r2, r5, r2                                    
a000b37c:	e2422001 	sub	r2, r2, #1                                    
a000b380:	e1510002 	cmp	r1, r2                                        
a000b384:	8a000033 	bhi	a000b458 <IMFS_memfile_get_block_pointer+0x1e4>
    my_block -= FIRST_TRIPLY_INDIRECT;                                
a000b388:	e0636001 	rsb	r6, r3, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b38c:	e1a00006 	mov	r0, r6                                        
a000b390:	e1a01005 	mov	r1, r5                                        
a000b394:	eb001422 	bl	a0010424 <__umodsi3>                           
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b398:	e1a01005 	mov	r1, r5                                        
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b39c:	e1a0a000 	mov	sl, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
a000b3a0:	e1a00006 	mov	r0, r6                                        
a000b3a4:	eb001386 	bl	a00101c4 <__aeabi_uidiv>                       
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
a000b3a8:	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;                     
a000b3ac:	e1a06000 	mov	r6, r0                                        
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
a000b3b0:	eb001383 	bl	a00101c4 <__aeabi_uidiv>                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
a000b3b4:	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;                       
a000b3b8:	e1a07000 	mov	r7, r0                                        
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
a000b3bc:	e1a00006 	mov	r0, r6                                        
a000b3c0:	eb001417 	bl	a0010424 <__umodsi3>                           
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
a000b3c4:	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;                               
a000b3c8:	e1a05000 	mov	r5, r0                                        
                                                                      
    p = info->triply_indirect;                                        
a000b3cc:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          
                                                                      
    if ( malloc_it ) {                                                
a000b3d0:	0a000016 	beq	a000b430 <IMFS_memfile_get_block_pointer+0x1bc>
      if ( !p ) {                                                     
a000b3d4:	e3500000 	cmp	r0, #0                                        
a000b3d8:	1a000003 	bne	a000b3ec <IMFS_memfile_get_block_pointer+0x178>
        p = memfile_alloc_block();                                    
a000b3dc:	ebffff97 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p )                                                     
a000b3e0:	e3500000 	cmp	r0, #0                                        
a000b3e4:	0a00001c 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
           return 0;                                                  
        info->triply_indirect = p;                                    
a000b3e8:	e5840060 	str	r0, [r4, #96]	; 0x60                          
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
a000b3ec:	e0804107 	add	r4, r0, r7, lsl #2                            
a000b3f0:	e7900107 	ldr	r0, [r0, r7, lsl #2]                          
      if ( !p1 ) {                                                    
a000b3f4:	e3500000 	cmp	r0, #0                                        
a000b3f8:	1a000003 	bne	a000b40c <IMFS_memfile_get_block_pointer+0x198>
        p1 = memfile_alloc_block();                                   
a000b3fc:	ebffff8f 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p1 )                                                    
a000b400:	e3500000 	cmp	r0, #0                                        
a000b404:	0a000014 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
a000b408:	e5840000 	str	r0, [r4]                                      
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
a000b40c:	e0804105 	add	r4, r0, r5, lsl #2                            
a000b410:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
      if ( !p2 ) {                                                    
a000b414:	e3500000 	cmp	r0, #0                                        
a000b418:	1a00000c 	bne	a000b450 <IMFS_memfile_get_block_pointer+0x1dc>
        p2 = memfile_alloc_block();                                   
a000b41c:	ebffff87 	bl	a000b240 <memfile_alloc_block>                 
        if ( !p2 )                                                    
a000b420:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
a000b424:	15840000 	strne	r0, [r4]                                    
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
a000b428:	1a000008 	bne	a000b450 <IMFS_memfile_get_block_pointer+0x1dc>
a000b42c:	ea00000a 	b	a000b45c <IMFS_memfile_get_block_pointer+0x1e8> <== NOT EXECUTED
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
a000b430:	e3500000 	cmp	r0, #0                                        
a000b434:	0a000008 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
a000b438:	e7900107 	ldr	r0, [r0, r7, lsl #2]                          
    if ( !p1 )                                                        
a000b43c:	e3500000 	cmp	r0, #0                                        
a000b440:	0a000005 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
a000b444:	e7900105 	ldr	r0, [r0, r5, lsl #2]                          
    if ( !p2 )                                                        
a000b448:	e3500000 	cmp	r0, #0                                        
a000b44c:	0a000002 	beq	a000b45c <IMFS_memfile_get_block_pointer+0x1e8>
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
a000b450:	e080010a 	add	r0, r0, sl, lsl #2                            
a000b454:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
a000b458:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
a000b45c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

a000160c <IMFS_mount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
a000160c:	e5903008 	ldr	r3, [r0, #8]                                  
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_mount(                                                       
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
a0001610:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
a0001614:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
a0001618:	e3520001 	cmp	r2, #1                                        
a000161c:	0a000004 	beq	a0001634 <IMFS_mount+0x28>                    
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
a0001620:	eb002d48 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a0001624:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
a0001628:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
a000162c:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
a0001630:	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;                              
a0001634:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
  return 0;                                                           
a0001638:	e3a00000 	mov	r0, #0                                        
}                                                                     
a000163c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

a0003f98 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
a0003f98:	e92d4030 	push	{r4, r5, lr}                                 
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
a0003f9c:	e59f50e0 	ldr	r5, [pc, #224]	; a0004084 <IMFS_print_jnode+0xec>
 *  This routine prints the contents of the specified jnode.          
 */                                                                   
void IMFS_print_jnode(                                                
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
a0003fa0:	e1a04000 	mov	r4, r0                                        
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
a0003fa4:	e280000c 	add	r0, r0, #12                                   
a0003fa8:	e5953000 	ldr	r3, [r5]                                      
a0003fac:	e5931008 	ldr	r1, [r3, #8]                                  
a0003fb0:	eb0034c5 	bl	a00112cc <fputs>                               
  switch( the_jnode->type ) {                                         
a0003fb4:	e594204c 	ldr	r2, [r4, #76]	; 0x4c                          
a0003fb8:	e2423001 	sub	r3, r2, #1                                    
a0003fbc:	e3530006 	cmp	r3, #6                                        
a0003fc0:	979ff103 	ldrls	pc, [pc, r3, lsl #2]                        
a0003fc4:	ea000026 	b	a0004064 <IMFS_print_jnode+0xcc>                <== NOT EXECUTED
a0003fc8:	a0003fe4 	.word	0xa0003fe4                                  <== NOT EXECUTED
a0003fcc:	a0003ff8 	.word	0xa0003ff8                                  <== NOT EXECUTED
a0003fd0:	a0004044 	.word	0xa0004044                                  <== NOT EXECUTED
a0003fd4:	a0004044 	.word	0xa0004044                                  <== NOT EXECUTED
a0003fd8:	a000402c 	.word	0xa000402c                                  <== NOT EXECUTED
a0003fdc:	a0004010 	.word	0xa0004010                                  <== NOT EXECUTED
a0003fe0:	a0004050 	.word	0xa0004050                                  <== NOT EXECUTED
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
a0003fe4:	e5953000 	ldr	r3, [r5]                                      
a0003fe8:	e3a0002f 	mov	r0, #47	; 0x2f                                
a0003fec:	e5931008 	ldr	r1, [r3, #8]                                  
a0003ff0:	eb003480 	bl	a00111f8 <fputc>                               
      break;                                                          
a0003ff4:	ea00001f 	b	a0004078 <IMFS_print_jnode+0xe0>                
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
a0003ff8:	e5953000 	ldr	r3, [r5]                                      
a0003ffc:	e59f1084 	ldr	r1, [pc, #132]	; a0004088 <IMFS_print_jnode+0xf0>
a0004000:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
a0004004:	e5930008 	ldr	r0, [r3, #8]                                  
a0004008:	e5943054 	ldr	r3, [r4, #84]	; 0x54                          
a000400c:	ea000004 	b	a0004024 <IMFS_print_jnode+0x8c>                
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
a0004010:	e5953000 	ldr	r3, [r5]                                      
a0004014:	e59f1070 	ldr	r1, [pc, #112]	; a000408c <IMFS_print_jnode+0xf4>
a0004018:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
a000401c:	e5930008 	ldr	r0, [r3, #8]                                  
a0004020:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
a0004024:	eb003453 	bl	a0011178 <fprintf>                             
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
a0004028:	ea000012 	b	a0004078 <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 ")",                          
a000402c:	e5953000 	ldr	r3, [r5]                                      
a0004030:	e59f1058 	ldr	r1, [pc, #88]	; a0004090 <IMFS_print_jnode+0xf8>
a0004034:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
a0004038:	e5930008 	ldr	r0, [r3, #8]                                  
a000403c:	eb00344d 	bl	a0011178 <fprintf>                             
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
a0004040:	ea00000c 	b	a0004078 <IMFS_print_jnode+0xe0>                
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
a0004044:	e5953000 	ldr	r3, [r5]                                      
a0004048:	e59f0044 	ldr	r0, [pc, #68]	; a0004094 <IMFS_print_jnode+0xfc>
a000404c:	ea000001 	b	a0004058 <IMFS_print_jnode+0xc0>                
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
a0004050:	e5953000 	ldr	r3, [r5]                                      
a0004054:	e59f003c 	ldr	r0, [pc, #60]	; a0004098 <IMFS_print_jnode+0x100>
a0004058:	e5931008 	ldr	r1, [r3, #8]                                  
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
a000405c:	e8bd4030 	pop	{r4, r5, lr}                                  
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
a0004060:	ea003499 	b	a00112cc <fputs>                                
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
a0004064:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
a0004068:	e59f102c 	ldr	r1, [pc, #44]	; a000409c <IMFS_print_jnode+0x104><== NOT EXECUTED
a000406c:	e5930008 	ldr	r0, [r3, #8]                                  <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
a0004070:	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 );            
a0004074:	ea00343f 	b	a0011178 <fprintf>                              <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
a0004078:	e59f0020 	ldr	r0, [pc, #32]	; a00040a0 <IMFS_print_jnode+0x108>
}                                                                     
a000407c:	e8bd4030 	pop	{r4, r5, lr}                                  
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
a0004080:	ea003b6b 	b	a0012e34 <puts>                                 
                                                                      

a0009328 <IMFS_stat>: { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access;
a0009328:	e5903000 	ldr	r3, [r0]                                      
                                                                      
int IMFS_stat(                                                        
  rtems_filesystem_location_info_t *loc,                              
  struct stat                      *buf                               
)                                                                     
{                                                                     
a000932c:	e92d4800 	push	{fp, lr}                                     
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
a0009330:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
a0009334:	e2422002 	sub	r2, r2, #2                                    
a0009338:	e3520005 	cmp	r2, #5                                        
a000933c:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
a0009340:	ea000012 	b	a0009390 <IMFS_stat+0x68>                       <== NOT EXECUTED
a0009344:	a000935c 	.word	0xa000935c                                  <== NOT EXECUTED
a0009348:	a0009390 	.word	0xa0009390                                  <== NOT EXECUTED
a000934c:	a000937c 	.word	0xa000937c                                  <== NOT EXECUTED
a0009350:	a0009370 	.word	0xa0009370                                  <== NOT EXECUTED
a0009354:	a0009370 	.word	0xa0009370                                  <== NOT EXECUTED
a0009358:	a000937c 	.word	0xa000937c                                  <== NOT EXECUTED
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
a000935c:	e5932054 	ldr	r2, [r3, #84]	; 0x54                          
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
a0009360:	e593c050 	ldr	ip, [r3, #80]	; 0x50                          
a0009364:	e581201c 	str	r2, [r1, #28]                                 
a0009368:	e581c018 	str	ip, [r1, #24]                                 
      break;                                                          
a000936c:	ea00000c 	b	a00093a4 <IMFS_stat+0x7c>                       
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
a0009370:	e283c050 	add	ip, r3, #80	; 0x50                            
a0009374:	e89c1800 	ldm	ip, {fp, ip}                                  
a0009378:	ea000001 	b	a0009384 <IMFS_stat+0x5c>                       
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
a000937c:	e3a0b000 	mov	fp, #0                                        
a0009380:	e3a0c000 	mov	ip, #0                                        
a0009384:	e581b020 	str	fp, [r1, #32]                                 
a0009388:	e581c024 	str	ip, [r1, #36]	; 0x24                          
      break;                                                          
a000938c:	ea000004 	b	a00093a4 <IMFS_stat+0x7c>                       
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
a0009390:	eb000dec 	bl	a000cb48 <__errno>                             
a0009394:	e3a03086 	mov	r3, #134	; 0x86                               
a0009398:	e5803000 	str	r3, [r0]                                      
a000939c:	e3e00000 	mvn	r0, #0                                        
a00093a0:	e8bd8800 	pop	{fp, pc}                                      
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
a00093a4:	e5902010 	ldr	r2, [r0, #16]                                 
a00093a8:	e59f0054 	ldr	r0, [pc, #84]	; a0009404 <IMFS_stat+0xdc>     
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
a00093ac:	e5922034 	ldr	r2, [r2, #52]	; 0x34                          
a00093b0:	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 =                                                       
a00093b4:	e5810000 	str	r0, [r1]                                      
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
                                                                      
  return 0;                                                           
a00093b8:	e3a00000 	mov	r0, #0                                        
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
a00093bc:	e5812004 	str	r2, [r1, #4]                                  
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
a00093c0:	e5932030 	ldr	r2, [r3, #48]	; 0x30                          
a00093c4:	e581200c 	str	r2, [r1, #12]                                 
  buf->st_nlink = the_jnode->st_nlink;                                
a00093c8:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
a00093cc:	e1c121b0 	strh	r2, [r1, #16]                                
  buf->st_ino   = the_jnode->st_ino;                                  
a00093d0:	e5932038 	ldr	r2, [r3, #56]	; 0x38                          
a00093d4:	e5812008 	str	r2, [r1, #8]                                  
  buf->st_uid   = the_jnode->st_uid;                                  
a00093d8:	e1d323bc 	ldrh	r2, [r3, #60]	; 0x3c                         
a00093dc:	e1c121b2 	strh	r2, [r1, #18]                                
  buf->st_gid   = the_jnode->st_gid;                                  
a00093e0:	e1d323be 	ldrh	r2, [r3, #62]	; 0x3e                         
a00093e4:	e1c121b4 	strh	r2, [r1, #20]                                
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
a00093e8:	e5932040 	ldr	r2, [r3, #64]	; 0x40                          
a00093ec:	e5812028 	str	r2, [r1, #40]	; 0x28                          
  buf->st_mtime = the_jnode->stat_mtime;                              
a00093f0:	e5932044 	ldr	r2, [r3, #68]	; 0x44                          
  buf->st_ctime = the_jnode->stat_ctime;                              
a00093f4:	e5933048 	ldr	r3, [r3, #72]	; 0x48                          
  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;                              
a00093f8:	e5812030 	str	r2, [r1, #48]	; 0x30                          
  buf->st_ctime = the_jnode->stat_ctime;                              
a00093fc:	e5813038 	str	r3, [r1, #56]	; 0x38                          
                                                                      
  return 0;                                                           
}                                                                     
a0009400:	e8bd8800 	pop	{fp, pc}                                      
                                                                      

a0001770 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
a0001770:	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;                                            
a0001774:	e5915000 	ldr	r5, [r1]                                      
                                                                      
int IMFS_unlink(                                                      
  rtems_filesystem_location_info_t  *parentloc, /* IN */              
  rtems_filesystem_location_info_t  *loc        /* IN */              
)                                                                     
{                                                                     
a0001778:	e24dd01c 	sub	sp, sp, #28                                   
a000177c:	e1a06000 	mov	r6, r0                                        
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
a0001780:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
                                                                      
int IMFS_unlink(                                                      
  rtems_filesystem_location_info_t  *parentloc, /* IN */              
  rtems_filesystem_location_info_t  *loc        /* IN */              
)                                                                     
{                                                                     
a0001784:	e1a04001 	mov	r4, r1                                        
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
a0001788:	e3530003 	cmp	r3, #3                                        
a000178c:	1a000024 	bne	a0001824 <IMFS_unlink+0xb4>                   
                                                                      
    if ( !node->info.hard_link.link_node )                            
a0001790:	e595e050 	ldr	lr, [r5, #80]	; 0x50                          
a0001794:	e35e0000 	cmp	lr, #0                                        
a0001798:	1a000003 	bne	a00017ac <IMFS_unlink+0x3c>                   
      rtems_set_errno_and_return_minus_one( EINVAL );                 
a000179c:	eb002ce9 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a00017a0:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
a00017a4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
a00017a8:	ea000023 	b	a000183c <IMFS_unlink+0xcc>                     <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
a00017ac:	e1a0c00d 	mov	ip, sp                                        
a00017b0:	e1a07001 	mov	r7, r1                                        
a00017b4:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
a00017b8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a00017bc:	e5973000 	ldr	r3, [r7]                                      
    the_link.node_access = node->info.hard_link.link_node;            
a00017c0:	e28d701c 	add	r7, sp, #28                                   
a00017c4:	e527e01c 	str	lr, [r7, #-28]!                               
    IMFS_Set_handlers( &the_link );                                   
a00017c8:	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;                                                  
a00017cc:	e58c3000 	str	r3, [ip]                                      
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
a00017d0:	eb001c5c 	bl	a0008948 <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)               
a00017d4:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
a00017d8:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
a00017dc:	e3520001 	cmp	r2, #1                                        
a00017e0:	1a000007 	bne	a0001804 <IMFS_unlink+0x94>                   
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
a00017e4:	e59d3008 	ldr	r3, [sp, #8]                                  
a00017e8:	e1a00006 	mov	r0, r6                                        
a00017ec:	e1a0100d 	mov	r1, sp                                        
a00017f0:	e5933034 	ldr	r3, [r3, #52]	; 0x34                          
a00017f4:	e12fff33 	blx	r3                                            
        if ( result != 0 )                                            
a00017f8:	e3500000 	cmp	r0, #0                                        
a00017fc:	0a000008 	beq	a0001824 <IMFS_unlink+0xb4>                   
a0001800:	ea00000d 	b	a000183c <IMFS_unlink+0xcc>                     
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
a0001804:	e2422001 	sub	r2, r2, #1                                    
a0001808:	e1c323b4 	strh	r2, [r3, #52]	; 0x34                         
        IMFS_update_ctime( node->info.hard_link.link_node );          
a000180c:	e28d0014 	add	r0, sp, #20                                   
a0001810:	e3a01000 	mov	r1, #0                                        
a0001814:	eb000139 	bl	a0001d00 <gettimeofday>                        
a0001818:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
a000181c:	e59d2014 	ldr	r2, [sp, #20]                                 
a0001820:	e5832048 	str	r2, [r3, #72]	; 0x48                          
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
a0001824:	e5943008 	ldr	r3, [r4, #8]                                  
a0001828:	e1a00006 	mov	r0, r6                                        
a000182c:	e1a01004 	mov	r1, r4                                        
a0001830:	e5933034 	ldr	r3, [r3, #52]	; 0x34                          
a0001834:	e12fff33 	blx	r3                                            
                                                                      
  return result;                                                      
a0001838:	ea000000 	b	a0001840 <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;                                                
a000183c:	e3e00000 	mvn	r0, #0                                        
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
                                                                      
  return result;                                                      
}                                                                     
a0001840:	e28dd01c 	add	sp, sp, #28                                   
a0001844:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a0001848 <IMFS_unmount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
a0001848:	e5903008 	ldr	r3, [r0, #8]                                  
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_unmount(                                                     
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
a000184c:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
a0001850:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
a0001854:	e3520001 	cmp	r2, #1                                        
a0001858:	0a000002 	beq	a0001868 <IMFS_unmount+0x20>                  
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
a000185c:	eb002cb9 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a0001860:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
a0001864:	ea000004 	b	a000187c <IMFS_unmount+0x34>                    <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
a0001868:	e593205c 	ldr	r2, [r3, #92]	; 0x5c                          
a000186c:	e3520000 	cmp	r2, #0                                        
a0001870:	1a000004 	bne	a0001888 <IMFS_unmount+0x40>                  
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
a0001874:	eb002cb3 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a0001878:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
a000187c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
a0001880:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
a0001884:	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;                                  
a0001888:	e3a00000 	mov	r0, #0                                        
a000188c:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
                                                                      
  return 0;                                                           
}                                                                     
a0001890:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

a0001b58 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
a0001b58:	e92d4fff 	push	{r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
a0001b5c:	e59030bc 	ldr	r3, [r0, #188]	; 0xbc                         
  size = Stack_check_usable_stack_size(stack);                        
a0001b60:	e59070b8 	ldr	r7, [r0, #184]	; 0xb8                         
static rtems_printk_plugin_t   print_handler;                         
                                                                      
void Stack_check_Dump_threads_usage(                                  
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
a0001b64:	e1a05000 	mov	r5, r0                                        
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
a0001b68:	e2832010 	add	r2, r3, #16                                   
  size = Stack_check_usable_stack_size(stack);                        
a0001b6c:	e2477010 	sub	r7, r7, #16                                   
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
a0001b70:	e3c71003 	bic	r1, r7, #3                                    
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
a0001b74:	e590b0e8 	ldr	fp, [r0, #232]	; 0xe8                         
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
a0001b78:	e2820010 	add	r0, r2, #16                                   
    for (ebase = base + length; base < ebase; base++)                 
a0001b7c:	e0800001 	add	r0, r0, r1                                    
 *  Try to print out how much stack was actually used by the task.    
 */                                                                   
static void                   *print_context;                         
static rtems_printk_plugin_t   print_handler;                         
                                                                      
void Stack_check_Dump_threads_usage(                                  
a0001b80:	e2833020 	add	r3, r3, #32                                   
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
a0001b84:	e59f10bc 	ldr	r1, [pc, #188]	; a0001c48 <Stack_check_Dump_threads_usage+0xf0>
a0001b88:	ea000002 	b	a0001b98 <Stack_check_Dump_threads_usage+0x40>  
a0001b8c:	e493c004 	ldr	ip, [r3], #4                                  
a0001b90:	e15c0001 	cmp	ip, r1                                        
a0001b94:	1a000004 	bne	a0001bac <Stack_check_Dump_threads_usage+0x54>
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
a0001b98:	e1530000 	cmp	r3, r0                                        
      if (*base != U32_PATTERN)                                       
a0001b9c:	e1a06003 	mov	r6, r3                                        
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
a0001ba0:	3afffff9 	bcc	a0001b8c <Stack_check_Dump_threads_usage+0x34>
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
  else                                                                
    used = 0;                                                         
a0001ba4:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
a0001ba8:	ea000002 	b	a0001bb8 <Stack_check_Dump_threads_usage+0x60>  <== NOT EXECUTED
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
a0001bac:	e3560000 	cmp	r6, #0                                        
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
a0001bb0:	10822007 	addne	r2, r2, r7                                  
a0001bb4:	10666002 	rsbne	r6, r6, r2                                  
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
a0001bb8:	e5958008 	ldr	r8, [r5, #8]                                  
a0001bbc:	e59f4088 	ldr	r4, [pc, #136]	; a0001c4c <Stack_check_Dump_threads_usage+0xf4>
a0001bc0:	e3a01005 	mov	r1, #5                                        
a0001bc4:	e28d2008 	add	r2, sp, #8                                    
a0001bc8:	e1a00008 	mov	r0, r8                                        
a0001bcc:	e8940600 	ldm	r4, {r9, sl}                                  
a0001bd0:	eb001655 	bl	a000752c <rtems_object_get_name>               
a0001bd4:	e59f1074 	ldr	r1, [pc, #116]	; a0001c50 <Stack_check_Dump_threads_usage+0xf8>
a0001bd8:	e1a03000 	mov	r3, r0                                        
a0001bdc:	e1a02008 	mov	r2, r8                                        
a0001be0:	e1a0000a 	mov	r0, sl                                        
a0001be4:	e12fff39 	blx	r9                                            
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
a0001be8:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         
a0001bec:	e59520bc 	ldr	r2, [r5, #188]	; 0xbc                         
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
a0001bf0:	e58db000 	str	fp, [sp]                                      
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
a0001bf4:	e2433001 	sub	r3, r3, #1                                    
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
a0001bf8:	e0823003 	add	r3, r2, r3                                    
a0001bfc:	e58d7004 	str	r7, [sp, #4]                                  
a0001c00:	e594c000 	ldr	ip, [r4]                                      
a0001c04:	e5940004 	ldr	r0, [r4, #4]                                  
a0001c08:	e59f1044 	ldr	r1, [pc, #68]	; a0001c54 <Stack_check_Dump_threads_usage+0xfc>
a0001c0c:	e12fff3c 	blx	ip                                            
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
a0001c10:	e5943008 	ldr	r3, [r4, #8]                                  
a0001c14:	e3530000 	cmp	r3, #0                                        
a0001c18:	1a000004 	bne	a0001c30 <Stack_check_Dump_threads_usage+0xd8>
    (*print_handler)( print_context, "Unavailable\n" );               
a0001c1c:	e5943000 	ldr	r3, [r4]                                      <== NOT EXECUTED
a0001c20:	e5940004 	ldr	r0, [r4, #4]                                  <== NOT EXECUTED
a0001c24:	e59f102c 	ldr	r1, [pc, #44]	; a0001c58 <Stack_check_Dump_threads_usage+0x100><== NOT EXECUTED
a0001c28:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a0001c2c:	ea000004 	b	a0001c44 <Stack_check_Dump_threads_usage+0xec>  <== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
a0001c30:	e5943000 	ldr	r3, [r4]                                      
a0001c34:	e5940004 	ldr	r0, [r4, #4]                                  
a0001c38:	e59f101c 	ldr	r1, [pc, #28]	; a0001c5c <Stack_check_Dump_threads_usage+0x104>
a0001c3c:	e1a02006 	mov	r2, r6                                        
a0001c40:	e12fff33 	blx	r3                                            
  }                                                                   
                                                                      
                                                                      
}                                                                     
a0001c44:	e8bd8fff 	pop	{r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
                                                                      

a0014b6c <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) {
a0014b6c:	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                    
)                                                                     
{                                                                     
a0014b70:	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 ) {             
a0014b74:	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                    
)                                                                     
{                                                                     
a0014b78:	e1a06000 	mov	r6, r0                                        
a0014b7c:	e1a0a001 	mov	sl, r1                                        
a0014b80:	e1a07002 	mov	r7, r2                                        
a0014b84:	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 ) {             
a0014b88:	8a000013 	bhi	a0014bdc <_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 ) {         
a0014b8c:	e5905048 	ldr	r5, [r0, #72]	; 0x48                          
a0014b90:	e3550000 	cmp	r5, #0                                        
a0014b94:	0a000009 	beq	a0014bc0 <_CORE_message_queue_Broadcast+0x54> 
    *count = 0;                                                       
a0014b98:	e3a00000 	mov	r0, #0                                        
a0014b9c:	e5880000 	str	r0, [r8]                                      
    return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                      
a0014ba0:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
a0014ba4:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a0014ba8:	e1a0100a 	mov	r1, sl                                        
a0014bac:	e1a02007 	mov	r2, r7                                        
a0014bb0:	eb00224a 	bl	a001d4e0 <memcpy>                              
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
a0014bb4:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
a0014bb8:	e2855001 	add	r5, r5, #1                                    
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
a0014bbc:	e5837000 	str	r7, [r3]                                      
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
a0014bc0:	e1a00006 	mov	r0, r6                                        
a0014bc4:	eb000a9e 	bl	a0017644 <_Thread_queue_Dequeue>               
a0014bc8:	e2504000 	subs	r4, r0, #0                                   
a0014bcc:	1afffff4 	bne	a0014ba4 <_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;                                        
a0014bd0:	e5885000 	str	r5, [r8]                                      
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
a0014bd4:	e1a00004 	mov	r0, r4                                        
a0014bd8:	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;                    
a0014bdc:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
a0014be0:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

a000dc38 <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) {
a000dc38:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
a000dc3c:	e3130003 	tst	r3, #3                                        
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
a000dc40:	e1a04000 	mov	r4, r0                                        
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
a000dc44:	e3a00000 	mov	r0, #0                                        
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
a000dc48:	e1a06002 	mov	r6, r2                                        
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
a000dc4c:	e5842044 	str	r2, [r4, #68]	; 0x44                          
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
a000dc50:	e1a05001 	mov	r5, r1                                        
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
a000dc54:	e5840048 	str	r0, [r4, #72]	; 0x48                          
  the_message_queue->maximum_message_size       = maximum_message_size;
a000dc58:	e584304c 	str	r3, [r4, #76]	; 0x4c                          
    CORE_message_queue_Control        *the_message_queue,             
    CORE_message_queue_Notify_Handler  the_handler,                   
    void                              *the_argument                   
  )                                                                   
  {                                                                   
    the_message_queue->notify_handler  = the_handler;                 
a000dc5c:	e5840060 	str	r0, [r4, #96]	; 0x60                          
    the_message_queue->notify_argument = the_argument;                
a000dc60:	e5840064 	str	r0, [r4, #100]	; 0x64                         
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
a000dc64:	01a02003 	moveq	r2, r3                                      
a000dc68:	0a000003 	beq	a000dc7c <_CORE_message_queue_Initialize+0x44>
    allocated_message_size += sizeof(uint32_t);                       
a000dc6c:	e2832004 	add	r2, r3, #4                                    
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
a000dc70:	e3c22003 	bic	r2, r2, #3                                    
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
a000dc74:	e1520003 	cmp	r2, r3                                        
a000dc78:	3a00001e 	bcc	a000dcf8 <_CORE_message_queue_Initialize+0xc0>
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
a000dc7c:	e2827014 	add	r7, r2, #20                                   
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
a000dc80:	e0000796 	mul	r0, r6, r7                                    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
a000dc84:	e1500002 	cmp	r0, r2                                        
a000dc88:	3a000018 	bcc	a000dcf0 <_CORE_message_queue_Initialize+0xb8>
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
a000dc8c:	eb000b53 	bl	a00109e0 <_Workspace_Allocate>                 
                                                                      
  if (the_message_queue->message_buffers == 0)                        
a000dc90:	e3500000 	cmp	r0, #0                                        
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
a000dc94:	e1a01000 	mov	r1, r0                                        
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
a000dc98:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
a000dc9c:	0a000015 	beq	a000dcf8 <_CORE_message_queue_Initialize+0xc0>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
a000dca0:	e2840068 	add	r0, r4, #104	; 0x68                           
a000dca4:	e1a02006 	mov	r2, r6                                        
a000dca8:	e1a03007 	mov	r3, r7                                        
a000dcac:	eb0014ce 	bl	a0012fec <_Chain_Initialize>                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
a000dcb0:	e2843054 	add	r3, r4, #84	; 0x54                            
                                                                      
  head->next = tail;                                                  
a000dcb4:	e5843050 	str	r3, [r4, #80]	; 0x50                          
  head->previous = NULL;                                              
a000dcb8:	e3a03000 	mov	r3, #0                                        
a000dcbc:	e5843054 	str	r3, [r4, #84]	; 0x54                          
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
a000dcc0:	e2843050 	add	r3, r4, #80	; 0x50                            
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
a000dcc4:	e5843058 	str	r3, [r4, #88]	; 0x58                          
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
a000dcc8:	e5951000 	ldr	r1, [r5]                                      
a000dccc:	e1a00004 	mov	r0, r4                                        
a000dcd0:	e3a02080 	mov	r2, #128	; 0x80                               
a000dcd4:	e3510001 	cmp	r1, #1                                        
a000dcd8:	13a01000 	movne	r1, #0                                      
a000dcdc:	03a01001 	moveq	r1, #1                                      
a000dce0:	e3a03006 	mov	r3, #6                                        
a000dce4:	eb0008c9 	bl	a0010010 <_Thread_queue_Initialize>            
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
a000dce8:	e3a00001 	mov	r0, #1                                        
a000dcec:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
a000dcf0:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
a000dcf4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
}                                                                     
a000dcf8:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a0006c90 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
a0006c90:	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;              
a0006c94:	e5903014 	ldr	r3, [r0, #20]                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
a0006c98:	e24dd030 	sub	sp, sp, #48	; 0x30                            
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
a0006c9c:	e59f44c8 	ldr	r4, [pc, #1224]	; a000716c <_Heap_Walk+0x4dc> 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
a0006ca0:	e58d3024 	str	r3, [sp, #36]	; 0x24                          
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
a0006ca4:	e5903024 	ldr	r3, [r0, #36]	; 0x24                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
a0006ca8:	e31200ff 	tst	r2, #255	; 0xff                               
  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;                  
a0006cac:	e590c020 	ldr	ip, [r0, #32]                                 
  Heap_Block *const last_block = heap->last_block;                    
a0006cb0:	e58d3028 	str	r3, [sp, #40]	; 0x28                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
a0006cb4:	e59f34b4 	ldr	r3, [pc, #1204]	; a0007170 <_Heap_Walk+0x4e0> 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
a0006cb8:	e1a06000 	mov	r6, r0                                        
a0006cbc:	e1a05001 	mov	r5, r1                                        
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
a0006cc0:	11a04003 	movne	r4, r3                                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
a0006cc4:	e59f34a8 	ldr	r3, [pc, #1192]	; a0007174 <_Heap_Walk+0x4e4> 
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
a0006cc8:	e5909010 	ldr	r9, [r0, #16]                                 
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
a0006ccc:	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() ) ) {                
a0006cd0:	e5933000 	ldr	r3, [r3]                                      
a0006cd4:	e3530003 	cmp	r3, #3                                        
a0006cd8:	1a000118 	bne	a0007140 <_Heap_Walk+0x4b0>                   
  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)(                                                         
a0006cdc:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
a0006ce0:	e59d2020 	ldr	r2, [sp, #32]                                 
a0006ce4:	e58dc000 	str	ip, [sp]                                      
a0006ce8:	e5903018 	ldr	r3, [r0, #24]                                 
a0006cec:	e58d3004 	str	r3, [sp, #4]                                  
a0006cf0:	e590301c 	ldr	r3, [r0, #28]                                 
a0006cf4:	e58d200c 	str	r2, [sp, #12]                                 
a0006cf8:	e59f2478 	ldr	r2, [pc, #1144]	; a0007178 <_Heap_Walk+0x4e8> 
a0006cfc:	e58d3008 	str	r3, [sp, #8]                                  
a0006d00:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
a0006d04:	e58d3010 	str	r3, [sp, #16]                                 
a0006d08:	e5903008 	ldr	r3, [r0, #8]                                  
a0006d0c:	e58d3014 	str	r3, [sp, #20]                                 
a0006d10:	e590300c 	ldr	r3, [r0, #12]                                 
a0006d14:	e1a00001 	mov	r0, r1                                        
a0006d18:	e3a01000 	mov	r1, #0                                        
a0006d1c:	e58d3018 	str	r3, [sp, #24]                                 
a0006d20:	e1a03009 	mov	r3, r9                                        
a0006d24:	e12fff34 	blx	r4                                            
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
a0006d28:	e3590000 	cmp	r9, #0                                        
a0006d2c:	1a000005 	bne	a0006d48 <_Heap_Walk+0xb8>                    
    (*printer)( source, true, "page size is zero\n" );                
a0006d30:	e1a00005 	mov	r0, r5                                        
a0006d34:	e3a01001 	mov	r1, #1                                        
a0006d38:	e59f243c 	ldr	r2, [pc, #1084]	; a000717c <_Heap_Walk+0x4ec> 
a0006d3c:	e12fff34 	blx	r4                                            
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
a0006d40:	e1a08009 	mov	r8, r9                                        
a0006d44:	ea0000fe 	b	a0007144 <_Heap_Walk+0x4b4>                     
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
a0006d48:	e2198007 	ands	r8, r9, #7                                   
    (*printer)(                                                       
a0006d4c:	11a00005 	movne	r0, r5                                      
a0006d50:	13a01001 	movne	r1, #1                                      
a0006d54:	159f2424 	ldrne	r2, [pc, #1060]	; a0007180 <_Heap_Walk+0x4f0>
a0006d58:	11a03009 	movne	r3, r9                                      
a0006d5c:	1a0000ff 	bne	a0007160 <_Heap_Walk+0x4d0>                   
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
a0006d60:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
a0006d64:	e1a01009 	mov	r1, r9                                        
a0006d68:	ebffe741 	bl	a0000a74 <__umodsi3>                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
a0006d6c:	e250b000 	subs	fp, r0, #0                                   
a0006d70:	0a000005 	beq	a0006d8c <_Heap_Walk+0xfc>                    
    (*printer)(                                                       
a0006d74:	e1a00005 	mov	r0, r5                                        
a0006d78:	e3a01001 	mov	r1, #1                                        
a0006d7c:	e59f2400 	ldr	r2, [pc, #1024]	; a0007184 <_Heap_Walk+0x4f4> 
a0006d80:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
a0006d84:	e12fff34 	blx	r4                                            
a0006d88:	ea0000ed 	b	a0007144 <_Heap_Walk+0x4b4>                     
a0006d8c:	e59dc020 	ldr	ip, [sp, #32]                                 
a0006d90:	e1a01009 	mov	r1, r9                                        
a0006d94:	e28c0008 	add	r0, ip, #8                                    
a0006d98:	ebffe735 	bl	a0000a74 <__umodsi3>                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
a0006d9c:	e250a000 	subs	sl, r0, #0                                   
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
a0006da0:	11a00005 	movne	r0, r5                                      
a0006da4:	13a01001 	movne	r1, #1                                      
a0006da8:	159f23d8 	ldrne	r2, [pc, #984]	; a0007188 <_Heap_Walk+0x4f8>
a0006dac:	159d3020 	ldrne	r3, [sp, #32]                               
a0006db0:	1a0000c3 	bne	a00070c4 <_Heap_Walk+0x434>                   
  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;                 
a0006db4:	e59d2020 	ldr	r2, [sp, #32]                                 
a0006db8:	e5928004 	ldr	r8, [r2, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
a0006dbc:	e2188001 	ands	r8, r8, #1                                   
    (*printer)(                                                       
a0006dc0:	01a00005 	moveq	r0, r5                                      
a0006dc4:	03a01001 	moveq	r1, #1                                      
a0006dc8:	059f23bc 	ldreq	r2, [pc, #956]	; a000718c <_Heap_Walk+0x4fc>
a0006dcc:	0a000009 	beq	a0006df8 <_Heap_Walk+0x168>                   
    - 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;                
a0006dd0:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
a0006dd4:	e5937004 	ldr	r7, [r3, #4]                                  
a0006dd8:	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);                 
a0006ddc:	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;                 
a0006de0:	e5978004 	ldr	r8, [r7, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
a0006de4:	e2188001 	ands	r8, r8, #1                                   
a0006de8:	1a000004 	bne	a0006e00 <_Heap_Walk+0x170>                   
    (*printer)(                                                       
a0006dec:	e59f239c 	ldr	r2, [pc, #924]	; a0007190 <_Heap_Walk+0x500>  
a0006df0:	e1a00005 	mov	r0, r5                                        
a0006df4:	e3a01001 	mov	r1, #1                                        
a0006df8:	e12fff34 	blx	r4                                            
a0006dfc:	ea0000d0 	b	a0007144 <_Heap_Walk+0x4b4>                     
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
a0006e00:	e59dc020 	ldr	ip, [sp, #32]                                 
a0006e04:	e157000c 	cmp	r7, ip                                        
a0006e08:	0a000005 	beq	a0006e24 <_Heap_Walk+0x194>                   
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
a0006e0c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0006e10:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
a0006e14:	e59f2378 	ldr	r2, [pc, #888]	; a0007194 <_Heap_Walk+0x504>  <== NOT EXECUTED
a0006e18:	e12fff34 	blx	r4                                            <== NOT EXECUTED
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
a0006e1c:	e1a0800a 	mov	r8, sl                                        <== NOT EXECUTED
a0006e20:	ea0000c7 	b	a0007144 <_Heap_Walk+0x4b4>                     <== NOT EXECUTED
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
a0006e24:	e596b010 	ldr	fp, [r6, #16]                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
a0006e28:	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 );
a0006e2c:	e1a0a006 	mov	sl, r6                                        
a0006e30:	ea000032 	b	a0006f00 <_Heap_Walk+0x270>                     
  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;             
a0006e34:	e5963020 	ldr	r3, [r6, #32]                                 
a0006e38:	e1530008 	cmp	r3, r8                                        
a0006e3c:	83a0c000 	movhi	ip, #0                                      
a0006e40:	8a000003 	bhi	a0006e54 <_Heap_Walk+0x1c4>                   
a0006e44:	e596c024 	ldr	ip, [r6, #36]	; 0x24                          
a0006e48:	e15c0008 	cmp	ip, r8                                        
a0006e4c:	33a0c000 	movcc	ip, #0                                      
a0006e50:	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 ) ) {              
a0006e54:	e21cc0ff 	ands	ip, ip, #255	; 0xff                          
      (*printer)(                                                     
a0006e58:	01a00005 	moveq	r0, r5                                      
a0006e5c:	03a01001 	moveq	r1, #1                                      
a0006e60:	059f2330 	ldreq	r2, [pc, #816]	; a0007198 <_Heap_Walk+0x508>
a0006e64:	0a000012 	beq	a0006eb4 <_Heap_Walk+0x224>                   
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
a0006e68:	e2880008 	add	r0, r8, #8                                    
a0006e6c:	e1a0100b 	mov	r1, fp                                        
a0006e70:	ebffe6ff 	bl	a0000a74 <__umodsi3>                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
a0006e74:	e250c000 	subs	ip, r0, #0                                   
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
a0006e78:	11a00005 	movne	r0, r5                                      
a0006e7c:	13a01001 	movne	r1, #1                                      
a0006e80:	159f2314 	ldrne	r2, [pc, #788]	; a000719c <_Heap_Walk+0x50c>
a0006e84:	11a03008 	movne	r3, r8                                      
a0006e88:	1a0000b4 	bne	a0007160 <_Heap_Walk+0x4d0>                   
    - 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;                
a0006e8c:	e5983004 	ldr	r3, [r8, #4]                                  
a0006e90:	e3c33001 	bic	r3, r3, #1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
a0006e94:	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;                 
a0006e98:	e5933004 	ldr	r3, [r3, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
a0006e9c:	e2133001 	ands	r3, r3, #1                                   
a0006ea0:	e58d302c 	str	r3, [sp, #44]	; 0x2c                          
a0006ea4:	0a000008 	beq	a0006ecc <_Heap_Walk+0x23c>                   
      (*printer)(                                                     
a0006ea8:	e59f22f0 	ldr	r2, [pc, #752]	; a00071a0 <_Heap_Walk+0x510>  
a0006eac:	e1a00005 	mov	r0, r5                                        
a0006eb0:	e3a01001 	mov	r1, #1                                        
a0006eb4:	e1a03008 	mov	r3, r8                                        
a0006eb8:	e58dc01c 	str	ip, [sp, #28]                                 
a0006ebc:	e12fff34 	blx	r4                                            
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
a0006ec0:	e59dc01c 	ldr	ip, [sp, #28]                                 
a0006ec4:	e1a0800c 	mov	r8, ip                                        
a0006ec8:	ea00009d 	b	a0007144 <_Heap_Walk+0x4b4>                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
a0006ecc:	e598300c 	ldr	r3, [r8, #12]                                 
a0006ed0:	e153000a 	cmp	r3, sl                                        
a0006ed4:	0a000007 	beq	a0006ef8 <_Heap_Walk+0x268>                   
      (*printer)(                                                     
a0006ed8:	e58d3000 	str	r3, [sp]                                      
a0006edc:	e1a00005 	mov	r0, r5                                        
a0006ee0:	e1a03008 	mov	r3, r8                                        
a0006ee4:	e3a01001 	mov	r1, #1                                        
a0006ee8:	e59f22b4 	ldr	r2, [pc, #692]	; a00071a4 <_Heap_Walk+0x514>  
a0006eec:	e12fff34 	blx	r4                                            
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
a0006ef0:	e59d802c 	ldr	r8, [sp, #44]	; 0x2c                          
a0006ef4:	ea000092 	b	a0007144 <_Heap_Walk+0x4b4>                     
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
a0006ef8:	e1a0a008 	mov	sl, r8                                        
a0006efc:	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 ) {                            
a0006f00:	e1580006 	cmp	r8, r6                                        
a0006f04:	1affffca 	bne	a0006e34 <_Heap_Walk+0x1a4>                   
a0006f08:	ea000000 	b	a0006f10 <_Heap_Walk+0x280>                     
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
a0006f0c:	e1a07008 	mov	r7, r8                                        
                                                                      
  return true;                                                        
}                                                                     
a0006f10:	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;             
a0006f14:	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;                
a0006f18:	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);                 
a0006f1c:	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;             
a0006f20:	e1520008 	cmp	r2, r8                                        
a0006f24:	83a0b000 	movhi	fp, #0                                      
a0006f28:	8a000003 	bhi	a0006f3c <_Heap_Walk+0x2ac>                   
a0006f2c:	e596b024 	ldr	fp, [r6, #36]	; 0x24                          
a0006f30:	e15b0008 	cmp	fp, r8                                        
a0006f34:	33a0b000 	movcc	fp, #0                                      
a0006f38:	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 ) ) {              
a0006f3c:	e21bb0ff 	ands	fp, fp, #255	; 0xff                          
a0006f40:	1a000006 	bne	a0006f60 <_Heap_Walk+0x2d0>                   
      (*printer)(                                                     
a0006f44:	e58d8000 	str	r8, [sp]                                      
a0006f48:	e1a00005 	mov	r0, r5                                        
a0006f4c:	e3a01001 	mov	r1, #1                                        
a0006f50:	e59f2250 	ldr	r2, [pc, #592]	; a00071a8 <_Heap_Walk+0x518>  
a0006f54:	e1a03007 	mov	r3, r7                                        
a0006f58:	e12fff34 	blx	r4                                            
a0006f5c:	ea000059 	b	a00070c8 <_Heap_Walk+0x438>                     
    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;               
a0006f60:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
a0006f64:	e1a0000a 	mov	r0, sl                                        
a0006f68:	e1a01009 	mov	r1, r9                                        
a0006f6c:	e057b002 	subs	fp, r7, r2                                   
a0006f70:	13a0b001 	movne	fp, #1                                      
a0006f74:	e58d301c 	str	r3, [sp, #28]                                 
a0006f78:	ebffe6bd 	bl	a0000a74 <__umodsi3>                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
a0006f7c:	e3500000 	cmp	r0, #0                                        
a0006f80:	e59d301c 	ldr	r3, [sp, #28]                                 
a0006f84:	0a000005 	beq	a0006fa0 <_Heap_Walk+0x310>                   
a0006f88:	e35b0000 	cmp	fp, #0                                        
      (*printer)(                                                     
a0006f8c:	158da000 	strne	sl, [sp]                                    
a0006f90:	11a00005 	movne	r0, r5                                      
a0006f94:	13a01001 	movne	r1, #1                                      
a0006f98:	159f220c 	ldrne	r2, [pc, #524]	; a00071ac <_Heap_Walk+0x51c>
a0006f9c:	1a000013 	bne	a0006ff0 <_Heap_Walk+0x360>                   
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
a0006fa0:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
a0006fa4:	e15a000c 	cmp	sl, ip                                        
a0006fa8:	2a000008 	bcs	a0006fd0 <_Heap_Walk+0x340>                   
a0006fac:	e35b0000 	cmp	fp, #0                                        
a0006fb0:	0a000006 	beq	a0006fd0 <_Heap_Walk+0x340>                   
      (*printer)(                                                     
a0006fb4:	e88d1400 	stm	sp, {sl, ip}                                  
a0006fb8:	e1a00005 	mov	r0, r5                                        
a0006fbc:	e3a01001 	mov	r1, #1                                        
a0006fc0:	e59f21e8 	ldr	r2, [pc, #488]	; a00071b0 <_Heap_Walk+0x520>  
a0006fc4:	e1a03007 	mov	r3, r7                                        
a0006fc8:	e12fff34 	blx	r4                                            
a0006fcc:	ea000064 	b	a0007164 <_Heap_Walk+0x4d4>                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
a0006fd0:	e1580007 	cmp	r8, r7                                        
a0006fd4:	8a000008 	bhi	a0006ffc <_Heap_Walk+0x36c>                   
a0006fd8:	e35b0000 	cmp	fp, #0                                        
a0006fdc:	0a000006 	beq	a0006ffc <_Heap_Walk+0x36c>                   
      (*printer)(                                                     
a0006fe0:	e59f21cc 	ldr	r2, [pc, #460]	; a00071b4 <_Heap_Walk+0x524>  
a0006fe4:	e58d8000 	str	r8, [sp]                                      
a0006fe8:	e1a00005 	mov	r0, r5                                        
a0006fec:	e3a01001 	mov	r1, #1                                        
a0006ff0:	e1a03007 	mov	r3, r7                                        
a0006ff4:	e12fff34 	blx	r4                                            
a0006ff8:	ea000059 	b	a0007164 <_Heap_Walk+0x4d4>                     
  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;                 
a0006ffc:	e203b001 	and	fp, r3, #1                                    
a0007000:	e5983004 	ldr	r3, [r8, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
a0007004:	e3130001 	tst	r3, #1                                        
a0007008:	1a000038 	bne	a00070f0 <_Heap_Walk+0x460>                   
    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 ?                                 
a000700c:	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)(                                                         
a0007010:	e5963008 	ldr	r3, [r6, #8]                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
a0007014:	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)(                                                         
a0007018:	e1520003 	cmp	r2, r3                                        
a000701c:	059f0194 	ldreq	r0, [pc, #404]	; a00071b8 <_Heap_Walk+0x528>
a0007020:	0a000003 	beq	a0007034 <_Heap_Walk+0x3a4>                   
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
a0007024:	e59f3190 	ldr	r3, [pc, #400]	; a00071bc <_Heap_Walk+0x52c>  
a0007028:	e1520006 	cmp	r2, r6                                        
a000702c:	e59f018c 	ldr	r0, [pc, #396]	; a00071c0 <_Heap_Walk+0x530>  
a0007030:	01a00003 	moveq	r0, r3                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
a0007034:	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)(                                                         
a0007038:	e1530001 	cmp	r3, r1                                        
a000703c:	059f1180 	ldreq	r1, [pc, #384]	; a00071c4 <_Heap_Walk+0x534>
a0007040:	0a000003 	beq	a0007054 <_Heap_Walk+0x3c4>                   
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
a0007044:	e59fc17c 	ldr	ip, [pc, #380]	; a00071c8 <_Heap_Walk+0x538>  
a0007048:	e1530006 	cmp	r3, r6                                        
a000704c:	e59f116c 	ldr	r1, [pc, #364]	; a00071c0 <_Heap_Walk+0x530>  
a0007050:	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)(                                                         
a0007054:	e58d2004 	str	r2, [sp, #4]                                  
a0007058:	e58d0008 	str	r0, [sp, #8]                                  
a000705c:	e58d300c 	str	r3, [sp, #12]                                 
a0007060:	e58d1010 	str	r1, [sp, #16]                                 
a0007064:	e1a03007 	mov	r3, r7                                        
a0007068:	e58da000 	str	sl, [sp]                                      
a000706c:	e1a00005 	mov	r0, r5                                        
a0007070:	e3a01000 	mov	r1, #0                                        
a0007074:	e59f2150 	ldr	r2, [pc, #336]	; a00071cc <_Heap_Walk+0x53c>  
a0007078:	e12fff34 	blx	r4                                            
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
a000707c:	e5983000 	ldr	r3, [r8]                                      
a0007080:	e15a0003 	cmp	sl, r3                                        
a0007084:	0a000008 	beq	a00070ac <_Heap_Walk+0x41c>                   
    (*printer)(                                                       
a0007088:	e58d3004 	str	r3, [sp, #4]                                  
a000708c:	e58da000 	str	sl, [sp]                                      
a0007090:	e58d8008 	str	r8, [sp, #8]                                  
a0007094:	e1a00005 	mov	r0, r5                                        
a0007098:	e3a01001 	mov	r1, #1                                        
a000709c:	e59f212c 	ldr	r2, [pc, #300]	; a00071d0 <_Heap_Walk+0x540>  
a00070a0:	e1a03007 	mov	r3, r7                                        
a00070a4:	e12fff34 	blx	r4                                            
a00070a8:	ea00002d 	b	a0007164 <_Heap_Walk+0x4d4>                     
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
a00070ac:	e35b0000 	cmp	fp, #0                                        
a00070b0:	1a000006 	bne	a00070d0 <_Heap_Walk+0x440>                   
    (*printer)(                                                       
a00070b4:	e59f2118 	ldr	r2, [pc, #280]	; a00071d4 <_Heap_Walk+0x544>  
a00070b8:	e1a00005 	mov	r0, r5                                        
a00070bc:	e3a01001 	mov	r1, #1                                        
a00070c0:	e1a03007 	mov	r3, r7                                        
a00070c4:	e12fff34 	blx	r4                                            
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
a00070c8:	e1a0800b 	mov	r8, fp                                        
a00070cc:	ea00001c 	b	a0007144 <_Heap_Walk+0x4b4>                     
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
a00070d0:	e5963008 	ldr	r3, [r6, #8]                                  
a00070d4:	ea000002 	b	a00070e4 <_Heap_Walk+0x454>                     
{                                                                     
  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 ) {                                      
a00070d8:	e1530007 	cmp	r3, r7                                        
a00070dc:	0a000014 	beq	a0007134 <_Heap_Walk+0x4a4>                   
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
a00070e0:	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 ) {                            
a00070e4:	e1530006 	cmp	r3, r6                                        
a00070e8:	1afffffa 	bne	a00070d8 <_Heap_Walk+0x448>                   
a00070ec:	ea000017 	b	a0007150 <_Heap_Walk+0x4c0>                     
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
a00070f0:	e35b0000 	cmp	fp, #0                                        
a00070f4:	0a000006 	beq	a0007114 <_Heap_Walk+0x484>                   
      (*printer)(                                                     
a00070f8:	e58da000 	str	sl, [sp]                                      
a00070fc:	e1a00005 	mov	r0, r5                                        
a0007100:	e3a01000 	mov	r1, #0                                        
a0007104:	e59f20cc 	ldr	r2, [pc, #204]	; a00071d8 <_Heap_Walk+0x548>  
a0007108:	e1a03007 	mov	r3, r7                                        
a000710c:	e12fff34 	blx	r4                                            
a0007110:	ea000007 	b	a0007134 <_Heap_Walk+0x4a4>                     
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
a0007114:	e58da000 	str	sl, [sp]                                      
a0007118:	e5973000 	ldr	r3, [r7]                                      
a000711c:	e1a00005 	mov	r0, r5                                        
a0007120:	e1a0100b 	mov	r1, fp                                        
a0007124:	e58d3004 	str	r3, [sp, #4]                                  
a0007128:	e59f20ac 	ldr	r2, [pc, #172]	; a00071dc <_Heap_Walk+0x54c>  
a000712c:	e1a03007 	mov	r3, r7                                        
a0007130:	e12fff34 	blx	r4                                            
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
a0007134:	e59d2020 	ldr	r2, [sp, #32]                                 
a0007138:	e1580002 	cmp	r8, r2                                        
a000713c:	1affff72 	bne	a0006f0c <_Heap_Walk+0x27c>                   
  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;                                                      
a0007140:	e3a08001 	mov	r8, #1                                        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
a0007144:	e1a00008 	mov	r0, r8                                        
a0007148:	e28dd030 	add	sp, sp, #48	; 0x30                            
a000714c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
a0007150:	e59f2088 	ldr	r2, [pc, #136]	; a00071e0 <_Heap_Walk+0x550>  
a0007154:	e1a00005 	mov	r0, r5                                        
a0007158:	e3a01001 	mov	r1, #1                                        
a000715c:	e1a03007 	mov	r3, r7                                        
a0007160:	e12fff34 	blx	r4                                            
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
a0007164:	e3a08000 	mov	r8, #0                                        
a0007168:	eafffff5 	b	a0007144 <_Heap_Walk+0x4b4>                     
                                                                      

a0005e18 <_TOD_Validate>: { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick();
a0005e18:	e59f30b4 	ldr	r3, [pc, #180]	; a0005ed4 <_TOD_Validate+0xbc>
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
  const rtems_time_of_day *the_tod                                    
)                                                                     
{                                                                     
a0005e1c:	e92d4010 	push	{r4, lr}                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
a0005e20:	e2504000 	subs	r4, r0, #0                                   
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
a0005e24:	e593100c 	ldr	r1, [r3, #12]                                 
  if ((!the_tod)                                  ||                  
a0005e28:	0a000021 	beq	a0005eb4 <_TOD_Validate+0x9c>                 
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
a0005e2c:	e59f00a4 	ldr	r0, [pc, #164]	; a0005ed8 <_TOD_Validate+0xc0>
a0005e30:	eb004676 	bl	a0017810 <__aeabi_uidiv>                       
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
a0005e34:	e5943018 	ldr	r3, [r4, #24]                                 
a0005e38:	e1530000 	cmp	r3, r0                                        
a0005e3c:	2a000020 	bcs	a0005ec4 <_TOD_Validate+0xac>                 
      (the_tod->ticks  >= ticks_per_second)       ||                  
a0005e40:	e5943014 	ldr	r3, [r4, #20]                                 
a0005e44:	e353003b 	cmp	r3, #59	; 0x3b                                
a0005e48:	8a00001d 	bhi	a0005ec4 <_TOD_Validate+0xac>                 
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
a0005e4c:	e5943010 	ldr	r3, [r4, #16]                                 
a0005e50:	e353003b 	cmp	r3, #59	; 0x3b                                
a0005e54:	8a00001a 	bhi	a0005ec4 <_TOD_Validate+0xac>                 
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
a0005e58:	e594300c 	ldr	r3, [r4, #12]                                 
a0005e5c:	e3530017 	cmp	r3, #23                                       
a0005e60:	8a000017 	bhi	a0005ec4 <_TOD_Validate+0xac>                 
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
a0005e64:	e5943004 	ldr	r3, [r4, #4]                                  
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
a0005e68:	e3530000 	cmp	r3, #0                                        
a0005e6c:	0a000012 	beq	a0005ebc <_TOD_Validate+0xa4>                 
      (the_tod->month  == 0)                      ||                  
a0005e70:	e353000c 	cmp	r3, #12                                       
a0005e74:	8a000012 	bhi	a0005ec4 <_TOD_Validate+0xac>                 
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
a0005e78:	e5942000 	ldr	r2, [r4]                                      
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
a0005e7c:	e59f1058 	ldr	r1, [pc, #88]	; a0005edc <_TOD_Validate+0xc4> 
a0005e80:	e1520001 	cmp	r2, r1                                        
a0005e84:	9a000010 	bls	a0005ecc <_TOD_Validate+0xb4>                 
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
a0005e88:	e5940008 	ldr	r0, [r4, #8]                                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
a0005e8c:	e3500000 	cmp	r0, #0                                        
a0005e90:	0a00000e 	beq	a0005ed0 <_TOD_Validate+0xb8>                 
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
a0005e94:	e3120003 	tst	r2, #3                                        
a0005e98:	e59f2040 	ldr	r2, [pc, #64]	; a0005ee0 <_TOD_Validate+0xc8> 
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
a0005e9c:	0283300d 	addeq	r3, r3, #13                                 
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
a0005ea0:	e7924103 	ldr	r4, [r2, r3, lsl #2]                          
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
a0005ea4:	e1500004 	cmp	r0, r4                                        
a0005ea8:	83a00000 	movhi	r0, #0                                      
a0005eac:	93a00001 	movls	r0, #1                                      
a0005eb0:	e8bd8010 	pop	{r4, pc}                                      
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
a0005eb4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005eb8:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
a0005ebc:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
a0005ec0:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
a0005ec4:	e3a00000 	mov	r0, #0                                        
a0005ec8:	e8bd8010 	pop	{r4, pc}                                      
a0005ecc:	e3a00000 	mov	r0, #0                                        
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
a0005ed0:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

a000574c <aio_cancel>: * operation(s) cannot be canceled */ int aio_cancel(int fildes, struct aiocb *aiocbp) {
a000574c:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
a0005750:	e59f419c 	ldr	r4, [pc, #412]	; a00058f4 <aio_cancel+0x1a8>  
 *                          operation(s) cannot be canceled           
 */                                                                   
                                                                      
                                                                      
int aio_cancel(int fildes, struct aiocb  *aiocbp)                     
{                                                                     
a0005754:	e1a05001 	mov	r5, r1                                        
a0005758:	e1a07000 	mov	r7, r0                                        
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
a000575c:	e1a00004 	mov	r0, r4                                        
a0005760:	eb000413 	bl	a00067b4 <pthread_mutex_lock>                  
                                                                      
  if (aiocbp == NULL)                                                 
a0005764:	e3550000 	cmp	r5, #0                                        
a0005768:	1a000035 	bne	a0005844 <aio_cancel+0xf8>                    
    {                                                                 
      if (fcntl (fildes, F_GETFL) < 0) {                              
a000576c:	e1a00007 	mov	r0, r7                                        
a0005770:	e3a01003 	mov	r1, #3                                        
a0005774:	eb001a1e 	bl	a000bff4 <fcntl>                               
a0005778:	e3500000 	cmp	r0, #0                                        
a000577c:	aa000004 	bge	a0005794 <aio_cancel+0x48>                    
        pthread_mutex_unlock(&aio_request_queue.mutex);               
a0005780:	e1a00004 	mov	r0, r4                                        
a0005784:	eb000429 	bl	a0006830 <pthread_mutex_unlock>                
	rtems_set_errno_and_return_minus_one (EBADF);                        
a0005788:	eb002745 	bl	a000f4a4 <__errno>                             
a000578c:	e3a03009 	mov	r3, #9                                        
a0005790:	ea000032 	b	a0005860 <aio_cancel+0x114>                     
      }                                                               
                                                                      
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
a0005794:	e2840048 	add	r0, r4, #72	; 0x48                            <== NOT EXECUTED
a0005798:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
a000579c:	e1a02005 	mov	r2, r5                                        <== NOT EXECUTED
a00057a0:	eb0000a6 	bl	a0005a40 <rtems_aio_search_fd>                 <== NOT EXECUTED
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
a00057a4:	e2506000 	subs	r6, r0, #0                                   <== NOT EXECUTED
a00057a8:	1a00001b 	bne	a000581c <aio_cancel+0xd0>                    <== NOT EXECUTED
	{                                                                    
	  if (!rtems_chain_is_empty (&aio_request_queue.idle_req))           
a00057ac:	e5942054 	ldr	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
a00057b0:	e2843058 	add	r3, r4, #88	; 0x58                            <== NOT EXECUTED
a00057b4:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
a00057b8:	0a000013 	beq	a000580c <aio_cancel+0xc0>                    <== NOT EXECUTED
	    {                                                                
	      r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,    
a00057bc:	e2840054 	add	r0, r4, #84	; 0x54                            <== NOT EXECUTED
a00057c0:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
a00057c4:	e1a02006 	mov	r2, r6                                        <== NOT EXECUTED
a00057c8:	eb00009c 	bl	a0005a40 <rtems_aio_search_fd>                 <== NOT EXECUTED
					     fildes,                                                     
					     0);                                                         
	      if (r_chain == NULL) {                                         
a00057cc:	e2505000 	subs	r5, r0, #0                                   <== NOT EXECUTED
a00057d0:	0a00000d 	beq	a000580c <aio_cancel+0xc0>                    <== NOT EXECUTED
		return AIO_ALLDONE;                                                 
              }                                                       
                                                                      
	      rtems_chain_extract (&r_chain->next_fd);	                      
	      rtems_aio_remove_fd (r_chain);                                 
	      pthread_mutex_destroy (&r_chain->mutex);                       
a00057d4:	e285701c 	add	r7, r5, #28                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
a00057d8:	eb000a12 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
	        pthread_mutex_unlock(&aio_request_queue.mutex);              
		return AIO_ALLDONE;                                                 
              }                                                       
                                                                      
	      rtems_chain_extract (&r_chain->next_fd);	                      
	      rtems_aio_remove_fd (r_chain);                                 
a00057dc:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a00057e0:	eb00016f 	bl	a0005da4 <rtems_aio_remove_fd>                 <== NOT EXECUTED
	      pthread_mutex_destroy (&r_chain->mutex);                       
a00057e4:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a00057e8:	eb00034e 	bl	a0006528 <pthread_mutex_destroy>               <== NOT EXECUTED
	      pthread_cond_destroy (&r_chain->mutex);                        
a00057ec:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a00057f0:	eb00027d 	bl	a00061ec <pthread_cond_destroy>                <== NOT EXECUTED
	      free (r_chain);                                                
a00057f4:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a00057f8:	ebfff40f 	bl	a000283c <free>                                <== NOT EXECUTED
                                                                      
	      pthread_mutex_unlock (&aio_request_queue.mutex);               
a00057fc:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005800:	eb00040a 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
	      return AIO_CANCELED;                                           
a0005804:	e1a05006 	mov	r5, r6                                        <== NOT EXECUTED
a0005808:	ea000037 	b	a00058ec <aio_cancel+0x1a0>                     <== NOT EXECUTED
	    }                                                                
                                                                      
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
a000580c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005810:	eb000406 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
	  return AIO_ALLDONE;                                                
a0005814:	e3a05002 	mov	r5, #2                                        <== NOT EXECUTED
a0005818:	ea000033 	b	a00058ec <aio_cancel+0x1a0>                     <== NOT EXECUTED
	}                                                                    
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
a000581c:	e286701c 	add	r7, r6, #28                                   <== NOT EXECUTED
a0005820:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a0005824:	eb0003e2 	bl	a00067b4 <pthread_mutex_lock>                  <== NOT EXECUTED
a0005828:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
a000582c:	eb0009fd 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
      rtems_chain_extract (&r_chain->next_fd);                        
      rtems_aio_remove_fd (r_chain);                                  
a0005830:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
a0005834:	eb00015a 	bl	a0005da4 <rtems_aio_remove_fd>                 <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
a0005838:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a000583c:	eb0003fb 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
a0005840:	ea00001c 	b	a00058b8 <aio_cancel+0x16c>                     <== NOT EXECUTED
      pthread_mutex_unlock (&aio_request_queue.mutex);                
      return AIO_CANCELED;                                            
    }                                                                 
  else                                                                
    {                                                                 
      if (aiocbp->aio_fildes != fildes) {                             
a0005844:	e5956000 	ldr	r6, [r5]                                      
a0005848:	e1560007 	cmp	r6, r7                                        
a000584c:	0a000006 	beq	a000586c <aio_cancel+0x120>                   
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
a0005850:	e1a00004 	mov	r0, r4                                        
a0005854:	eb0003f5 	bl	a0006830 <pthread_mutex_unlock>                
	  rtems_set_errno_and_return_minus_one (EINVAL);                     
a0005858:	eb002711 	bl	a000f4a4 <__errno>                             
a000585c:	e3a03016 	mov	r3, #22                                       
a0005860:	e5803000 	str	r3, [r0]                                      
a0005864:	e3e05000 	mvn	r5, #0                                        
a0005868:	ea00001f 	b	a00058ec <aio_cancel+0x1a0>                     
	}                                                                    
                                                                      
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
a000586c:	e2840048 	add	r0, r4, #72	; 0x48                            <== NOT EXECUTED
a0005870:	e1a01006 	mov	r1, r6                                        <== NOT EXECUTED
a0005874:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
a0005878:	eb000070 	bl	a0005a40 <rtems_aio_search_fd>                 <== NOT EXECUTED
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
a000587c:	e2507000 	subs	r7, r0, #0                                   <== NOT EXECUTED
a0005880:	1a00000e 	bne	a00058c0 <aio_cancel+0x174>                   <== NOT EXECUTED
	if (!rtems_chain_is_empty (&aio_request_queue.idle_req))             
a0005884:	e5942054 	ldr	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
a0005888:	e2843058 	add	r3, r4, #88	; 0x58                            <== NOT EXECUTED
a000588c:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
a0005890:	0a00000a 	beq	a00058c0 <aio_cancel+0x174>                   <== NOT EXECUTED
	  {                                                                  
	    r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,      
a0005894:	e2840054 	add	r0, r4, #84	; 0x54                            <== NOT EXECUTED
a0005898:	e1a01006 	mov	r1, r6                                        <== NOT EXECUTED
a000589c:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
a00058a0:	eb000066 	bl	a0005a40 <rtems_aio_search_fd>                 <== NOT EXECUTED
					   fildes,                                                       
					   0);                                                           
	    if (r_chain == NULL)                                             
a00058a4:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
a00058a8:	0affffe8 	beq	a0005850 <aio_cancel+0x104>                   <== NOT EXECUTED
	      {                                                              
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
		rtems_set_errno_and_return_minus_one (EINVAL);                      
	      }                                                              
                                                                      
	    result = rtems_aio_remove_req (&r_chain->next_fd, aiocbp);       
a00058ac:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
a00058b0:	eb00014b 	bl	a0005de4 <rtems_aio_remove_req>                <== NOT EXECUTED
a00058b4:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
	    pthread_mutex_unlock (&aio_request_queue.mutex);                 
a00058b8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a00058bc:	ea000009 	b	a00058e8 <aio_cancel+0x19c>                     <== NOT EXECUTED
	    return result;                                                   
                                                                      
	  }                                                                  
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
a00058c0:	e287401c 	add	r4, r7, #28                                   <== NOT EXECUTED
a00058c4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a00058c8:	eb0003b9 	bl	a00067b4 <pthread_mutex_lock>                  <== NOT EXECUTED
      result = rtems_aio_remove_req (&r_chain->next_fd, aiocbp);      
a00058cc:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
a00058d0:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a00058d4:	eb000142 	bl	a0005de4 <rtems_aio_remove_req>                <== NOT EXECUTED
a00058d8:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
a00058dc:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a00058e0:	eb0003d2 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
      pthread_mutex_unlock (&aio_request_queue.mutex);                
a00058e4:	e59f0008 	ldr	r0, [pc, #8]	; a00058f4 <aio_cancel+0x1a8>    <== NOT EXECUTED
a00058e8:	eb0003d0 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
      return result;                                                  
                                                                      
    }                                                                 
                                                                      
  return AIO_ALLDONE;                                                 
}                                                                     
a00058ec:	e1a00005 	mov	r0, r5                                        
a00058f0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a0005900 <aio_fsync>: ) { rtems_aio_request *req; int mode; if (op != O_SYNC)
a0005900:	e3500a02 	cmp	r0, #8192	; 0x2000                            
                                                                      
int aio_fsync(                                                        
  int            op,                                                  
  struct aiocb  *aiocbp                                               
)                                                                     
{                                                                     
a0005904:	e92d4030 	push	{r4, r5, lr}                                 
a0005908:	e1a04001 	mov	r4, r1                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
a000590c:	13a05016 	movne	r5, #22                                     
)                                                                     
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
a0005910:	1a00000c 	bne	a0005948 <aio_fsync+0x48>                     
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
a0005914:	e5910000 	ldr	r0, [r1]                                      
a0005918:	e3a01003 	mov	r1, #3                                        
a000591c:	eb0019b4 	bl	a000bff4 <fcntl>                               
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0005920:	e2000003 	and	r0, r0, #3                                    
a0005924:	e2400001 	sub	r0, r0, #1                                    
a0005928:	e3500001 	cmp	r0, #1                                        
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
a000592c:	83a05009 	movhi	r5, #9                                      
                                                                      
  if (op != O_SYNC)                                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0005930:	8a000004 	bhi	a0005948 <aio_fsync+0x48>                     
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
a0005934:	e3a00018 	mov	r0, #24                                       <== NOT EXECUTED
a0005938:	ebfff535 	bl	a0002e14 <malloc>                              <== NOT EXECUTED
  if (req == NULL)                                                    
a000593c:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
a0005940:	1a000007 	bne	a0005964 <aio_fsync+0x64>                     <== NOT EXECUTED
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
a0005944:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
a0005948:	e3e03000 	mvn	r3, #0                                        
a000594c:	e5845030 	str	r5, [r4, #48]	; 0x30                          
a0005950:	e5843034 	str	r3, [r4, #52]	; 0x34                          
a0005954:	eb0026d2 	bl	a000f4a4 <__errno>                             
a0005958:	e5805000 	str	r5, [r0]                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
a000595c:	e3e00000 	mvn	r0, #0                                        
a0005960:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
a0005964:	e5834014 	str	r4, [r3, #20]                                 <== NOT EXECUTED
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
a0005968:	e3a03003 	mov	r3, #3                                        <== NOT EXECUTED
a000596c:	e584302c 	str	r3, [r4, #44]	; 0x2c                          <== NOT EXECUTED
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
a0005970:	e8bd4030 	pop	{r4, r5, lr}                                  <== NOT EXECUTED
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
a0005974:	ea000130 	b	a0005e3c <rtems_aio_enqueue>                    <== NOT EXECUTED
                                                                      

a000604c <aio_read>: * 0 - otherwise */ int aio_read (struct aiocb *aiocbp) {
a000604c:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
a0006050:	e3a01003 	mov	r1, #3                                        
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_read (struct aiocb *aiocbp)                                       
{                                                                     
a0006054:	e1a04000 	mov	r4, r0                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
a0006058:	e5900000 	ldr	r0, [r0]                                      
a000605c:	eb0017e4 	bl	a000bff4 <fcntl>                               
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0006060:	e2000003 	and	r0, r0, #3                                    
a0006064:	e3500002 	cmp	r0, #2                                        
a0006068:	13500000 	cmpne	r0, #0                                      
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
a000606c:	13a05009 	movne	r5, #9                                      
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0006070:	1a00000d 	bne	a00060ac <aio_read+0x60>                      
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
a0006074:	e5943014 	ldr	r3, [r4, #20]                                 
a0006078:	e3530000 	cmp	r3, #0                                        
a000607c:	1a000007 	bne	a00060a0 <aio_read+0x54>                      
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
a0006080:	e5943008 	ldr	r3, [r4, #8]                                  
a0006084:	e3530000 	cmp	r3, #0                                        
a0006088:	ba000004 	blt	a00060a0 <aio_read+0x54>                      
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
a000608c:	e3a00018 	mov	r0, #24                                       
a0006090:	ebfff35f 	bl	a0002e14 <malloc>                              
  if (req == NULL)                                                    
a0006094:	e2503000 	subs	r3, r0, #0                                   
a0006098:	1a00000a 	bne	a00060c8 <aio_read+0x7c>                      
a000609c:	ea000001 	b	a00060a8 <aio_read+0x5c>                        <== NOT EXECUTED
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
a00060a0:	e3a05016 	mov	r5, #22                                       
a00060a4:	ea000000 	b	a00060ac <aio_read+0x60>                        
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
a00060a8:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
a00060ac:	e3e03000 	mvn	r3, #0                                        
a00060b0:	e5845030 	str	r5, [r4, #48]	; 0x30                          
a00060b4:	e5843034 	str	r3, [r4, #52]	; 0x34                          
a00060b8:	eb0024f9 	bl	a000f4a4 <__errno>                             
a00060bc:	e5805000 	str	r5, [r0]                                      
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
a00060c0:	e3e00000 	mvn	r0, #0                                        
a00060c4:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
a00060c8:	e5834014 	str	r4, [r3, #20]                                 
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
a00060cc:	e3a03001 	mov	r3, #1                                        
a00060d0:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
a00060d4:	e8bd4030 	pop	{r4, r5, lr}                                  
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
a00060d8:	eaffff57 	b	a0005e3c <rtems_aio_enqueue>                    
                                                                      

a00060e4 <aio_write>: * 0 - otherwise */ int aio_write (struct aiocb *aiocbp) {
a00060e4:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
a00060e8:	e3a01003 	mov	r1, #3                                        
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_write (struct aiocb *aiocbp)                                      
{                                                                     
a00060ec:	e1a04000 	mov	r4, r0                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
a00060f0:	e5900000 	ldr	r0, [r0]                                      
a00060f4:	eb0017be 	bl	a000bff4 <fcntl>                               
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a00060f8:	e2000003 	and	r0, r0, #3                                    
a00060fc:	e2400001 	sub	r0, r0, #1                                    
a0006100:	e3500001 	cmp	r0, #1                                        
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
a0006104:	83a05009 	movhi	r5, #9                                      
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0006108:	8a00000d 	bhi	a0006144 <aio_write+0x60>                     
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
a000610c:	e5943014 	ldr	r3, [r4, #20]                                 
a0006110:	e3530000 	cmp	r3, #0                                        
a0006114:	1a000007 	bne	a0006138 <aio_write+0x54>                     
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
a0006118:	e5943008 	ldr	r3, [r4, #8]                                  
a000611c:	e3530000 	cmp	r3, #0                                        
a0006120:	ba000004 	blt	a0006138 <aio_write+0x54>                     
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
a0006124:	e3a00018 	mov	r0, #24                                       
a0006128:	ebfff339 	bl	a0002e14 <malloc>                              
  if (req == NULL)                                                    
a000612c:	e2503000 	subs	r3, r0, #0                                   
a0006130:	1a00000a 	bne	a0006160 <aio_write+0x7c>                     
a0006134:	ea000001 	b	a0006140 <aio_write+0x5c>                       <== NOT EXECUTED
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
a0006138:	e3a05016 	mov	r5, #22                                       
a000613c:	ea000000 	b	a0006144 <aio_write+0x60>                       
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
a0006140:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
a0006144:	e3e03000 	mvn	r3, #0                                        
a0006148:	e5845030 	str	r5, [r4, #48]	; 0x30                          
a000614c:	e5843034 	str	r3, [r4, #52]	; 0x34                          
a0006150:	eb0024d3 	bl	a000f4a4 <__errno>                             
a0006154:	e5805000 	str	r5, [r0]                                      
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
a0006158:	e3e00000 	mvn	r0, #0                                        
a000615c:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
a0006160:	e5834014 	str	r4, [r3, #20]                                 
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
a0006164:	e3a03002 	mov	r3, #2                                        
a0006168:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
a000616c:	e8bd4030 	pop	{r4, r5, lr}                                  
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
a0006170:	eaffff31 	b	a0005e3c <rtems_aio_enqueue>                    
                                                                      

a0008624 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
a0008624:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
a0008628:	e3d27007 	bics	r7, r2, #7                                   
  const char                        *pathname,                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
a000862c:	e1a09000 	mov	r9, r0                                        
a0008630:	e1a04001 	mov	r4, r1                                        
a0008634:	e1a05003 	mov	r5, r3                                        
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
a0008638:	0a000002 	beq	a0008648 <devFS_evaluate_path+0x24>           
    rtems_set_errno_and_return_minus_one( EPERM );                    
a000863c:	eb0009a3 	bl	a000acd0 <__errno>                             <== NOT EXECUTED
a0008640:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
a0008644:	ea000005 	b	a0008660 <devFS_evaluate_path+0x3c>             <== NOT EXECUTED
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
a0008648:	e5936000 	ldr	r6, [r3]                                      
  if (!device_name_table)                                             
a000864c:	e3560000 	cmp	r6, #0                                        
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
a0008650:	159fa094 	ldrne	sl, [pc, #148]	; a00086ec <devFS_evaluate_path+0xc8>
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
a0008654:	1a00001c 	bne	a00086cc <devFS_evaluate_path+0xa8>           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
a0008658:	eb00099c 	bl	a000acd0 <__errno>                             
a000865c:	e3a0300e 	mov	r3, #14                                       
a0008660:	e5803000 	str	r3, [r0]                                      
a0008664:	e3e00000 	mvn	r0, #0                                        
a0008668:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
a000866c:	e5968000 	ldr	r8, [r6]                                      
a0008670:	e3580000 	cmp	r8, #0                                        
a0008674:	0a000012 	beq	a00086c4 <devFS_evaluate_path+0xa0>           
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
a0008678:	e1a00009 	mov	r0, r9                                        
a000867c:	e1a01008 	mov	r1, r8                                        
a0008680:	e1a02004 	mov	r2, r4                                        
a0008684:	eb000d18 	bl	a000baec <strncmp>                             
a0008688:	e3500000 	cmp	r0, #0                                        
a000868c:	1a00000c 	bne	a00086c4 <devFS_evaluate_path+0xa0>           
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
a0008690:	e7d80004 	ldrb	r0, [r8, r4]                                 
a0008694:	e3500000 	cmp	r0, #0                                        
a0008698:	1a000009 	bne	a00086c4 <devFS_evaluate_path+0xa0>           
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
a000869c:	e59f304c 	ldr	r3, [pc, #76]	; a00086f0 <devFS_evaluate_path+0xcc>
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
a00086a0:	e5856000 	str	r6, [r5]                                      
    pathloc->handlers = &devFS_file_handlers;                         
a00086a4:	e5853008 	str	r3, [r5, #8]                                  
    pathloc->ops = &devFS_ops;                                        
a00086a8:	e59f3044 	ldr	r3, [pc, #68]	; a00086f4 <devFS_evaluate_path+0xd0>
a00086ac:	e585300c 	str	r3, [r5, #12]                                 
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
a00086b0:	e59f3040 	ldr	r3, [pc, #64]	; a00086f8 <devFS_evaluate_path+0xd4>
a00086b4:	e5933000 	ldr	r3, [r3]                                      
a00086b8:	e5933028 	ldr	r3, [r3, #40]	; 0x28                          
a00086bc:	e5853010 	str	r3, [r5, #16]                                 
    return 0;                                                         
a00086c0:	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++) {                     
a00086c4:	e2877001 	add	r7, r7, #1                                    
a00086c8:	e2866014 	add	r6, r6, #20                                   
a00086cc:	e59a3000 	ldr	r3, [sl]                                      
a00086d0:	e1570003 	cmp	r7, r3                                        
a00086d4:	3affffe4 	bcc	a000866c <devFS_evaluate_path+0x48>           
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
a00086d8:	eb00097c 	bl	a000acd0 <__errno>                             
a00086dc:	e3a03002 	mov	r3, #2                                        
a00086e0:	e5803000 	str	r3, [r0]                                      
a00086e4:	e3e00000 	mvn	r0, #0                                        
}                                                                     
a00086e8:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      

a0002ad8 <drainOutput>: drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
a0002ad8:	e59030b4 	ldr	r3, [r0, #180]	; 0xb4                         
/*                                                                    
 * Drain output queue                                                 
 */                                                                   
static void                                                           
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
a0002adc:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
a0002ae0:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Drain output queue                                                 
 */                                                                   
static void                                                           
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
a0002ae4:	e1a04000 	mov	r4, r0                                        
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
a0002ae8:	0a000011 	beq	a0002b34 <drainOutput+0x5c>                   
    rtems_interrupt_disable (level);                                  
a0002aec:	ebfffff5 	bl	a0002ac8 <arm_interrupt_disable>               
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
a0002af0:	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) {              
a0002af4:	ea000009 	b	a0002b20 <drainOutput+0x48>                     
      tty->rawOutBufState = rob_wait;                                 
a0002af8:	e5845094 	str	r5, [r4, #148]	; 0x94                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
a0002afc:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
a0002b00:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
a0002b04:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         <== NOT EXECUTED
a0002b08:	e1a02001 	mov	r2, r1                                        <== NOT EXECUTED
a0002b0c:	eb0008cb 	bl	a0004e40 <rtems_semaphore_obtain>              <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
a0002b10:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
a0002b14:	0a000000 	beq	a0002b1c <drainOutput+0x44>                   <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
a0002b18:	eb000a63 	bl	a00054ac <rtems_fatal_error_occurred>          <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
a0002b1c:	ebffffe9 	bl	a0002ac8 <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) {              
a0002b20:	e5942084 	ldr	r2, [r4, #132]	; 0x84                         
a0002b24:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
a0002b28:	e1520003 	cmp	r2, r3                                        
a0002b2c:	1afffff1 	bne	a0002af8 <drainOutput+0x20>                   
a0002b30:	e129f000 	msr	CPSR_fc, r0                                   
a0002b34:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

a00037ac <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)
a00037ac:	e5903020 	ldr	r3, [r0, #32]                                 
 * FIXME: Needs support for WERASE and ECHOPRT.                       
 * FIXME: Some of the tests should check for IEXTEN, too.             
 */                                                                   
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
a00037b0:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  if (tty->ccount == 0)                                               
a00037b4:	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)                   
{                                                                     
a00037b8:	e1a04000 	mov	r4, r0                                        
a00037bc:	e1a07001 	mov	r7, r1                                        
  if (tty->ccount == 0)                                               
a00037c0:	0a000067 	beq	a0003964 <erase+0x1b8>                        
    return;                                                           
  if (lineFlag) {                                                     
a00037c4:	e3510000 	cmp	r1, #0                                        
a00037c8:	0a000061 	beq	a0003954 <erase+0x1a8>                        
    if (!(tty->termios.c_lflag & ECHO)) {                             
a00037cc:	e590303c 	ldr	r3, [r0, #60]	; 0x3c                          
a00037d0:	e2132008 	ands	r2, r3, #8                                   
a00037d4:	1a000001 	bne	a00037e0 <erase+0x34>                         
      tty->ccount = 0;                                                
a00037d8:	e5802020 	str	r2, [r0, #32]                                 <== NOT EXECUTED
      return;                                                         
a00037dc:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
a00037e0:	e2133010 	ands	r3, r3, #16                                  
a00037e4:	1a00005a 	bne	a0003954 <erase+0x1a8>                        
      tty->ccount = 0;                                                
a00037e8:	e5803020 	str	r3, [r0, #32]                                 <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
a00037ec:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
a00037f0:	e5d00044 	ldrb	r0, [r0, #68]	; 0x44                         <== NOT EXECUTED
a00037f4:	ebffffc9 	bl	a0003720 <echo>                                <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
a00037f8:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
a00037fc:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
        echo ('\n', tty);                                             
a0003800:	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)                               
a0003804:	0a000056 	beq	a0003964 <erase+0x1b8>                        <== NOT EXECUTED
a0003808:	ea00000b 	b	a000383c <erase+0x90>                           <== NOT EXECUTED
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
a000380c:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
a0003810:	e594001c 	ldr	r0, [r4, #28]                                 
a0003814:	e2411001 	sub	r1, r1, #1                                    
a0003818:	e5841020 	str	r1, [r4, #32]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
a000381c:	e3130008 	tst	r3, #8                                        
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
a0003820:	e7d05001 	ldrb	r5, [r0, r1]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
a0003824:	0a000047 	beq	a0003948 <erase+0x19c>                        
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
a0003828:	e3570000 	cmp	r7, #0                                        
a000382c:	1a000005 	bne	a0003848 <erase+0x9c>                         
a0003830:	e3130010 	tst	r3, #16                                       
a0003834:	1a000003 	bne	a0003848 <erase+0x9c>                         
        echo (tty->termios.c_cc[VERASE], tty);                        
a0003838:	e5d40043 	ldrb	r0, [r4, #67]	; 0x43                         <== NOT EXECUTED
a000383c:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
a0003840:	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);                        
a0003844:	eaffffb5 	b	a0003720 <echo>                                 <== NOT EXECUTED
      } else if (c == '\t') {                                         
a0003848:	e3550009 	cmp	r5, #9                                        
a000384c:	1a00001f 	bne	a00038d0 <erase+0x124>                        
        int col = tty->read_start_column;                             
a0003850:	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)) {                                   
a0003854:	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;                                                    
a0003858:	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)                       
a000385c:	e2033c02 	and	r3, r3, #512	; 0x200                          
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
a0003860:	ea00000c 	b	a0003898 <erase+0xec>                           
          c = tty->cbuf[i++];                                         
a0003864:	e7d0c002 	ldrb	ip, [r0, r2]                                 
a0003868:	e2822001 	add	r2, r2, #1                                    
          if (c == '\t') {                                            
a000386c:	e35c0009 	cmp	ip, #9                                        
            col = (col | 7) + 1;                                      
a0003870:	03855007 	orreq	r5, r5, #7                                  
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
a0003874:	0a000006 	beq	a0003894 <erase+0xe8>                         
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
a0003878:	e088c00c 	add	ip, r8, ip                                    
a000387c:	e5dcc001 	ldrb	ip, [ip, #1]                                 
a0003880:	e31c0020 	tst	ip, #32                                       
a0003884:	0a000002 	beq	a0003894 <erase+0xe8>                         
            if (tty->termios.c_lflag & ECHOCTL)                       
a0003888:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
              col += 2;                                               
a000388c:	12855002 	addne	r5, r5, #2                                  <== NOT EXECUTED
a0003890:	ea000000 	b	a0003898 <erase+0xec>                           <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
a0003894:	e2855001 	add	r5, r5, #1                                    
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
a0003898:	e1520001 	cmp	r2, r1                                        
a000389c:	1afffff0 	bne	a0003864 <erase+0xb8>                         
a00038a0:	ea000006 	b	a00038c0 <erase+0x114>                          
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
a00038a4:	e59f00bc 	ldr	r0, [pc, #188]	; a0003968 <erase+0x1bc>       
a00038a8:	e3a01001 	mov	r1, #1                                        
a00038ac:	e1a02004 	mov	r2, r4                                        
a00038b0:	ebffff05 	bl	a00034cc <rtems_termios_puts>                  
          tty->column--;                                              
a00038b4:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
a00038b8:	e2433001 	sub	r3, r3, #1                                    
a00038bc:	e5843028 	str	r3, [r4, #40]	; 0x28                          
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
a00038c0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
a00038c4:	e1530005 	cmp	r3, r5                                        
a00038c8:	cafffff5 	bgt	a00038a4 <erase+0xf8>                         
a00038cc:	ea00001d 	b	a0003948 <erase+0x19c>                          
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
a00038d0:	e5962000 	ldr	r2, [r6]                                      
a00038d4:	e2855001 	add	r5, r5, #1                                    
a00038d8:	e7d22005 	ldrb	r2, [r2, r5]                                 
a00038dc:	e3120020 	tst	r2, #32                                       
a00038e0:	0a000009 	beq	a000390c <erase+0x160>                        
a00038e4:	e3130c02 	tst	r3, #512	; 0x200                              <== NOT EXECUTED
a00038e8:	0a000007 	beq	a000390c <erase+0x160>                        <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
a00038ec:	e59f0078 	ldr	r0, [pc, #120]	; a000396c <erase+0x1c0>       <== NOT EXECUTED
a00038f0:	e3a01003 	mov	r1, #3                                        <== NOT EXECUTED
a00038f4:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
a00038f8:	ebfffef3 	bl	a00034cc <rtems_termios_puts>                  <== NOT EXECUTED
          if (tty->column)                                            
a00038fc:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
a0003900:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->column--;                                            
a0003904:	12433001 	subne	r3, r3, #1                                  <== NOT EXECUTED
a0003908:	15843028 	strne	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
a000390c:	e5963000 	ldr	r3, [r6]                                      
a0003910:	e7d33005 	ldrb	r3, [r3, r5]                                 
a0003914:	e3130020 	tst	r3, #32                                       
a0003918:	0a000002 	beq	a0003928 <erase+0x17c>                        
a000391c:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
a0003920:	e3130c02 	tst	r3, #512	; 0x200                              <== NOT EXECUTED
a0003924:	0a000007 	beq	a0003948 <erase+0x19c>                        <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
a0003928:	e59f003c 	ldr	r0, [pc, #60]	; a000396c <erase+0x1c0>        
a000392c:	e3a01003 	mov	r1, #3                                        
a0003930:	e1a02004 	mov	r2, r4                                        
a0003934:	ebfffee4 	bl	a00034cc <rtems_termios_puts>                  
          if (tty->column)                                            
a0003938:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
a000393c:	e3530000 	cmp	r3, #0                                        
            tty->column--;                                            
a0003940:	12433001 	subne	r3, r3, #1                                  
a0003944:	15843028 	strne	r3, [r4, #40]	; 0x28                        
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
a0003948:	e3570000 	cmp	r7, #0                                        
a000394c:	1a000001 	bne	a0003958 <erase+0x1ac>                        
a0003950:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
a0003954:	e59f6014 	ldr	r6, [pc, #20]	; a0003970 <erase+0x1c4>        
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
a0003958:	e5941020 	ldr	r1, [r4, #32]                                 
a000395c:	e3510000 	cmp	r1, #0                                        
a0003960:	1affffa9 	bne	a000380c <erase+0x60>                         
a0003964:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

a0002530 <fcntl>: int fcntl( int fd, int cmd, ... ) {
a0002530:	e92d000e 	push	{r1, r2, r3}                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
a0002534:	e59f21a8 	ldr	r2, [pc, #424]	; a00026e4 <fcntl+0x1b4>       
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
a0002538:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
a000253c:	e5921000 	ldr	r1, [r2]                                      
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
a0002540:	e28d301c 	add	r3, sp, #28                                   
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
a0002544:	e59d7018 	ldr	r7, [sp, #24]                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
a0002548:	e1500001 	cmp	r0, r1                                        
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
a000254c:	e58d3000 	str	r3, [sp]                                      
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
a0002550:	2a000006 	bcs	a0002570 <fcntl+0x40>                         
  iop = rtems_libio_iop( fd );                                        
a0002554:	e59f218c 	ldr	r2, [pc, #396]	; a00026e8 <fcntl+0x1b8>       
a0002558:	e3a04038 	mov	r4, #56	; 0x38                                
a000255c:	e5922000 	ldr	r2, [r2]                                      
a0002560:	e0242490 	mla	r4, r0, r4, r2                                
  rtems_libio_check_is_open(iop);                                     
a0002564:	e5940014 	ldr	r0, [r4, #20]                                 
a0002568:	e3100c01 	tst	r0, #256	; 0x100                              
a000256c:	1a000002 	bne	a000257c <fcntl+0x4c>                         
a0002570:	eb002d54 	bl	a000dac8 <__errno>                             
a0002574:	e3a03009 	mov	r3, #9                                        
a0002578:	ea000047 	b	a000269c <fcntl+0x16c>                          
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
a000257c:	e3570009 	cmp	r7, #9                                        
a0002580:	979ff107 	ldrls	pc, [pc, r7, lsl #2]                        
a0002584:	ea000042 	b	a0002694 <fcntl+0x164>                          
a0002588:	a00025b0 	.word	0xa00025b0                                  
a000258c:	a0002620 	.word	0xa0002620                                  
a0002590:	a0002630 	.word	0xa0002630                                  
a0002594:	a0002650 	.word	0xa0002650                                  
a0002598:	a000265c 	.word	0xa000265c                                  
a000259c:	a0002688 	.word	0xa0002688                                  
a00025a0:	a0002688 	.word	0xa0002688                                  
a00025a4:	a0002688 	.word	0xa0002688                                  
a00025a8:	a0002688 	.word	0xa0002688                                  
a00025ac:	a0002688 	.word	0xa0002688                                  
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
a00025b0:	e5933000 	ldr	r3, [r3]                                      
      if ( fd2 )                                                      
a00025b4:	e3530000 	cmp	r3, #0                                        
a00025b8:	0a000004 	beq	a00025d0 <fcntl+0xa0>                         
        diop = rtems_libio_iop( fd2 );                                
a00025bc:	e1530001 	cmp	r3, r1                                        
a00025c0:	33a06038 	movcc	r6, #56	; 0x38                              
a00025c4:	30262693 	mlacc	r6, r3, r6, r2                              
a00025c8:	3a000005 	bcc	a00025e4 <fcntl+0xb4>                         
a00025cc:	ea000003 	b	a00025e0 <fcntl+0xb0>                           <== NOT EXECUTED
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
a00025d0:	eb00019c 	bl	a0002c48 <rtems_libio_allocate>                
        if ( diop == 0 ) {                                            
a00025d4:	e2506000 	subs	r6, r0, #0                                   
a00025d8:	1a000001 	bne	a00025e4 <fcntl+0xb4>                         
a00025dc:	ea00003b 	b	a00026d0 <fcntl+0x1a0>                          <== NOT EXECUTED
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
      if ( fd2 )                                                      
        diop = rtems_libio_iop( fd2 );                                
a00025e0:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
a00025e4:	e5943014 	ldr	r3, [r4, #20]                                 
      diop->pathinfo   = iop->pathinfo;                               
a00025e8:	e286c018 	add	ip, r6, #24                                   
a00025ec:	e2845018 	add	r5, r4, #24                                   
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
a00025f0:	e5863014 	str	r3, [r6, #20]                                 
      diop->pathinfo   = iop->pathinfo;                               
a00025f4:	e8b5000f 	ldm	r5!, {r0, r1, r2, r3}                         
a00025f8:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a00025fc:	e5953000 	ldr	r3, [r5]                                      
a0002600:	e58c3000 	str	r3, [ip]                                      
      ret = (int) (diop - rtems_libio_iops);                          
a0002604:	e59f30dc 	ldr	r3, [pc, #220]	; a00026e8 <fcntl+0x1b8>       
a0002608:	e5933000 	ldr	r3, [r3]                                      
a000260c:	e0636006 	rsb	r6, r3, r6                                    
a0002610:	e59f30d4 	ldr	r3, [pc, #212]	; a00026ec <fcntl+0x1bc>       
a0002614:	e1a061c6 	asr	r6, r6, #3                                    
a0002618:	e0060693 	mul	r6, r3, r6                                    
a000261c:	ea000020 	b	a00026a4 <fcntl+0x174>                          
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
a0002620:	e3100b02 	tst	r0, #2048	; 0x800                             
a0002624:	03a06000 	moveq	r6, #0                                      
a0002628:	13a06001 	movne	r6, #1                                      
a000262c:	ea00001e 	b	a00026ac <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 ) )                                        
a0002630:	e5936000 	ldr	r6, [r3]                                      
a0002634:	e3560000 	cmp	r6, #0                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
a0002638:	13800b02 	orrne	r0, r0, #2048	; 0x800                       
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
a000263c:	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;                      
a0002640:	15840014 	strne	r0, [r4, #20]                               
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
a0002644:	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 ) )                                        
a0002648:	0a000017 	beq	a00026ac <fcntl+0x17c>                        
a000264c:	ea00000b 	b	a0002680 <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 );                 
a0002650:	eb00016a 	bl	a0002c00 <rtems_libio_to_fcntl_flags>          
a0002654:	e1a06000 	mov	r6, r0                                        
a0002658:	ea000011 	b	a00026a4 <fcntl+0x174>                          
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
a000265c:	e5930000 	ldr	r0, [r3]                                      
a0002660:	eb000159 	bl	a0002bcc <rtems_libio_fcntl_flags>             
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
a0002664:	e5942014 	ldr	r2, [r4, #20]                                 
a0002668:	e59f3080 	ldr	r3, [pc, #128]	; a00026f0 <fcntl+0x1c0>       
a000266c:	e3c22c02 	bic	r2, r2, #512	; 0x200                          
a0002670:	e0003003 	and	r3, r0, r3                                    
a0002674:	e3c22001 	bic	r2, r2, #1                                    
a0002678:	e1833002 	orr	r3, r3, r2                                    
a000267c:	e5843014 	str	r3, [r4, #20]                                 
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
a0002680:	e3a06000 	mov	r6, #0                                        
a0002684:	ea000008 	b	a00026ac <fcntl+0x17c>                          
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
a0002688:	eb002d0e 	bl	a000dac8 <__errno>                             
a000268c:	e3a03086 	mov	r3, #134	; 0x86                               
a0002690:	ea000001 	b	a000269c <fcntl+0x16c>                          
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
a0002694:	eb002d0b 	bl	a000dac8 <__errno>                             
a0002698:	e3a03016 	mov	r3, #22                                       
a000269c:	e5803000 	str	r3, [r0]                                      
a00026a0:	ea00000a 	b	a00026d0 <fcntl+0x1a0>                          
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
a00026a4:	e3560000 	cmp	r6, #0                                        
a00026a8:	ba000009 	blt	a00026d4 <fcntl+0x1a4>                        
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
a00026ac:	e5943020 	ldr	r3, [r4, #32]                                 
a00026b0:	e1a01004 	mov	r1, r4                                        
a00026b4:	e1a00007 	mov	r0, r7                                        
a00026b8:	e5933030 	ldr	r3, [r3, #48]	; 0x30                          
a00026bc:	e12fff33 	blx	r3                                            
    if (err) {                                                        
a00026c0:	e2504000 	subs	r4, r0, #0                                   
a00026c4:	0a000002 	beq	a00026d4 <fcntl+0x1a4>                        
      errno = err;                                                    
a00026c8:	eb002cfe 	bl	a000dac8 <__errno>                             <== NOT EXECUTED
a00026cc:	e5804000 	str	r4, [r0]                                      <== NOT EXECUTED
      ret = -1;                                                       
a00026d0:	e3e06000 	mvn	r6, #0                                        
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
a00026d4:	e1a00006 	mov	r0, r6                                        
a00026d8:	e8bd40f8 	pop	{r3, r4, r5, r6, r7, lr}                      
a00026dc:	e28dd00c 	add	sp, sp, #12                                   
a00026e0:	e12fff1e 	bx	lr                                             
                                                                      

a000b404 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
a000b404:	e92d45f7 	push	{r0, r1, r2, r4, r5, r6, r7, r8, sl, lr}     
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
a000b408:	e59f53d0 	ldr	r5, [pc, #976]	; a000b7e0 <fifo_open+0x3dc>   
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
a000b40c:	e1a08000 	mov	r8, r0                                        
a000b410:	e1a07001 	mov	r7, r1                                        
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
a000b414:	e5954000 	ldr	r4, [r5]                                      
a000b418:	e3540000 	cmp	r4, #0                                        
a000b41c:	1a000012 	bne	a000b46c <fifo_open+0x68>                     
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 );
a000b420:	e59f33bc 	ldr	r3, [pc, #956]	; a000b7e4 <fifo_open+0x3e0>   
a000b424:	e1a01004 	mov	r1, r4                                        
a000b428:	e1a02004 	mov	r2, r4                                        
a000b42c:	e5930000 	ldr	r0, [r3]                                      
a000b430:	ebffee8f 	bl	a0006e74 <rtems_semaphore_obtain>              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
a000b434:	e5953000 	ldr	r3, [r5]                                      
a000b438:	e3530000 	cmp	r3, #0                                        
a000b43c:	1a000005 	bne	a000b458 <fifo_open+0x54>                     
      sc = rtems_semaphore_create(                                    
a000b440:	e59f03a0 	ldr	r0, [pc, #928]	; a000b7e8 <fifo_open+0x3e4>   
a000b444:	e3a01001 	mov	r1, #1                                        
a000b448:	e3a02054 	mov	r2, #84	; 0x54                                
a000b44c:	e58d5000 	str	r5, [sp]                                      
a000b450:	ebffedf5 	bl	a0006c2c <rtems_semaphore_create>              
a000b454:	e1a04000 	mov	r4, r0                                        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
a000b458:	e59f3384 	ldr	r3, [pc, #900]	; a000b7e4 <fifo_open+0x3e0>   
a000b45c:	e5930000 	ldr	r0, [r3]                                      
a000b460:	ebffeec9 	bl	a0006f8c <rtems_semaphore_release>             
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
a000b464:	e3540000 	cmp	r4, #0                                        
a000b468:	1a000006 	bne	a000b488 <fifo_open+0x84>                     
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a000b46c:	e59f336c 	ldr	r3, [pc, #876]	; a000b7e0 <fifo_open+0x3dc>   
a000b470:	e3a01000 	mov	r1, #0                                        
a000b474:	e1a02001 	mov	r2, r1                                        
a000b478:	e5930000 	ldr	r0, [r3]                                      
a000b47c:	ebffee7c 	bl	a0006e74 <rtems_semaphore_obtain>              
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
a000b480:	e2505000 	subs	r5, r0, #0                                   
a000b484:	0a000000 	beq	a000b48c <fifo_open+0x88>                     
    return 0;                                                         
  } else {                                                            
    return -ENOMEM;                                                   
a000b488:	e3e0500b 	mvn	r5, #11                                       
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
a000b48c:	e2556000 	subs	r6, r5, #0                                   
a000b490:	1a0000d0 	bne	a000b7d8 <fifo_open+0x3d4>                    
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
a000b494:	e5984000 	ldr	r4, [r8]                                      
  if (pipe == NULL) {                                                 
a000b498:	e3540000 	cmp	r4, #0                                        
a000b49c:	1a00004d 	bne	a000b5d8 <fifo_open+0x1d4>                    
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
a000b4a0:	e3a00034 	mov	r0, #52	; 0x34                                
a000b4a4:	ebffe28e 	bl	a0003ee4 <malloc>                              
  if (pipe == NULL)                                                   
a000b4a8:	e250a000 	subs	sl, r0, #0                                   
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
a000b4ac:	e1a04000 	mov	r4, r0                                        
  if (pipe == NULL)                                                   
a000b4b0:	0a000046 	beq	a000b5d0 <fifo_open+0x1cc>                    
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
a000b4b4:	e1a01005 	mov	r1, r5                                        
a000b4b8:	e3a02034 	mov	r2, #52	; 0x34                                
a000b4bc:	eb00129c 	bl	a000ff34 <memset>                              
                                                                      
  pipe->Size = PIPE_BUF;                                              
a000b4c0:	e3a00c02 	mov	r0, #512	; 0x200                              
a000b4c4:	e5840004 	str	r0, [r4, #4]                                  
  pipe->Buffer = malloc(pipe->Size);                                  
a000b4c8:	ebffe285 	bl	a0003ee4 <malloc>                              
  if (! pipe->Buffer)                                                 
a000b4cc:	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);                                  
a000b4d0:	e5840000 	str	r0, [r4]                                      
  if (! pipe->Buffer)                                                 
a000b4d4:	0a00003b 	beq	a000b5c8 <fifo_open+0x1c4>                    
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
a000b4d8:	e59f630c 	ldr	r6, [pc, #780]	; a000b7ec <fifo_open+0x3e8>   
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
a000b4dc:	e59f030c 	ldr	r0, [pc, #780]	; a000b7f0 <fifo_open+0x3ec>   
a000b4e0:	e1a01005 	mov	r1, r5                                        
        rtems_build_name ('P', 'I', 'r', c),                          
a000b4e4:	e5d63000 	ldrb	r3, [r6]                                     
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
a000b4e8:	e1a02005 	mov	r2, r5                                        
a000b4ec:	e1830000 	orr	r0, r3, r0                                    
a000b4f0:	e284302c 	add	r3, r4, #44	; 0x2c                            
a000b4f4:	eb000629 	bl	a000cda0 <rtems_barrier_create>                
a000b4f8:	e3500000 	cmp	r0, #0                                        
a000b4fc:	1a00002f 	bne	a000b5c0 <fifo_open+0x1bc>                    
        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),                          
a000b500:	e5d63000 	ldrb	r3, [r6]                                     
  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(                                           
a000b504:	e59f02e8 	ldr	r0, [pc, #744]	; a000b7f4 <fifo_open+0x3f0>   
a000b508:	e1a01005 	mov	r1, r5                                        
a000b50c:	e1a02005 	mov	r2, r5                                        
a000b510:	e1830000 	orr	r0, r3, r0                                    
a000b514:	e2843030 	add	r3, r4, #48	; 0x30                            
a000b518:	eb000620 	bl	a000cda0 <rtems_barrier_create>                
a000b51c:	e3500000 	cmp	r0, #0                                        
a000b520:	1a000024 	bne	a000b5b8 <fifo_open+0x1b4>                    
        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,                       
a000b524:	e5d63000 	ldrb	r3, [r6]                                     
  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(                                         
a000b528:	e59f02c8 	ldr	r0, [pc, #712]	; a000b7f8 <fifo_open+0x3f4>   
a000b52c:	e2842028 	add	r2, r4, #40	; 0x28                            
a000b530:	e58d2000 	str	r2, [sp]                                      
a000b534:	e1830000 	orr	r0, r3, r0                                    
a000b538:	e3a01001 	mov	r1, #1                                        
a000b53c:	e3a02010 	mov	r2, #16                                       
a000b540:	e1a03005 	mov	r3, r5                                        
a000b544:	ebffedb8 	bl	a0006c2c <rtems_semaphore_create>              
a000b548:	e3500000 	cmp	r0, #0                                        
a000b54c:	1a000017 	bne	a000b5b0 <fifo_open+0x1ac>                    
/* 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
a000b550:	e28d5004 	add	r5, sp, #4                                    
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
    _Objects_Get( &_Barrier_Information, id, location );              
a000b554:	e594102c 	ldr	r1, [r4, #44]	; 0x2c                          
a000b558:	e1a02005 	mov	r2, r5                                        
a000b55c:	e59f0298 	ldr	r0, [pc, #664]	; a000b7fc <fifo_open+0x3f8>   
a000b560:	ebfff3ff 	bl	a0008564 <_Objects_Get>                        
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
a000b564:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
a000b568:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
a000b56c:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
a000b570:	ebfff6c1 	bl	a000907c <_Thread_Enable_dispatch>             
a000b574:	e1a02005 	mov	r2, r5                                        
a000b578:	e5941030 	ldr	r1, [r4, #48]	; 0x30                          
a000b57c:	e59f0278 	ldr	r0, [pc, #632]	; a000b7fc <fifo_open+0x3f8>   
a000b580:	ebfff3f7 	bl	a0008564 <_Objects_Get>                        
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
a000b584:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
a000b588:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
a000b58c:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
a000b590:	ebfff6b9 	bl	a000907c <_Thread_Enable_dispatch>             
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
a000b594:	e5d63000 	ldrb	r3, [r6]                                     
a000b598:	e353007a 	cmp	r3, #122	; 0x7a                               
a000b59c:	e2832001 	add	r2, r3, #1                                    
    c = 'a';                                                          
a000b5a0:	03a03061 	moveq	r3, #97	; 0x61                              
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
a000b5a4:	e5c62000 	strb	r2, [r6]                                     
    c = 'a';                                                          
a000b5a8:	05c63000 	strbeq	r3, [r6]                                   
a000b5ac:	ea000009 	b	a000b5d8 <fifo_open+0x1d4>                      
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
a000b5b0:	e59a0030 	ldr	r0, [sl, #48]	; 0x30                          
a000b5b4:	eb000629 	bl	a000ce60 <rtems_barrier_delete>                
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
a000b5b8:	e59a002c 	ldr	r0, [sl, #44]	; 0x2c                          
a000b5bc:	eb000627 	bl	a000ce60 <rtems_barrier_delete>                
err_rbar:                                                             
  free(pipe->Buffer);                                                 
a000b5c0:	e59a0000 	ldr	r0, [sl]                                      
a000b5c4:	ebffe059 	bl	a0003730 <free>                                
err_buf:                                                              
  free(pipe);                                                         
a000b5c8:	e1a0000a 	mov	r0, sl                                        
a000b5cc:	ebffe057 	bl	a0003730 <free>                                
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
a000b5d0:	e3e0600b 	mvn	r6, #11                                       
a000b5d4:	ea00000e 	b	a000b614 <fifo_open+0x210>                      
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b5d8:	e3a01000 	mov	r1, #0                                        
a000b5dc:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b5e0:	e1a02001 	mov	r2, r1                                        
a000b5e4:	ebffee22 	bl	a0006e74 <rtems_semaphore_obtain>              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
a000b5e8:	e5983000 	ldr	r3, [r8]                                      
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
a000b5ec:	e3500000 	cmp	r0, #0                                        
a000b5f0:	03a06000 	moveq	r6, #0                                      
a000b5f4:	13e06003 	mvnne	r6, #3                                      
                                                                      
  if (*pipep == NULL) {                                               
a000b5f8:	e3530000 	cmp	r3, #0                                        
a000b5fc:	1a000004 	bne	a000b614 <fifo_open+0x210>                    
    if (err)                                                          
a000b600:	e3560000 	cmp	r6, #0                                        
      pipe_free(pipe);                                                
    else                                                              
      *pipep = pipe;                                                  
a000b604:	05884000 	streq	r4, [r8]                                    
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    if (err)                                                          
a000b608:	0a000001 	beq	a000b614 <fifo_open+0x210>                    
      pipe_free(pipe);                                                
a000b60c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a000b610:	ebffff42 	bl	a000b320 <pipe_free>                           <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
a000b614:	ebffff3d 	bl	a000b310 <pipe_unlock>                         
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
a000b618:	e3560000 	cmp	r6, #0                                        
a000b61c:	1a00006d 	bne	a000b7d8 <fifo_open+0x3d4>                    
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
a000b620:	e5973014 	ldr	r3, [r7, #20]                                 
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
a000b624:	e5984000 	ldr	r4, [r8]                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
a000b628:	e2033006 	and	r3, r3, #6                                    
a000b62c:	e3530004 	cmp	r3, #4                                        
a000b630:	0a000025 	beq	a000b6cc <fifo_open+0x2c8>                    
a000b634:	e3530006 	cmp	r3, #6                                        
a000b638:	0a000049 	beq	a000b764 <fifo_open+0x360>                    
a000b63c:	e3530002 	cmp	r3, #2                                        
a000b640:	1a00005d 	bne	a000b7bc <fifo_open+0x3b8>                    
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
a000b644:	e5943020 	ldr	r3, [r4, #32]                                 
a000b648:	e2833001 	add	r3, r3, #1                                    
a000b64c:	e5843020 	str	r3, [r4, #32]                                 
      if (pipe->Readers ++ == 0)                                      
a000b650:	e5943010 	ldr	r3, [r4, #16]                                 
a000b654:	e2832001 	add	r2, r3, #1                                    
a000b658:	e3530000 	cmp	r3, #0                                        
a000b65c:	e5842010 	str	r2, [r4, #16]                                 
a000b660:	1a000002 	bne	a000b670 <fifo_open+0x26c>                    
        PIPE_WAKEUPWRITERS(pipe);                                     
a000b664:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
a000b668:	e28d1008 	add	r1, sp, #8                                    
a000b66c:	eb000623 	bl	a000cf00 <rtems_barrier_release>               
                                                                      
      if (pipe->Writers == 0) {                                       
a000b670:	e5943014 	ldr	r3, [r4, #20]                                 
a000b674:	e3530000 	cmp	r3, #0                                        
a000b678:	1a00004f 	bne	a000b7bc <fifo_open+0x3b8>                    
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
a000b67c:	e5973014 	ldr	r3, [r7, #20]                                 
a000b680:	e3130001 	tst	r3, #1                                        
a000b684:	1a00004c 	bne	a000b7bc <fifo_open+0x3b8>                    
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
a000b688:	e5945024 	ldr	r5, [r4, #36]	; 0x24                          
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
a000b68c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b690:	ebffee3d 	bl	a0006f8c <rtems_semaphore_release>             
          if (! PIPE_READWAIT(pipe))                                  
a000b694:	e3a01000 	mov	r1, #0                                        
a000b698:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a000b69c:	eb00062d 	bl	a000cf58 <rtems_barrier_wait>                  
a000b6a0:	e2501000 	subs	r1, r0, #0                                   
a000b6a4:	1a000047 	bne	a000b7c8 <fifo_open+0x3c4>                    
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
a000b6a8:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b6ac:	e1a02001 	mov	r2, r1                                        
a000b6b0:	ebffedef 	bl	a0006e74 <rtems_semaphore_obtain>              
a000b6b4:	e3500000 	cmp	r0, #0                                        
a000b6b8:	1a000042 	bne	a000b7c8 <fifo_open+0x3c4>                    
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
a000b6bc:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
a000b6c0:	e1550003 	cmp	r5, r3                                        
a000b6c4:	0afffff0 	beq	a000b68c <fifo_open+0x288>                    
a000b6c8:	ea00003b 	b	a000b7bc <fifo_open+0x3b8>                      
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
a000b6cc:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
a000b6d0:	e2833001 	add	r3, r3, #1                                    
a000b6d4:	e5843024 	str	r3, [r4, #36]	; 0x24                          
                                                                      
      if (pipe->Writers ++ == 0)                                      
a000b6d8:	e5943014 	ldr	r3, [r4, #20]                                 
a000b6dc:	e2832001 	add	r2, r3, #1                                    
a000b6e0:	e3530000 	cmp	r3, #0                                        
a000b6e4:	e5842014 	str	r2, [r4, #20]                                 
a000b6e8:	1a000002 	bne	a000b6f8 <fifo_open+0x2f4>                    
        PIPE_WAKEUPREADERS(pipe);                                     
a000b6ec:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a000b6f0:	e28d1008 	add	r1, sp, #8                                    
a000b6f4:	eb000601 	bl	a000cf00 <rtems_barrier_release>               
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
a000b6f8:	e5943010 	ldr	r3, [r4, #16]                                 
a000b6fc:	e3530000 	cmp	r3, #0                                        
a000b700:	1a00002d 	bne	a000b7bc <fifo_open+0x3b8>                    
a000b704:	e5973014 	ldr	r3, [r7, #20]                                 
a000b708:	e3130001 	tst	r3, #1                                        
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
a000b70c:	05945020 	ldreq	r5, [r4, #32]                               
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
a000b710:	0a000003 	beq	a000b724 <fifo_open+0x320>                    
	PIPE_UNLOCK(pipe);                                                   
a000b714:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b718:	ebffee1b 	bl	a0006f8c <rtems_semaphore_release>             
        err = -ENXIO;                                                 
a000b71c:	e3e06005 	mvn	r6, #5                                        
        goto out_error;                                               
a000b720:	ea000029 	b	a000b7cc <fifo_open+0x3c8>                      
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
a000b724:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b728:	ebffee17 	bl	a0006f8c <rtems_semaphore_release>             
          if (! PIPE_WRITEWAIT(pipe))                                 
a000b72c:	e3a01000 	mov	r1, #0                                        
a000b730:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
a000b734:	eb000607 	bl	a000cf58 <rtems_barrier_wait>                  
a000b738:	e2501000 	subs	r1, r0, #0                                   
a000b73c:	1a000021 	bne	a000b7c8 <fifo_open+0x3c4>                    
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
a000b740:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b744:	e1a02001 	mov	r2, r1                                        
a000b748:	ebffedc9 	bl	a0006e74 <rtems_semaphore_obtain>              
a000b74c:	e3500000 	cmp	r0, #0                                        
a000b750:	1a00001c 	bne	a000b7c8 <fifo_open+0x3c4>                    
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
a000b754:	e5943020 	ldr	r3, [r4, #32]                                 
a000b758:	e1550003 	cmp	r5, r3                                        
a000b75c:	0afffff0 	beq	a000b724 <fifo_open+0x320>                    
a000b760:	ea000015 	b	a000b7bc <fifo_open+0x3b8>                      
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
a000b764:	e5943020 	ldr	r3, [r4, #32]                                 
a000b768:	e2833001 	add	r3, r3, #1                                    
a000b76c:	e5843020 	str	r3, [r4, #32]                                 
      if (pipe->Readers ++ == 0)                                      
a000b770:	e5943010 	ldr	r3, [r4, #16]                                 
a000b774:	e2832001 	add	r2, r3, #1                                    
a000b778:	e3530000 	cmp	r3, #0                                        
a000b77c:	e5842010 	str	r2, [r4, #16]                                 
a000b780:	1a000002 	bne	a000b790 <fifo_open+0x38c>                    
        PIPE_WAKEUPWRITERS(pipe);                                     
a000b784:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
a000b788:	e28d1008 	add	r1, sp, #8                                    
a000b78c:	eb0005db 	bl	a000cf00 <rtems_barrier_release>               
      pipe->writerCounter ++;                                         
a000b790:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
a000b794:	e2833001 	add	r3, r3, #1                                    
a000b798:	e5843024 	str	r3, [r4, #36]	; 0x24                          
      if (pipe->Writers ++ == 0)                                      
a000b79c:	e5943014 	ldr	r3, [r4, #20]                                 
a000b7a0:	e2832001 	add	r2, r3, #1                                    
a000b7a4:	e3530000 	cmp	r3, #0                                        
a000b7a8:	e5842014 	str	r2, [r4, #20]                                 
a000b7ac:	1a000002 	bne	a000b7bc <fifo_open+0x3b8>                    
        PIPE_WAKEUPREADERS(pipe);                                     
a000b7b0:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a000b7b4:	e28d1008 	add	r1, sp, #8                                    
a000b7b8:	eb0005d0 	bl	a000cf00 <rtems_barrier_release>               
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
a000b7bc:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b7c0:	ebffedf1 	bl	a0006f8c <rtems_semaphore_release>             
  return 0;                                                           
a000b7c4:	ea000003 	b	a000b7d8 <fifo_open+0x3d4>                      
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
a000b7c8:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
a000b7cc:	e1a00008 	mov	r0, r8                                        
a000b7d0:	e1a01007 	mov	r1, r7                                        
a000b7d4:	ebfffede 	bl	a000b354 <pipe_release>                        
  return err;                                                         
}                                                                     
a000b7d8:	e1a00006 	mov	r0, r6                                        
a000b7dc:	e8bd85fe 	pop	{r1, r2, r3, r4, r5, r6, r7, r8, sl, pc}      
                                                                      

a0002774 <fpathconf>: { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd);
a0002774:	e59f3104 	ldr	r3, [pc, #260]	; a0002880 <fpathconf+0x10c>   
                                                                      
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
a0002778:	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);                                           
a000277c:	e5933000 	ldr	r3, [r3]                                      
a0002780:	e1500003 	cmp	r0, r3                                        
a0002784:	2a000006 	bcs	a00027a4 <fpathconf+0x30>                     
  iop = rtems_libio_iop(fd);                                          
a0002788:	e59f30f4 	ldr	r3, [pc, #244]	; a0002884 <fpathconf+0x110>   
a000278c:	e3a02038 	mov	r2, #56	; 0x38                                
a0002790:	e5933000 	ldr	r3, [r3]                                      
a0002794:	e0203092 	mla	r0, r2, r0, r3                                
  rtems_libio_check_is_open(iop);                                     
a0002798:	e5903014 	ldr	r3, [r0, #20]                                 
a000279c:	e3130c01 	tst	r3, #256	; 0x100                              
a00027a0:	1a000002 	bne	a00027b0 <fpathconf+0x3c>                     
a00027a4:	eb002cc7 	bl	a000dac8 <__errno>                             
a00027a8:	e3a03009 	mov	r3, #9                                        
a00027ac:	ea000003 	b	a00027c0 <fpathconf+0x4c>                       
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
a00027b0:	e3130002 	tst	r3, #2                                        
a00027b4:	1a000004 	bne	a00027cc <fpathconf+0x58>                     
a00027b8:	eb002cc2 	bl	a000dac8 <__errno>                             
a00027bc:	e3a03016 	mov	r3, #22                                       
a00027c0:	e5803000 	str	r3, [r0]                                      
a00027c4:	e3e00000 	mvn	r0, #0                                        
a00027c8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
a00027cc:	e5903028 	ldr	r3, [r0, #40]	; 0x28                          
                                                                      
  switch ( name ) {                                                   
a00027d0:	e351000b 	cmp	r1, #11                                       
a00027d4:	979ff101 	ldrls	pc, [pc, r1, lsl #2]                        
a00027d8:	ea000023 	b	a000286c <fpathconf+0xf8>                       
a00027dc:	a000280c 	.word	0xa000280c                                  
a00027e0:	a0002814 	.word	0xa0002814                                  
a00027e4:	a000281c 	.word	0xa000281c                                  
a00027e8:	a0002824 	.word	0xa0002824                                  
a00027ec:	a000282c 	.word	0xa000282c                                  
a00027f0:	a0002834 	.word	0xa0002834                                  
a00027f4:	a000283c 	.word	0xa000283c                                  
a00027f8:	a0002844 	.word	0xa0002844                                  
a00027fc:	a000284c 	.word	0xa000284c                                  
a0002800:	a0002854 	.word	0xa0002854                                  
a0002804:	a000285c 	.word	0xa000285c                                  
a0002808:	a0002864 	.word	0xa0002864                                  
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
a000280c:	e5930038 	ldr	r0, [r3, #56]	; 0x38                          
      break;                                                          
a0002810:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
a0002814:	e593003c 	ldr	r0, [r3, #60]	; 0x3c                          
      break;                                                          
a0002818:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
a000281c:	e5930040 	ldr	r0, [r3, #64]	; 0x40                          
      break;                                                          
a0002820:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
a0002824:	e5930044 	ldr	r0, [r3, #68]	; 0x44                          
      break;                                                          
a0002828:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
a000282c:	e5930048 	ldr	r0, [r3, #72]	; 0x48                          
      break;                                                          
a0002830:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
a0002834:	e593004c 	ldr	r0, [r3, #76]	; 0x4c                          
      break;                                                          
a0002838:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
a000283c:	e5930054 	ldr	r0, [r3, #84]	; 0x54                          
      break;                                                          
a0002840:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
a0002844:	e5930058 	ldr	r0, [r3, #88]	; 0x58                          
      break;                                                          
a0002848:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
a000284c:	e5930064 	ldr	r0, [r3, #100]	; 0x64                         
      break;                                                          
a0002850:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
a0002854:	e5930050 	ldr	r0, [r3, #80]	; 0x50                          
      break;                                                          
a0002858:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
a000285c:	e593005c 	ldr	r0, [r3, #92]	; 0x5c                          
      break;                                                          
a0002860:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
a0002864:	e5930060 	ldr	r0, [r3, #96]	; 0x60                          
      break;                                                          
a0002868:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
a000286c:	eb002c95 	bl	a000dac8 <__errno>                             
a0002870:	e3a03016 	mov	r3, #22                                       
a0002874:	e5803000 	str	r3, [r0]                                      
a0002878:	e3e00000 	mvn	r0, #0                                        
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
a000287c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

a0002f0c <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
a0002f0c:	e59f302c 	ldr	r3, [pc, #44]	; a0002f40 <free_user_env+0x34> 
 * NOTE: this must be called with                                     
 *       thread dispatching disabled!                                 
 */                                                                   
static void                                                           
free_user_env(void *venv)                                             
{                                                                     
a0002f10:	e92d4010 	push	{r4, lr}                                     
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
a0002f14:	e1500003 	cmp	r0, r3                                        
 * NOTE: this must be called with                                     
 *       thread dispatching disabled!                                 
 */                                                                   
static void                                                           
free_user_env(void *venv)                                             
{                                                                     
a0002f18:	e1a04000 	mov	r4, r0                                        
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
a0002f1c:	0a000006 	beq	a0002f3c <free_user_env+0x30>                 
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
a0002f20:	e2800004 	add	r0, r0, #4                                    
a0002f24:	ebfffbdf 	bl	a0001ea8 <rtems_filesystem_freenode>           
    rtems_filesystem_freenode( &env->root_directory);                 
a0002f28:	e2840018 	add	r0, r4, #24                                   
a0002f2c:	ebfffbdd 	bl	a0001ea8 <rtems_filesystem_freenode>           
    free(env);                                                        
a0002f30:	e1a00004 	mov	r0, r4                                        
  }                                                                   
}                                                                     
a0002f34:	e8bd4010 	pop	{r4, lr}                                      
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
    rtems_filesystem_freenode( &env->root_directory);                 
    free(env);                                                        
a0002f38:	eafffbdf 	b	a0001ebc <free>                                 
a0002f3c:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

a000bee8 <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 )
a000bee8:	e5903018 	ldr	r3, [r0, #24]                                 
  rtems_libio_t  *iop,                                                
  const char *pathname,                                               
  uint32_t   flag,                                                    
  uint32_t   mode                                                     
)                                                                     
{                                                                     
a000beec:	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 )                            
a000bef0:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
a000bef4:	e3530001 	cmp	r3, #1                                        
a000bef8:	1a000005 	bne	a000bf14 <imfs_dir_open+0x2c>                 
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
a000befc:	e3a03000 	mov	r3, #0                                        
a000bf00:	e3a04000 	mov	r4, #0                                        
a000bf04:	e580300c 	str	r3, [r0, #12]                                 
a000bf08:	e5804010 	str	r4, [r0, #16]                                 
  return 0;                                                           
a000bf0c:	e3a00000 	mov	r0, #0                                        
a000bf10:	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 */     
a000bf14:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
                                                                      
  iop->offset = 0;                                                    
  return 0;                                                           
}                                                                     
a000bf18:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

a0003974 <iproc>: * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP)
a0003974:	e5913030 	ldr	r3, [r1, #48]	; 0x30                          
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
a0003978:	e92d4030 	push	{r4, r5, lr}                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
a000397c:	e3130020 	tst	r3, #32                                       
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
a0003980:	e20050ff 	and	r5, r0, #255	; 0xff                           
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
a0003984:	1200507f 	andne	r5, r0, #127	; 0x7f                         
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
a0003988:	e3130c02 	tst	r3, #512	; 0x200                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
a000398c:	e1a04001 	mov	r4, r1                                        
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
a0003990:	0a000007 	beq	a00039b4 <iproc+0x40>                         
    c = tolower (c);                                                  
a0003994:	e59f2170 	ldr	r2, [pc, #368]	; a0003b0c <iproc+0x198>       
a0003998:	e5922000 	ldr	r2, [r2]                                      
a000399c:	e0822005 	add	r2, r2, r5                                    
a00039a0:	e5d22001 	ldrb	r2, [r2, #1]                                 
a00039a4:	e2022003 	and	r2, r2, #3                                    
a00039a8:	e3520001 	cmp	r2, #1                                        
a00039ac:	02855020 	addeq	r5, r5, #32                                 
a00039b0:	e20550ff 	and	r5, r5, #255	; 0xff                           
                                                                      
  if (c == '\r') {                                                    
a00039b4:	e355000d 	cmp	r5, #13                                       
a00039b8:	1a000005 	bne	a00039d4 <iproc+0x60>                         
    if (tty->termios.c_iflag & IGNCR)                                 
a00039bc:	e3130080 	tst	r3, #128	; 0x80                               
a00039c0:	1a00004b 	bne	a0003af4 <iproc+0x180>                        
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
a00039c4:	e3130c01 	tst	r3, #256	; 0x100                              
a00039c8:	03a0500d 	moveq	r5, #13                                     
a00039cc:	13a0500a 	movne	r5, #10                                     
a00039d0:	ea000007 	b	a00039f4 <iproc+0x80>                           
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
a00039d4:	e355000a 	cmp	r5, #10                                       
a00039d8:	1a000003 	bne	a00039ec <iproc+0x78>                         
    c = '\r';                                                         
a00039dc:	e3130040 	tst	r3, #64	; 0x40                                
a00039e0:	03a0500a 	moveq	r5, #10                                     
a00039e4:	13a0500d 	movne	r5, #13                                     
a00039e8:	ea000001 	b	a00039f4 <iproc+0x80>                           
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
a00039ec:	e3550000 	cmp	r5, #0                                        
a00039f0:	0a00002e 	beq	a0003ab0 <iproc+0x13c>                        
a00039f4:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
a00039f8:	e3130002 	tst	r3, #2                                        
a00039fc:	0a00002b 	beq	a0003ab0 <iproc+0x13c>                        
    if (c == tty->termios.c_cc[VERASE]) {                             
a0003a00:	e5d42043 	ldrb	r2, [r4, #67]	; 0x43                         
a0003a04:	e1520005 	cmp	r2, r5                                        
      erase (tty, 0);                                                 
a0003a08:	01a00004 	moveq	r0, r4                                      
a0003a0c:	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]) {                             
a0003a10:	0a000004 	beq	a0003a28 <iproc+0xb4>                         
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
a0003a14:	e5d42044 	ldrb	r2, [r4, #68]	; 0x44                         
a0003a18:	e1520005 	cmp	r2, r5                                        
a0003a1c:	1a000003 	bne	a0003a30 <iproc+0xbc>                         
      erase (tty, 1);                                                 
a0003a20:	e1a00004 	mov	r0, r4                                        
a0003a24:	e3a01001 	mov	r1, #1                                        
a0003a28:	ebffff5f 	bl	a00037ac <erase>                               
a0003a2c:	ea000030 	b	a0003af4 <iproc+0x180>                          
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
a0003a30:	e5d42045 	ldrb	r2, [r4, #69]	; 0x45                         
a0003a34:	e1520005 	cmp	r2, r5                                        
a0003a38:	0a00002f 	beq	a0003afc <iproc+0x188>                        
      return 1;                                                       
    } else if (c == '\n') {                                           
a0003a3c:	e355000a 	cmp	r5, #10                                       
a0003a40:	1a000009 	bne	a0003a6c <iproc+0xf8>                         
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
a0003a44:	e3130048 	tst	r3, #72	; 0x48                                
a0003a48:	0a000002 	beq	a0003a58 <iproc+0xe4>                         
        echo (c, tty);                                                
a0003a4c:	e1a00005 	mov	r0, r5                                        
a0003a50:	e1a01004 	mov	r1, r4                                        
a0003a54:	ebffff31 	bl	a0003720 <echo>                                
      tty->cbuf[tty->ccount++] = c;                                   
a0003a58:	e5943020 	ldr	r3, [r4, #32]                                 
a0003a5c:	e594201c 	ldr	r2, [r4, #28]                                 
a0003a60:	e3a0100a 	mov	r1, #10                                       
a0003a64:	e7c21003 	strb	r1, [r2, r3]                                 
a0003a68:	ea00000d 	b	a0003aa4 <iproc+0x130>                          
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
a0003a6c:	e5d4204c 	ldrb	r2, [r4, #76]	; 0x4c                         
a0003a70:	e1520005 	cmp	r2, r5                                        
a0003a74:	0a000002 	beq	a0003a84 <iproc+0x110>                        
a0003a78:	e5d42051 	ldrb	r2, [r4, #81]	; 0x51                         
a0003a7c:	e1520005 	cmp	r2, r5                                        
a0003a80:	1a00000a 	bne	a0003ab0 <iproc+0x13c>                        
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
a0003a84:	e3130008 	tst	r3, #8                                        <== NOT EXECUTED
a0003a88:	0a000002 	beq	a0003a98 <iproc+0x124>                        <== NOT EXECUTED
        echo (c, tty);                                                
a0003a8c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0003a90:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
a0003a94:	ebffff21 	bl	a0003720 <echo>                                <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
a0003a98:	e5943020 	ldr	r3, [r4, #32]                                 <== NOT EXECUTED
a0003a9c:	e594201c 	ldr	r2, [r4, #28]                                 <== NOT EXECUTED
a0003aa0:	e7c25003 	strb	r5, [r2, r3]                                 <== NOT EXECUTED
a0003aa4:	e2833001 	add	r3, r3, #1                                    
a0003aa8:	e5843020 	str	r3, [r4, #32]                                 
a0003aac:	ea000012 	b	a0003afc <iproc+0x188>                          
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
a0003ab0:	e59f3058 	ldr	r3, [pc, #88]	; a0003b10 <iproc+0x19c>        
a0003ab4:	e5942020 	ldr	r2, [r4, #32]                                 
a0003ab8:	e5933008 	ldr	r3, [r3, #8]                                  
a0003abc:	e2433001 	sub	r3, r3, #1                                    
a0003ac0:	e1520003 	cmp	r2, r3                                        
a0003ac4:	aa00000e 	bge	a0003b04 <iproc+0x190>                        
    if (tty->termios.c_lflag & ECHO)                                  
a0003ac8:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
a0003acc:	e3130008 	tst	r3, #8                                        
a0003ad0:	0a000002 	beq	a0003ae0 <iproc+0x16c>                        
      echo (c, tty);                                                  
a0003ad4:	e1a00005 	mov	r0, r5                                        
a0003ad8:	e1a01004 	mov	r1, r4                                        
a0003adc:	ebffff0f 	bl	a0003720 <echo>                                
    tty->cbuf[tty->ccount++] = c;                                     
a0003ae0:	e5943020 	ldr	r3, [r4, #32]                                 
a0003ae4:	e594201c 	ldr	r2, [r4, #28]                                 
a0003ae8:	e7c25003 	strb	r5, [r2, r3]                                 
a0003aec:	e2833001 	add	r3, r3, #1                                    
a0003af0:	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;                                                       
a0003af4:	e3a00000 	mov	r0, #0                                        
a0003af8:	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;                                                       
a0003afc:	e3a00001 	mov	r0, #1                                        
a0003b00:	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;                                                           
a0003b04:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
a0003b08:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      

a0011ad0 <libc_wrapup>: /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get()))
a0011ad0:	e59f3060 	ldr	r3, [pc, #96]	; a0011b38 <libc_wrapup+0x68>   
                                                                      
extern void _wrapup_reent(struct _reent *);                           
extern void _reclaim_reent(struct _reent *);                          
                                                                      
void libc_wrapup(void)                                                
{                                                                     
a0011ad4:	e92d4030 	push	{r4, r5, lr}                                 
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
a0011ad8:	e5933000 	ldr	r3, [r3]                                      
a0011adc:	e3530003 	cmp	r3, #3                                        
a0011ae0:	1a000013 	bne	a0011b34 <libc_wrapup+0x64>                   
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
a0011ae4:	e59f3050 	ldr	r3, [pc, #80]	; a0011b3c <libc_wrapup+0x6c>   
a0011ae8:	e59f5050 	ldr	r5, [pc, #80]	; a0011b40 <libc_wrapup+0x70>   
a0011aec:	e5934000 	ldr	r4, [r3]                                      
a0011af0:	e5953000 	ldr	r3, [r5]                                      
a0011af4:	e1530004 	cmp	r3, r4                                        
a0011af8:	0a000002 	beq	a0011b08 <libc_wrapup+0x38>                   
      _wrapup_reent(_global_impure_ptr);                              
a0011afc:	e1a00004 	mov	r0, r4                                        
a0011b00:	eb0001b4 	bl	a00121d8 <_wrapup_reent>                       
      /*  Don't reclaim this one, just in case we do printfs          
       *  on the way out to ROM.                                      
       */                                                             
      _reclaim_reent(&libc_global_reent);                             
#endif                                                                
      _REENT = _global_impure_ptr;                                    
a0011b04:	e5854000 	str	r4, [r5]                                      
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
a0011b08:	e59f4030 	ldr	r4, [pc, #48]	; a0011b40 <libc_wrapup+0x70>   
a0011b0c:	e5943000 	ldr	r3, [r4]                                      
a0011b10:	e5930004 	ldr	r0, [r3, #4]                                  
a0011b14:	ebffec59 	bl	a000cc80 <fclose>                              
  fclose (stdout);                                                    
a0011b18:	e5943000 	ldr	r3, [r4]                                      
a0011b1c:	e5930008 	ldr	r0, [r3, #8]                                  
a0011b20:	ebffec56 	bl	a000cc80 <fclose>                              
  fclose (stderr);                                                    
a0011b24:	e5943000 	ldr	r3, [r4]                                      
a0011b28:	e593000c 	ldr	r0, [r3, #12]                                 
}                                                                     
a0011b2c:	e8bd4030 	pop	{r4, r5, lr}                                  
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
  fclose (stdout);                                                    
  fclose (stderr);                                                    
a0011b30:	eaffec52 	b	a000cc80 <fclose>                               
a0011b34:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      

a0002354 <malloc_sbrk_extend_and_allocate>: * Round to the "requested sbrk amount" so hopefully we won't have * to grow again for a while. This effectively does sbrk() calls * in "page" amounts. */ sbrk_amount = RTEMS_Malloc_Sbrk_amount;
a0002354:	e59f30a0 	ldr	r3, [pc, #160]	; a00023fc <malloc_sbrk_extend_and_allocate+0xa8>
}                                                                     
                                                                      
void *malloc_sbrk_extend_and_allocate(                                
  size_t size                                                         
)                                                                     
{                                                                     
a0002358:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
   *  Round to the "requested sbrk amount" so hopefully we won't have 
   *  to grow again for a while.  This effectively does sbrk() calls  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
a000235c:	e5934000 	ldr	r4, [r3]                                      
}                                                                     
                                                                      
void *malloc_sbrk_extend_and_allocate(                                
  size_t size                                                         
)                                                                     
{                                                                     
a0002360:	e1a05000 	mov	r5, r0                                        
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
a0002364:	e3540000 	cmp	r4, #0                                        
a0002368:	0a00001f 	beq	a00023ec <malloc_sbrk_extend_and_allocate+0x98>
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
a000236c:	e1a01004 	mov	r1, r4                                        
a0002370:	e0800004 	add	r0, r0, r4                                    
a0002374:	eb0038e8 	bl	a001071c <__aeabi_uidiv>                       
a0002378:	e0040490 	mul	r4, r0, r4                                    
                                                                      
  starting_address = (void *) sbrk(the_size);                         
a000237c:	e1a00004 	mov	r0, r4                                        
a0002380:	ebfff86b 	bl	a0000534 <sbrk>                                
  if ( starting_address == (void*) -1 )                               
a0002384:	e3700001 	cmn	r0, #1                                        
  if ( sbrk_amount == 0 )                                             
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
                                                                      
  starting_address = (void *) sbrk(the_size);                         
a0002388:	e1a01000 	mov	r1, r0                                        
  if ( starting_address == (void*) -1 )                               
a000238c:	0a000018 	beq	a00023f4 <malloc_sbrk_extend_and_allocate+0xa0>
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
a0002390:	e59f6068 	ldr	r6, [pc, #104]	; a0002400 <malloc_sbrk_extend_and_allocate+0xac>
a0002394:	e1a02004 	mov	r2, r4                                        
a0002398:	e5960000 	ldr	r0, [r6]                                      
a000239c:	eb0011f2 	bl	a0006b6c <_Protected_heap_Extend>              
a00023a0:	e2507000 	subs	r7, r0, #0                                   
a00023a4:	1a000006 	bne	a00023c4 <malloc_sbrk_extend_and_allocate+0x70>
          RTEMS_Malloc_Heap, starting_address, the_size) ) {          
    sbrk(-the_size);                                                  
a00023a8:	e2640000 	rsb	r0, r4, #0                                    
a00023ac:	ebfff860 	bl	a0000534 <sbrk>                                
    errno = ENOMEM;                                                   
a00023b0:	eb002b65 	bl	a000d14c <__errno>                             
a00023b4:	e3a0300c 	mov	r3, #12                                       
a00023b8:	e5803000 	str	r3, [r0]                                      
    return (void *) 0;                                                
a00023bc:	e1a00007 	mov	r0, r7                                        
a00023c0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
a00023c4:	e59f3038 	ldr	r3, [pc, #56]	; a0002404 <malloc_sbrk_extend_and_allocate+0xb0>
a00023c8:	e5960000 	ldr	r0, [r6]                                      
a00023cc:	e1a01005 	mov	r1, r5                                        
a00023d0:	e5932000 	ldr	r2, [r3]                                      
a00023d4:	e0844002 	add	r4, r4, r2                                    
a00023d8:	e3a02000 	mov	r2, #0                                        
a00023dc:	e5834000 	str	r4, [r3]                                      
a00023e0:	e1a03002 	mov	r3, r2                                        
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
a00023e4:	e8bd40f0 	pop	{r4, r5, r6, r7, lr}                          
a00023e8:	ea0011cc 	b	a0006b20 <_Protected_heap_Allocate_aligned_with_boundary>
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
    return (void *) 0;                                                
a00023ec:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a00023f0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
                                                                      
  starting_address = (void *) sbrk(the_size);                         
  if ( starting_address == (void*) -1 )                               
    return (void *) 0;                                                
a00023f4:	e3a00000 	mov	r0, #0                                        
                                                                      
  MSBUMP(space_available, the_size);                                  
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
a00023f8:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a000bc48 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
a000bc48:	e92d4030 	push	{r4, r5, lr}                                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
a000bc4c:	e5905018 	ldr	r5, [r0, #24]                                 
rtems_off64_t memfile_lseek(                                          
  rtems_libio_t   *iop,                                               
  rtems_off64_t    offset,                                            
  int              whence                                             
)                                                                     
{                                                                     
a000bc50:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
a000bc54:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
a000bc58:	e3530006 	cmp	r3, #6                                        
a000bc5c:	1a00000b 	bne	a000bc90 <memfile_lseek+0x48>                 
    if (iop->offset > the_jnode->info.linearfile.size)                
a000bc60:	e5953054 	ldr	r3, [r5, #84]	; 0x54                          
a000bc64:	e5901010 	ldr	r1, [r0, #16]                                 
a000bc68:	e5952050 	ldr	r2, [r5, #80]	; 0x50                          
a000bc6c:	e1510003 	cmp	r1, r3                                        
a000bc70:	ca000003 	bgt	a000bc84 <memfile_lseek+0x3c>                 
a000bc74:	1a000014 	bne	a000bccc <memfile_lseek+0x84>                 
a000bc78:	e590100c 	ldr	r1, [r0, #12]                                 
a000bc7c:	e1510002 	cmp	r1, r2                                        
a000bc80:	9a000011 	bls	a000bccc <memfile_lseek+0x84>                 
      iop->offset = the_jnode->info.linearfile.size;                  
a000bc84:	e584200c 	str	r2, [r4, #12]                                 <== NOT EXECUTED
a000bc88:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
a000bc8c:	ea00000e 	b	a000bccc <memfile_lseek+0x84>                   <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
a000bc90:	e1a00005 	mov	r0, r5                                        
a000bc94:	e284200c 	add	r2, r4, #12                                   
a000bc98:	e8920006 	ldm	r2, {r1, r2}                                  
a000bc9c:	ebfffeed 	bl	a000b858 <IMFS_memfile_extend>                 
a000bca0:	e3500000 	cmp	r0, #0                                        
a000bca4:	0a000005 	beq	a000bcc0 <memfile_lseek+0x78>                 
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
a000bca8:	eb0003a6 	bl	a000cb48 <__errno>                             
a000bcac:	e3a0301c 	mov	r3, #28                                       
a000bcb0:	e5803000 	str	r3, [r0]                                      
a000bcb4:	e3e04000 	mvn	r4, #0                                        
a000bcb8:	e3e03000 	mvn	r3, #0                                        
a000bcbc:	ea000004 	b	a000bcd4 <memfile_lseek+0x8c>                   
                                                                      
    iop->size = the_jnode->info.file.size;                            
a000bcc0:	e2853050 	add	r3, r5, #80	; 0x50                            
a000bcc4:	e893000c 	ldm	r3, {r2, r3}                                  
a000bcc8:	e984000c 	stmib	r4, {r2, r3}                                
  }                                                                   
  return iop->offset;                                                 
a000bccc:	e284400c 	add	r4, r4, #12                                   
a000bcd0:	e8940018 	ldm	r4, {r3, r4}                                  
}                                                                     
a000bcd4:	e1a00003 	mov	r0, r3                                        
a000bcd8:	e1a01004 	mov	r1, r4                                        
a000bcdc:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

a000bb54 <memfile_open>: the_jnode = iop->pathinfo.node_access; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
a000bb54:	e5903014 	ldr	r3, [r0, #20]                                 
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
a000bb58:	e92d4031 	push	{r0, r4, r5, lr}                             
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
a000bb5c:	e3130f81 	tst	r3, #516	; 0x204                              
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
a000bb60:	e1a05000 	mov	r5, r0                                        
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
a000bb64:	e5904018 	ldr	r4, [r0, #24]                                 
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
a000bb68:	0a000015 	beq	a000bbc4 <memfile_open+0x70>                  
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
a000bb6c:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
a000bb70:	e3530006 	cmp	r3, #6                                        
a000bb74:	1a000012 	bne	a000bbc4 <memfile_open+0x70>                  
    uint32_t   count = the_jnode->info.linearfile.size;               
a000bb78:	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;                         
a000bb7c:	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;                               
a000bb80:	e3a02005 	mov	r2, #5                                        <== NOT EXECUTED
a000bb84:	e584204c 	str	r2, [r4, #76]	; 0x4c                          <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
a000bb88:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
a000bb8c:	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)                                                  
a000bb90:	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;  
a000bb94:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
a000bb98:	e5841050 	str	r1, [r4, #80]	; 0x50                          <== NOT EXECUTED
a000bb9c:	e5842054 	str	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
a000bba0:	e5840058 	str	r0, [r4, #88]	; 0x58                          <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
a000bba4:	e584005c 	str	r0, [r4, #92]	; 0x5c                          <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
a000bba8:	e5840060 	str	r0, [r4, #96]	; 0x60                          <== NOT EXECUTED
    if ((count != 0)                                                  
a000bbac:	0a000004 	beq	a000bbc4 <memfile_open+0x70>                  <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
a000bbb0:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a000bbb4:	e58dc000 	str	ip, [sp]                                      <== NOT EXECUTED
a000bbb8:	ebffff6d 	bl	a000b974 <IMFS_memfile_write>                  <== NOT EXECUTED
a000bbbc:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
a000bbc0:	0a000009 	beq	a000bbec <memfile_open+0x98>                  <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
a000bbc4:	e5953014 	ldr	r3, [r5, #20]                                 
a000bbc8:	e3130c02 	tst	r3, #512	; 0x200                              
    iop->offset = the_jnode->info.file.size;                          
a000bbcc:	12843050 	addne	r3, r4, #80	; 0x50                          
a000bbd0:	1893000c 	ldmne	r3, {r2, r3}                                
a000bbd4:	1585200c 	strne	r2, [r5, #12]                               
a000bbd8:	15853010 	strne	r3, [r5, #16]                               
                                                                      
  iop->size = the_jnode->info.file.size;                              
a000bbdc:	e2844050 	add	r4, r4, #80	; 0x50                            
a000bbe0:	e8940018 	ldm	r4, {r3, r4}                                  
a000bbe4:	e9850018 	stmib	r5, {r3, r4}                                
  return 0;                                                           
a000bbe8:	e3a00000 	mov	r0, #0                                        
}                                                                     
a000bbec:	e8bd8038 	pop	{r3, r4, r5, pc}                              
                                                                      

a00021dc <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
a00021dc:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
a00021e0:	e3530001 	cmp	r3, #1                                        
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
a00021e4:	e24dd02c 	sub	sp, sp, #44	; 0x2c                            
a00021e8:	e1a06000 	mov	r6, r0                                        
a00021ec:	e1a0b001 	mov	fp, r1                                        
a00021f0:	e1a0a002 	mov	sl, r2                                        
a00021f4:	e58d300c 	str	r3, [sp, #12]                                 
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
a00021f8:	8a000004 	bhi	a0002210 <mount+0x34>                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
a00021fc:	e1a00002 	mov	r0, r2                                        
a0002200:	eb001daf 	bl	a00098c4 <rtems_filesystem_get_mount_handler>  
  if ( !mount_h )                                                     
a0002204:	e3500000 	cmp	r0, #0                                        
a0002208:	e58d0014 	str	r0, [sp, #20]                                 
a000220c:	1a000002 	bne	a000221c <mount+0x40>                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
a0002210:	eb002a4c 	bl	a000cb48 <__errno>                             
a0002214:	e3a03016 	mov	r3, #22                                       
a0002218:	ea00003b 	b	a000230c <mount+0x130>                          
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
a000221c:	e59f3260 	ldr	r3, [pc, #608]	; a0002484 <mount+0x2a8>       
{                                                                     
  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;                                   
a0002220:	e25b5000 	subs	r5, fp, #0                                   
a0002224:	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 : "/"; 
a0002228:	e3550000 	cmp	r5, #0                                        
a000222c:	11a0300b 	movne	r3, fp                                      
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
a0002230:	e1a0000a 	mov	r0, sl                                        
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
a0002234:	e58d3004 	str	r3, [sp, #4]                                  
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
a0002238:	eb002e2c 	bl	a000daf0 <strlen>                              
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
a000223c:	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;          
a0002240:	e2809001 	add	r9, r0, #1                                    
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
a0002244:	01a07006 	moveq	r7, r6                                      
a0002248:	0a000002 	beq	a0002258 <mount+0x7c>                         
a000224c:	e1a00006 	mov	r0, r6                                        
a0002250:	eb002e26 	bl	a000daf0 <strlen>                              
a0002254:	e2807001 	add	r7, r0, #1                                    
  size_t target_size = strlen( target ) + 1;                          
a0002258:	e59d0004 	ldr	r0, [sp, #4]                                  
a000225c:	eb002e23 	bl	a000daf0 <strlen>                              
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
a0002260:	e2891074 	add	r1, r9, #116	; 0x74                           
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
a0002264:	e2803001 	add	r3, r0, #1                                    
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
a0002268:	e0811007 	add	r1, r1, r7                                    
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
a000226c:	e58d0010 	str	r0, [sp, #16]                                 
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
a0002270:	e0811003 	add	r1, r1, r3                                    
a0002274:	e3a00001 	mov	r0, #1                                        
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
a0002278:	e58d3008 	str	r3, [sp, #8]                                  
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
a000227c:	ebfffe05 	bl	a0001a98 <calloc>                              
                                                                      
  if ( mt_entry != NULL ) {                                           
a0002280:	e2504000 	subs	r4, r0, #0                                   
a0002284:	0a00001e 	beq	a0002304 <mount+0x128>                        
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
a0002288:	e2848074 	add	r8, r4, #116	; 0x74                           
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
a000228c:	e1a00008 	mov	r0, r8                                        
a0002290:	e1a0100a 	mov	r1, sl                                        
a0002294:	e1a02009 	mov	r2, r9                                        
a0002298:	eb002c58 	bl	a000d400 <memcpy>                              
    mt_entry->type = str;                                             
a000229c:	e584806c 	str	r8, [r4, #108]	; 0x6c                         
    str += filesystemtype_size;                                       
a00022a0:	e0888009 	add	r8, r8, r9                                    
                                                                      
    memcpy( str, source_or_null, source_size );                       
a00022a4:	e1a00008 	mov	r0, r8                                        
a00022a8:	e1a01006 	mov	r1, r6                                        
a00022ac:	e1a02007 	mov	r2, r7                                        
a00022b0:	eb002c52 	bl	a000d400 <memcpy>                              
    mt_entry->dev = str;                                              
a00022b4:	e5848070 	str	r8, [r4, #112]	; 0x70                         
    str += source_size;                                               
a00022b8:	e0888007 	add	r8, r8, r7                                    
                                                                      
    memcpy( str, target, target_size );                               
a00022bc:	e99d0006 	ldmib	sp, {r1, r2}                                
a00022c0:	e1a00008 	mov	r0, r8                                        
a00022c4:	eb002c4d 	bl	a000d400 <memcpy>                              
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
a00022c8:	e59d300c 	ldr	r3, [sp, #12]                                 
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a00022cc:	e59fe1b4 	ldr	lr, [pc, #436]	; a0002488 <mount+0x2ac>       
a00022d0:	e284c038 	add	ip, r4, #56	; 0x38                            
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
a00022d4:	e5843030 	str	r3, [r4, #48]	; 0x30                          
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a00022d8:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a00022dc:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a00022e0:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a00022e4:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a00022e8:	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 ) {                                                 
a00022ec:	e3550000 	cmp	r5, #0                                        
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
a00022f0:	e5848068 	str	r8, [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;                           
a00022f4:	e584402c 	str	r4, [r4, #44]	; 0x2c                          
  mt_entry->options = options;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a00022f8:	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 ) {                                                 
a00022fc:	0a00002e 	beq	a00023bc <mount+0x1e0>                        
a0002300:	ea000003 	b	a0002314 <mount+0x138>                          
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
a0002304:	eb002a0f 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a0002308:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
a000230c:	e5803000 	str	r3, [r0]                                      
a0002310:	ea000058 	b	a0002478 <mount+0x29c>                          
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
a0002314:	e3a03001 	mov	r3, #1                                        
a0002318:	e28d6018 	add	r6, sp, #24                                   
a000231c:	e58d3000 	str	r3, [sp]                                      
a0002320:	e1a0000b 	mov	r0, fp                                        
a0002324:	e59d1010 	ldr	r1, [sp, #16]                                 
a0002328:	e3a02007 	mov	r2, #7                                        
a000232c:	e1a03006 	mov	r3, r6                                        
a0002330:	ebfffe08 	bl	a0001b58 <rtems_filesystem_evaluate_path>      
a0002334:	e3700001 	cmn	r0, #1                                        
a0002338:	0a000047 	beq	a000245c <mount+0x280>                        
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
a000233c:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
a0002340:	e1a00006 	mov	r0, r6                                        
a0002344:	e5933010 	ldr	r3, [r3, #16]                                 
a0002348:	e12fff33 	blx	r3                                            
a000234c:	e3500001 	cmp	r0, #1                                        
a0002350:	0a000002 	beq	a0002360 <mount+0x184>                        
      errno = ENOTDIR;                                                
a0002354:	eb0029fb 	bl	a000cb48 <__errno>                             
a0002358:	e3a03014 	mov	r3, #20                                       
a000235c:	ea000006 	b	a000237c <mount+0x1a0>                          
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
a0002360:	e59f0124 	ldr	r0, [pc, #292]	; a000248c <mount+0x2b0>       
a0002364:	e59d1018 	ldr	r1, [sp, #24]                                 
a0002368:	ebffff86 	bl	a0002188 <rtems_filesystem_mount_iterate>      
a000236c:	e3500000 	cmp	r0, #0                                        
a0002370:	0a000003 	beq	a0002384 <mount+0x1a8>                        
      errno = EBUSY;                                                  
a0002374:	eb0029f3 	bl	a000cb48 <__errno>                             
a0002378:	e3a03010 	mov	r3, #16                                       
a000237c:	e5803000 	str	r3, [r0]                                      
      goto cleanup_and_bail;                                          
a0002380:	ea000036 	b	a0002460 <mount+0x284>                          
     *  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;            
a0002384:	e59d3018 	ldr	r3, [sp, #24]                                 
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
a0002388:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
    /*                                                                
     *  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 ) ) {                             
a000238c:	e1a00004 	mov	r0, r4                                        
     *  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;            
a0002390:	e5843008 	str	r3, [r4, #8]                                  
    mt_entry->mt_point_node.handlers = loc.handlers;                  
a0002394:	e59d3020 	ldr	r3, [sp, #32]                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
a0002398:	e5842018 	str	r2, [r4, #24]                                 
     *  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;                  
a000239c:	e5843010 	str	r3, [r4, #16]                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
a00023a0:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
a00023a4:	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 ) ) {                             
a00023a8:	e5933020 	ldr	r3, [r3, #32]                                 
a00023ac:	e12fff33 	blx	r3                                            
a00023b0:	e3500000 	cmp	r0, #0                                        
a00023b4:	0a00000b 	beq	a00023e8 <mount+0x20c>                        
a00023b8:	ea000028 	b	a0002460 <mount+0x284>                          <== NOT EXECUTED
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
a00023bc:	e59f30cc 	ldr	r3, [pc, #204]	; a0002490 <mount+0x2b4>       
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
a00023c0:	e2832004 	add	r2, r3, #4                                    
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
a00023c4:	e5933000 	ldr	r3, [r3]                                      
a00023c8:	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;           
a00023cc:	01a06005 	moveq	r6, r5                                      
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
a00023d0:	0a000004 	beq	a00023e8 <mount+0x20c>                        
      errno = EINVAL;                                                 
a00023d4:	eb0029db 	bl	a000cb48 <__errno>                             <== NOT EXECUTED
a00023d8:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
a00023dc:	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;           
a00023e0:	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;                                          
a00023e4:	ea00001d 	b	a0002460 <mount+0x284>                          <== 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 ) ) {                               
a00023e8:	e1a00004 	mov	r0, r4                                        
a00023ec:	e59d1050 	ldr	r1, [sp, #80]	; 0x50                          
a00023f0:	e59d3014 	ldr	r3, [sp, #20]                                 
a00023f4:	e12fff33 	blx	r3                                            
a00023f8:	e2507000 	subs	r7, r0, #0                                   
a00023fc:	0a000004 	beq	a0002414 <mount+0x238>                        
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
a0002400:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
a0002404:	e1a00004 	mov	r0, r4                                        
a0002408:	e5933028 	ldr	r3, [r3, #40]	; 0x28                          
a000240c:	e12fff33 	blx	r3                                            
    goto cleanup_and_bail;                                            
a0002410:	ea000012 	b	a0002460 <mount+0x284>                          
  }                                                                   
                                                                      
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
a0002414:	ebffff51 	bl	a0002160 <rtems_libio_lock>                    
a0002418:	e59f0070 	ldr	r0, [pc, #112]	; a0002490 <mount+0x2b4>       
a000241c:	e1a01004 	mov	r1, r4                                        
a0002420:	eb000cdf 	bl	a00057a4 <_Chain_Append>                       
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
a0002424:	ebffff53 	bl	a0002178 <rtems_libio_unlock>                  
                                                                      
  if ( !has_target )                                                  
a0002428:	e3550000 	cmp	r5, #0                                        
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
a000242c:	11a00007 	movne	r0, r7                                      
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
a0002430:	1a000011 	bne	a000247c <mount+0x2a0>                        
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
a0002434:	e59f3058 	ldr	r3, [pc, #88]	; a0002494 <mount+0x2b8>        
a0002438:	e284401c 	add	r4, r4, #28                                   
a000243c:	e593c000 	ldr	ip, [r3]                                      
a0002440:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
a0002444:	e28cc018 	add	ip, ip, #24                                   
a0002448:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a000244c:	e5943000 	ldr	r3, [r4]                                      
                                                                      
  return 0;                                                           
a0002450:	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;                     
a0002454:	e58c3000 	str	r3, [ip]                                      
a0002458:	ea000007 	b	a000247c <mount+0x2a0>                          
)                                                                     
{                                                                     
  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;           
a000245c:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
a0002460:	e1a00004 	mov	r0, r4                                        
a0002464:	ebfffdf0 	bl	a0001c2c <free>                                
                                                                      
  if ( loc_to_free )                                                  
a0002468:	e3560000 	cmp	r6, #0                                        
a000246c:	0a000001 	beq	a0002478 <mount+0x29c>                        
    rtems_filesystem_freenode( loc_to_free );                         
a0002470:	e1a00006 	mov	r0, r6                                        
a0002474:	ebfffde7 	bl	a0001c18 <rtems_filesystem_freenode>           
                                                                      
  return -1;                                                          
a0002478:	e3e00000 	mvn	r0, #0                                        
}                                                                     
a000247c:	e28dd02c 	add	sp, sp, #44	; 0x2c                            
a0002480:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

a000249c <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
a000249c:	e92d4010 	push	{r4, lr}                                     
a00024a0:	e1a04000 	mov	r4, r0                                        
  switch ( fileno(fp) ) {                                             
a00024a4:	eb002aaa 	bl	a000cf54 <fileno>                              
a00024a8:	e3500002 	cmp	r0, #2                                        
a00024ac:	8a00000b 	bhi	a00024e0 <newlib_free_buffers+0x44>           
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
a00024b0:	e1d430bc 	ldrh	r3, [r4, #12]                                
a00024b4:	e3130080 	tst	r3, #128	; 0x80                               
a00024b8:	0a00000a 	beq	a00024e8 <newlib_free_buffers+0x4c>           
        free( fp->_bf._base );                                        
a00024bc:	e5940010 	ldr	r0, [r4, #16]                                 
a00024c0:	ebfffdd9 	bl	a0001c2c <free>                                <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
a00024c4:	e1d430bc 	ldrh	r3, [r4, #12]                                <== NOT EXECUTED
a00024c8:	e3c33080 	bic	r3, r3, #128	; 0x80                           <== NOT EXECUTED
a00024cc:	e1c430bc 	strh	r3, [r4, #12]                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
a00024d0:	e3a03000 	mov	r3, #0                                        <== NOT EXECUTED
a00024d4:	e5843000 	str	r3, [r4]                                      <== NOT EXECUTED
a00024d8:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
a00024dc:	ea000001 	b	a00024e8 <newlib_free_buffers+0x4c>             <== NOT EXECUTED
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
a00024e0:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a00024e4:	eb0029e5 	bl	a000cc80 <fclose>                              <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
a00024e8:	e3a00000 	mov	r0, #0                                        
a00024ec:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

a00035d0 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
a00035d0:	e92d4011 	push	{r0, r4, lr}                                 
a00035d4:	e5cd0000 	strb	r0, [sp]                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
a00035d8:	e5913034 	ldr	r3, [r1, #52]	; 0x34                          
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
a00035dc:	e1a04001 	mov	r4, r1                                        
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
a00035e0:	e3130001 	tst	r3, #1                                        
a00035e4:	0a000045 	beq	a0003700 <oproc+0x130>                        
    switch (c) {                                                      
a00035e8:	e5dd2000 	ldrb	r2, [sp]                                     
a00035ec:	e2421008 	sub	r1, r2, #8                                    
a00035f0:	e3510005 	cmp	r1, #5                                        
a00035f4:	979ff101 	ldrls	pc, [pc, r1, lsl #2]                        
a00035f8:	ea00002c 	b	a00036b0 <oproc+0xe0>                           
a00035fc:	a000369c 	.word	0xa000369c                                  
a0003600:	a0003674 	.word	0xa0003674                                  
a0003604:	a0003614 	.word	0xa0003614                                  
a0003608:	a00036b0 	.word	0xa00036b0                                  
a000360c:	a00036b0 	.word	0xa00036b0                                  
a0003610:	a000363c 	.word	0xa000363c                                  
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
a0003614:	e3130020 	tst	r3, #32                                       
        tty->column = 0;                                              
a0003618:	13a02000 	movne	r2, #0                                      
a000361c:	15842028 	strne	r2, [r4, #40]	; 0x28                        
      if (tty->termios.c_oflag & ONLCR) {                             
a0003620:	e3130004 	tst	r3, #4                                        
a0003624:	0a000035 	beq	a0003700 <oproc+0x130>                        
        rtems_termios_puts ("\r", 1, tty);                            
a0003628:	e59f00e4 	ldr	r0, [pc, #228]	; a0003714 <oproc+0x144>       
a000362c:	e3a01001 	mov	r1, #1                                        
a0003630:	e1a02004 	mov	r2, r4                                        
a0003634:	ebffffa4 	bl	a00034cc <rtems_termios_puts>                  
a0003638:	ea00000b 	b	a000366c <oproc+0x9c>                           
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
a000363c:	e3130010 	tst	r3, #16                                       <== NOT EXECUTED
a0003640:	0a000002 	beq	a0003650 <oproc+0x80>                         <== NOT EXECUTED
a0003644:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          <== NOT EXECUTED
a0003648:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
a000364c:	0a00002f 	beq	a0003710 <oproc+0x140>                        <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
a0003650:	e2132008 	ands	r2, r3, #8                                   <== NOT EXECUTED
        c = '\n';                                                     
        if (tty->termios.c_oflag & ONLRET)                            
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
a0003654:	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) {                             
a0003658:	0a000028 	beq	a0003700 <oproc+0x130>                        <== NOT EXECUTED
        c = '\n';                                                     
a000365c:	e3a0200a 	mov	r2, #10                                       <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
a0003660:	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';                                                     
a0003664:	e5cd2000 	strb	r2, [sp]                                     <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
a0003668:	0a000024 	beq	a0003700 <oproc+0x130>                        <== NOT EXECUTED
          tty->column = 0;                                            
a000366c:	e3a03000 	mov	r3, #0                                        
a0003670:	ea000021 	b	a00036fc <oproc+0x12c>                          
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
a0003674:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
a0003678:	e2033b06 	and	r3, r3, #6144	; 0x1800                        
a000367c:	e3530b06 	cmp	r3, #6144	; 0x1800                            
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
a0003680:	e2021007 	and	r1, r2, #7                                    
a0003684:	e2611008 	rsb	r1, r1, #8                                    
a0003688:	e0813002 	add	r3, r1, r2                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
a000368c:	05843028 	streq	r3, [r4, #40]	; 0x28                        
        rtems_termios_puts ( "        ",  i, tty);                    
a0003690:	059f0080 	ldreq	r0, [pc, #128]	; a0003718 <oproc+0x148>     
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
a0003694:	1a000018 	bne	a00036fc <oproc+0x12c>                        
a0003698:	ea00001a 	b	a0003708 <oproc+0x138>                          
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
a000369c:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
a00036a0:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
        tty->column--;                                                
a00036a4:	c2433001 	subgt	r3, r3, #1                                  <== NOT EXECUTED
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
a00036a8:	ca000013 	bgt	a00036fc <oproc+0x12c>                        <== NOT EXECUTED
a00036ac:	ea000013 	b	a0003700 <oproc+0x130>                          <== NOT EXECUTED
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
a00036b0:	e3130002 	tst	r3, #2                                        
a00036b4:	0a000007 	beq	a00036d8 <oproc+0x108>                        
        c = toupper(c);                                               
a00036b8:	e59f305c 	ldr	r3, [pc, #92]	; a000371c <oproc+0x14c>        <== NOT EXECUTED
a00036bc:	e5933000 	ldr	r3, [r3]                                      <== NOT EXECUTED
a00036c0:	e0833002 	add	r3, r3, r2                                    <== NOT EXECUTED
a00036c4:	e5d33001 	ldrb	r3, [r3, #1]                                 <== NOT EXECUTED
a00036c8:	e2033003 	and	r3, r3, #3                                    <== NOT EXECUTED
a00036cc:	e3530002 	cmp	r3, #2                                        <== NOT EXECUTED
a00036d0:	02422020 	subeq	r2, r2, #32                                 <== NOT EXECUTED
a00036d4:	e5cd2000 	strb	r2, [sp]                                     <== NOT EXECUTED
      if (!iscntrl(c))                                                
a00036d8:	e59f203c 	ldr	r2, [pc, #60]	; a000371c <oproc+0x14c>        
a00036dc:	e5dd3000 	ldrb	r3, [sp]                                     
a00036e0:	e5922000 	ldr	r2, [r2]                                      
a00036e4:	e0823003 	add	r3, r2, r3                                    
a00036e8:	e5d33001 	ldrb	r3, [r3, #1]                                 
a00036ec:	e3130020 	tst	r3, #32                                       
a00036f0:	1a000002 	bne	a0003700 <oproc+0x130>                        
        tty->column++;                                                
a00036f4:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
a00036f8:	e2833001 	add	r3, r3, #1                                    
a00036fc:	e5843028 	str	r3, [r4, #40]	; 0x28                          
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
a0003700:	e1a0000d 	mov	r0, sp                                        
a0003704:	e3a01001 	mov	r1, #1                                        
a0003708:	e1a02004 	mov	r2, r4                                        
a000370c:	ebffff6e 	bl	a00034cc <rtems_termios_puts>                  
}                                                                     
a0003710:	e8bd8018 	pop	{r3, r4, pc}                                  
                                                                      

a000bb34 <pipe_ioctl>: uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
a000bb34:	e59f3060 	ldr	r3, [pc, #96]	; a000bb9c <pipe_ioctl+0x68>    
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
a000bb38:	e92d4070 	push	{r4, r5, r6, lr}                             
  if (cmd == FIONREAD) {                                              
a000bb3c:	e1510003 	cmp	r1, r3                                        
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
a000bb40:	e1a04000 	mov	r4, r0                                        
a000bb44:	e1a05002 	mov	r5, r2                                        
  if (cmd == FIONREAD) {                                              
a000bb48:	1a00000d 	bne	a000bb84 <pipe_ioctl+0x50>                    
    if (buffer == NULL)                                               
a000bb4c:	e3520000 	cmp	r2, #0                                        
a000bb50:	0a00000d 	beq	a000bb8c <pipe_ioctl+0x58>                    
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
a000bb54:	e3a01000 	mov	r1, #0                                        
a000bb58:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
a000bb5c:	e1a02001 	mov	r2, r1                                        
a000bb60:	ebffecc3 	bl	a0006e74 <rtems_semaphore_obtain>              
a000bb64:	e2506000 	subs	r6, r0, #0                                   
a000bb68:	1a000009 	bne	a000bb94 <pipe_ioctl+0x60>                    
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
a000bb6c:	e594300c 	ldr	r3, [r4, #12]                                 
    PIPE_UNLOCK(pipe);                                                
a000bb70:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
a000bb74:	e5853000 	str	r3, [r5]                                      
    PIPE_UNLOCK(pipe);                                                
a000bb78:	ebffed03 	bl	a0006f8c <rtems_semaphore_release>             
    return 0;                                                         
a000bb7c:	e1a00006 	mov	r0, r6                                        
a000bb80:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  }                                                                   
                                                                      
  return -EINVAL;                                                     
a000bb84:	e3e00015 	mvn	r0, #21                                       
a000bb88:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
a000bb8c:	e3e0000d 	mvn	r0, #13                                       
a000bb90:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
a000bb94:	e3e00003 	mvn	r0, #3                                        <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
a000bb98:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      

a000b800 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
a000b800:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
a000b804:	e1a09001 	mov	r9, r1                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b808:	e3a01000 	mov	r1, #0                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
a000b80c:	e1a04000 	mov	r4, r0                                        
a000b810:	e1a05002 	mov	r5, r2                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b814:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
a000b818:	e1a02001 	mov	r2, r1                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
a000b81c:	e1a0a003 	mov	sl, r3                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b820:	ebffed93 	bl	a0006e74 <rtems_semaphore_obtain>              
a000b824:	e2506000 	subs	r6, r0, #0                                   
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
a000b828:	01a0b00d 	moveq	fp, sp                                      
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b82c:	0a000044 	beq	a000b944 <pipe_read+0x144>                    
a000b830:	ea00004f 	b	a000b974 <pipe_read+0x174>                      <== NOT EXECUTED
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
a000b834:	e5947014 	ldr	r7, [r4, #20]                                 
a000b838:	e3570000 	cmp	r7, #0                                        
a000b83c:	0a000045 	beq	a000b958 <pipe_read+0x158>                    
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
a000b840:	e59a8014 	ldr	r8, [sl, #20]                                 
a000b844:	e2188001 	ands	r8, r8, #1                                   
a000b848:	1a000041 	bne	a000b954 <pipe_read+0x154>                    
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
a000b84c:	e5943018 	ldr	r3, [r4, #24]                                 
      PIPE_UNLOCK(pipe);                                              
a000b850:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
a000b854:	e2833001 	add	r3, r3, #1                                    
a000b858:	e5843018 	str	r3, [r4, #24]                                 
      PIPE_UNLOCK(pipe);                                              
a000b85c:	ebffedca 	bl	a0006f8c <rtems_semaphore_release>             
      if (! PIPE_READWAIT(pipe))                                      
a000b860:	e1a01008 	mov	r1, r8                                        
a000b864:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a000b868:	eb0005ba 	bl	a000cf58 <rtems_barrier_wait>                  
a000b86c:	e3500000 	cmp	r0, #0                                        
a000b870:	01a07000 	moveq	r7, r0                                      
a000b874:	13e07003 	mvnne	r7, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
a000b878:	e1a01008 	mov	r1, r8                                        
a000b87c:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b880:	e1a02008 	mov	r2, r8                                        
a000b884:	ebffed7a 	bl	a0006e74 <rtems_semaphore_obtain>              
a000b888:	e3500000 	cmp	r0, #0                                        
a000b88c:	1a000034 	bne	a000b964 <pipe_read+0x164>                    
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
a000b890:	e5943018 	ldr	r3, [r4, #24]                                 
      if (ret != 0)                                                   
a000b894:	e3570000 	cmp	r7, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
a000b898:	e2433001 	sub	r3, r3, #1                                    
a000b89c:	e5843018 	str	r3, [r4, #24]                                 
      if (ret != 0)                                                   
a000b8a0:	1a00002c 	bne	a000b958 <pipe_read+0x158>                    
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
a000b8a4:	e594300c 	ldr	r3, [r4, #12]                                 
a000b8a8:	e3530000 	cmp	r3, #0                                        
a000b8ac:	0affffe0 	beq	a000b834 <pipe_read+0x34>                     
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
a000b8b0:	e0667005 	rsb	r7, r6, r5                                    
a000b8b4:	e1530007 	cmp	r3, r7                                        
a000b8b8:	31a07003 	movcc	r7, r3                                      
    chunk1 = pipe->Size - pipe->Start;                                
a000b8bc:	e5948004 	ldr	r8, [r4, #4]                                  
a000b8c0:	e5943008 	ldr	r3, [r4, #8]                                  
a000b8c4:	e5941000 	ldr	r1, [r4]                                      
a000b8c8:	e0890006 	add	r0, r9, r6                                    
a000b8cc:	e0638008 	rsb	r8, r3, r8                                    
    if (chunk > chunk1) {                                             
a000b8d0:	e1570008 	cmp	r7, r8                                        
      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);       
a000b8d4:	d0811003 	addle	r1, r1, r3                                  
a000b8d8:	d1a02007 	movle	r2, r7                                      
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    if (chunk > chunk1) {                                             
a000b8dc:	da000006 	ble	a000b8fc <pipe_read+0xfc>                     
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
a000b8e0:	e0811003 	add	r1, r1, r3                                    
a000b8e4:	e1a02008 	mov	r2, r8                                        
a000b8e8:	eb001115 	bl	a000fd44 <memcpy>                              
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
a000b8ec:	e5941000 	ldr	r1, [r4]                                      
a000b8f0:	e0860008 	add	r0, r6, r8                                    
a000b8f4:	e0890000 	add	r0, r9, r0                                    
a000b8f8:	e0682007 	rsb	r2, r8, r7                                    
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
a000b8fc:	eb001110 	bl	a000fd44 <memcpy>                              
                                                                      
    pipe->Start += chunk;                                             
a000b900:	e5940008 	ldr	r0, [r4, #8]                                  
    pipe->Start %= pipe->Size;                                        
a000b904:	e5941004 	ldr	r1, [r4, #4]                                  
a000b908:	e0870000 	add	r0, r7, r0                                    
a000b90c:	eb003d57 	bl	a001ae70 <__umodsi3>                           
    pipe->Length -= chunk;                                            
a000b910:	e594300c 	ldr	r3, [r4, #12]                                 
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
a000b914:	e5840008 	str	r0, [r4, #8]                                  
    pipe->Length -= chunk;                                            
a000b918:	e0673003 	rsb	r3, r7, r3                                    
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
a000b91c:	e3530000 	cmp	r3, #0                                        
      pipe->Start = 0;                                                
a000b920:	05843008 	streq	r3, [r4, #8]                                
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
    pipe->Length -= chunk;                                            
a000b924:	e584300c 	str	r3, [r4, #12]                                 
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
a000b928:	e594301c 	ldr	r3, [r4, #28]                                 
a000b92c:	e3530000 	cmp	r3, #0                                        
a000b930:	0a000002 	beq	a000b940 <pipe_read+0x140>                    
      PIPE_WAKEUPWRITERS(pipe);                                       
a000b934:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
a000b938:	e1a0100d 	mov	r1, sp                                        
a000b93c:	eb00056f 	bl	a000cf00 <rtems_barrier_release>               
    read += chunk;                                                    
a000b940:	e0866007 	add	r6, r6, r7                                    
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
a000b944:	e1560005 	cmp	r6, r5                                        
a000b948:	3affffd5 	bcc	a000b8a4 <pipe_read+0xa4>                     
a000b94c:	e3a07000 	mov	r7, #0                                        
a000b950:	ea000000 	b	a000b958 <pipe_read+0x158>                      
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
a000b954:	e3e0700a 	mvn	r7, #10                                       
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
a000b958:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000b95c:	ebffed8a 	bl	a0006f8c <rtems_semaphore_release>             
a000b960:	ea000000 	b	a000b968 <pipe_read+0x168>                      
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
a000b964:	e3e07003 	mvn	r7, #3                                        <== NOT EXECUTED
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
a000b968:	e3560000 	cmp	r6, #0                                        
a000b96c:	d1a06007 	movle	r6, r7                                      
a000b970:	ea000000 	b	a000b978 <pipe_read+0x178>                      
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
a000b974:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
}                                                                     
a000b978:	e1a00006 	mov	r0, r6                                        
a000b97c:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

a000b980 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
a000b980:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
a000b984:	e2527000 	subs	r7, r2, #0                                   
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
a000b988:	e1a04000 	mov	r4, r0                                        
a000b98c:	e1a0b001 	mov	fp, r1                                        
a000b990:	e1a08003 	mov	r8, r3                                        
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
a000b994:	01a05007 	moveq	r5, r7                                      
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
a000b998:	0a000063 	beq	a000bb2c <pipe_write+0x1ac>                   
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b99c:	e3a01000 	mov	r1, #0                                        
a000b9a0:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
a000b9a4:	e1a02001 	mov	r2, r1                                        
a000b9a8:	ebffed31 	bl	a0006e74 <rtems_semaphore_obtain>              
a000b9ac:	e3500000 	cmp	r0, #0                                        
    return -EINTR;                                                    
a000b9b0:	13e05003 	mvnne	r5, #3                                      
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
a000b9b4:	1a00005c 	bne	a000bb2c <pipe_write+0x1ac>                   
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
a000b9b8:	e5945010 	ldr	r5, [r4, #16]                                 
a000b9bc:	e3550000 	cmp	r5, #0                                        
a000b9c0:	0a00004d 	beq	a000bafc <pipe_write+0x17c>                   
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
a000b9c4:	e5949004 	ldr	r9, [r4, #4]                                  
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
a000b9c8:	e1a05000 	mov	r5, r0                                        
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
a000b9cc:	e1570009 	cmp	r7, r9                                        
a000b9d0:	91a09007 	movls	r9, r7                                      
a000b9d4:	83a09001 	movhi	r9, #1                                      
a000b9d8:	ea000041 	b	a000bae4 <pipe_write+0x164>                     
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
a000b9dc:	e598a014 	ldr	sl, [r8, #20]                                 
a000b9e0:	e21aa001 	ands	sl, sl, #1                                   
a000b9e4:	1a000042 	bne	a000baf4 <pipe_write+0x174>                   
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
a000b9e8:	e594301c 	ldr	r3, [r4, #28]                                 
      PIPE_UNLOCK(pipe);                                              
a000b9ec:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
a000b9f0:	e2833001 	add	r3, r3, #1                                    
a000b9f4:	e584301c 	str	r3, [r4, #28]                                 
      PIPE_UNLOCK(pipe);                                              
a000b9f8:	ebffed63 	bl	a0006f8c <rtems_semaphore_release>             
      if (! PIPE_WRITEWAIT(pipe))                                     
a000b9fc:	e1a0100a 	mov	r1, sl                                        
a000ba00:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
a000ba04:	eb000553 	bl	a000cf58 <rtems_barrier_wait>                  
a000ba08:	e3500000 	cmp	r0, #0                                        
a000ba0c:	01a06000 	moveq	r6, r0                                      
a000ba10:	13e06003 	mvnne	r6, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
a000ba14:	e1a0100a 	mov	r1, sl                                        
a000ba18:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000ba1c:	e1a0200a 	mov	r2, sl                                        
a000ba20:	ebffed13 	bl	a0006e74 <rtems_semaphore_obtain>              
a000ba24:	e3500000 	cmp	r0, #0                                        
a000ba28:	1a00003c 	bne	a000bb20 <pipe_write+0x1a0>                   
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
a000ba2c:	e594301c 	ldr	r3, [r4, #28]                                 
      if (ret != 0)                                                   
a000ba30:	e3560000 	cmp	r6, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
a000ba34:	e2433001 	sub	r3, r3, #1                                    
a000ba38:	e584301c 	str	r3, [r4, #28]                                 
      if (ret != 0)                                                   
a000ba3c:	1a00002f 	bne	a000bb00 <pipe_write+0x180>                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
a000ba40:	e5943010 	ldr	r3, [r4, #16]                                 
a000ba44:	e3530000 	cmp	r3, #0                                        
a000ba48:	0a00002b 	beq	a000bafc <pipe_write+0x17c>                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
a000ba4c:	e594a004 	ldr	sl, [r4, #4]                                  
a000ba50:	e594300c 	ldr	r3, [r4, #12]                                 
a000ba54:	e063200a 	rsb	r2, r3, sl                                    
a000ba58:	e1520009 	cmp	r2, r9                                        
a000ba5c:	3affffde 	bcc	a000b9dc <pipe_write+0x5c>                    
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
a000ba60:	e5940008 	ldr	r0, [r4, #8]                                  
a000ba64:	e1a0100a 	mov	r1, sl                                        
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
a000ba68:	e0656007 	rsb	r6, r5, r7                                    
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
a000ba6c:	e0830000 	add	r0, r3, r0                                    
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
a000ba70:	e1520006 	cmp	r2, r6                                        
a000ba74:	31a06002 	movcc	r6, r2                                      
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
a000ba78:	eb003cfc 	bl	a001ae70 <__umodsi3>                           
a000ba7c:	e5943000 	ldr	r3, [r4]                                      
a000ba80:	e060a00a 	rsb	sl, r0, sl                                    
    if (chunk > chunk1) {                                             
a000ba84:	e156000a 	cmp	r6, sl                                        
a000ba88:	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);
a000ba8c:	d0830000 	addle	r0, r3, r0                                  
a000ba90:	d1a02006 	movle	r2, r6                                      
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    if (chunk > chunk1) {                                             
a000ba94:	da000006 	ble	a000bab4 <pipe_write+0x134>                   
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
a000ba98:	e1a0200a 	mov	r2, sl                                        
a000ba9c:	e0830000 	add	r0, r3, r0                                    
a000baa0:	eb0010a7 	bl	a000fd44 <memcpy>                              
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
a000baa4:	e5940000 	ldr	r0, [r4]                                      
a000baa8:	e08a1005 	add	r1, sl, r5                                    
a000baac:	e08b1001 	add	r1, fp, r1                                    
a000bab0:	e06a2006 	rsb	r2, sl, r6                                    
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
a000bab4:	eb0010a2 	bl	a000fd44 <memcpy>                              
                                                                      
    pipe->Length += chunk;                                            
a000bab8:	e594300c 	ldr	r3, [r4, #12]                                 
a000babc:	e0833006 	add	r3, r3, r6                                    
a000bac0:	e584300c 	str	r3, [r4, #12]                                 
    if (pipe->waitingReaders > 0)                                     
a000bac4:	e5943018 	ldr	r3, [r4, #24]                                 
a000bac8:	e3530000 	cmp	r3, #0                                        
a000bacc:	0a000002 	beq	a000badc <pipe_write+0x15c>                   
      PIPE_WAKEUPREADERS(pipe);                                       
a000bad0:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
a000bad4:	e1a0100d 	mov	r1, sp                                        
a000bad8:	eb000508 	bl	a000cf00 <rtems_barrier_release>               
    written += chunk;                                                 
a000badc:	e0855006 	add	r5, r5, r6                                    
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
a000bae0:	e3a09001 	mov	r9, #1                                        
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
a000bae4:	e1550007 	cmp	r5, r7                                        
a000bae8:	3affffd7 	bcc	a000ba4c <pipe_write+0xcc>                    
a000baec:	e3a06000 	mov	r6, #0                                        
a000baf0:	ea000002 	b	a000bb00 <pipe_write+0x180>                     
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
a000baf4:	e3e0600a 	mvn	r6, #10                                       
a000baf8:	ea000000 	b	a000bb00 <pipe_write+0x180>                     
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
a000bafc:	e3e0601f 	mvn	r6, #31                                       
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
a000bb00:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
a000bb04:	ebffed20 	bl	a0006f8c <rtems_semaphore_release>             
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
a000bb08:	e3760020 	cmn	r6, #32                                       
a000bb0c:	1a000004 	bne	a000bb24 <pipe_write+0x1a4>                   
    kill(getpid(), SIGPIPE);                                          
a000bb10:	eb0001f3 	bl	a000c2e4 <getpid>                              
a000bb14:	e3a0100d 	mov	r1, #13                                       
a000bb18:	eb0002a5 	bl	a000c5b4 <kill>                                
a000bb1c:	ea000000 	b	a000bb24 <pipe_write+0x1a4>                     
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
a000bb20:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
a000bb24:	e3550000 	cmp	r5, #0                                        
a000bb28:	d1a05006 	movle	r5, r6                                      
    return written;                                                   
  return ret;                                                         
}                                                                     
a000bb2c:	e1a00005 	mov	r0, r5                                        
a000bb30:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

a000a1e0 <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
a000a1e0:	e3500000 	cmp	r0, #0                                        
a000a1e4:	0a00000b 	beq	a000a218 <pthread_attr_setschedpolicy+0x38>   
a000a1e8:	e5903000 	ldr	r3, [r0]                                      
a000a1ec:	e3530000 	cmp	r3, #0                                        
a000a1f0:	0a000008 	beq	a000a218 <pthread_attr_setschedpolicy+0x38>   
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
a000a1f4:	e3510004 	cmp	r1, #4                                        
a000a1f8:	8a000008 	bhi	a000a220 <pthread_attr_setschedpolicy+0x40>   
a000a1fc:	e3a03001 	mov	r3, #1                                        
a000a200:	e1a03113 	lsl	r3, r3, r1                                    
a000a204:	e3130017 	tst	r3, #23                                       
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
a000a208:	15801014 	strne	r1, [r0, #20]                               
      return 0;                                                       
a000a20c:	13a00000 	movne	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
a000a210:	112fff1e 	bxne	lr                                           
a000a214:	ea000001 	b	a000a220 <pthread_attr_setschedpolicy+0x40>     <== NOT EXECUTED
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
a000a218:	e3a00016 	mov	r0, #22                                       
a000a21c:	e12fff1e 	bx	lr                                             
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
a000a220:	e3a00086 	mov	r0, #134	; 0x86                               
  }                                                                   
}                                                                     
a000a224:	e12fff1e 	bx	lr                                             
                                                                      

a0005d14 <pthread_cond_init>: int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
a0005d14:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
a0005d18:	e59f50a8 	ldr	r5, [pc, #168]	; a0005dc8 <pthread_cond_init+0xb4>
a0005d1c:	e3510000 	cmp	r1, #0                                        
a0005d20:	11a05001 	movne	r5, r1                                      
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
a0005d24:	e5953004 	ldr	r3, [r5, #4]                                  
                                                                      
int pthread_cond_init(                                                
  pthread_cond_t           *cond,                                     
  const pthread_condattr_t *attr                                      
)                                                                     
{                                                                     
a0005d28:	e1a07000 	mov	r7, r0                                        
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
a0005d2c:	e3530001 	cmp	r3, #1                                        
a0005d30:	0a000020 	beq	a0005db8 <pthread_cond_init+0xa4>             
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
a0005d34:	e5953000 	ldr	r3, [r5]                                      
a0005d38:	e3530000 	cmp	r3, #0                                        
a0005d3c:	0a00001f 	beq	a0005dc0 <pthread_cond_init+0xac>             
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
a0005d40:	e59f3084 	ldr	r3, [pc, #132]	; a0005dcc <pthread_cond_init+0xb8>
a0005d44:	e5932000 	ldr	r2, [r3]                                      
a0005d48:	e2822001 	add	r2, r2, #1                                    
a0005d4c:	e5832000 	str	r2, [r3]                                      
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
    _Objects_Allocate( &_POSIX_Condition_variables_Information );     
a0005d50:	e59f6078 	ldr	r6, [pc, #120]	; a0005dd0 <pthread_cond_init+0xbc>
a0005d54:	e1a00006 	mov	r0, r6                                        
a0005d58:	eb00092f 	bl	a000821c <_Objects_Allocate>                   
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
a0005d5c:	e2504000 	subs	r4, r0, #0                                   
a0005d60:	1a000002 	bne	a0005d70 <pthread_cond_init+0x5c>             
    _Thread_Enable_dispatch();                                        
a0005d64:	eb000d05 	bl	a0009180 <_Thread_Enable_dispatch>             
    return ENOMEM;                                                    
a0005d68:	e3a0000c 	mov	r0, #12                                       
a0005d6c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
a0005d70:	e5953004 	ldr	r3, [r5, #4]                                  
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
a0005d74:	e3a05000 	mov	r5, #0                                        
                                                                      
  _Thread_queue_Initialize(                                           
a0005d78:	e2840018 	add	r0, r4, #24                                   
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
a0005d7c:	e5843010 	str	r3, [r4, #16]                                 
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
  _Thread_queue_Initialize(                                           
a0005d80:	e1a01005 	mov	r1, r5                                        
a0005d84:	e59f2048 	ldr	r2, [pc, #72]	; a0005dd4 <pthread_cond_init+0xc0>
a0005d88:	e3a03074 	mov	r3, #116	; 0x74                               
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
a0005d8c:	e5845014 	str	r5, [r4, #20]                                 
                                                                      
  _Thread_queue_Initialize(                                           
a0005d90:	eb000ee6 	bl	a0009930 <_Thread_queue_Initialize>            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
a0005d94:	e596201c 	ldr	r2, [r6, #28]                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
a0005d98:	e5943008 	ldr	r3, [r4, #8]                                  
a0005d9c:	e1d410b8 	ldrh	r1, [r4, #8]                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
a0005da0:	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;                                   
a0005da4:	e584500c 	str	r5, [r4, #12]                                 
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
a0005da8:	e5873000 	str	r3, [r7]                                      
                                                                      
  _Thread_Enable_dispatch();                                          
a0005dac:	eb000cf3 	bl	a0009180 <_Thread_Enable_dispatch>             
                                                                      
  return 0;                                                           
a0005db0:	e1a00005 	mov	r0, r5                                        
a0005db4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
    return EINVAL;                                                    
a0005db8:	e3a00016 	mov	r0, #22                                       <== NOT EXECUTED
a0005dbc:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      
  if ( !the_attr->is_initialized )                                    
    return EINVAL;                                                    
a0005dc0:	e3a00016 	mov	r0, #22                                       
  *cond = the_cond->Object.id;                                        
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return 0;                                                           
}                                                                     
a0005dc4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a000700c <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
a000700c:	e3500000 	cmp	r0, #0                                        
a0007010:	0a000007 	beq	a0007034 <pthread_mutexattr_setpshared+0x28>  
a0007014:	e5903000 	ldr	r3, [r0]                                      
a0007018:	e3530000 	cmp	r3, #0                                        
a000701c:	0a000004 	beq	a0007034 <pthread_mutexattr_setpshared+0x28>  
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
a0007020:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
a0007024:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
a0007028:	93a00000 	movls	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
a000702c:	912fff1e 	bxls	lr                                           
a0007030:	ea000001 	b	a000703c <pthread_mutexattr_setpshared+0x30>    <== NOT EXECUTED
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
a0007034:	e3a00016 	mov	r0, #22                                       
a0007038:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
a000703c:	e3a00016 	mov	r0, #22                                       
  }                                                                   
}                                                                     
a0007040:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

a0006c78 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
a0006c78:	e3500000 	cmp	r0, #0                                        
a0006c7c:	0a000007 	beq	a0006ca0 <pthread_rwlockattr_setpshared+0x28> 
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
a0006c80:	e5903000 	ldr	r3, [r0]                                      
a0006c84:	e3530000 	cmp	r3, #0                                        
a0006c88:	0a000004 	beq	a0006ca0 <pthread_rwlockattr_setpshared+0x28> 
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
a0006c8c:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
a0006c90:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
a0006c94:	93a00000 	movls	r0, #0                                      
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
a0006c98:	912fff1e 	bxls	lr                                           
a0006c9c:	ea000001 	b	a0006ca8 <pthread_rwlockattr_setpshared+0x30>   <== NOT EXECUTED
{                                                                     
  if ( !attr )                                                        
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
a0006ca0:	e3a00016 	mov	r0, #22                                       
a0006ca4:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
a0006ca8:	e3a00016 	mov	r0, #22                                       
  }                                                                   
}                                                                     
a0006cac:	e12fff1e 	bx	lr                                             
                                                                      

a0011c70 <realloc>: ) { uintptr_t old_size; char *new_area; MSBUMP(realloc_calls, 1);
a0011c70:	e59f310c 	ldr	r3, [pc, #268]	; a0011d84 <realloc+0x114>     
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
a0011c74:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
a0011c78:	e5932010 	ldr	r2, [r3, #16]                                 
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
a0011c7c:	e1a04000 	mov	r4, r0                                        
a0011c80:	e1a05001 	mov	r5, r1                                        
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
a0011c84:	e2822001 	add	r2, r2, #1                                    
a0011c88:	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())) {                     
a0011c8c:	e59f30f4 	ldr	r3, [pc, #244]	; a0011d88 <realloc+0x118>     
a0011c90:	e5933000 	ldr	r3, [r3]                                      
a0011c94:	e3530003 	cmp	r3, #3                                        
a0011c98:	1a000009 	bne	a0011cc4 <realloc+0x54>                       
    if (_Thread_Dispatch_disable_level > 0)                           
a0011c9c:	e59f30e8 	ldr	r3, [pc, #232]	; a0011d8c <realloc+0x11c>     
a0011ca0:	e5933000 	ldr	r3, [r3]                                      
a0011ca4:	e3530000 	cmp	r3, #0                                        
      return (void *) 0;                                              
a0011ca8:	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)                           
a0011cac:	1a000032 	bne	a0011d7c <realloc+0x10c>                      
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
a0011cb0:	e59f20d8 	ldr	r2, [pc, #216]	; a0011d90 <realloc+0x120>     
a0011cb4:	e5922000 	ldr	r2, [r2]                                      
a0011cb8:	e3520000 	cmp	r2, #0                                        
      return (void *) 0;                                              
a0011cbc:	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)                                          
a0011cc0:	1a00002d 	bne	a0011d7c <realloc+0x10c>                      
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
a0011cc4:	e3540000 	cmp	r4, #0                                        
a0011cc8:	1a000003 	bne	a0011cdc <realloc+0x6c>                       
    return malloc( size );                                            
a0011ccc:	e1a00005 	mov	r0, r5                                        
a0011cd0:	ebffc0b3 	bl	a0001fa4 <malloc>                              
a0011cd4:	e1a04000 	mov	r4, r0                                        
a0011cd8:	ea000027 	b	a0011d7c <realloc+0x10c>                        
                                                                      
  if ( !size ) {                                                      
a0011cdc:	e3550000 	cmp	r5, #0                                        
a0011ce0:	1a000003 	bne	a0011cf4 <realloc+0x84>                       
    free( ptr );                                                      
a0011ce4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0011ce8:	ebffbfcf 	bl	a0001c2c <free>                                <== NOT EXECUTED
    return (void *) 0;                                                
a0011cec:	e1a04005 	mov	r4, r5                                        <== NOT EXECUTED
a0011cf0:	ea000021 	b	a0011d7c <realloc+0x10c>                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
a0011cf4:	e59f6098 	ldr	r6, [pc, #152]	; a0011d94 <realloc+0x124>     
a0011cf8:	e1a01004 	mov	r1, r4                                        
a0011cfc:	e1a0200d 	mov	r2, sp                                        
a0011d00:	e5960000 	ldr	r0, [r6]                                      
a0011d04:	eb00004e 	bl	a0011e44 <_Protected_heap_Get_block_size>      
a0011d08:	e2507000 	subs	r7, r0, #0                                   
a0011d0c:	1a000004 	bne	a0011d24 <realloc+0xb4>                       
    errno = EINVAL;                                                   
a0011d10:	ebffeb8c 	bl	a000cb48 <__errno>                             
a0011d14:	e3a03016 	mov	r3, #22                                       
a0011d18:	e5803000 	str	r3, [r0]                                      
    return (void *) 0;                                                
a0011d1c:	e1a04007 	mov	r4, r7                                        
a0011d20:	ea000015 	b	a0011d7c <realloc+0x10c>                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
a0011d24:	e5960000 	ldr	r0, [r6]                                      
a0011d28:	e1a01004 	mov	r1, r4                                        
a0011d2c:	e1a02005 	mov	r2, r5                                        
a0011d30:	eb000054 	bl	a0011e88 <_Protected_heap_Resize_block>        
a0011d34:	e3500000 	cmp	r0, #0                                        
a0011d38:	1a00000f 	bne	a0011d7c <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 );                                          
a0011d3c:	e1a00005 	mov	r0, r5                                        
a0011d40:	ebffc097 	bl	a0001fa4 <malloc>                              
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
a0011d44:	e59f3038 	ldr	r3, [pc, #56]	; a0011d84 <realloc+0x114>      
                                                                      
  if ( !new_area ) {                                                  
a0011d48:	e2506000 	subs	r6, r0, #0                                   
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
a0011d4c:	e5932004 	ldr	r2, [r3, #4]                                  
a0011d50:	e2422001 	sub	r2, r2, #1                                    
a0011d54:	e5832004 	str	r2, [r3, #4]                                  
                                                                      
  if ( !new_area ) {                                                  
a0011d58:	0a000006 	beq	a0011d78 <realloc+0x108>                      
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
a0011d5c:	e59d2000 	ldr	r2, [sp]                                      
a0011d60:	e1a01004 	mov	r1, r4                                        
a0011d64:	e1550002 	cmp	r5, r2                                        
a0011d68:	31a02005 	movcc	r2, r5                                      
a0011d6c:	ebffeda3 	bl	a000d400 <memcpy>                              
  free( ptr );                                                        
a0011d70:	e1a00004 	mov	r0, r4                                        
a0011d74:	ebffbfac 	bl	a0001c2c <free>                                
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
a0011d78:	e1a04006 	mov	r4, r6                                        
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
a0011d7c:	e1a00004 	mov	r0, r4                                        
a0011d80:	e8bd80f8 	pop	{r3, r4, r5, r6, r7, pc}                      
                                                                      

a0005e3c <rtems_aio_enqueue>: * errno - otherwise */ int rtems_aio_enqueue (rtems_aio_request *req) {
a0005e3c:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
a0005e40:	e59f41f0 	ldr	r4, [pc, #496]	; a0006038 <rtems_aio_enqueue+0x1fc>
 *         errno     - otherwise                                      
 */                                                                   
                                                                      
int                                                                   
rtems_aio_enqueue (rtems_aio_request *req)                            
{                                                                     
a0005e44:	e24dd024 	sub	sp, sp, #36	; 0x24                            
a0005e48:	e1a06000 	mov	r6, r0                                        
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
a0005e4c:	e1a00004 	mov	r0, r4                                        
a0005e50:	eb000257 	bl	a00067b4 <pthread_mutex_lock>                  
  if (result != 0) {                                                  
a0005e54:	e2505000 	subs	r5, r0, #0                                   
a0005e58:	0a000002 	beq	a0005e68 <rtems_aio_enqueue+0x2c>             
    free (req);                                                       
a0005e5c:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
a0005e60:	ebfff275 	bl	a000283c <free>                                <== NOT EXECUTED
    return result;                                                    
a0005e64:	ea000070 	b	a000602c <rtems_aio_enqueue+0x1f0>              <== NOT EXECUTED
  }                                                                   
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
a0005e68:	eb000462 	bl	a0006ff8 <pthread_self>                        
a0005e6c:	e28d101c 	add	r1, sp, #28                                   
a0005e70:	e1a0200d 	mov	r2, sp                                        
a0005e74:	eb000364 	bl	a0006c0c <pthread_getschedparam>               
                                                                      
  req->caller_thread = pthread_self ();                               
a0005e78:	eb00045e 	bl	a0006ff8 <pthread_self>                        
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
a0005e7c:	e5963014 	ldr	r3, [r6, #20]                                 
a0005e80:	e59d1000 	ldr	r1, [sp]                                      
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
a0005e84:	e5860010 	str	r0, [r6, #16]                                 
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
a0005e88:	e5932014 	ldr	r2, [r3, #20]                                 
a0005e8c:	e0622001 	rsb	r2, r2, r1                                    
a0005e90:	e586200c 	str	r2, [r6, #12]                                 
  req->policy = policy;                                               
a0005e94:	e59d201c 	ldr	r2, [sp, #28]                                 
a0005e98:	e5862008 	str	r2, [r6, #8]                                  
  req->aiocbp->error_code = EINPROGRESS;                              
a0005e9c:	e3a02077 	mov	r2, #119	; 0x77                               
a0005ea0:	e5832030 	str	r2, [r3, #48]	; 0x30                          
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
a0005ea4:	e5942068 	ldr	r2, [r4, #104]	; 0x68                         
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
a0005ea8:	e5835034 	str	r5, [r3, #52]	; 0x34                          
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
a0005eac:	e3520000 	cmp	r2, #0                                        
a0005eb0:	1a00002e 	bne	a0005f70 <rtems_aio_enqueue+0x134>            
a0005eb4:	e5942064 	ldr	r2, [r4, #100]	; 0x64                         
a0005eb8:	e3520004 	cmp	r2, #4                                        
a0005ebc:	ca00002b 	bgt	a0005f70 <rtems_aio_enqueue+0x134>            
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a0005ec0:	e5931000 	ldr	r1, [r3]                                      
a0005ec4:	e2840048 	add	r0, r4, #72	; 0x48                            
a0005ec8:	e3a02001 	mov	r2, #1                                        
a0005ecc:	ebfffedb 	bl	a0005a40 <rtems_aio_search_fd>                 
                                                                      
      if (r_chain->new_fd == 1) {                                     
a0005ed0:	e5903018 	ldr	r3, [r0, #24]                                 
  if ((aio_request_queue.idle_threads == 0) &&                        
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a0005ed4:	e1a07000 	mov	r7, r0                                        
a0005ed8:	e2809008 	add	r9, r0, #8                                    
                                                                      
      if (r_chain->new_fd == 1) {                                     
a0005edc:	e3530001 	cmp	r3, #1                                        
a0005ee0:	e280801c 	add	r8, r0, #28                                   
a0005ee4:	e280a020 	add	sl, r0, #32                                   
a0005ee8:	1a000017 	bne	a0005f4c <rtems_aio_enqueue+0x110>            
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
a0005eec:	e1a01006 	mov	r1, r6                                        
a0005ef0:	e1a00009 	mov	r0, r9                                        
a0005ef4:	eb000860 	bl	a000807c <_Chain_Insert>                       
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
	pthread_mutex_init (&r_chain->mutex, NULL);                          
a0005ef8:	e1a01005 	mov	r1, r5                                        
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
                                                                      
      if (r_chain->new_fd == 1) {                                     
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
a0005efc:	e5875018 	str	r5, [r7, #24]                                 
	pthread_mutex_init (&r_chain->mutex, NULL);                          
a0005f00:	e1a00008 	mov	r0, r8                                        
a0005f04:	eb0001d7 	bl	a0006668 <pthread_mutex_init>                  
	pthread_cond_init (&r_chain->cond, NULL);                            
a0005f08:	e1a01005 	mov	r1, r5                                        
a0005f0c:	e1a0000a 	mov	r0, sl                                        
a0005f10:	eb0000e7 	bl	a00062b4 <pthread_cond_init>                   
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
a0005f14:	e1a03007 	mov	r3, r7                                        
a0005f18:	e28d0020 	add	r0, sp, #32                                   
a0005f1c:	e2841008 	add	r1, r4, #8                                    
a0005f20:	e59f2114 	ldr	r2, [pc, #276]	; a000603c <rtems_aio_enqueue+0x200>
a0005f24:	eb0002a3 	bl	a00069b8 <pthread_create>                      
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
a0005f28:	e2506000 	subs	r6, r0, #0                                   
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  return result;                                                     
	}                                                                    
	++aio_request_queue.active_threads;                                  
a0005f2c:	05943064 	ldreq	r3, [r4, #100]	; 0x64                       
a0005f30:	02833001 	addeq	r3, r3, #1                                  
a0005f34:	05843064 	streq	r3, [r4, #100]	; 0x64                       
	pthread_cond_init (&r_chain->cond, NULL);                            
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
a0005f38:	0a000039 	beq	a0006024 <rtems_aio_enqueue+0x1e8>            
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
a0005f3c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005f40:	eb00023a 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
	  return result;                                                     
a0005f44:	e1a05006 	mov	r5, r6                                        <== NOT EXECUTED
a0005f48:	ea000037 	b	a000602c <rtems_aio_enqueue+0x1f0>              <== NOT EXECUTED
	}                                                                    
	++aio_request_queue.active_threads;                                  
      }                                                               
      else {                                                          
	/* put request in the fd chain it belongs to */                      
	pthread_mutex_lock (&r_chain->mutex);                                
a0005f4c:	e1a00008 	mov	r0, r8                                        
a0005f50:	eb000217 	bl	a00067b4 <pthread_mutex_lock>                  
	rtems_aio_insert_prio (&r_chain->perfd, req);                        
a0005f54:	e1a00009 	mov	r0, r9                                        
a0005f58:	e1a01006 	mov	r1, r6                                        
a0005f5c:	ebffff7c 	bl	a0005d54 <rtems_aio_insert_prio>               
	pthread_cond_signal (&r_chain->cond);                                
a0005f60:	e1a0000a 	mov	r0, sl                                        
a0005f64:	eb000103 	bl	a0006378 <pthread_cond_signal>                 
	pthread_mutex_unlock (&r_chain->mutex);                              
a0005f68:	e1a00008 	mov	r0, r8                                        
a0005f6c:	ea00000e 	b	a0005fac <rtems_aio_enqueue+0x170>              
  else                                                                
    {                                                                 
      /* the maximum number of threads has been already created       
	 even though some of them might be idle.                             
	 The request belongs to one of the active fd chain */                
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
a0005f70:	e59f00c8 	ldr	r0, [pc, #200]	; a0006040 <rtems_aio_enqueue+0x204>
a0005f74:	e5931000 	ldr	r1, [r3]                                      
a0005f78:	e3a02000 	mov	r2, #0                                        
a0005f7c:	ebfffeaf 	bl	a0005a40 <rtems_aio_search_fd>                 
				     req->aiocbp->aio_fildes, 0);                                 
      if (r_chain != NULL)                                            
a0005f80:	e2504000 	subs	r4, r0, #0                                   
a0005f84:	0a00000a 	beq	a0005fb4 <rtems_aio_enqueue+0x178>            
	{                                                                    
	  pthread_mutex_lock (&r_chain->mutex);                              
a0005f88:	e284701c 	add	r7, r4, #28                                   <== NOT EXECUTED
a0005f8c:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a0005f90:	eb000207 	bl	a00067b4 <pthread_mutex_lock>                  <== NOT EXECUTED
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
a0005f94:	e2840008 	add	r0, r4, #8                                    <== NOT EXECUTED
a0005f98:	e1a01006 	mov	r1, r6                                        <== NOT EXECUTED
a0005f9c:	ebffff6c 	bl	a0005d54 <rtems_aio_insert_prio>               <== NOT EXECUTED
	  pthread_cond_signal (&r_chain->cond);                              
a0005fa0:	e2840020 	add	r0, r4, #32                                   <== NOT EXECUTED
a0005fa4:	eb0000f3 	bl	a0006378 <pthread_cond_signal>                 <== NOT EXECUTED
	  pthread_mutex_unlock (&r_chain->mutex);                            
a0005fa8:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
a0005fac:	eb00021f 	bl	a0006830 <pthread_mutex_unlock>                
a0005fb0:	ea00001b 	b	a0006024 <rtems_aio_enqueue+0x1e8>              
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
a0005fb4:	e5963014 	ldr	r3, [r6, #20]                                 
a0005fb8:	e59f0084 	ldr	r0, [pc, #132]	; a0006044 <rtems_aio_enqueue+0x208>
a0005fbc:	e3a02001 	mov	r2, #1                                        
a0005fc0:	e5931000 	ldr	r1, [r3]                                      
a0005fc4:	ebfffe9d 	bl	a0005a40 <rtems_aio_search_fd>                 
                                                                      
	if (r_chain->new_fd == 1) {                                          
a0005fc8:	e5903018 	ldr	r3, [r0, #24]                                 
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
a0005fcc:	e1a07000 	mov	r7, r0                                        
a0005fd0:	e2800008 	add	r0, r0, #8                                    
                                                                      
	if (r_chain->new_fd == 1) {                                          
a0005fd4:	e3530001 	cmp	r3, #1                                        
a0005fd8:	1a00000f 	bne	a000601c <rtems_aio_enqueue+0x1e0>            
a0005fdc:	e1a01006 	mov	r1, r6                                        
a0005fe0:	eb000825 	bl	a000807c <_Chain_Insert>                       
	  /* If this is a new fd chain we signal the idle threads that       
	     might be waiting for requests */                                
	  AIO_printf (" New chain on waiting queue \n ");                    
	  rtems_chain_prepend (&r_chain->perfd, &req->next_prio);            
	  r_chain->new_fd = 0;                                               
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
a0005fe4:	e1a01004 	mov	r1, r4                                        
	if (r_chain->new_fd == 1) {                                          
	  /* If this is a new fd chain we signal the idle threads that       
	     might be waiting for requests */                                
	  AIO_printf (" New chain on waiting queue \n ");                    
	  rtems_chain_prepend (&r_chain->perfd, &req->next_prio);            
	  r_chain->new_fd = 0;                                               
a0005fe8:	e5874018 	str	r4, [r7, #24]                                 
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
a0005fec:	e287001c 	add	r0, r7, #28                                   
a0005ff0:	eb00019c 	bl	a0006668 <pthread_mutex_init>                  
	  pthread_cond_init (&r_chain->cond, NULL);                          
a0005ff4:	e1a01004 	mov	r1, r4                                        
a0005ff8:	e2870020 	add	r0, r7, #32                                   
a0005ffc:	eb0000ac 	bl	a00062b4 <pthread_cond_init>                   
	  pthread_cond_signal (&aio_request_queue.new_req);                  
a0006000:	e59f0040 	ldr	r0, [pc, #64]	; a0006048 <rtems_aio_enqueue+0x20c>
a0006004:	eb0000db 	bl	a0006378 <pthread_cond_signal>                 
	  ++aio_request_queue.idle_threads;                                  
a0006008:	e59f3028 	ldr	r3, [pc, #40]	; a0006038 <rtems_aio_enqueue+0x1fc>
a000600c:	e5932068 	ldr	r2, [r3, #104]	; 0x68                         
a0006010:	e2822001 	add	r2, r2, #1                                    
a0006014:	e5832068 	str	r2, [r3, #104]	; 0x68                         
a0006018:	ea000001 	b	a0006024 <rtems_aio_enqueue+0x1e8>              
	} else                                                               
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
a000601c:	e1a01006 	mov	r1, r6                                        
a0006020:	ebffff4b 	bl	a0005d54 <rtems_aio_insert_prio>               
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
a0006024:	e59f000c 	ldr	r0, [pc, #12]	; a0006038 <rtems_aio_enqueue+0x1fc>
a0006028:	eb000200 	bl	a0006830 <pthread_mutex_unlock>                
  return 0;                                                           
}                                                                     
a000602c:	e1a00005 	mov	r0, r5                                        
a0006030:	e28dd024 	add	sp, sp, #36	; 0x24                            
a0006034:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      

a0005ae8 <rtems_aio_handle>: * NULL - if error */ static void * rtems_aio_handle (void *arg) {
a0005ae8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         <== NOT EXECUTED
	 The fd chain is already unlocked */                                 
                                                                      
      struct timespec timeout;                                        
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
a0005aec:	e59f6254 	ldr	r6, [pc, #596]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
a0005af0:	e24dd02c 	sub	sp, sp, #44	; 0x2c                            <== NOT EXECUTED
a0005af4:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
a0005af8:	e28d7020 	add	r7, sp, #32                                   <== NOT EXECUTED
	    pthread_cond_destroy (&r_chain->cond);                           
	    free (r_chain);                                                  
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
a0005afc:	e286b058 	add	fp, r6, #88	; 0x58                            <== NOT EXECUTED
      node = rtems_chain_first (chain);                               
      req = (rtems_aio_request *) node;                               
                                                                      
      /* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING      
	 discussion in rtems_aio_enqueue () */                               
      pthread_getschedparam (pthread_self(), &policy, ¶m);        
a0005b00:	e28d9004 	add	r9, sp, #4                                    <== NOT EXECUTED
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
a0005b04:	e284a01c 	add	sl, r4, #28                                   <== NOT EXECUTED
a0005b08:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
a0005b0c:	eb000328 	bl	a00067b4 <pthread_mutex_lock>                  <== NOT EXECUTED
    if (result != 0)                                                  
a0005b10:	e2508000 	subs	r8, r0, #0                                   <== NOT EXECUTED
a0005b14:	1a000088 	bne	a0005d3c <rtems_aio_handle+0x254>             <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005b18:	e5945008 	ldr	r5, [r4, #8]                                  <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
a0005b1c:	e284300c 	add	r3, r4, #12                                   <== NOT EXECUTED
                                                                      
    /* If the locked chain is not empty, take the first               
       request extract it, unlock the chain and process               
       the request, in this way the user can supply more              
       requests to this fd chain */                                   
    if (!rtems_chain_is_empty (chain)) {                              
a0005b20:	e1550003 	cmp	r5, r3                                        <== NOT EXECUTED
a0005b24:	0a000035 	beq	a0005c00 <rtems_aio_handle+0x118>             <== NOT EXECUTED
      node = rtems_chain_first (chain);                               
      req = (rtems_aio_request *) node;                               
                                                                      
      /* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING      
	 discussion in rtems_aio_enqueue () */                               
      pthread_getschedparam (pthread_self(), &policy, ¶m);        
a0005b28:	eb000532 	bl	a0006ff8 <pthread_self>                        <== NOT EXECUTED
a0005b2c:	e28d1028 	add	r1, sp, #40	; 0x28                            <== NOT EXECUTED
a0005b30:	e1a02009 	mov	r2, r9                                        <== NOT EXECUTED
a0005b34:	eb000434 	bl	a0006c0c <pthread_getschedparam>               <== NOT EXECUTED
      param.sched_priority = req->priority;                           
a0005b38:	e595300c 	ldr	r3, [r5, #12]                                 <== NOT EXECUTED
a0005b3c:	e58d3004 	str	r3, [sp, #4]                                  <== NOT EXECUTED
      pthread_setschedparam (pthread_self(), req->policy, ¶m);    
a0005b40:	eb00052c 	bl	a0006ff8 <pthread_self>                        <== NOT EXECUTED
a0005b44:	e1a02009 	mov	r2, r9                                        <== NOT EXECUTED
a0005b48:	e5951008 	ldr	r1, [r5, #8]                                  <== NOT EXECUTED
a0005b4c:	eb00052e 	bl	a000700c <pthread_setschedparam>               <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
a0005b50:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0005b54:	eb000933 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
                                                                      
      rtems_chain_extract (node);                                     
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
a0005b58:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
a0005b5c:	eb000333 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
a0005b60:	e5952014 	ldr	r2, [r5, #20]                                 <== NOT EXECUTED
a0005b64:	e592302c 	ldr	r3, [r2, #44]	; 0x2c                          <== NOT EXECUTED
a0005b68:	e3530002 	cmp	r3, #2                                        <== NOT EXECUTED
a0005b6c:	0a00000b 	beq	a0005ba0 <rtems_aio_handle+0xb8>              <== NOT EXECUTED
a0005b70:	e3530003 	cmp	r3, #3                                        <== NOT EXECUTED
a0005b74:	0a000011 	beq	a0005bc0 <rtems_aio_handle+0xd8>              <== NOT EXECUTED
a0005b78:	e3530001 	cmp	r3, #1                                        <== NOT EXECUTED
a0005b7c:	1a000013 	bne	a0005bd0 <rtems_aio_handle+0xe8>              <== NOT EXECUTED
      case LIO_READ:                                                  
        result = pread (req->aiocbp->aio_fildes,                      
a0005b80:	e5921008 	ldr	r1, [r2, #8]                                  <== NOT EXECUTED
a0005b84:	e5923004 	ldr	r3, [r2, #4]                                  <== NOT EXECUTED
a0005b88:	e58d1000 	str	r1, [sp]                                      <== NOT EXECUTED
a0005b8c:	e592100c 	ldr	r1, [r2, #12]                                 <== NOT EXECUTED
a0005b90:	e5920000 	ldr	r0, [r2]                                      <== NOT EXECUTED
a0005b94:	e5922010 	ldr	r2, [r2, #16]                                 <== NOT EXECUTED
a0005b98:	eb002943 	bl	a00100ac <pread>                               <== NOT EXECUTED
                        (void *) req->aiocbp->aio_buf,                
                        req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
a0005b9c:	ea000009 	b	a0005bc8 <rtems_aio_handle+0xe0>                <== NOT EXECUTED
                                                                      
      case LIO_WRITE:                                                 
        result = pwrite (req->aiocbp->aio_fildes,                     
a0005ba0:	e5921008 	ldr	r1, [r2, #8]                                  <== NOT EXECUTED
a0005ba4:	e5923004 	ldr	r3, [r2, #4]                                  <== NOT EXECUTED
a0005ba8:	e58d1000 	str	r1, [sp]                                      <== NOT EXECUTED
a0005bac:	e592100c 	ldr	r1, [r2, #12]                                 <== NOT EXECUTED
a0005bb0:	e5920000 	ldr	r0, [r2]                                      <== NOT EXECUTED
a0005bb4:	e5922010 	ldr	r2, [r2, #16]                                 <== NOT EXECUTED
a0005bb8:	eb002983 	bl	a00101cc <pwrite>                              <== NOT EXECUTED
                         (void *) req->aiocbp->aio_buf,               
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
a0005bbc:	ea000001 	b	a0005bc8 <rtems_aio_handle+0xe0>                <== NOT EXECUTED
                                                                      
      case LIO_SYNC:                                                  
      	result = fsync (req->aiocbp->aio_fildes);                      
a0005bc0:	e5920000 	ldr	r0, [r2]                                      <== NOT EXECUTED
a0005bc4:	eb00197f 	bl	a000c1c8 <fsync>                               <== NOT EXECUTED
      	break;                                                         
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
a0005bc8:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
a0005bcc:	1a000006 	bne	a0005bec <rtems_aio_handle+0x104>             <== NOT EXECUTED
        req->aiocbp->return_value = -1;                               
a0005bd0:	e5955014 	ldr	r5, [r5, #20]                                 <== NOT EXECUTED
a0005bd4:	e3e02000 	mvn	r2, #0                                        <== NOT EXECUTED
a0005bd8:	e5852034 	str	r2, [r5, #52]	; 0x34                          <== NOT EXECUTED
	req->aiocbp->error_code = errno;                                     
a0005bdc:	eb002630 	bl	a000f4a4 <__errno>                             <== NOT EXECUTED
a0005be0:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
a0005be4:	e5853030 	str	r3, [r5, #48]	; 0x30                          <== NOT EXECUTED
a0005be8:	eaffffc5 	b	a0005b04 <rtems_aio_handle+0x1c>                <== NOT EXECUTED
      } else {                                                        
        req->aiocbp->return_value = result;                           
a0005bec:	e5953014 	ldr	r3, [r5, #20]                                 <== NOT EXECUTED
        req->aiocbp->error_code = 0;                                  
a0005bf0:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
a0005bf4:	e5830034 	str	r0, [r3, #52]	; 0x34                          <== NOT EXECUTED
        req->aiocbp->error_code = 0;                                  
a0005bf8:	e5832030 	str	r2, [r3, #48]	; 0x30                          <== NOT EXECUTED
a0005bfc:	eaffffc0 	b	a0005b04 <rtems_aio_handle+0x1c>                <== NOT EXECUTED
	 wait for a signal on chain, this will unlock the queue.             
	 The fd chain is already unlocked */                                 
                                                                      
      struct timespec timeout;                                        
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
a0005c00:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
a0005c04:	eb000309 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
      pthread_mutex_lock (&aio_request_queue.mutex);                  
a0005c08:	e59f0138 	ldr	r0, [pc, #312]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
a0005c0c:	eb0002e8 	bl	a00067b4 <pthread_mutex_lock>                  <== NOT EXECUTED
      if (rtems_chain_is_empty (chain))                               
a0005c10:	e5943008 	ldr	r3, [r4, #8]                                  <== NOT EXECUTED
a0005c14:	e1530005 	cmp	r3, r5                                        <== NOT EXECUTED
a0005c18:	1affffb9 	bne	a0005b04 <rtems_aio_handle+0x1c>              <== NOT EXECUTED
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
a0005c1c:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
a0005c20:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
a0005c24:	eb000152 	bl	a0006174 <clock_gettime>                       <== NOT EXECUTED
	  timeout.tv_sec += 3;                                               
a0005c28:	e59d3020 	ldr	r3, [sp, #32]                                 <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
a0005c2c:	e2845020 	add	r5, r4, #32                                   <== NOT EXECUTED
a0005c30:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
a0005c34:	e2833003 	add	r3, r3, #3                                    <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
a0005c38:	e59f1108 	ldr	r1, [pc, #264]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
a0005c3c:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
a0005c40:	e58d3020 	str	r3, [sp, #32]                                 <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
a0005c44:	e58d8024 	str	r8, [sp, #36]	; 0x24                          <== NOT EXECUTED
	  result = pthread_cond_timedwait (&r_chain->cond,                   
a0005c48:	eb0001e1 	bl	a00063d4 <pthread_cond_timedwait>              <== NOT EXECUTED
					   &aio_request_queue.mutex, &timeout);                          
	                                                                     
	  /* If no requests were added to the chain we delete the fd chain from
	     the queue and start working with idle fd chains */              
	  if (result == ETIMEDOUT) {                                         
a0005c4c:	e3500074 	cmp	r0, #116	; 0x74                               <== NOT EXECUTED
a0005c50:	1affffab 	bne	a0005b04 <rtems_aio_handle+0x1c>              <== NOT EXECUTED
a0005c54:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005c58:	eb0008f2 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
	    rtems_chain_extract (&r_chain->next_fd);                         
	    pthread_mutex_destroy (&r_chain->mutex);                         
a0005c5c:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
a0005c60:	eb000230 	bl	a0006528 <pthread_mutex_destroy>               <== NOT EXECUTED
	    pthread_cond_destroy (&r_chain->cond);                           
a0005c64:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0005c68:	eb00015f 	bl	a00061ec <pthread_cond_destroy>                <== NOT EXECUTED
	    free (r_chain);                                                  
a0005c6c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005c70:	ebfff2f1 	bl	a000283c <free>                                <== NOT EXECUTED
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
a0005c74:	e5963054 	ldr	r3, [r6, #84]	; 0x54                          <== NOT EXECUTED
a0005c78:	e153000b 	cmp	r3, fp                                        <== NOT EXECUTED
a0005c7c:	1a00002b 	bne	a0005d30 <rtems_aio_handle+0x248>             <== NOT EXECUTED
	      ++aio_request_queue.idle_threads;                              
a0005c80:	e5963068 	ldr	r3, [r6, #104]	; 0x68                         <== NOT EXECUTED
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
a0005c84:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
a0005c88:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
	    free (r_chain);                                                  
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      ++aio_request_queue.idle_threads;                              
a0005c8c:	e2833001 	add	r3, r3, #1                                    <== NOT EXECUTED
a0005c90:	e5863068 	str	r3, [r6, #104]	; 0x68                         <== NOT EXECUTED
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
a0005c94:	eb000136 	bl	a0006174 <clock_gettime>                       <== NOT EXECUTED
	      timeout.tv_sec += 3;                                           
a0005c98:	e59d3020 	ldr	r3, [sp, #32]                                 <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
a0005c9c:	e59f00a8 	ldr	r0, [pc, #168]	; a0005d4c <rtems_aio_handle+0x264><== NOT EXECUTED
a0005ca0:	e59f10a0 	ldr	r1, [pc, #160]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      ++aio_request_queue.idle_threads;                              
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
a0005ca4:	e2833003 	add	r3, r3, #3                                    <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
a0005ca8:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      ++aio_request_queue.idle_threads;                              
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
a0005cac:	e58d3020 	str	r3, [sp, #32]                                 <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
a0005cb0:	e58d8024 	str	r8, [sp, #36]	; 0x24                          <== NOT EXECUTED
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
a0005cb4:	eb0001c6 	bl	a00063d4 <pthread_cond_timedwait>              <== NOT EXECUTED
					       &aio_request_queue.mutex,                                 
					       &timeout);                                                
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
a0005cb8:	e3500074 	cmp	r0, #116	; 0x74                               <== NOT EXECUTED
a0005cbc:	1a000002 	bne	a0005ccc <rtems_aio_handle+0x1e4>             <== NOT EXECUTED
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
a0005cc0:	e59f0080 	ldr	r0, [pc, #128]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
a0005cc4:	eb0002d9 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
		return NULL;                                                        
a0005cc8:	ea00001b 	b	a0005d3c <rtems_aio_handle+0x254>               <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005ccc:	e5965054 	ldr	r5, [r6, #84]	; 0x54                          <== NOT EXECUTED
		return NULL;                                                        
	      }                                                              
	                                                                     
	      /* Otherwise move this chain to the working chain and          
		 start the loop all over again */                                   
	      --aio_request_queue.idle_threads;                              
a0005cd0:	e5963068 	ldr	r3, [r6, #104]	; 0x68                         <== NOT EXECUTED
a0005cd4:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0005cd8:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
a0005cdc:	e5863068 	str	r3, [r6, #104]	; 0x68                         <== NOT EXECUTED
a0005ce0:	eb0008d0 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
	      node = rtems_chain_first (&aio_request_queue.idle_req);        
	      rtems_chain_extract (node);                                    
	      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,    
a0005ce4:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a0005ce8:	e5951014 	ldr	r1, [r5, #20]                                 <== NOT EXECUTED
a0005cec:	e59f005c 	ldr	r0, [pc, #92]	; a0005d50 <rtems_aio_handle+0x268><== NOT EXECUTED
a0005cf0:	ebffff52 	bl	a0005a40 <rtems_aio_search_fd>                 <== NOT EXECUTED
					     ((rtems_aio_request_chain *)node)->fildes,                  
					     1);                                                         
	      r_chain->new_fd = 0;                                           
	      pthread_mutex_init (&r_chain->mutex, NULL);                    
a0005cf4:	e1a01008 	mov	r1, r8                                        <== NOT EXECUTED
	      /* Otherwise move this chain to the working chain and          
		 start the loop all over again */                                   
	      --aio_request_queue.idle_threads;                              
	      node = rtems_chain_first (&aio_request_queue.idle_req);        
	      rtems_chain_extract (node);                                    
	      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,    
a0005cf8:	e1a04000 	mov	r4, r0                                        <== NOT EXECUTED
					     ((rtems_aio_request_chain *)node)->fildes,                  
					     1);                                                         
	      r_chain->new_fd = 0;                                           
a0005cfc:	e5808018 	str	r8, [r0, #24]                                 <== NOT EXECUTED
	      pthread_mutex_init (&r_chain->mutex, NULL);                    
a0005d00:	e280001c 	add	r0, r0, #28                                   <== NOT EXECUTED
a0005d04:	eb000257 	bl	a0006668 <pthread_mutex_init>                  <== NOT EXECUTED
	      pthread_cond_init (&r_chain->cond, NULL);                      
a0005d08:	e2840020 	add	r0, r4, #32                                   <== NOT EXECUTED
a0005d0c:	e1a01008 	mov	r1, r8                                        <== NOT EXECUTED
a0005d10:	eb000167 	bl	a00062b4 <pthread_cond_init>                   <== NOT EXECUTED
	                                                                     
	      r_chain->perfd = ((rtems_aio_request_chain *)node)->perfd;     
a0005d14:	e5953008 	ldr	r3, [r5, #8]                                  <== NOT EXECUTED
a0005d18:	e5843008 	str	r3, [r4, #8]                                  <== NOT EXECUTED
a0005d1c:	e595300c 	ldr	r3, [r5, #12]                                 <== NOT EXECUTED
a0005d20:	e584300c 	str	r3, [r4, #12]                                 <== NOT EXECUTED
a0005d24:	e5953010 	ldr	r3, [r5, #16]                                 <== NOT EXECUTED
a0005d28:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
a0005d2c:	eaffff74 	b	a0005b04 <rtems_aio_handle+0x1c>                <== NOT EXECUTED
	    }                                                                
	    else                                                             
	      /* If there was a request added in the initial fd chain then release
		 the mutex and process it */                                        
	      pthread_mutex_unlock (&aio_request_queue.mutex);               
a0005d30:	e59f0010 	ldr	r0, [pc, #16]	; a0005d48 <rtems_aio_handle+0x260><== NOT EXECUTED
a0005d34:	eb0002bd 	bl	a0006830 <pthread_mutex_unlock>                <== NOT EXECUTED
a0005d38:	eaffff71 	b	a0005b04 <rtems_aio_handle+0x1c>                <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005d3c:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
a0005d40:	e28dd02c 	add	sp, sp, #44	; 0x2c                            <== NOT EXECUTED
a0005d44:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          <== NOT EXECUTED
                                                                      

a0005978 <rtems_aio_init>: * 0 - if initialization succeeded */ int rtems_aio_init (void) {
a0005978:	e92d4010 	push	{r4, lr}                                     
  int result = 0;                                                     
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
a000597c:	e59f00ac 	ldr	r0, [pc, #172]	; a0005a30 <rtems_aio_init+0xb8>
a0005980:	eb0003ec 	bl	a0006938 <pthread_attr_init>                   
  if (result != 0)                                                    
a0005984:	e2504000 	subs	r4, r0, #0                                   
a0005988:	1a000026 	bne	a0005a28 <rtems_aio_init+0xb0>                
    return result;                                                    
                                                                      
  result =                                                            
a000598c:	e59f009c 	ldr	r0, [pc, #156]	; a0005a30 <rtems_aio_init+0xb8>
a0005990:	e1a01004 	mov	r1, r4                                        
a0005994:	eb0003f9 	bl	a0006980 <pthread_attr_setdetachstate>         
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
a0005998:	e3500000 	cmp	r0, #0                                        
a000599c:	0a000001 	beq	a00059a8 <rtems_aio_init+0x30>                
    pthread_attr_destroy (&aio_request_queue.attr);                   
a00059a0:	e59f0088 	ldr	r0, [pc, #136]	; a0005a30 <rtems_aio_init+0xb8><== NOT EXECUTED
a00059a4:	eb0003da 	bl	a0006914 <pthread_attr_destroy>                <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
a00059a8:	e59f0084 	ldr	r0, [pc, #132]	; a0005a34 <rtems_aio_init+0xbc>
a00059ac:	e3a01000 	mov	r1, #0                                        
a00059b0:	eb00032c 	bl	a0006668 <pthread_mutex_init>                  
  if (result != 0)                                                    
a00059b4:	e3500000 	cmp	r0, #0                                        
a00059b8:	0a000001 	beq	a00059c4 <rtems_aio_init+0x4c>                
    pthread_attr_destroy (&aio_request_queue.attr);                   
a00059bc:	e59f006c 	ldr	r0, [pc, #108]	; a0005a30 <rtems_aio_init+0xb8><== NOT EXECUTED
a00059c0:	eb0003d3 	bl	a0006914 <pthread_attr_destroy>                <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
a00059c4:	e59f006c 	ldr	r0, [pc, #108]	; a0005a38 <rtems_aio_init+0xc0>
a00059c8:	e3a01000 	mov	r1, #0                                        
a00059cc:	eb000238 	bl	a00062b4 <pthread_cond_init>                   
  if (result != 0) {                                                  
a00059d0:	e2504000 	subs	r4, r0, #0                                   
a00059d4:	0a000003 	beq	a00059e8 <rtems_aio_init+0x70>                
    pthread_mutex_destroy (&aio_request_queue.mutex);                 
a00059d8:	e59f0054 	ldr	r0, [pc, #84]	; a0005a34 <rtems_aio_init+0xbc>
a00059dc:	eb0002d1 	bl	a0006528 <pthread_mutex_destroy>               <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
a00059e0:	e59f0048 	ldr	r0, [pc, #72]	; a0005a30 <rtems_aio_init+0xb8><== NOT EXECUTED
a00059e4:	eb0003ca 	bl	a0006914 <pthread_attr_destroy>                <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
a00059e8:	e59f3044 	ldr	r3, [pc, #68]	; a0005a34 <rtems_aio_init+0xbc>
a00059ec:	e283204c 	add	r2, r3, #76	; 0x4c                            
a00059f0:	e5832048 	str	r2, [r3, #72]	; 0x48                          
  head->previous = NULL;                                              
a00059f4:	e3a02000 	mov	r2, #0                                        
  tail->previous = head;                                              
a00059f8:	e2831048 	add	r1, r3, #72	; 0x48                            
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
a00059fc:	e583204c 	str	r2, [r3, #76]	; 0x4c                          
a0005a00:	e5832058 	str	r2, [r3, #88]	; 0x58                          
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&aio_request_queue.work_req);         
  rtems_chain_initialize_empty (&aio_request_queue.idle_req);         
                                                                      
  aio_request_queue.active_threads = 0;                               
a0005a04:	e5832064 	str	r2, [r3, #100]	; 0x64                         
  aio_request_queue.idle_threads = 0;                                 
a0005a08:	e5832068 	str	r2, [r3, #104]	; 0x68                         
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
a0005a0c:	e59f2028 	ldr	r2, [pc, #40]	; a0005a3c <rtems_aio_init+0xc4>
  tail->previous = head;                                              
a0005a10:	e5831050 	str	r1, [r3, #80]	; 0x50                          
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
a0005a14:	e2831058 	add	r1, r3, #88	; 0x58                            
a0005a18:	e5831054 	str	r1, [r3, #84]	; 0x54                          
  head->previous = NULL;                                              
  tail->previous = head;                                              
a0005a1c:	e2831054 	add	r1, r3, #84	; 0x54                            
a0005a20:	e583105c 	str	r1, [r3, #92]	; 0x5c                          
a0005a24:	e5832060 	str	r2, [r3, #96]	; 0x60                          
                                                                      
  return result;                                                      
}                                                                     
a0005a28:	e1a00004 	mov	r0, r4                                        
a0005a2c:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

a0005d54 <rtems_aio_insert_prio>:
a0005d54:	e1a02000 	mov	r2, r0                                        
a0005d58:	e4923004 	ldr	r3, [r2], #4                                  
 *        NONE                                                        
 */                                                                   
                                                                      
void                                                                  
rtems_aio_insert_prio (rtems_chain_control *chain, rtems_aio_request *req)
{                                                                     
a0005d5c:	e1a0c001 	mov	ip, r1                                        
  rtems_chain_node *node;                                             
                                                                      
  AIO_printf ("FD exists \n");                                        
  node = rtems_chain_first (chain);                                   
                                                                      
  if (rtems_chain_is_empty (chain)) {                                 
a0005d60:	e1530002 	cmp	r3, r2                                        
a0005d64:	0a00000d 	beq	a0005da0 <rtems_aio_insert_prio+0x4c>         
    AIO_printf ("First in chain \n");                                 
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
a0005d68:	e5931014 	ldr	r1, [r3, #20]                                 
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
a0005d6c:	e59c0014 	ldr	r0, [ip, #20]                                 
  if (rtems_chain_is_empty (chain)) {                                 
    AIO_printf ("First in chain \n");                                 
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
a0005d70:	e5911014 	ldr	r1, [r1, #20]                                 
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
a0005d74:	e5900014 	ldr	r0, [r0, #20]                                 
a0005d78:	ea000002 	b	a0005d88 <rtems_aio_insert_prio+0x34>           
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005d7c:	e5933000 	ldr	r3, [r3]                                      <== NOT EXECUTED
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
           !rtems_chain_is_tail (chain, node)) {                      
      node = rtems_chain_next (node);                                 
      prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;       
a0005d80:	e5931014 	ldr	r1, [r3, #20]                                 <== NOT EXECUTED
a0005d84:	e5911014 	ldr	r1, [r1, #20]                                 <== NOT EXECUTED
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
a0005d88:	e1500001 	cmp	r0, r1                                        
a0005d8c:	da000001 	ble	a0005d98 <rtems_aio_insert_prio+0x44>         
a0005d90:	e1530002 	cmp	r3, r2                                        <== NOT EXECUTED
a0005d94:	1afffff8 	bne	a0005d7c <rtems_aio_insert_prio+0x28>         <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_insert(                         
  rtems_chain_node *after_node,                                       
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Insert( after_node, the_node );                              
a0005d98:	e5930004 	ldr	r0, [r3, #4]                                  
a0005d9c:	e1a0100c 	mov	r1, ip                                        
a0005da0:	ea0008b5 	b	a000807c <_Chain_Insert>                        
                                                                      

a0005da4 <rtems_aio_remove_fd>: * Output parameters: * NONE */ void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain) {
a0005da4:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
a0005da8:	e280700c 	add	r7, r0, #12                                   <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005dac:	e5904008 	ldr	r4, [r0, #8]                                  <== NOT EXECUTED
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      req->aiocbp->error_code = ECANCELED;                            
a0005db0:	e3a0608c 	mov	r6, #140	; 0x8c                               <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
a0005db4:	e3e05000 	mvn	r5, #0                                        <== NOT EXECUTED
  rtems_chain_node *node;                                             
                                                                      
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
a0005db8:	ea000006 	b	a0005dd8 <rtems_aio_remove_fd+0x34>             <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
a0005dbc:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005dc0:	eb000898 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      req->aiocbp->error_code = ECANCELED;                            
a0005dc4:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
a0005dc8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      req->aiocbp->error_code = ECANCELED;                            
a0005dcc:	e5836030 	str	r6, [r3, #48]	; 0x30                          <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
a0005dd0:	e5835034 	str	r5, [r3, #52]	; 0x34                          <== NOT EXECUTED
      free (req);                                                     
a0005dd4:	ebfff298 	bl	a000283c <free>                                <== NOT EXECUTED
  rtems_chain_node *node;                                             
                                                                      
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
a0005dd8:	e1540007 	cmp	r4, r7                                        <== NOT EXECUTED
a0005ddc:	1afffff6 	bne	a0005dbc <rtems_aio_remove_fd+0x18>           <== NOT EXECUTED
      rtems_aio_request *req = (rtems_aio_request *) node;            
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
    }                                                                 
}                                                                     
a0005de0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

a0005de4 <rtems_aio_remove_req>: * AIO_NOTCANCELED - if request was not canceled * AIO_CANCELED - if request was canceled */ int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp) {
a0005de4:	e92d4010 	push	{r4, lr}                                     <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005de8:	e4904004 	ldr	r4, [r0], #4                                  <== NOT EXECUTED
  rtems_chain_node *node = rtems_chain_first (chain);                 
  rtems_aio_request *current;                                         
                                                                      
  current = (rtems_aio_request *) node;                               
                                                                      
  while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
a0005dec:	ea000000 	b	a0005df4 <rtems_aio_remove_req+0x10>            <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
a0005df0:	e5944000 	ldr	r4, [r4]                                      <== NOT EXECUTED
  rtems_chain_node *node = rtems_chain_first (chain);                 
  rtems_aio_request *current;                                         
                                                                      
  current = (rtems_aio_request *) node;                               
                                                                      
  while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
a0005df4:	e1540000 	cmp	r4, r0                                        <== NOT EXECUTED
a0005df8:	0a00000d 	beq	a0005e34 <rtems_aio_remove_req+0x50>          <== NOT EXECUTED
a0005dfc:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
a0005e00:	e1530001 	cmp	r3, r1                                        <== NOT EXECUTED
a0005e04:	1afffff9 	bne	a0005df0 <rtems_aio_remove_req+0xc>           <== NOT EXECUTED
a0005e08:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0005e0c:	eb000885 	bl	a0008028 <_Chain_Extract>                      <== NOT EXECUTED
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
a0005e10:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
a0005e14:	e3a0208c 	mov	r2, #140	; 0x8c                               <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
a0005e18:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
a0005e1c:	e5832030 	str	r2, [r3, #48]	; 0x30                          <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
a0005e20:	e3e02000 	mvn	r2, #0                                        <== NOT EXECUTED
a0005e24:	e5832034 	str	r2, [r3, #52]	; 0x34                          <== NOT EXECUTED
      free (current);                                                 
a0005e28:	ebfff283 	bl	a000283c <free>                                <== NOT EXECUTED
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
a0005e2c:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
a0005e30:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
    node = rtems_chain_next (node);                                   
    current = (rtems_aio_request *) node;                             
  }                                                                   
                                                                      
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
a0005e34:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
}                                                                     
a0005e38:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

a0005b10 <rtems_chain_append_with_notification>: rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) {
a0005b10:	e92d4030 	push	{r4, r5, lr}                                 
a0005b14:	e1a04002 	mov	r4, r2                                        
a0005b18:	e1a05003 	mov	r5, r3                                        
RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check(        
  rtems_chain_control *chain,                                         
  rtems_chain_node *node                                              
)                                                                     
{                                                                     
  return _Chain_Append_with_empty_check( chain, node );               
a0005b1c:	eb00013a 	bl	a000600c <_Chain_Append_with_empty_check>      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_append_with_empty_check( chain, node );
                                                                      
  if ( was_empty ) {                                                  
a0005b20:	e3500000 	cmp	r0, #0                                        
a0005b24:	0a000003 	beq	a0005b38 <rtems_chain_append_with_notification+0x28>
    sc = rtems_event_send( task, events );                            
a0005b28:	e1a00004 	mov	r0, r4                                        
a0005b2c:	e1a01005 	mov	r1, r5                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
a0005b30:	e8bd4030 	pop	{r4, r5, lr}                                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_append_with_empty_check( chain, node );
                                                                      
  if ( was_empty ) {                                                  
    sc = rtems_event_send( task, events );                            
a0005b34:	eafffda5 	b	a00051d0 <rtems_event_send>                     
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
a0005b38:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

a0005bc0 <rtems_chain_prepend_with_notification>: rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) {
a0005bc0:	e92d4030 	push	{r4, r5, lr}                                 
a0005bc4:	e1a04002 	mov	r4, r2                                        
a0005bc8:	e1a05003 	mov	r5, r3                                        
RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check(       
  rtems_chain_control *chain,                                         
  rtems_chain_node *node                                              
)                                                                     
{                                                                     
  return _Chain_Prepend_with_empty_check( chain, node );              
a0005bcc:	eb00015d 	bl	a0006148 <_Chain_Prepend_with_empty_check>     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
                                                                      
  if (was_empty) {                                                    
a0005bd0:	e3500000 	cmp	r0, #0                                        
a0005bd4:	0a000003 	beq	a0005be8 <rtems_chain_prepend_with_notification+0x28>
    sc = rtems_event_send( task, events );                            
a0005bd8:	e1a00004 	mov	r0, r4                                        
a0005bdc:	e1a01005 	mov	r1, r5                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
a0005be0:	e8bd4030 	pop	{r4, r5, lr}                                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
                                                                      
  if (was_empty) {                                                    
    sc = rtems_event_send( task, events );                            
a0005be4:	eafffd79 	b	a00051d0 <rtems_event_send>                     
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
a0005be8:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

a000226c <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
a000226c:	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 )                                                       
a0002270:	e251a000 	subs	sl, r1, #0                                   
                                                                      
void rtems_cpu_usage_report_with_plugin(                              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
a0002274:	e24dd040 	sub	sp, sp, #64	; 0x40                            
a0002278:	e1a08000 	mov	r8, r0                                        
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
a000227c:	0a000051 	beq	a00023c8 <rtems_cpu_usage_report_with_plugin+0x15c>
   *  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 );                                       
a0002280:	e28d5030 	add	r5, sp, #48	; 0x30                            
a0002284:	e1a00005 	mov	r0, r5                                        
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
a0002288:	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 );                                       
a000228c:	eb001498 	bl	a00074f4 <_TOD_Get_uptime>                     
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
a0002290:	e1a01005 	mov	r1, r5                                        
a0002294:	e59f0134 	ldr	r0, [pc, #308]	; a00023d0 <rtems_cpu_usage_report_with_plugin+0x164>
a0002298:	e1a02004 	mov	r2, r4                                        
a000229c:	eb001d5e 	bl	a000981c <_Timespec_Subtract>                  
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
a00022a0:	e1a00008 	mov	r0, r8                                        
a00022a4:	e59f1128 	ldr	r1, [pc, #296]	; a00023d4 <rtems_cpu_usage_report_with_plugin+0x168>
a00022a8:	e12fff3a 	blx	sl                                            
a00022ac:	e59f5124 	ldr	r5, [pc, #292]	; a00023d8 <rtems_cpu_usage_report_with_plugin+0x16c>
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
a00022b0:	e28db008 	add	fp, sp, #8                                    
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
a00022b4:	e5b53004 	ldr	r3, [r5, #4]!                                 
a00022b8:	e5936004 	ldr	r6, [r3, #4]                                  
    if ( information ) {                                              
a00022bc:	e3560000 	cmp	r6, #0                                        
a00022c0:	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(                                      
a00022c4:	128d9018 	addne	r9, sp, #24                                 
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
a00022c8:	1a000030 	bne	a0002390 <rtems_cpu_usage_report_with_plugin+0x124>
a00022cc:	ea000032 	b	a000239c <rtems_cpu_usage_report_with_plugin+0x130><== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
a00022d0:	e596301c 	ldr	r3, [r6, #28]                                 
a00022d4:	e7934107 	ldr	r4, [r3, r7, lsl #2]                          
                                                                      
        if ( !the_thread )                                            
a00022d8:	e3540000 	cmp	r4, #0                                        
a00022dc:	0a00002a 	beq	a000238c <rtems_cpu_usage_report_with_plugin+0x120>
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
a00022e0:	e3a0100d 	mov	r1, #13                                       
a00022e4:	e1a0200b 	mov	r2, fp                                        
a00022e8:	e5940008 	ldr	r0, [r4, #8]                                  
a00022ec:	eb000fd8 	bl	a0006254 <rtems_object_get_name>               
                                                                      
        (*print)(                                                     
a00022f0:	e5942008 	ldr	r2, [r4, #8]                                  
a00022f4:	e1a0300b 	mov	r3, fp                                        
a00022f8:	e1a00008 	mov	r0, r8                                        
a00022fc:	e59f10d8 	ldr	r1, [pc, #216]	; a00023dc <rtems_cpu_usage_report_with_plugin+0x170>
a0002300:	e12fff3a 	blx	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;                            
a0002304:	e2843084 	add	r3, r4, #132	; 0x84                           
a0002308:	e893000c 	ldm	r3, {r2, r3}                                  
a000230c:	e58d2020 	str	r2, [sp, #32]                                 
a0002310:	e58d3024 	str	r3, [sp, #36]	; 0x24                          
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
a0002314:	e59f20c4 	ldr	r2, [pc, #196]	; a00023e0 <rtems_cpu_usage_report_with_plugin+0x174>
a0002318:	e5923004 	ldr	r3, [r2, #4]                                  
a000231c:	e5932008 	ldr	r2, [r3, #8]                                  
a0002320:	e5943008 	ldr	r3, [r4, #8]                                  
a0002324:	e1520003 	cmp	r2, r3                                        
a0002328:	1a000006 	bne	a0002348 <rtems_cpu_usage_report_with_plugin+0xdc>
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
a000232c:	e59f00b0 	ldr	r0, [pc, #176]	; a00023e4 <rtems_cpu_usage_report_with_plugin+0x178>
a0002330:	e28d1030 	add	r1, sp, #48	; 0x30                            
a0002334:	e1a02009 	mov	r2, r9                                        
a0002338:	eb001d37 	bl	a000981c <_Timespec_Subtract>                  
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
a000233c:	e28d0020 	add	r0, sp, #32                                   
a0002340:	e1a01009 	mov	r1, r9                                        
a0002344:	eb001cf8 	bl	a000972c <_Timespec_Add_to>                    
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
a0002348:	e28d203c 	add	r2, sp, #60	; 0x3c                            
a000234c:	e28d3038 	add	r3, sp, #56	; 0x38                            
a0002350:	e28d0020 	add	r0, sp, #32                                   
a0002354:	e28d1028 	add	r1, sp, #40	; 0x28                            
a0002358:	eb001d0b 	bl	a000978c <_Timespec_Divide>                    
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
a000235c:	e3a01ffa 	mov	r1, #1000	; 0x3e8                             
a0002360:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
a0002364:	eb005529 	bl	a0017810 <__aeabi_uidiv>                       
a0002368:	e59d203c 	ldr	r2, [sp, #60]	; 0x3c                          
a000236c:	e1a03000 	mov	r3, r0                                        
a0002370:	e59f1070 	ldr	r1, [pc, #112]	; a00023e8 <rtems_cpu_usage_report_with_plugin+0x17c>
a0002374:	e58d2000 	str	r2, [sp]                                      
a0002378:	e59d2038 	ldr	r2, [sp, #56]	; 0x38                          
a000237c:	e1a00008 	mov	r0, r8                                        
a0002380:	e58d2004 	str	r2, [sp, #4]                                  
a0002384:	e59d2020 	ldr	r2, [sp, #32]                                 
a0002388:	e12fff3a 	blx	sl                                            
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
a000238c:	e2877001 	add	r7, r7, #1                                    
a0002390:	e1d631b0 	ldrh	r3, [r6, #16]                                
a0002394:	e1570003 	cmp	r7, r3                                        
a0002398:	9affffcc 	bls	a00022d0 <rtems_cpu_usage_report_with_plugin+0x64>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
a000239c:	e59f3048 	ldr	r3, [pc, #72]	; a00023ec <rtems_cpu_usage_report_with_plugin+0x180>
a00023a0:	e1550003 	cmp	r5, r3                                        
a00023a4:	1affffc2 	bne	a00022b4 <rtems_cpu_usage_report_with_plugin+0x48>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
a00023a8:	e3a01ffa 	mov	r1, #1000	; 0x3e8                             
a00023ac:	e59d002c 	ldr	r0, [sp, #44]	; 0x2c                          
a00023b0:	eb005516 	bl	a0017810 <__aeabi_uidiv>                       
a00023b4:	e59f1034 	ldr	r1, [pc, #52]	; a00023f0 <rtems_cpu_usage_report_with_plugin+0x184>
a00023b8:	e1a03000 	mov	r3, r0                                        
a00023bc:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
a00023c0:	e1a00008 	mov	r0, r8                                        
a00023c4:	e12fff3a 	blx	sl                                            
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
a00023c8:	e28dd040 	add	sp, sp, #64	; 0x40                            
a00023cc:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

a0001988 <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 ) {
a0001988:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
a000198c:	e59f60e0 	ldr	r6, [pc, #224]	; a0001a74 <rtems_filesystem_initialize+0xec>
a0001990:	e3a02012 	mov	r2, #18                                       
 *  configuration is a single instantiation of the IMFS or miniIMFS with
 *  a single "/dev" directory in it.                                  
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
a0001994:	e24dd018 	sub	sp, sp, #24                                   
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
a0001998:	e5963000 	ldr	r3, [r6]                                      
a000199c:	e583202c 	str	r2, [r3, #44]	; 0x2c                          
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
a00019a0:	e59f30d0 	ldr	r3, [pc, #208]	; a0001a78 <rtems_filesystem_initialize+0xf0>
a00019a4:	e5933000 	ldr	r3, [r3]                                      
a00019a8:	e3530000 	cmp	r3, #0                                        
    rtems_fatal_error_occurred( 0xABCD0001 );                         
a00019ac:	059f00c8 	ldreq	r0, [pc, #200]	; a0001a7c <rtems_filesystem_initialize+0xf4>
  rtems_filesystem_umask = 022;                                       
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
a00019b0:	0a00000a 	beq	a00019e0 <rtems_filesystem_initialize+0x58>   
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
a00019b4:	e59f30c4 	ldr	r3, [pc, #196]	; a0001a80 <rtems_filesystem_initialize+0xf8>
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
a00019b8:	e3a05000 	mov	r5, #0                                        
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
a00019bc:	e5933000 	ldr	r3, [r3]                                      
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
a00019c0:	e58d5000 	str	r5, [sp]                                      
a00019c4:	e5930008 	ldr	r0, [r3, #8]                                  
a00019c8:	e593100c 	ldr	r1, [r3, #12]                                 
a00019cc:	e893000c 	ldm	r3, {r2, r3}                                  
a00019d0:	eb000201 	bl	a00021dc <mount>                               
  if ( status == -1 )                                                 
a00019d4:	e3700001 	cmn	r0, #1                                        
a00019d8:	1a000001 	bne	a00019e4 <rtems_filesystem_initialize+0x5c>   
    rtems_fatal_error_occurred( 0xABCD0002 );                         
a00019dc:	e59f00a0 	ldr	r0, [pc, #160]	; a0001a84 <rtems_filesystem_initialize+0xfc><== NOT EXECUTED
a00019e0:	eb000eb1 	bl	a00054ac <rtems_fatal_error_occurred>          <== NOT EXECUTED
                                                                      
  rtems_filesystem_link_counts = 0;                                   
a00019e4:	e5963000 	ldr	r3, [r6]                                      
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
a00019e8:	e28d4004 	add	r4, sp, #4                                    
a00019ec:	e3a01001 	mov	r1, #1                                        
                                                                      
  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;                                   
a00019f0:	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);                 
a00019f4:	e1a02005 	mov	r2, r5                                        
a00019f8:	e1a03004 	mov	r3, r4                                        
a00019fc:	e59f0084 	ldr	r0, [pc, #132]	; a0001a88 <rtems_filesystem_initialize+0x100>
a0001a00:	e58d5000 	str	r5, [sp]                                      
a0001a04:	eb000053 	bl	a0001b58 <rtems_filesystem_evaluate_path>      
  rtems_filesystem_root        = loc;                                 
a0001a08:	e596c000 	ldr	ip, [r6]                                      
a0001a0c:	e1a07004 	mov	r7, r4                                        
a0001a10:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
a0001a14:	e28cc018 	add	ip, ip, #24                                   
a0001a18:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0001a1c:	e5973000 	ldr	r3, [r7]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
a0001a20:	e3a01001 	mov	r1, #1                                        
a0001a24:	e1a02005 	mov	r2, r5                                        
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
a0001a28:	e58c3000 	str	r3, [ip]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
a0001a2c:	e59f0054 	ldr	r0, [pc, #84]	; a0001a88 <rtems_filesystem_initialize+0x100>
a0001a30:	e1a03004 	mov	r3, r4                                        
a0001a34:	e58d5000 	str	r5, [sp]                                      
a0001a38:	eb000046 	bl	a0001b58 <rtems_filesystem_evaluate_path>      
  rtems_filesystem_current     = loc;                                 
a0001a3c:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
a0001a40:	e596c000 	ldr	ip, [r6]                                      
a0001a44:	e28cc004 	add	ip, ip, #4                                    
a0001a48:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0001a4c:	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);                                      
a0001a50:	e59f0034 	ldr	r0, [pc, #52]	; a0001a8c <rtems_filesystem_initialize+0x104>
a0001a54:	e59f1034 	ldr	r1, [pc, #52]	; a0001a90 <rtems_filesystem_initialize+0x108>
  /* 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;                                 
a0001a58:	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);                                      
a0001a5c:	eb00018d 	bl	a0002098 <mkdir>                               
  if ( status != 0 )                                                  
a0001a60:	e3500000 	cmp	r0, #0                                        
    rtems_fatal_error_occurred( 0xABCD0003 );                         
a0001a64:	159f0028 	ldrne	r0, [pc, #40]	; a0001a94 <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 )                                                  
a0001a68:	1affffdc 	bne	a00019e0 <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.        
   */                                                                 
}                                                                     
a0001a6c:	e28dd018 	add	sp, sp, #24                                   
a0001a70:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

a000273c <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
a000273c:	e92d4070 	push	{r4, r5, r6, lr}                             
a0002740:	e1a06000 	mov	r6, r0                                        
   * pointer to the buffer that will hold the value of the key itself.
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
a0002744:	e3a00008 	mov	r0, #8                                        
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
a0002748:	e1a05001 	mov	r5, r1                                        
   * pointer to the buffer that will hold the value of the key itself.
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
a000274c:	eb000100 	bl	a0002b54 <malloc>                              
a0002750:	e1a04000 	mov	r4, r0                                        
  *key = new_key;                                                     
a0002754:	e5860000 	str	r0, [r6]                                      
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0002758:	e1a01004 	mov	r1, r4                                        
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
a000275c:	e3a00000 	mov	r0, #0                                        
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0002760:	e1a02005 	mov	r2, r5                                        
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
a0002764:	e8840021 	stm	r4, {r0, r5}                                  
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0002768:	eb000e10 	bl	a0005fb0 <rtems_task_variable_add>             
  if ( status == RTEMS_SUCCESSFUL )                                   
a000276c:	e3500000 	cmp	r0, #0                                        
a0002770:	0a000002 	beq	a0002780 <rtems_gxx_key_create+0x44>          
    return 0;                                                         
                                                                      
  free( new_key );                                                    
a0002774:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
a0002778:	ebffff89 	bl	a00025a4 <free>                                <== NOT EXECUTED
  return -1;                                                          
a000277c:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
}                                                                     
a0002780:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

a00095d8 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
a00095d8:	e2003006 	and	r3, r0, #6                                    
a00095dc:	e3530006 	cmp	r3, #6                                        
    fcntl_flags |= O_RDWR;                                            
a00095e0:	03a03002 	moveq	r3, #2                                      
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
a00095e4:	0a000005 	beq	a0009600 <rtems_libio_to_fcntl_flags+0x28>    
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
a00095e8:	e3100002 	tst	r0, #2                                        
    fcntl_flags |= O_RDONLY;                                          
a00095ec:	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) {       
a00095f0:	1a000002 	bne	a0009600 <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;                                            
a00095f4:	e3100004 	tst	r0, #4                                        <== NOT EXECUTED
a00095f8:	03a03000 	moveq	r3, #0                                      <== NOT EXECUTED
a00095fc:	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 ) {     
a0009600:	e3100001 	tst	r0, #1                                        
    fcntl_flags |= O_NONBLOCK;                                        
a0009604:	13833901 	orrne	r3, r3, #16384	; 0x4000                     
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
a0009608:	e3100c02 	tst	r0, #512	; 0x200                              
    fcntl_flags |= O_APPEND;                                          
a000960c:	13833008 	orrne	r3, r3, #8                                  
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
a0009610:	e3100b01 	tst	r0, #1024	; 0x400                             
    fcntl_flags |= O_CREAT;                                           
a0009614:	13833c02 	orrne	r3, r3, #512	; 0x200                        
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
a0009618:	e1a00003 	mov	r0, r3                                        
a000961c:	e12fff1e 	bx	lr                                             
                                                                      

a0001e1c <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
a0001e1c:	e59f307c 	ldr	r3, [pc, #124]	; a0001ea0 <rtems_stack_checker_is_blown+0x84>
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
a0001e20:	e92d4810 	push	{r4, fp, lr}                                 
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
a0001e24:	e5933004 	ldr	r3, [r3, #4]                                  
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
a0001e28:	e28db008 	add	fp, sp, #8                                    
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
a0001e2c:	e59300bc 	ldr	r0, [r3, #188]	; 0xbc                         
a0001e30:	e15b0000 	cmp	fp, r0                                        
      return false;                                                   
a0001e34:	33a04000 	movcc	r4, #0                                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
a0001e38:	3a000004 	bcc	a0001e50 <rtems_stack_checker_is_blown+0x34>  
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
a0001e3c:	e59340b8 	ldr	r4, [r3, #184]	; 0xb8                         
a0001e40:	e0804004 	add	r4, r0, r4                                    
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
a0001e44:	e15b0004 	cmp	fp, r4                                        
a0001e48:	83a04000 	movhi	r4, #0                                      
a0001e4c:	93a04001 	movls	r4, #1                                      
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
a0001e50:	e59f304c 	ldr	r3, [pc, #76]	; a0001ea4 <rtems_stack_checker_is_blown+0x88>
a0001e54:	e5933008 	ldr	r3, [r3, #8]                                  
a0001e58:	e3530000 	cmp	r3, #0                                        
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
a0001e5c:	03a01001 	moveq	r1, #1                                      
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
a0001e60:	0a000005 	beq	a0001e7c <rtems_stack_checker_is_blown+0x60>  
    pattern_ok = (!memcmp(                                            
a0001e64:	e59f103c 	ldr	r1, [pc, #60]	; a0001ea8 <rtems_stack_checker_is_blown+0x8c>
a0001e68:	e2800008 	add	r0, r0, #8                                    
a0001e6c:	e3a02010 	mov	r2, #16                                       
a0001e70:	eb0037b9 	bl	a000fd5c <memcmp>                              
a0001e74:	e2701001 	rsbs	r1, r0, #1                                   
a0001e78:	33a01000 	movcc	r1, #0                                      
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
a0001e7c:	e3540000 	cmp	r4, #0                                        
a0001e80:	0a000001 	beq	a0001e8c <rtems_stack_checker_is_blown+0x70>  
a0001e84:	e3510000 	cmp	r1, #0                                        
a0001e88:	1a000002 	bne	a0001e98 <rtems_stack_checker_is_blown+0x7c>  
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
a0001e8c:	e59f300c 	ldr	r3, [pc, #12]	; a0001ea0 <rtems_stack_checker_is_blown+0x84><== NOT EXECUTED
a0001e90:	e5930004 	ldr	r0, [r3, #4]                                  <== NOT EXECUTED
a0001e94:	ebffff9b 	bl	a0001d08 <Stack_check_report_blown_task>       <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
a0001e98:	e3a00000 	mov	r0, #0                                        
a0001e9c:	e8bd8810 	pop	{r4, fp, pc}                                  
                                                                      

a000b0b8 <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
a000b0b8:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
a000b0bc:	e2514000 	subs	r4, r1, #0                                   
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
a000b0c0:	e1a05000 	mov	r5, r0                                        
a000b0c4:	e1a06002 	mov	r6, r2                                        
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
a000b0c8:	03a00009 	moveq	r0, #9                                      
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
a000b0cc:	0a000018 	beq	a000b134 <rtems_string_to_pointer+0x7c>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
a000b0d0:	eb000ade 	bl	a000dc50 <__errno>                             
a000b0d4:	e3a03000 	mov	r3, #0                                        
a000b0d8:	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 );                         
a000b0dc:	e1a0100d 	mov	r1, sp                                        
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
a000b0e0:	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 );                         
a000b0e4:	e1a00005 	mov	r0, r5                                        
a000b0e8:	e3a02010 	mov	r2, #16                                       
a000b0ec:	eb001806 	bl	a001110c <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 )                                                       
a000b0f0:	e3560000 	cmp	r6, #0                                        
    *endptr = end;                                                    
a000b0f4:	159d3000 	ldrne	r3, [sp]                                    
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
a000b0f8:	e1a07000 	mov	r7, r0                                        
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
    *endptr = end;                                                    
a000b0fc:	15863000 	strne	r3, [r6]                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
a000b100:	e59d3000 	ldr	r3, [sp]                                      
a000b104:	e1530005 	cmp	r3, r5                                        
    return RTEMS_NOT_DEFINED;                                         
a000b108:	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 )                                                     
a000b10c:	0a000008 	beq	a000b134 <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))              
a000b110:	e3770001 	cmn	r7, #1                                        
a000b114:	1a000004 	bne	a000b12c <rtems_string_to_pointer+0x74>       
a000b118:	eb000acc 	bl	a000dc50 <__errno>                             <== NOT EXECUTED
a000b11c:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
a000b120:	e3530022 	cmp	r3, #34	; 0x22                                <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
a000b124:	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))              
a000b128:	0a000001 	beq	a000b134 <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;                          
a000b12c:	e5847000 	str	r7, [r4]                                      
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
a000b130:	e3a00000 	mov	r0, #0                                        
}                                                                     
a000b134:	e8bd80f8 	pop	{r3, r4, r5, r6, r7, pc}                      
                                                                      

a0001764 <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
a0001764:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
a0001768:	e24ddf6b 	sub	sp, sp, #428	; 0x1ac                          
a000176c:	e58d1010 	str	r1, [sp, #16]                                 
a0001770:	e58d2018 	str	r2, [sp, #24]                                 
a0001774:	e58d000c 	str	r0, [sp, #12]                                 
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
a0001778:	eb003f98 	bl	a00115e0 <strlen>                              
a000177c:	e3a02000 	mov	r2, #0                                        
a0001780:	e1a01000 	mov	r1, r0                                        
a0001784:	e28d3f65 	add	r3, sp, #404	; 0x194                          
a0001788:	e59d000c 	ldr	r0, [sp, #12]                                 
a000178c:	e58d2000 	str	r2, [sp]                                      
a0001790:	eb00029e 	bl	a0002210 <rtems_filesystem_evaluate_path>      
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
a0001794:	e2504000 	subs	r4, r0, #0                                   
a0001798:	1a00006d 	bne	a0001954 <rtems_tarfs_load+0x1f0>             
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
a000179c:	e59d31a0 	ldr	r3, [sp, #416]	; 0x1a0                        
a00017a0:	e59f21c4 	ldr	r2, [pc, #452]	; a000196c <rtems_tarfs_load+0x208>
a00017a4:	e1530002 	cmp	r3, r2                                        
a00017a8:	0a000005 	beq	a00017c4 <rtems_tarfs_load+0x60>              
a00017ac:	e59f21bc 	ldr	r2, [pc, #444]	; a0001970 <rtems_tarfs_load+0x20c>
a00017b0:	e1530002 	cmp	r3, r2                                        
a00017b4:	1a000066 	bne	a0001954 <rtems_tarfs_load+0x1f0>             
a00017b8:	ea000001 	b	a00017c4 <rtems_tarfs_load+0x60>                <== NOT EXECUTED
a00017bc:	e1a08004 	mov	r8, r4                                        
a00017c0:	ea000006 	b	a00017e0 <rtems_tarfs_load+0x7c>                
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
a00017c4:	e28d2f65 	add	r2, sp, #404	; 0x194                          
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
a00017c8:	e1a08004 	mov	r8, r4                                        
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
a00017cc:	e28d7f47 	add	r7, sp, #284	; 0x11c                          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
a00017d0:	e28d9d06 	add	r9, sp, #384	; 0x180                          
a00017d4:	e58d2004 	str	r2, [sp, #4]                                  
     * - 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);                              
a00017d8:	e28d501c 	add	r5, sp, #28                                   
a00017dc:	e1a0a004 	mov	sl, r4                                        
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
a00017e0:	e59d3018 	ldr	r3, [sp, #24]                                 
a00017e4:	e2884c02 	add	r4, r8, #512	; 0x200                          
a00017e8:	e1540003 	cmp	r4, r3                                        
a00017ec:	8a00005a 	bhi	a000195c <rtems_tarfs_load+0x1f8>             
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
a00017f0:	e59de010 	ldr	lr, [sp, #16]                                 
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
a00017f4:	e59f1178 	ldr	r1, [pc, #376]	; a0001974 <rtems_tarfs_load+0x210>
a00017f8:	e3a02005 	mov	r2, #5                                        
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
a00017fc:	e08e8008 	add	r8, lr, r8                                    
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
a0001800:	e2880c01 	add	r0, r8, #256	; 0x100                          
a0001804:	e2800001 	add	r0, r0, #1                                    
a0001808:	eb003f8c 	bl	a0011640 <strncmp>                             
a000180c:	e2506000 	subs	r6, r0, #0                                   
a0001810:	1a000051 	bne	a000195c <rtems_tarfs_load+0x1f8>             
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
a0001814:	e3a02063 	mov	r2, #99	; 0x63                                
a0001818:	e1a01008 	mov	r1, r8                                        
a000181c:	e1a00007 	mov	r0, r7                                        
a0001820:	eb003fe2 	bl	a00117b0 <strncpy>                             
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
a0001824:	e5cd617f 	strb	r6, [sp, #383]	; 0x17f                       
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
a0001828:	e3a01008 	mov	r1, #8                                        
a000182c:	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];                                        
a0001830:	e5d8609c 	ldrb	r6, [r8, #156]	; 0x9c                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
a0001834:	eb001da2 	bl	a0008ec4 <_rtems_octal2ulong>                  
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
a0001838:	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);                
a000183c:	e58d0014 	str	r0, [sp, #20]                                 
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
a0001840:	e288007c 	add	r0, r8, #124	; 0x7c                           
a0001844:	eb001d9e 	bl	a0008ec4 <_rtems_octal2ulong>                  
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
a0001848:	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);               
a000184c:	e1a0b000 	mov	fp, r0                                        
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
a0001850:	e2880094 	add	r0, r8, #148	; 0x94                           
a0001854:	eb001d9a 	bl	a0008ec4 <_rtems_octal2ulong>                  
a0001858:	e1a03000 	mov	r3, r0                                        
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
a000185c:	e1a00008 	mov	r0, r8                                        
a0001860:	e58d3008 	str	r3, [sp, #8]                                  
a0001864:	eb001da4 	bl	a0008efc <_rtems_tar_header_checksum>          
a0001868:	e59d3008 	ldr	r3, [sp, #8]                                  
a000186c:	e1500003 	cmp	r0, r3                                        
a0001870:	1a000039 	bne	a000195c <rtems_tarfs_load+0x1f8>             
     * 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) {                                        
a0001874:	e3560035 	cmp	r6, #53	; 0x35                                
a0001878:	1a000013 	bne	a00018cc <rtems_tarfs_load+0x168>             
      strcpy(full_filename, mountpoint);                              
a000187c:	e59d100c 	ldr	r1, [sp, #12]                                 
a0001880:	e1a00005 	mov	r0, r5                                        
a0001884:	eb003d91 	bl	a0010ed0 <strcpy>                              
      if (full_filename[strlen(full_filename)-1] != '/')              
a0001888:	e1a00005 	mov	r0, r5                                        
a000188c:	eb003f53 	bl	a00115e0 <strlen>                              
a0001890:	e28d2f6b 	add	r2, sp, #428	; 0x1ac                          
a0001894:	e0820000 	add	r0, r2, r0                                    
a0001898:	e5503191 	ldrb	r3, [r0, #-401]	; 0x191                      
a000189c:	e353002f 	cmp	r3, #47	; 0x2f                                
a00018a0:	0a000002 	beq	a00018b0 <rtems_tarfs_load+0x14c>             
        strcat(full_filename, "/");                                   
a00018a4:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a00018a8:	e59f10c8 	ldr	r1, [pc, #200]	; a0001978 <rtems_tarfs_load+0x214><== NOT EXECUTED
a00018ac:	eb003cd0 	bl	a0010bf4 <strcat>                              <== NOT EXECUTED
      strcat(full_filename, filename);                                
a00018b0:	e1a01007 	mov	r1, r7                                        
a00018b4:	e1a00005 	mov	r0, r5                                        
a00018b8:	eb003ccd 	bl	a0010bf4 <strcat>                              
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
a00018bc:	e1a00005 	mov	r0, r5                                        
a00018c0:	e59f10b4 	ldr	r1, [pc, #180]	; a000197c <rtems_tarfs_load+0x218>
a00018c4:	eb000477 	bl	a0002aa8 <mkdir>                               
a00018c8:	eaffffbb 	b	a00017bc <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) {                                   
a00018cc:	e3560030 	cmp	r6, #48	; 0x30                                
a00018d0:	1affffb9 	bne	a00017bc <rtems_tarfs_load+0x58>              
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
a00018d4:	e59dc004 	ldr	ip, [sp, #4]                                  
a00018d8:	e1a0e009 	mov	lr, r9                                        
a00018dc:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a00018e0:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
a00018e4:	e59c2000 	ldr	r2, [ip]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
a00018e8:	e1a00007 	mov	r0, r7                                        
a00018ec:	e1a01009 	mov	r1, r9                                        
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
a00018f0:	e58e2000 	str	r2, [lr]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
a00018f4:	e28d2f6a 	add	r2, sp, #424	; 0x1a8                          
a00018f8:	eb002065 	bl	a0009a94 <IMFS_evaluate_for_make>              
a00018fc:	e2506000 	subs	r6, r0, #0                                   
a0001900:	1a00000d 	bne	a000193c <rtems_tarfs_load+0x1d8>             
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
a0001904:	e59d2014 	ldr	r2, [sp, #20]                                 
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
a0001908:	e1a00009 	mov	r0, r9                                        
a000190c:	e3a01006 	mov	r1, #6                                        
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
a0001910:	e1a03b82 	lsl	r3, r2, #23                                   
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
a0001914:	e59d21a8 	ldr	r2, [sp, #424]	; 0x1a8                        
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
a0001918:	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(                                      
a000191c:	e3833902 	orr	r3, r3, #32768	; 0x8000                       
a0001920:	e58d6000 	str	r6, [sp]                                      
a0001924:	eb001ece 	bl	a0009464 <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];            
a0001928:	e59d2010 	ldr	r2, [sp, #16]                                 
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
a000192c:	e580b050 	str	fp, [r0, #80]	; 0x50                          
a0001930:	e5806054 	str	r6, [r0, #84]	; 0x54                          
        node->info.linearfile.direct = &tar_image[offset];            
a0001934:	e0823004 	add	r3, r2, r4                                    
a0001938:	e5803058 	str	r3, [r0, #88]	; 0x58                          
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
a000193c:	e28bbf7f 	add	fp, fp, #508	; 0x1fc                          
a0001940:	e28bb003 	add	fp, fp, #3                                    
      offset += 512 * nblocks;                                        
a0001944:	e3cbbf7f 	bic	fp, fp, #508	; 0x1fc                          
a0001948:	e3cbb003 	bic	fp, fp, #3                                    
a000194c:	e08b4004 	add	r4, fp, r4                                    
a0001950:	eaffff99 	b	a00017bc <rtems_tarfs_load+0x58>                
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
     return -1;                                                       
a0001954:	e3e04000 	mvn	r4, #0                                        
a0001958:	ea000000 	b	a0001960 <rtems_tarfs_load+0x1fc>               
a000195c:	e1a0400a 	mov	r4, sl                                        
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
a0001960:	e1a00004 	mov	r0, r4                                        
a0001964:	e28ddf6b 	add	sp, sp, #428	; 0x1ac                          
a0001968:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

a0002f8c <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;
a0002f8c:	e5903000 	ldr	r3, [r0]                                      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
a0002f90:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
a0002f94:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
a0002f98:	e59f3178 	ldr	r3, [pc, #376]	; a0003118 <rtems_termios_close+0x18c>
a0002f9c:	e3a01000 	mov	r1, #0                                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
a0002fa0:	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(                                        
a0002fa4:	e1a02001 	mov	r2, r1                                        
a0002fa8:	e5930000 	ldr	r0, [r3]                                      
a0002fac:	eb0007a3 	bl	a0004e40 <rtems_semaphore_obtain>              
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
a0002fb0:	e3500000 	cmp	r0, #0                                        
a0002fb4:	1a000023 	bne	a0003048 <rtems_termios_close+0xbc>           
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
a0002fb8:	e5943008 	ldr	r3, [r4, #8]                                  
a0002fbc:	e2433001 	sub	r3, r3, #1                                    
a0002fc0:	e3530000 	cmp	r3, #0                                        
a0002fc4:	e5843008 	str	r3, [r4, #8]                                  
a0002fc8:	1a00004d 	bne	a0003104 <rtems_termios_close+0x178>          
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
a0002fcc:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
a0002fd0:	e59f3144 	ldr	r3, [pc, #324]	; a000311c <rtems_termios_close+0x190>
a0002fd4:	e0833282 	add	r3, r3, r2, lsl #5                            
a0002fd8:	e5931004 	ldr	r1, [r3, #4]                                  
a0002fdc:	e3510000 	cmp	r1, #0                                        
a0002fe0:	0a000002 	beq	a0002ff0 <rtems_termios_close+0x64>           
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
a0002fe4:	e1a00004 	mov	r0, r4                                        
a0002fe8:	e12fff31 	blx	r1                                            
a0002fec:	ea000008 	b	a0003014 <rtems_termios_close+0x88>             
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a0002ff0:	e5940018 	ldr	r0, [r4, #24]                                 
a0002ff4:	e1a02001 	mov	r2, r1                                        
a0002ff8:	eb000790 	bl	a0004e40 <rtems_semaphore_obtain>              
      if (sc != RTEMS_SUCCESSFUL) {                                   
a0002ffc:	e3500000 	cmp	r0, #0                                        
a0003000:	1a000010 	bne	a0003048 <rtems_termios_close+0xbc>           
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
a0003004:	e1a00004 	mov	r0, r4                                        
a0003008:	ebfffeb2 	bl	a0002ad8 <drainOutput>                         
      rtems_semaphore_release (tty->osem);                            
a000300c:	e5940018 	ldr	r0, [r4, #24]                                 
a0003010:	eb0007d0 	bl	a0004f58 <rtems_semaphore_release>             
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
a0003014:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
a0003018:	e3530002 	cmp	r3, #2                                        
a000301c:	1a00000a 	bne	a000304c <rtems_termios_close+0xc0>           
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
a0003020:	e59400c4 	ldr	r0, [r4, #196]	; 0xc4                         
a0003024:	e3a01001 	mov	r1, #1                                        
a0003028:	eb000672 	bl	a00049f8 <rtems_event_send>                    
      if (sc != RTEMS_SUCCESSFUL)                                     
a000302c:	e3500000 	cmp	r0, #0                                        
a0003030:	1a000004 	bne	a0003048 <rtems_termios_close+0xbc>           
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
a0003034:	e59400c8 	ldr	r0, [r4, #200]	; 0xc8                         
a0003038:	e3a01001 	mov	r1, #1                                        
a000303c:	eb00066d 	bl	a00049f8 <rtems_event_send>                    
      if (sc != RTEMS_SUCCESSFUL)                                     
a0003040:	e3500000 	cmp	r0, #0                                        
a0003044:	0a000000 	beq	a000304c <rtems_termios_close+0xc0>           
        rtems_fatal_error_occurred (sc);                              
a0003048:	eb000917 	bl	a00054ac <rtems_fatal_error_occurred>          <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
a000304c:	e594309c 	ldr	r3, [r4, #156]	; 0x9c                         
a0003050:	e3530000 	cmp	r3, #0                                        
a0003054:	0a000003 	beq	a0003068 <rtems_termios_close+0xdc>           
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
a0003058:	e594000c 	ldr	r0, [r4, #12]                                 
a000305c:	e5941010 	ldr	r1, [r4, #16]                                 
a0003060:	e1a02005 	mov	r2, r5                                        
a0003064:	e12fff33 	blx	r3                                            
    if (tty->forw == NULL) {                                          
a0003068:	e894000c 	ldm	r4, {r2, r3}                                  
a000306c:	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;                                    
a0003070:	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) {                                          
a0003074:	1a000003 	bne	a0003088 <rtems_termios_close+0xfc>           
      rtems_termios_ttyTail = tty->back;                              
a0003078:	e59f10a0 	ldr	r1, [pc, #160]	; a0003120 <rtems_termios_close+0x194>
      if ( rtems_termios_ttyTail != NULL ) {                          
a000307c:	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;                              
a0003080:	e5813000 	str	r3, [r1]                                      
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
a0003084:	15832000 	strne	r2, [r3]                                    
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
a0003088:	e5942004 	ldr	r2, [r4, #4]                                  
a000308c:	e5943000 	ldr	r3, [r4]                                      
a0003090:	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;                                    
a0003094:	15823000 	strne	r3, [r2]                                    
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
a0003098:	1a000003 	bne	a00030ac <rtems_termios_close+0x120>          
      rtems_termios_ttyHead = tty->forw;                              
a000309c:	e59f1080 	ldr	r1, [pc, #128]	; a0003124 <rtems_termios_close+0x198>
      if ( rtems_termios_ttyHead != NULL ) {                          
a00030a0:	e3530000 	cmp	r3, #0                                        
        rtems_termios_ttyHead->back = NULL;                           
a00030a4:	15832004 	strne	r2, [r3, #4]                                
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
a00030a8:	e5813000 	str	r3, [r1]                                      
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
a00030ac:	e5940014 	ldr	r0, [r4, #20]                                 
a00030b0:	eb00073b 	bl	a0004da4 <rtems_semaphore_delete>              
    rtems_semaphore_delete (tty->osem);                               
a00030b4:	e5940018 	ldr	r0, [r4, #24]                                 
a00030b8:	eb000739 	bl	a0004da4 <rtems_semaphore_delete>              
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
a00030bc:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
a00030c0:	eb000737 	bl	a0004da4 <rtems_semaphore_delete>              
    if ((tty->device.pollRead == NULL) ||                             
a00030c4:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a00030c8:	e3530000 	cmp	r3, #0                                        
a00030cc:	0a000002 	beq	a00030dc <rtems_termios_close+0x150>          
a00030d0:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
a00030d4:	e3530002 	cmp	r3, #2                                        
a00030d8:	1a000001 	bne	a00030e4 <rtems_termios_close+0x158>          
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
a00030dc:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
a00030e0:	eb00072f 	bl	a0004da4 <rtems_semaphore_delete>              
    free (tty->rawInBuf.theBuf);                                      
a00030e4:	e5940058 	ldr	r0, [r4, #88]	; 0x58                          
a00030e8:	ebfffacf 	bl	a0001c2c <free>                                
    free (tty->rawOutBuf.theBuf);                                     
a00030ec:	e594007c 	ldr	r0, [r4, #124]	; 0x7c                         
a00030f0:	ebfffacd 	bl	a0001c2c <free>                                
    free (tty->cbuf);                                                 
a00030f4:	e594001c 	ldr	r0, [r4, #28]                                 
a00030f8:	ebfffacb 	bl	a0001c2c <free>                                
    free (tty);                                                       
a00030fc:	e1a00004 	mov	r0, r4                                        
a0003100:	ebfffac9 	bl	a0001c2c <free>                                
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
a0003104:	e59f300c 	ldr	r3, [pc, #12]	; a0003118 <rtems_termios_close+0x18c>
a0003108:	e5930000 	ldr	r0, [r3]                                      
a000310c:	eb000791 	bl	a0004f58 <rtems_semaphore_release>             
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
a0003110:	e3a00000 	mov	r0, #0                                        
a0003114:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

a00044a0 <rtems_termios_dequeue_characters>: rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len;
a00044a0:	e5902090 	ldr	r2, [r0, #144]	; 0x90                         
 * for each transmitted character.                                    
 * It returns number of characters left to transmit                   
 */                                                                   
int                                                                   
rtems_termios_dequeue_characters (void *ttyp, int len)                
{                                                                     
a00044a4:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
a00044a8:	e0822001 	add	r2, r2, r1                                    
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
a00044ac:	e59010b4 	ldr	r1, [r0, #180]	; 0xb4                         
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
a00044b0:	e5802090 	str	r2, [r0, #144]	; 0x90                         
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
a00044b4:	e3510002 	cmp	r1, #2                                        
a00044b8:	1a000004 	bne	a00044d0 <rtems_termios_dequeue_characters+0x30>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
a00044bc:	e59000c8 	ldr	r0, [r0, #200]	; 0xc8                         
a00044c0:	eb00014c 	bl	a00049f8 <rtems_event_send>                    
    if (sc != RTEMS_SUCCESSFUL)                                       
a00044c4:	e2503000 	subs	r3, r0, #0                                   
a00044c8:	0a00000c 	beq	a0004500 <rtems_termios_dequeue_characters+0x60>
      rtems_fatal_error_occurred (sc);                                
a00044cc:	eb0003f6 	bl	a00054ac <rtems_fatal_error_occurred>          
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
a00044d0:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
a00044d4:	e3530005 	cmp	r3, #5                                        
a00044d8:	1a000006 	bne	a00044f8 <rtems_termios_dequeue_characters+0x58>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
a00044dc:	e59f3024 	ldr	r3, [pc, #36]	; a0004508 <rtems_termios_dequeue_characters+0x68>
a00044e0:	e59330b4 	ldr	r3, [r3, #180]	; 0xb4                         
a00044e4:	e3530000 	cmp	r3, #0                                        
a00044e8:	0a000004 	beq	a0004500 <rtems_termios_dequeue_characters+0x60>
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
a00044ec:	e12fff33 	blx	r3                                            
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
a00044f0:	e3a03000 	mov	r3, #0                                        
a00044f4:	ea000001 	b	a0004500 <rtems_termios_dequeue_characters+0x60>
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
a00044f8:	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);                       
a00044fc:	eaffff5a 	b	a000426c <rtems_termios_refill_transmitter>     
}                                                                     
a0004500:	e1a00003 	mov	r0, r3                                        
a0004504:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

a0003f6c <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) {
a0003f6c:	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) {             
a0003f70:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
a0003f74:	e59f7280 	ldr	r7, [pc, #640]	; a00041fc <rtems_termios_enqueue_raw_characters+0x290>
 *       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) 
{                                                                     
a0003f78:	e1a04000 	mov	r4, r0                                        
a0003f7c:	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) {             
a0003f80:	e0873283 	add	r3, r7, r3, lsl #5                            
a0003f84:	e5939010 	ldr	r9, [r3, #16]                                 
a0003f88:	e3590000 	cmp	r9, #0                                        
a0003f8c:	11a05002 	movne	r5, r2                                      
a0003f90:	1a00000d 	bne	a0003fcc <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); 
a0003f94:	e2803030 	add	r3, r0, #48	; 0x30                            
a0003f98:	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,                          
a0003f9c:	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) {             
a0003fa0:	e1a0a002 	mov	sl, r2                                        
a0003fa4:	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,                          
a0003fa8:	e58d3004 	str	r3, [sp, #4]                                  
a0003fac:	ea000089 	b	a00041d8 <rtems_termios_enqueue_raw_characters+0x26c>
  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);                
a0003fb0:	e59430cc 	ldr	r3, [r4, #204]	; 0xcc                         
a0003fb4:	e4d60001 	ldrb	r0, [r6], #1                                 
a0003fb8:	e1a01004 	mov	r1, r4                                        
a0003fbc:	e0873283 	add	r3, r7, r3, lsl #5                            
a0003fc0:	e5933010 	ldr	r3, [r3, #16]                                 
a0003fc4:	e12fff33 	blx	r3                                            
a0003fc8:	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--) {                                                   
a0003fcc:	e3550000 	cmp	r5, #0                                        
a0003fd0:	1afffff6 	bne	a0003fb0 <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 )) { 
a0003fd4:	e59430e4 	ldr	r3, [r4, #228]	; 0xe4                         
a0003fd8:	e3530000 	cmp	r3, #0                                        
a0003fdc:	1a000084 	bne	a00041f4 <rtems_termios_enqueue_raw_characters+0x288>
a0003fe0:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
a0003fe4:	e3530000 	cmp	r3, #0                                        
a0003fe8:	0a000081 	beq	a00041f4 <rtems_termios_enqueue_raw_characters+0x288>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
a0003fec:	e2840030 	add	r0, r4, #48	; 0x30                            
a0003ff0:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         
a0003ff4:	e12fff33 	blx	r3                                            
      tty->tty_rcvwakeup = 1;                                         
a0003ff8:	e3a03001 	mov	r3, #1                                        
a0003ffc:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
a0004000:	ea00007b 	b	a00041f4 <rtems_termios_enqueue_raw_characters+0x288>
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
a0004004:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
a0004008:	e4d68001 	ldrb	r8, [r6], #1                                 
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
a000400c:	e3130c02 	tst	r3, #512	; 0x200                              
a0004010:	0a00000f 	beq	a0004054 <rtems_termios_enqueue_raw_characters+0xe8>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
a0004014:	e5d4204a 	ldrb	r2, [r4, #74]	; 0x4a                         
a0004018:	e5d43049 	ldrb	r3, [r4, #73]	; 0x49                         
a000401c:	e1520008 	cmp	r2, r8                                        
a0004020:	1a000007 	bne	a0004044 <rtems_termios_enqueue_raw_characters+0xd8>
        if (c == tty->termios.c_cc[VSTART]) {                         
a0004024:	e1530002 	cmp	r3, r2                                        
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
a0004028:	059430b8 	ldreq	r3, [r4, #184]	; 0xb8                       
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
a000402c:	159430b8 	ldrne	r3, [r4, #184]	; 0xb8                       
      /* 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;               
a0004030:	02233010 	eoreq	r3, r3, #16                                 
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
a0004034:	13833010 	orrne	r3, r3, #16                                 
a0004038:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         
 *       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) 
{                                                                     
a000403c:	e3a09001 	mov	r9, #1                                        
a0004040:	ea000005 	b	a000405c <rtems_termios_enqueue_raw_characters+0xf0>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
a0004044:	e1530008 	cmp	r3, r8                                        
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
a0004048:	059430b8 	ldreq	r3, [r4, #184]	; 0xb8                       
a000404c:	03c33010 	biceq	r3, r3, #16                                 
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
a0004050:	0afffff8 	beq	a0004038 <rtems_termios_enqueue_raw_characters+0xcc>
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
a0004054:	e3590000 	cmp	r9, #0                                        
a0004058:	0a000014 	beq	a00040b0 <rtems_termios_enqueue_raw_characters+0x144>
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
a000405c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a0004060:	e2033030 	and	r3, r3, #48	; 0x30                            
a0004064:	e3530020 	cmp	r3, #32                                       
a0004068:	1a000059 	bne	a00041d4 <rtems_termios_enqueue_raw_characters+0x268>
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
a000406c:	ebfffa95 	bl	a0002ac8 <arm_interrupt_disable>               <== NOT EXECUTED
a0004070:	e1a07000 	mov	r7, r0                                        <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
a0004074:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0004078:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
a000407c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
a0004080:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
a0004084:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0004088:	0a000006 	beq	a00040a8 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
a000408c:	e5942084 	ldr	r2, [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)(                                       
a0004090:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         <== NOT EXECUTED
a0004094:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         <== NOT EXECUTED
a0004098:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a000409c:	e0811002 	add	r1, r1, r2                                    <== NOT EXECUTED
a00040a0:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a00040a4:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a00040a8:	e129f007 	msr	CPSR_fc, r7                                   <== NOT EXECUTED
a00040ac:	ea000048 	b	a00041d4 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
a00040b0:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          
a00040b4:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
a00040b8:	e2800001 	add	r0, r0, #1                                    
a00040bc:	eb0030d8 	bl	a0010424 <__umodsi3>                           
a00040c0:	e1a07000 	mov	r7, r0                                        
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
a00040c4:	ebfffa7f 	bl	a0002ac8 <arm_interrupt_disable>               
a00040c8:	e1a0b000 	mov	fp, r0                                        
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
a00040cc:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
a00040d0:	e5940064 	ldr	r0, [r4, #100]	; 0x64                         
            % tty->rawInBuf.Size) > tty->highwater) &&                
a00040d4:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
      }                                                               
    } 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)       
a00040d8:	e0630000 	rsb	r0, r3, r0                                    
            % tty->rawInBuf.Size) > tty->highwater) &&                
a00040dc:	e0800007 	add	r0, r0, r7                                    
a00040e0:	eb0030cf 	bl	a0010424 <__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)       
a00040e4:	e59430c0 	ldr	r3, [r4, #192]	; 0xc0                         
a00040e8:	e1500003 	cmp	r0, r3                                        
a00040ec:	9a000025 	bls	a0004188 <rtems_termios_enqueue_raw_characters+0x21c>
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
a00040f0:	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) &&                
a00040f4:	e3130001 	tst	r3, #1                                        <== NOT EXECUTED
a00040f8:	1a000022 	bne	a0004188 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
a00040fc:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0004100:	e3833001 	orr	r3, r3, #1                                    <== NOT EXECUTED
a0004104:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
a0004108:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a000410c:	e59f30ec 	ldr	r3, [pc, #236]	; a0004200 <rtems_termios_enqueue_raw_characters+0x294><== NOT EXECUTED
a0004110:	e0023003 	and	r3, r2, r3                                    <== NOT EXECUTED
a0004114:	e3530b01 	cmp	r3, #1024	; 0x400                             <== NOT EXECUTED
a0004118:	1a00000e 	bne	a0004158 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
a000411c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0004120:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
a0004124:	1a000002 	bne	a0004134 <rtems_termios_enqueue_raw_characters+0x1c8><== NOT EXECUTED
a0004128:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
a000412c:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0004130:	1a000014 	bne	a0004188 <rtems_termios_enqueue_raw_characters+0x21c><== 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;                             
a0004134:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
a0004138:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a000413c:	e59d1004 	ldr	r1, [sp, #4]                                  <== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
              (tty->rawOutBufState == rob_idle)) {                    
            /* if tx is stopped due to XOFF or out of data */         
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
a0004140:	e3833002 	orr	r3, r3, #2                                    <== NOT EXECUTED
a0004144:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
a0004148:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a000414c:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         <== NOT EXECUTED
a0004150:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a0004154:	ea00000b 	b	a0004188 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
a0004158:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a000415c:	e2033f41 	and	r3, r3, #260	; 0x104                          <== NOT EXECUTED
a0004160:	e3530c01 	cmp	r3, #256	; 0x100                              <== NOT EXECUTED
a0004164:	1a000007 	bne	a0004188 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
a0004168:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a000416c:	e3833004 	orr	r3, r3, #4                                    <== NOT EXECUTED
a0004170:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
a0004174:	e59430ac 	ldr	r3, [r4, #172]	; 0xac                         <== NOT EXECUTED
a0004178:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a000417c:	0a000001 	beq	a0004188 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
a0004180:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a0004184:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a0004188:	e129f00b 	msr	CPSR_fc, fp                                   
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
a000418c:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
a0004190:	e1570003 	cmp	r7, r3                                        
        dropped++;                                                    
a0004194:	02855001 	addeq	r5, r5, #1                                  
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
a0004198:	0a00000d 	beq	a00041d4 <rtems_termios_enqueue_raw_characters+0x268>
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
a000419c:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
a00041a0:	e7c38007 	strb	r8, [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 )) {
a00041a4:	e59430e4 	ldr	r3, [r4, #228]	; 0xe4                         
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
a00041a8:	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 )) {
a00041ac:	e3530000 	cmp	r3, #0                                        
a00041b0:	1a000007 	bne	a00041d4 <rtems_termios_enqueue_raw_characters+0x268>
a00041b4:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
a00041b8:	e3530000 	cmp	r3, #0                                        
a00041bc:	0a000004 	beq	a00041d4 <rtems_termios_enqueue_raw_characters+0x268>
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
a00041c0:	e59d0000 	ldr	r0, [sp]                                      <== NOT EXECUTED
a00041c4:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         <== NOT EXECUTED
a00041c8:	e12fff33 	blx	r3                                            <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
a00041cc:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
a00041d0:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         <== NOT EXECUTED
a00041d4:	e24aa001 	sub	sl, sl, #1                                    
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
a00041d8:	e35a0000 	cmp	sl, #0                                        
a00041dc:	1affff88 	bne	a0004004 <rtems_termios_enqueue_raw_characters+0x98>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
a00041e0:	e5943078 	ldr	r3, [r4, #120]	; 0x78                         
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
a00041e4:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
a00041e8:	e0833005 	add	r3, r3, r5                                    
a00041ec:	e5843078 	str	r3, [r4, #120]	; 0x78                         
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
a00041f0:	eb000358 	bl	a0004f58 <rtems_semaphore_release>             
  return dropped;                                                     
}                                                                     
a00041f4:	e1a00005 	mov	r0, r5                                        
a00041f8:	e8bd8ffc 	pop	{r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}  
                                                                      

a0003140 <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;
a0003140:	e5903000 	ldr	r3, [r0]                                      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
a0003144:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
a0003148:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
a000314c:	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;
a0003150:	e5907008 	ldr	r7, [r0, #8]                                  
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
a0003154:	e580100c 	str	r1, [r0, #12]                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
a0003158:	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);
a000315c:	e1a02001 	mov	r2, r1                                        
a0003160:	e5940018 	ldr	r0, [r4, #24]                                 
a0003164:	eb000735 	bl	a0004e40 <rtems_semaphore_obtain>              
  if (sc != RTEMS_SUCCESSFUL) {                                       
a0003168:	e2506000 	subs	r6, r0, #0                                   
a000316c:	1a0000d0 	bne	a00034b4 <rtems_termios_ioctl+0x374>          
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
a0003170:	e5953004 	ldr	r3, [r5, #4]                                  
a0003174:	e3530004 	cmp	r3, #4                                        
a0003178:	0a0000a6 	beq	a0003418 <rtems_termios_ioctl+0x2d8>          
a000317c:	8a000005 	bhi	a0003198 <rtems_termios_ioctl+0x58>           
a0003180:	e3530002 	cmp	r3, #2                                        
a0003184:	0a000028 	beq	a000322c <rtems_termios_ioctl+0xec>           
a0003188:	8a00009b 	bhi	a00033fc <rtems_termios_ioctl+0x2bc>          
a000318c:	e3530001 	cmp	r3, #1                                        
a0003190:	1a000010 	bne	a00031d8 <rtems_termios_ioctl+0x98>           
a0003194:	ea00001a 	b	a0003204 <rtems_termios_ioctl+0xc4>             
a0003198:	e59f2320 	ldr	r2, [pc, #800]	; a00034c0 <rtems_termios_ioctl+0x380>
a000319c:	e1530002 	cmp	r3, r2                                        
a00031a0:	0a0000b6 	beq	a0003480 <rtems_termios_ioctl+0x340>          
a00031a4:	8a000002 	bhi	a00031b4 <rtems_termios_ioctl+0x74>           
a00031a8:	e3530005 	cmp	r3, #5                                        
a00031ac:	1a000009 	bne	a00031d8 <rtems_termios_ioctl+0x98>           
a00031b0:	ea000094 	b	a0003408 <rtems_termios_ioctl+0x2c8>            
a00031b4:	e59f2308 	ldr	r2, [pc, #776]	; a00034c4 <rtems_termios_ioctl+0x384>
a00031b8:	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;                                
a00031bc:	05953008 	ldreq	r3, [r5, #8]                                
a00031c0:	059420cc 	ldreq	r2, [r4, #204]	; 0xcc                       
a00031c4:	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) {                                            
a00031c8:	0a0000b7 	beq	a00034ac <rtems_termios_ioctl+0x36c>          
a00031cc:	e2822105 	add	r2, r2, #1073741825	; 0x40000001              
a00031d0:	e1530002 	cmp	r3, r2                                        
a00031d4:	0a000093 	beq	a0003428 <rtems_termios_ioctl+0x2e8>          
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
a00031d8:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
a00031dc:	e59f32e4 	ldr	r3, [pc, #740]	; a00034c8 <rtems_termios_ioctl+0x388>
a00031e0:	e0833282 	add	r3, r3, r2, lsl #5                            
a00031e4:	e5933018 	ldr	r3, [r3, #24]                                 
a00031e8:	e3530000 	cmp	r3, #0                                        
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
a00031ec:	03a0600a 	moveq	r6, #10                                     
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
a00031f0:	0a0000ad 	beq	a00034ac <rtems_termios_ioctl+0x36c>          
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
a00031f4:	e1a00004 	mov	r0, r4                                        
a00031f8:	e1a01005 	mov	r1, r5                                        
a00031fc:	e12fff33 	blx	r3                                            
a0003200:	ea00009c 	b	a0003478 <rtems_termios_ioctl+0x338>            
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
a0003204:	e5957008 	ldr	r7, [r5, #8]                                  
a0003208:	e284c030 	add	ip, r4, #48	; 0x30                            
a000320c:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a0003210:	e1a0e007 	mov	lr, r7                                        
a0003214:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
a0003218:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
a000321c:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
a0003220:	e59c3000 	ldr	r3, [ip]                                      
a0003224:	e58e3000 	str	r3, [lr]                                      
    break;                                                            
a0003228:	ea00009f 	b	a00034ac <rtems_termios_ioctl+0x36c>            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
a000322c:	e595e008 	ldr	lr, [r5, #8]                                  
a0003230:	e284c030 	add	ip, r4, #48	; 0x30                            
a0003234:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a0003238:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a000323c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a0003240:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0003244:	e59e3000 	ldr	r3, [lr]                                      
a0003248:	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) &&                                 
a000324c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a0003250:	e3130c02 	tst	r3, #512	; 0x200                              
a0003254:	0a000018 	beq	a00032bc <rtems_termios_ioctl+0x17c>          
      !(tty->termios.c_iflag & IXON)) {                               
a0003258:	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) &&                                 
a000325c:	e3130b01 	tst	r3, #1024	; 0x400                             
a0003260:	1a000015 	bne	a00032bc <rtems_termios_ioctl+0x17c>          
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
a0003264:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003268:	e3c33e21 	bic	r3, r3, #528	; 0x210                          <== NOT EXECUTED
a000326c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
a0003270:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003274:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
a0003278:	0a00000f 	beq	a00032bc <rtems_termios_ioctl+0x17c>          <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
a000327c:	ebfffe11 	bl	a0002ac8 <arm_interrupt_disable>               <== NOT EXECUTED
a0003280:	e1a07000 	mov	r7, r0                                        <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
a0003284:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003288:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
a000328c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
a0003290:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
a0003294:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0003298:	0a000006 	beq	a00032b8 <rtems_termios_ioctl+0x178>          <== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
a000329c:	e5942084 	ldr	r2, [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)(                                         
a00032a0:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         <== NOT EXECUTED
a00032a4:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         <== NOT EXECUTED
a00032a8:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a00032ac:	e0811002 	add	r1, r1, r2                                    <== NOT EXECUTED
a00032b0:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a00032b4:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a00032b8:	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)) {
a00032bc:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a00032c0:	e3130b01 	tst	r3, #1024	; 0x400                             
a00032c4:	0a000008 	beq	a00032ec <rtems_termios_ioctl+0x1ac>          
a00032c8:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
a00032cc:	e3130a01 	tst	r3, #4096	; 0x1000                            
a00032d0:	1a000005 	bne	a00032ec <rtems_termios_ioctl+0x1ac>          
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
a00032d4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a00032d8:	e3c33b01 	bic	r3, r3, #1024	; 0x400                         <== NOT EXECUTED
a00032dc:	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);                                  
a00032e0:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a00032e4:	e3c33002 	bic	r3, r3, #2                                    <== NOT EXECUTED
a00032e8:	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)) {
a00032ec:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a00032f0:	e3130c01 	tst	r3, #256	; 0x100                              
a00032f4:	0a000010 	beq	a000333c <rtems_termios_ioctl+0x1fc>          
a00032f8:	e5943038 	ldr	r3, [r4, #56]	; 0x38                          
a00032fc:	e3530000 	cmp	r3, #0                                        
a0003300:	ba00000d 	blt	a000333c <rtems_termios_ioctl+0x1fc>          
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
a0003304:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003308:	e3c33c01 	bic	r3, r3, #256	; 0x100                          <== NOT EXECUTED
a000330c:	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)) {
a0003310:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003314:	e3130004 	tst	r3, #4                                        <== NOT EXECUTED
a0003318:	0a000004 	beq	a0003330 <rtems_termios_ioctl+0x1f0>          <== NOT EXECUTED
a000331c:	e59430b0 	ldr	r3, [r4, #176]	; 0xb0                         <== NOT EXECUTED
a0003320:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0003324:	0a000001 	beq	a0003330 <rtems_termios_ioctl+0x1f0>          <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
a0003328:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a000332c:	e12fff33 	blx	r3                                            <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
a0003330:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003334:	e3c33004 	bic	r3, r3, #4                                    <== NOT EXECUTED
a0003338:	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) {                               
a000333c:	e5943038 	ldr	r3, [r4, #56]	; 0x38                          
    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) {                              
a0003340:	e594703c 	ldr	r7, [r4, #60]	; 0x3c                          
                                                                      
  /*                                                                  
   * check for flow control options to be switched on                 
   */                                                                 
  /* check for incoming RTS/CTS flow control switched on */           
  if (tty->termios.c_cflag & CRTSCTS) {                               
a0003344:	e3530000 	cmp	r3, #0                                        
    tty->flow_ctrl |= FL_MDRTS;                                       
a0003348:	b59430b8 	ldrlt	r3, [r4, #184]	; 0xb8                       
a000334c:	b3833c01 	orrlt	r3, r3, #256	; 0x100                        
a0003350:	b58430b8 	strlt	r3, [r4, #184]	; 0xb8                       
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
a0003354:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
a0003358:	e3130a01 	tst	r3, #4096	; 0x1000                            
    tty->flow_ctrl |= FL_MDXOF;                                       
a000335c:	159420b8 	ldrne	r2, [r4, #184]	; 0xb8                       
a0003360:	13822b01 	orrne	r2, r2, #1024	; 0x400                       
a0003364:	158420b8 	strne	r2, [r4, #184]	; 0xb8                       
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
a0003368:	e3130b01 	tst	r3, #1024	; 0x400                             
    tty->flow_ctrl |= FL_MDXON;                                       
a000336c:	159430b8 	ldrne	r3, [r4, #184]	; 0xb8                       
a0003370:	13833c02 	orrne	r3, r3, #512	; 0x200                        
a0003374:	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) {                              
a0003378:	e2177002 	ands	r7, r7, #2                                   
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
a000337c:	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) {                              
a0003380:	1a000013 	bne	a00033d4 <rtems_termios_ioctl+0x294>          
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
a0003384:	e5d48046 	ldrb	r8, [r4, #70]	; 0x46                         
                    rtems_clock_get_ticks_per_second() / 10;          
a0003388:	eb000518 	bl	a00047f0 <rtems_clock_get_ticks_per_second>    
a000338c:	e3a0100a 	mov	r1, #10                                       
a0003390:	e0000098 	mul	r0, r8, r0                                    
a0003394:	eb00338a 	bl	a00101c4 <__aeabi_uidiv>                       
      if (tty->termios.c_cc[VTIME]) {                                 
a0003398:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
    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] *                    
a000339c:	e5840054 	str	r0, [r4, #84]	; 0x54                          
a00033a0:	e5d42047 	ldrb	r2, [r4, #71]	; 0x47                         
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
a00033a4:	e3530000 	cmp	r3, #0                                        
a00033a8:	0a000005 	beq	a00033c4 <rtems_termios_ioctl+0x284>          
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
a00033ac:	e3520000 	cmp	r2, #0                                        
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
a00033b0:	e5840070 	str	r0, [r4, #112]	; 0x70                         
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
a00033b4:	13a00000 	movne	r0, #0                                      
      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;                   
a00033b8:	e584706c 	str	r7, [r4, #108]	; 0x6c                         
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
a00033bc:	e5840074 	str	r0, [r4, #116]	; 0x74                         
a00033c0:	ea000006 	b	a00033e0 <rtems_termios_ioctl+0x2a0>            
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
a00033c4:	e3520000 	cmp	r2, #0                                        
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
a00033c8:	03a03001 	moveq	r3, #1                                      
a00033cc:	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]) {                                
a00033d0:	0a000002 	beq	a00033e0 <rtems_termios_ioctl+0x2a0>          
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
a00033d4:	e584306c 	str	r3, [r4, #108]	; 0x6c                         
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
a00033d8:	e5843070 	str	r3, [r4, #112]	; 0x70                         
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
a00033dc:	e5843074 	str	r3, [r4, #116]	; 0x74                         
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
a00033e0:	e59430a8 	ldr	r3, [r4, #168]	; 0xa8                         
a00033e4:	e3530000 	cmp	r3, #0                                        
a00033e8:	0a00002f 	beq	a00034ac <rtems_termios_ioctl+0x36c>          
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
a00033ec:	e5940010 	ldr	r0, [r4, #16]                                 
a00033f0:	e2841030 	add	r1, r4, #48	; 0x30                            
a00033f4:	e12fff33 	blx	r3                                            
a00033f8:	ea00002b 	b	a00034ac <rtems_termios_ioctl+0x36c>            
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
a00033fc:	e1a00004 	mov	r0, r4                                        
a0003400:	ebfffdb4 	bl	a0002ad8 <drainOutput>                         
    break;                                                            
a0003404:	ea000028 	b	a00034ac <rtems_termios_ioctl+0x36c>            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
a0003408:	e897000c 	ldm	r7, {r2, r3}                                  
a000340c:	e58420d4 	str	r2, [r4, #212]	; 0xd4                         
a0003410:	e58430d8 	str	r3, [r4, #216]	; 0xd8                         
    break;                                                            
a0003414:	ea000024 	b	a00034ac <rtems_termios_ioctl+0x36c>            
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
a0003418:	e897000c 	ldm	r7, {r2, r3}                                  
a000341c:	e58420dc 	str	r2, [r4, #220]	; 0xdc                         
a0003420:	e58430e0 	str	r3, [r4, #224]	; 0xe0                         
    break;                                                            
a0003424:	ea000020 	b	a00034ac <rtems_termios_ioctl+0x36c>            
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
a0003428:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
a000342c:	e59f3094 	ldr	r3, [pc, #148]	; a00034c8 <rtems_termios_ioctl+0x388>
a0003430:	e0833282 	add	r3, r3, r2, lsl #5                            
a0003434:	e5933004 	ldr	r3, [r3, #4]                                  
a0003438:	e3530000 	cmp	r3, #0                                        
a000343c:	0a000002 	beq	a000344c <rtems_termios_ioctl+0x30c>          
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
a0003440:	e1a00004 	mov	r0, r4                                        
a0003444:	e12fff33 	blx	r3                                            
a0003448:	e1a06000 	mov	r6, r0                                        
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
a000344c:	e5953008 	ldr	r3, [r5, #8]                                  
    tty->t_sc = NULL; /* ensure that no more valid data */            
a0003450:	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);                                
a0003454:	e5933000 	ldr	r3, [r3]                                      
    tty->t_sc = NULL; /* ensure that no more valid data */            
a0003458:	e58420d0 	str	r2, [r4, #208]	; 0xd0                         
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
a000345c:	e59f2064 	ldr	r2, [pc, #100]	; a00034c8 <rtems_termios_ioctl+0x388>
     * 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);                                
a0003460:	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) {           
a0003464:	e7923283 	ldr	r3, [r2, r3, lsl #5]                          
a0003468:	e3530000 	cmp	r3, #0                                        
a000346c:	0a00000e 	beq	a00034ac <rtems_termios_ioctl+0x36c>          
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
a0003470:	e1a00004 	mov	r0, r4                                        
a0003474:	e12fff33 	blx	r3                                            
a0003478:	e1a06000 	mov	r6, r0                                        
a000347c:	ea00000a 	b	a00034ac <rtems_termios_ioctl+0x36c>            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
a0003480:	e5942060 	ldr	r2, [r4, #96]	; 0x60                          <== NOT EXECUTED
a0003484:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          <== NOT EXECUTED
      if ( rawnc < 0 )                                                
        rawnc += tty->rawInBuf.Size;                                  
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
a0003488:	e5940020 	ldr	r0, [r4, #32]                                 <== NOT EXECUTED
a000348c:	e5941024 	ldr	r1, [r4, #36]	; 0x24                          <== NOT EXECUTED
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
      if ( rawnc < 0 )                                                
a0003490:	e0523003 	subs	r3, r2, r3                                   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
a0003494:	45942064 	ldrmi	r2, [r4, #100]	; 0x64                       <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
a0003498:	e0611000 	rsb	r1, r1, r0                                    <== NOT EXECUTED
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
      if ( rawnc < 0 )                                                
        rawnc += tty->rawInBuf.Size;                                  
a000349c:	40833002 	addmi	r3, r3, r2                                  <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
a00034a0:	e5952008 	ldr	r2, [r5, #8]                                  <== NOT EXECUTED
a00034a4:	e0813003 	add	r3, r1, r3                                    <== NOT EXECUTED
a00034a8:	e5823000 	str	r3, [r2]                                      <== NOT EXECUTED
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
a00034ac:	e5940018 	ldr	r0, [r4, #24]                                 
a00034b0:	eb0006a8 	bl	a0004f58 <rtems_semaphore_release>             
  args->ioctl_return = sc;                                            
a00034b4:	e585600c 	str	r6, [r5, #12]                                 
  return sc;                                                          
}                                                                     
a00034b8:	e1a00006 	mov	r0, r6                                        
a00034bc:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

a0002b38 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
a0002b38:	e92d4fff 	push	{r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
a0002b3c:	e58d300c 	str	r3, [sp, #12]                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
a0002b40:	e59f3404 	ldr	r3, [pc, #1028]	; a0002f4c <rtems_termios_open+0x414>
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
a0002b44:	e1a0a001 	mov	sl, r1                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
a0002b48:	e3a01000 	mov	r1, #0                                        
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
a0002b4c:	e1a09000 	mov	r9, r0                                        
a0002b50:	e1a08002 	mov	r8, r2                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
a0002b54:	e5930000 	ldr	r0, [r3]                                      
a0002b58:	e1a02001 	mov	r2, r1                                        
a0002b5c:	eb0008b7 	bl	a0004e40 <rtems_semaphore_obtain>              
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
a0002b60:	e2506000 	subs	r6, r0, #0                                   
a0002b64:	1a0000ee 	bne	a0002f24 <rtems_termios_open+0x3ec>           
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
a0002b68:	e59f33e0 	ldr	r3, [pc, #992]	; a0002f50 <rtems_termios_open+0x418>
a0002b6c:	e5937000 	ldr	r7, [r3]                                      
a0002b70:	e1a05007 	mov	r5, r7                                        
a0002b74:	ea000006 	b	a0002b94 <rtems_termios_open+0x5c>              
    if ((tty->major == major) && (tty->minor == minor))               
a0002b78:	e595300c 	ldr	r3, [r5, #12]                                 
a0002b7c:	e1530009 	cmp	r3, r9                                        
a0002b80:	1a000002 	bne	a0002b90 <rtems_termios_open+0x58>            
a0002b84:	e5953010 	ldr	r3, [r5, #16]                                 
a0002b88:	e153000a 	cmp	r3, sl                                        
a0002b8c:	0a0000c3 	beq	a0002ea0 <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) { 
a0002b90:	e5955000 	ldr	r5, [r5]                                      
a0002b94:	e3550000 	cmp	r5, #0                                        
a0002b98:	1afffff6 	bne	a0002b78 <rtems_termios_open+0x40>            
a0002b9c:	ea0000e3 	b	a0002f30 <rtems_termios_open+0x3f8>             
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
a0002ba0:	e59f23ac 	ldr	r2, [pc, #940]	; a0002f54 <rtems_termios_open+0x41c>
a0002ba4:	e5923000 	ldr	r3, [r2]                                      
a0002ba8:	e5853064 	str	r3, [r5, #100]	; 0x64                         
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
a0002bac:	e5950064 	ldr	r0, [r5, #100]	; 0x64                         
a0002bb0:	e58d2008 	str	r2, [sp, #8]                                  
a0002bb4:	ebfffcfa 	bl	a0001fa4 <malloc>                              
    if (tty->rawInBuf.theBuf == NULL) {                               
a0002bb8:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
a0002bbc:	e1a0b000 	mov	fp, r0                                        
a0002bc0:	e5850058 	str	r0, [r5, #88]	; 0x58                          
    if (tty->rawInBuf.theBuf == NULL) {                               
a0002bc4:	e59d2008 	ldr	r2, [sp, #8]                                  
a0002bc8:	1a000006 	bne	a0002be8 <rtems_termios_open+0xb0>            
            free(tty);                                                
a0002bcc:	e1a00005 	mov	r0, r5                                        
a0002bd0:	ebfffc15 	bl	a0001c2c <free>                                
      rtems_semaphore_release (rtems_termios_ttyMutex);               
a0002bd4:	e59f3370 	ldr	r3, [pc, #880]	; a0002f4c <rtems_termios_open+0x414>
      return RTEMS_NO_MEMORY;                                         
a0002bd8:	e3a0601a 	mov	r6, #26                                       
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    if (tty->rawInBuf.theBuf == NULL) {                               
            free(tty);                                                
      rtems_semaphore_release (rtems_termios_ttyMutex);               
a0002bdc:	e5930000 	ldr	r0, [r3]                                      
a0002be0:	eb0008dc 	bl	a0004f58 <rtems_semaphore_release>             
      return RTEMS_NO_MEMORY;                                         
a0002be4:	ea0000ce 	b	a0002f24 <rtems_termios_open+0x3ec>             
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
a0002be8:	e5923004 	ldr	r3, [r2, #4]                                  
a0002bec:	e5853088 	str	r3, [r5, #136]	; 0x88                         
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
a0002bf0:	e5950088 	ldr	r0, [r5, #136]	; 0x88                         
a0002bf4:	e58d2008 	str	r2, [sp, #8]                                  
a0002bf8:	ebfffce9 	bl	a0001fa4 <malloc>                              
    if (tty->rawOutBuf.theBuf == NULL) {                              
a0002bfc:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
a0002c00:	e1a03000 	mov	r3, r0                                        
a0002c04:	e585007c 	str	r0, [r5, #124]	; 0x7c                         
    if (tty->rawOutBuf.theBuf == NULL) {                              
a0002c08:	e59d2008 	ldr	r2, [sp, #8]                                  
a0002c0c:	0a000008 	beq	a0002c34 <rtems_termios_open+0xfc>            
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
a0002c10:	e5920008 	ldr	r0, [r2, #8]                                  
a0002c14:	e58d3008 	str	r3, [sp, #8]                                  
a0002c18:	ebfffce1 	bl	a0001fa4 <malloc>                              
    if (tty->cbuf == NULL) {                                          
a0002c1c:	e3500000 	cmp	r0, #0                                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
a0002c20:	e585001c 	str	r0, [r5, #28]                                 
    if (tty->cbuf == NULL) {                                          
a0002c24:	e59d3008 	ldr	r3, [sp, #8]                                  
a0002c28:	1a000004 	bne	a0002c40 <rtems_termios_open+0x108>           
            free((void *)(tty->rawOutBuf.theBuf));                    
a0002c2c:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
a0002c30:	ebfffbfd 	bl	a0001c2c <free>                                <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
a0002c34:	e1a0000b 	mov	r0, fp                                        
a0002c38:	ebfffbfb 	bl	a0001c2c <free>                                
a0002c3c:	eaffffe2 	b	a0002bcc <rtems_termios_open+0x94>              
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
a0002c40:	e3a03000 	mov	r3, #0                                        
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
a0002c44:	e5853004 	str	r3, [r5, #4]                                  
    if (rtems_termios_ttyHead != NULL)                                
a0002c48:	e1570003 	cmp	r7, r3                                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
a0002c4c:	e58530d4 	str	r3, [r5, #212]	; 0xd4                         
    tty->tty_snd.sw_arg = NULL;                                       
a0002c50:	e58530d8 	str	r3, [r5, #216]	; 0xd8                         
    tty->tty_rcv.sw_pfn = NULL;                                       
a0002c54:	e58530dc 	str	r3, [r5, #220]	; 0xdc                         
    tty->tty_rcv.sw_arg = NULL;                                       
a0002c58:	e58530e0 	str	r3, [r5, #224]	; 0xe0                         
    tty->tty_rcvwakeup  = 0;                                          
a0002c5c:	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;                                      
a0002c60:	e59f32e8 	ldr	r3, [pc, #744]	; a0002f50 <rtems_termios_open+0x418>
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
a0002c64:	15875004 	strne	r5, [r7, #4]                                
    tty->tty_rcvwakeup  = 0;                                          
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
a0002c68:	e5857000 	str	r7, [r5]                                      
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
a0002c6c:	e5834000 	str	r4, [r3]                                      
    if (rtems_termios_ttyTail == NULL)                                
a0002c70:	e59f32e0 	ldr	r3, [pc, #736]	; a0002f58 <rtems_termios_open+0x420>
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
a0002c74:	e59f72d8 	ldr	r7, [pc, #728]	; a0002f54 <rtems_termios_open+0x41c>
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
a0002c78:	e59f02dc 	ldr	r0, [pc, #732]	; a0002f5c <rtems_termios_open+0x424>
    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)                                
a0002c7c:	e5932000 	ldr	r2, [r3]                                      
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
a0002c80:	e584a010 	str	sl, [r4, #16]                                 
    tty->major = major;                                               
a0002c84:	e584900c 	str	r9, [r4, #12]                                 
    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)                                
a0002c88:	e3520000 	cmp	r2, #0                                        
      rtems_termios_ttyTail = tty;                                    
a0002c8c:	05834000 	streq	r4, [r3]                                    
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
a0002c90:	e5d7300c 	ldrb	r3, [r7, #12]                                
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
a0002c94:	e2842014 	add	r2, r4, #20                                   
a0002c98:	e58d2000 	str	r2, [sp]                                      
a0002c9c:	e1830000 	orr	r0, r3, r0                                    
a0002ca0:	e3a01001 	mov	r1, #1                                        
a0002ca4:	e3a03000 	mov	r3, #0                                        
a0002ca8:	e3a02054 	mov	r2, #84	; 0x54                                
a0002cac:	eb0007d1 	bl	a0004bf8 <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)                                       
a0002cb0:	e2503000 	subs	r3, r0, #0                                   
a0002cb4:	1a000096 	bne	a0002f14 <rtems_termios_open+0x3dc>           
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
a0002cb8:	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 (                                     
a0002cbc:	e59f029c 	ldr	r0, [pc, #668]	; a0002f60 <rtems_termios_open+0x428>
a0002cc0:	e2841018 	add	r1, r4, #24                                   
a0002cc4:	e58d1000 	str	r1, [sp]                                      
a0002cc8:	e1820000 	orr	r0, r2, r0                                    
a0002ccc:	e3a01001 	mov	r1, #1                                        
a0002cd0:	e3a02054 	mov	r2, #84	; 0x54                                
a0002cd4:	eb0007c7 	bl	a0004bf8 <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)                                       
a0002cd8:	e2501000 	subs	r1, r0, #0                                   
a0002cdc:	1a00008c 	bne	a0002f14 <rtems_termios_open+0x3dc>           
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
a0002ce0:	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 (                                     
a0002ce4:	e59f0278 	ldr	r0, [pc, #632]	; a0002f64 <rtems_termios_open+0x42c>
a0002ce8:	e284208c 	add	r2, r4, #140	; 0x8c                           
a0002cec:	e58d2000 	str	r2, [sp]                                      
a0002cf0:	e1830000 	orr	r0, r3, r0                                    
a0002cf4:	e3a02020 	mov	r2, #32                                       
a0002cf8:	e1a03001 	mov	r3, r1                                        
a0002cfc:	eb0007bd 	bl	a0004bf8 <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)                                       
a0002d00:	e250b000 	subs	fp, r0, #0                                   
a0002d04:	1a000082 	bne	a0002f14 <rtems_termios_open+0x3dc>           
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
a0002d08:	e59de00c 	ldr	lr, [sp, #12]                                 
a0002d0c:	e284c098 	add	ip, r4, #152	; 0x98                           
      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;                                   
a0002d10:	e584b094 	str	fp, [r4, #148]	; 0x94                         
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
a0002d14:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
a0002d18:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
a0002d1c:	e89e000f 	ldm	lr, {r0, r1, r2, r3}                          
a0002d20:	e88c000f 	stm	ip, {r0, r1, r2, r3}                          
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
a0002d24:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
a0002d28:	e3530002 	cmp	r3, #2                                        
a0002d2c:	1a000017 	bne	a0002d90 <rtems_termios_open+0x258>           
      sc = rtems_task_create (                                        
                                   rtems_build_name ('T', 'x', 'T', c),
a0002d30:	e5d7300c 	ldrb	r3, [r7, #12]                                
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
a0002d34:	e59f022c 	ldr	r0, [pc, #556]	; a0002f68 <rtems_termios_open+0x430>
a0002d38:	e28420c8 	add	r2, r4, #200	; 0xc8                           
a0002d3c:	e58d2004 	str	r2, [sp, #4]                                  
a0002d40:	e1830000 	orr	r0, r3, r0                                    
a0002d44:	e3a02b01 	mov	r2, #1024	; 0x400                             
a0002d48:	e3a0100a 	mov	r1, #10                                       
a0002d4c:	e3a03c05 	mov	r3, #1280	; 0x500                             
a0002d50:	e58db000 	str	fp, [sp]                                      
a0002d54:	eb0008a6 	bl	a0004ff4 <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)                                     
a0002d58:	e2502000 	subs	r2, r0, #0                                   
a0002d5c:	1a00006c 	bne	a0002f14 <rtems_termios_open+0x3dc>           
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
a0002d60:	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 (                                        
a0002d64:	e59f0200 	ldr	r0, [pc, #512]	; a0002f6c <rtems_termios_open+0x434>
a0002d68:	e58d2000 	str	r2, [sp]                                      
a0002d6c:	e28420c4 	add	r2, r4, #196	; 0xc4                           
a0002d70:	e58d2004 	str	r2, [sp, #4]                                  
a0002d74:	e1830000 	orr	r0, r3, r0                                    
a0002d78:	e3a01009 	mov	r1, #9                                        
a0002d7c:	e3a02b01 	mov	r2, #1024	; 0x400                             
a0002d80:	e3a03c05 	mov	r3, #1280	; 0x500                             
a0002d84:	eb00089a 	bl	a0004ff4 <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)                                     
a0002d88:	e3500000 	cmp	r0, #0                                        
a0002d8c:	1a000060 	bne	a0002f14 <rtems_termios_open+0x3dc>           
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
a0002d90:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a0002d94:	e3530000 	cmp	r3, #0                                        
a0002d98:	0a000002 	beq	a0002da8 <rtems_termios_open+0x270>           
a0002d9c:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
a0002da0:	e3530002 	cmp	r3, #2                                        
a0002da4:	1a00000b 	bne	a0002dd8 <rtems_termios_open+0x2a0>           
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
a0002da8:	e59f31a4 	ldr	r3, [pc, #420]	; a0002f54 <rtems_termios_open+0x41c>
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
a0002dac:	e59f01bc 	ldr	r0, [pc, #444]	; a0002f70 <rtems_termios_open+0x438>
a0002db0:	e2842068 	add	r2, r4, #104	; 0x68                           
        rtems_build_name ('T', 'R', 'r', c),                          
a0002db4:	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 (                                   
a0002db8:	e3a01000 	mov	r1, #0                                        
a0002dbc:	e58d2000 	str	r2, [sp]                                      
a0002dc0:	e1830000 	orr	r0, r3, r0                                    
a0002dc4:	e3a02024 	mov	r2, #36	; 0x24                                
a0002dc8:	e1a03001 	mov	r3, r1                                        
a0002dcc:	eb000789 	bl	a0004bf8 <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)                                     
a0002dd0:	e3500000 	cmp	r0, #0                                        
a0002dd4:	1a00004e 	bne	a0002f14 <rtems_termios_open+0x3dc>           
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
a0002dd8:	e59f3194 	ldr	r3, [pc, #404]	; a0002f74 <rtems_termios_open+0x43c>
    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';                               
a0002ddc:	e3a02011 	mov	r2, #17                                       
a0002de0:	e5c42049 	strb	r2, [r4, #73]	; 0x49                         
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
a0002de4:	e5843030 	str	r3, [r4, #48]	; 0x30                          
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
a0002de8:	e59f3188 	ldr	r3, [pc, #392]	; a0002f78 <rtems_termios_open+0x440>
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
a0002dec:	e2822002 	add	r2, r2, #2                                    
a0002df0:	e5c4204a 	strb	r2, [r4, #74]	; 0x4a                         
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
a0002df4:	e5843034 	str	r3, [r4, #52]	; 0x34                          
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
a0002df8:	e59f317c 	ldr	r3, [pc, #380]	; a0002f7c <rtems_termios_open+0x444>
    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';                                
a0002dfc:	e2822007 	add	r2, r2, #7                                    
a0002e00:	e5c4204b 	strb	r2, [r4, #75]	; 0x4b                         
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
a0002e04:	e5843038 	str	r3, [r4, #56]	; 0x38                          
    tty->termios.c_lflag =                                            
a0002e08:	e59f3170 	ldr	r3, [pc, #368]	; a0002f80 <rtems_termios_open+0x448>
    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';                             
a0002e0c:	e3a02012 	mov	r2, #18                                       
a0002e10:	e5c4204d 	strb	r2, [r4, #77]	; 0x4d                         
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
a0002e14:	e584303c 	str	r3, [r4, #60]	; 0x3c                          
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
a0002e18:	e3a03003 	mov	r3, #3                                        
a0002e1c:	e5c43041 	strb	r3, [r4, #65]	; 0x41                         
    tty->termios.c_cc[VQUIT] = '\034';                                
a0002e20:	e2833019 	add	r3, r3, #25                                   
a0002e24:	e5c43042 	strb	r3, [r4, #66]	; 0x42                         
    tty->termios.c_cc[VERASE] = '\177';                               
a0002e28:	e2833063 	add	r3, r3, #99	; 0x63                            
a0002e2c:	e5c43043 	strb	r3, [r4, #67]	; 0x43                         
    tty->termios.c_cc[VKILL] = '\025';                                
a0002e30:	e3a03015 	mov	r3, #21                                       
a0002e34:	e5c43044 	strb	r3, [r4, #68]	; 0x44                         
    tty->termios.c_cc[VEOF] = '\004';                                 
a0002e38:	e3a03004 	mov	r3, #4                                        
a0002e3c:	e5c43045 	strb	r3, [r4, #69]	; 0x45                         
    tty->termios.c_cc[VEOL] = '\000';                                 
a0002e40:	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;                                               
a0002e44:	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';                                 
a0002e48:	e5c4304c 	strb	r3, [r4, #76]	; 0x4c                         
    tty->termios.c_cc[VEOL2] = '\000';                                
a0002e4c:	e5c43051 	strb	r3, [r4, #81]	; 0x51                         
    /* 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;                        
a0002e50:	e5943064 	ldr	r3, [r4, #100]	; 0x64                         
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
a0002e54:	e3a0200f 	mov	r2, #15                                       
a0002e58:	e5c4204e 	strb	r2, [r4, #78]	; 0x4e                         
    /* 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;                        
a0002e5c:	e1a030a3 	lsr	r3, r3, #1                                    
a0002e60:	e58430bc 	str	r3, [r4, #188]	; 0xbc                         
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
a0002e64:	e5943064 	ldr	r3, [r4, #100]	; 0x64                         
    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';                              
a0002e68:	e2822008 	add	r2, r2, #8                                    
a0002e6c:	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;                        
a0002e70:	e0833083 	add	r3, r3, r3, lsl #1                            
    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';                               
a0002e74:	e3a02016 	mov	r2, #22                                       
    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;                        
a0002e78:	e1a03123 	lsr	r3, r3, #2                                    
a0002e7c:	e58430c0 	str	r3, [r4, #192]	; 0xc0                         
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
a0002e80:	e59f30cc 	ldr	r3, [pc, #204]	; a0002f54 <rtems_termios_open+0x41c>
    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';                               
a0002e84:	e5c42050 	strb	r2, [r4, #80]	; 0x50                         
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
a0002e88:	e5d3200c 	ldrb	r2, [r3, #12]                                
a0002e8c:	e352007a 	cmp	r2, #122	; 0x7a                               
a0002e90:	e2821001 	add	r1, r2, #1                                    
      c = 'a';                                                        
a0002e94:	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')                                                   
a0002e98:	e5c3100c 	strb	r1, [r3, #12]                                
      c = 'a';                                                        
a0002e9c:	05c3200c 	strbeq	r2, [r3, #12]                              
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
a0002ea0:	e5983000 	ldr	r3, [r8]                                      
a0002ea4:	e5835034 	str	r5, [r3, #52]	; 0x34                          
  if (!tty->refcount++) {                                             
a0002ea8:	e5953008 	ldr	r3, [r5, #8]                                  
a0002eac:	e2832001 	add	r2, r3, #1                                    
a0002eb0:	e3530000 	cmp	r3, #0                                        
a0002eb4:	e5852008 	str	r2, [r5, #8]                                  
a0002eb8:	1a000016 	bne	a0002f18 <rtems_termios_open+0x3e0>           
    if (tty->device.firstOpen)                                        
a0002ebc:	e5953098 	ldr	r3, [r5, #152]	; 0x98                         
a0002ec0:	e3530000 	cmp	r3, #0                                        
a0002ec4:	0a000003 	beq	a0002ed8 <rtems_termios_open+0x3a0>           
      (*tty->device.firstOpen)(major, minor, arg);                    
a0002ec8:	e1a00009 	mov	r0, r9                                        
a0002ecc:	e1a0100a 	mov	r1, sl                                        
a0002ed0:	e1a02008 	mov	r2, r8                                        
a0002ed4:	e12fff33 	blx	r3                                            
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
a0002ed8:	e59530b4 	ldr	r3, [r5, #180]	; 0xb4                         
a0002edc:	e3530002 	cmp	r3, #2                                        
a0002ee0:	1a00000c 	bne	a0002f18 <rtems_termios_open+0x3e0>           
      sc = rtems_task_start(                                          
a0002ee4:	e59500c4 	ldr	r0, [r5, #196]	; 0xc4                         
a0002ee8:	e59f1094 	ldr	r1, [pc, #148]	; a0002f84 <rtems_termios_open+0x44c>
a0002eec:	e1a02005 	mov	r2, r5                                        
a0002ef0:	eb0008e7 	bl	a0005294 <rtems_task_start>                    
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
a0002ef4:	e3500000 	cmp	r0, #0                                        
a0002ef8:	1a000005 	bne	a0002f14 <rtems_termios_open+0x3dc>           
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
a0002efc:	e59500c8 	ldr	r0, [r5, #200]	; 0xc8                         
a0002f00:	e59f1080 	ldr	r1, [pc, #128]	; a0002f88 <rtems_termios_open+0x450>
a0002f04:	e1a02005 	mov	r2, r5                                        
a0002f08:	eb0008e1 	bl	a0005294 <rtems_task_start>                    
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
a0002f0c:	e3500000 	cmp	r0, #0                                        
a0002f10:	0a000000 	beq	a0002f18 <rtems_termios_open+0x3e0>           
        rtems_fatal_error_occurred (sc);                              
a0002f14:	eb000964 	bl	a00054ac <rtems_fatal_error_occurred>          
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
a0002f18:	e59f302c 	ldr	r3, [pc, #44]	; a0002f4c <rtems_termios_open+0x414>
a0002f1c:	e5930000 	ldr	r0, [r3]                                      
a0002f20:	eb00080c 	bl	a0004f58 <rtems_semaphore_release>             
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
a0002f24:	e1a00006 	mov	r0, r6                                        
a0002f28:	e28dd010 	add	sp, sp, #16                                   
a0002f2c:	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));              
a0002f30:	e3a00001 	mov	r0, #1                                        
a0002f34:	e3a010e8 	mov	r1, #232	; 0xe8                               
a0002f38:	ebfffad6 	bl	a0001a98 <calloc>                              
    if (tty == NULL) {                                                
a0002f3c:	e2504000 	subs	r4, r0, #0                                   
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
a0002f40:	e1a05000 	mov	r5, r0                                        
    if (tty == NULL) {                                                
a0002f44:	1affff15 	bne	a0002ba0 <rtems_termios_open+0x68>            
a0002f48:	eaffff21 	b	a0002bd4 <rtems_termios_open+0x9c>              
                                                                      

a00034cc <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
a00034cc:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
a00034d0:	e1a04002 	mov	r4, r2                                        
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
a00034d4:	e59220b4 	ldr	r2, [r2, #180]	; 0xb4                         
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
a00034d8:	e1a03000 	mov	r3, r0                                        
a00034dc:	e1a06001 	mov	r6, r1                                        
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
a00034e0:	e3520000 	cmp	r2, #0                                        
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
  const unsigned char *buf = _buf;                                    
a00034e4:	e1a08000 	mov	r8, r0                                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
a00034e8:	15945080 	ldrne	r5, [r4, #128]	; 0x80                       
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
a00034ec:	13a0a002 	movne	sl, #2                                      
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
a00034f0:	13a09001 	movne	r9, #1                                      
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
a00034f4:	1a000032 	bne	a00035c4 <rtems_termios_puts+0xf8>            
    (*tty->device.write)(tty->minor, (void *)buf, len);               
a00034f8:	e594c0a4 	ldr	ip, [r4, #164]	; 0xa4                         
a00034fc:	e5940010 	ldr	r0, [r4, #16]                                 
a0003500:	e1a01003 	mov	r1, r3                                        
a0003504:	e1a02006 	mov	r2, r6                                        
a0003508:	e12fff3c 	blx	ip                                            
    return;                                                           
a000350c:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
a0003510:	e5941088 	ldr	r1, [r4, #136]	; 0x88                         
a0003514:	e2850001 	add	r0, r5, #1                                    
a0003518:	eb0033c1 	bl	a0010424 <__umodsi3>                           
a000351c:	e1a05000 	mov	r5, r0                                        
    rtems_interrupt_disable (level);                                  
a0003520:	ebfffd68 	bl	a0002ac8 <arm_interrupt_disable>               
a0003524:	e1a07000 	mov	r7, r0                                        
    while (newHead == tty->rawOutBuf.Tail) {                          
a0003528:	ea00000a 	b	a0003558 <rtems_termios_puts+0x8c>              
      tty->rawOutBufState = rob_wait;                                 
a000352c:	e584a094 	str	sl, [r4, #148]	; 0x94                         
a0003530:	e129f007 	msr	CPSR_fc, r7                                   
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
a0003534:	e3a01000 	mov	r1, #0                                        
a0003538:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
a000353c:	e1a02001 	mov	r2, r1                                        
a0003540:	eb00063e 	bl	a0004e40 <rtems_semaphore_obtain>              
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
a0003544:	e3500000 	cmp	r0, #0                                        
a0003548:	0a000000 	beq	a0003550 <rtems_termios_puts+0x84>            
        rtems_fatal_error_occurred (sc);                              
a000354c:	eb0007d6 	bl	a00054ac <rtems_fatal_error_occurred>          <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
a0003550:	ebfffd5c 	bl	a0002ac8 <arm_interrupt_disable>               
a0003554:	e1a07000 	mov	r7, r0                                        
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
a0003558:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         
a000355c:	e1550003 	cmp	r5, r3                                        
a0003560:	0afffff1 	beq	a000352c <rtems_termios_puts+0x60>            
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
a0003564:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
a0003568:	e4d81001 	ldrb	r1, [r8], #1                                 
a000356c:	e594207c 	ldr	r2, [r4, #124]	; 0x7c                         
a0003570:	e7c21003 	strb	r1, [r2, r3]                                 
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
a0003574:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
a0003578:	e5845080 	str	r5, [r4, #128]	; 0x80                         
    if (tty->rawOutBufState == rob_idle) {                            
a000357c:	e3530000 	cmp	r3, #0                                        
a0003580:	1a00000d 	bne	a00035bc <rtems_termios_puts+0xf0>            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
a0003584:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a0003588:	e3130010 	tst	r3, #16                                       
        (*tty->device.write)(tty->minor,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
a000358c:	159430b8 	ldrne	r3, [r4, #184]	; 0xb8                       
a0003590:	13833020 	orrne	r3, r3, #32                                 
a0003594:	158430b8 	strne	r3, [r4, #184]	; 0xb8                       
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
a0003598:	1a000006 	bne	a00035b8 <rtems_termios_puts+0xec>            
        (*tty->device.write)(tty->minor,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
a000359c:	e5942084 	ldr	r2, [r4, #132]	; 0x84                         
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
        (*tty->device.write)(tty->minor,                              
a00035a0:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         
a00035a4:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         
a00035a8:	e5940010 	ldr	r0, [r4, #16]                                 
a00035ac:	e0811002 	add	r1, r1, r2                                    
a00035b0:	e3a02001 	mov	r2, #1                                        
a00035b4:	e12fff33 	blx	r3                                            
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
a00035b8:	e5849094 	str	r9, [r4, #148]	; 0x94                         
a00035bc:	e129f007 	msr	CPSR_fc, r7                                   
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
a00035c0:	e2466001 	sub	r6, r6, #1                                    
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
a00035c4:	e3560000 	cmp	r6, #0                                        
a00035c8:	1affffd0 	bne	a0003510 <rtems_termios_puts+0x44>            
a00035cc:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
                                                                      

a0003c24 <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;
a0003c24:	e5903000 	ldr	r3, [r0]                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
a0003c28:	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;                   
a0003c2c:	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);
a0003c30:	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;                                     
a0003c34:	e5908010 	ldr	r8, [r0, #16]                                 
  char      *buffer = args->buffer;                                   
a0003c38:	e590b00c 	ldr	fp, [r0, #12]                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
a0003c3c:	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);
a0003c40:	e1a02001 	mov	r2, r1                                        
a0003c44:	e5940014 	ldr	r0, [r4, #20]                                 
a0003c48:	eb00047c 	bl	a0004e40 <rtems_semaphore_obtain>              
  if (sc != RTEMS_SUCCESSFUL)                                         
a0003c4c:	e2507000 	subs	r7, r0, #0                                   
a0003c50:	1a0000bd 	bne	a0003f4c <rtems_termios_read+0x328>           
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
a0003c54:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
a0003c58:	e59f32f4 	ldr	r3, [pc, #756]	; a0003f54 <rtems_termios_read+0x330>
a0003c5c:	e0833282 	add	r3, r3, r2, lsl #5                            
a0003c60:	e5933008 	ldr	r3, [r3, #8]                                  
a0003c64:	e3530000 	cmp	r3, #0                                        
a0003c68:	0a000004 	beq	a0003c80 <rtems_termios_read+0x5c>            
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
a0003c6c:	e1a00004 	mov	r0, r4                                        
a0003c70:	e1a01005 	mov	r1, r5                                        
a0003c74:	e12fff33 	blx	r3                                            
a0003c78:	e1a07000 	mov	r7, r0                                        
a0003c7c:	ea0000ae 	b	a0003f3c <rtems_termios_read+0x318>             
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
a0003c80:	e5942024 	ldr	r2, [r4, #36]	; 0x24                          
a0003c84:	e5943020 	ldr	r3, [r4, #32]                                 
a0003c88:	e1520003 	cmp	r2, r3                                        
a0003c8c:	1a0000a1 	bne	a0003f18 <rtems_termios_read+0x2f4>           
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
a0003c90:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
a0003c94:	e5847020 	str	r7, [r4, #32]                                 
a0003c98:	e5847024 	str	r7, [r4, #36]	; 0x24                          
    tty->read_start_column = tty->column;                             
a0003c9c:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
    if (tty->device.pollRead != NULL &&                               
a0003ca0:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a0003ca4:	e3530000 	cmp	r3, #0                                        
a0003ca8:	0a00003b 	beq	a0003d9c <rtems_termios_read+0x178>           
a0003cac:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
a0003cb0:	e3530000 	cmp	r3, #0                                        
a0003cb4:	1a000038 	bne	a0003d9c <rtems_termios_read+0x178>           
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
a0003cb8:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
a0003cbc:	e3130002 	tst	r3, #2                                        
a0003cc0:	0a00000d 	beq	a0003cfc <rtems_termios_read+0xd8>            
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
a0003cc4:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a0003cc8:	e5940010 	ldr	r0, [r4, #16]                                 
a0003ccc:	e12fff33 	blx	r3                                            
      if (n < 0) {                                                    
a0003cd0:	e3500000 	cmp	r0, #0                                        
a0003cd4:	aa000002 	bge	a0003ce4 <rtems_termios_read+0xc0>            
        rtems_task_wake_after (1);                                    
a0003cd8:	e3a00001 	mov	r0, #1                                        
a0003cdc:	eb000584 	bl	a00052f4 <rtems_task_wake_after>               
a0003ce0:	eafffff7 	b	a0003cc4 <rtems_termios_read+0xa0>              
      } else {                                                        
        if  (siproc (n, tty))                                         
a0003ce4:	e20000ff 	and	r0, r0, #255	; 0xff                           
a0003ce8:	e1a01004 	mov	r1, r4                                        
a0003cec:	ebffff88 	bl	a0003b14 <siproc>                              
a0003cf0:	e3500000 	cmp	r0, #0                                        
a0003cf4:	0afffff2 	beq	a0003cc4 <rtems_termios_read+0xa0>            
a0003cf8:	ea000086 	b	a0003f18 <rtems_termios_read+0x2f4>             
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
a0003cfc:	eb0002c3 	bl	a0004810 <rtems_clock_get_ticks_since_boot>    
a0003d00:	e1a06000 	mov	r6, r0                                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
a0003d04:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a0003d08:	e5940010 	ldr	r0, [r4, #16]                                 
a0003d0c:	e12fff33 	blx	r3                                            
      if (n < 0) {                                                    
a0003d10:	e3500000 	cmp	r0, #0                                        
a0003d14:	aa000013 	bge	a0003d68 <rtems_termios_read+0x144>           
        if (tty->termios.c_cc[VMIN]) {                                
a0003d18:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         
a0003d1c:	e3530000 	cmp	r3, #0                                        
a0003d20:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
a0003d24:	0a000005 	beq	a0003d40 <rtems_termios_read+0x11c>           
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
a0003d28:	e3530000 	cmp	r3, #0                                        
a0003d2c:	0a00000a 	beq	a0003d5c <rtems_termios_read+0x138>           
a0003d30:	e5943020 	ldr	r3, [r4, #32]                                 
a0003d34:	e3530000 	cmp	r3, #0                                        
a0003d38:	0a000007 	beq	a0003d5c <rtems_termios_read+0x138>           
a0003d3c:	ea000001 	b	a0003d48 <rtems_termios_read+0x124>             
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
a0003d40:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0003d44:	0a000073 	beq	a0003f18 <rtems_termios_read+0x2f4>           <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
a0003d48:	eb0002b0 	bl	a0004810 <rtems_clock_get_ticks_since_boot>    
          if ((now - then) > tty->vtimeTicks) {                       
a0003d4c:	e5943054 	ldr	r3, [r4, #84]	; 0x54                          
a0003d50:	e0660000 	rsb	r0, r6, r0                                    
a0003d54:	e1500003 	cmp	r0, r3                                        
a0003d58:	8a00006e 	bhi	a0003f18 <rtems_termios_read+0x2f4>           
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
a0003d5c:	e3a00001 	mov	r0, #1                                        
a0003d60:	eb000563 	bl	a00052f4 <rtems_task_wake_after>               
a0003d64:	eaffffe6 	b	a0003d04 <rtems_termios_read+0xe0>              
      } else {                                                        
        siproc (n, tty);                                              
a0003d68:	e20000ff 	and	r0, r0, #255	; 0xff                           
a0003d6c:	e1a01004 	mov	r1, r4                                        
a0003d70:	ebffff67 	bl	a0003b14 <siproc>                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
a0003d74:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         
a0003d78:	e5942020 	ldr	r2, [r4, #32]                                 
a0003d7c:	e1520003 	cmp	r2, r3                                        
a0003d80:	aa000064 	bge	a0003f18 <rtems_termios_read+0x2f4>           
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
a0003d84:	e3530000 	cmp	r3, #0                                        
a0003d88:	0affffdd 	beq	a0003d04 <rtems_termios_read+0xe0>            
a0003d8c:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
a0003d90:	e3530000 	cmp	r3, #0                                        
a0003d94:	0affffda 	beq	a0003d04 <rtems_termios_read+0xe0>            
a0003d98:	eaffffd7 	b	a0003cfc <rtems_termios_read+0xd8>              
        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)(                                       
a0003d9c:	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;        
a0003da0:	e594a074 	ldr	sl, [r4, #116]	; 0x74                         
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
a0003da4:	e3a06001 	mov	r6, #1                                        
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
a0003da8:	e59f91a8 	ldr	r9, [pc, #424]	; a0003f58 <rtems_termios_read+0x334>
        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)(                                       
a0003dac:	e58d2000 	str	r2, [sp]                                      
a0003db0:	ea000040 	b	a0003eb8 <rtems_termios_read+0x294>             
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
a0003db4:	e594005c 	ldr	r0, [r4, #92]	; 0x5c                          
a0003db8:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
a0003dbc:	e2800001 	add	r0, r0, #1                                    
a0003dc0:	eb003197 	bl	a0010424 <__umodsi3>                           
      c = tty->rawInBuf.theBuf[newHead];                              
a0003dc4:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
a0003dc8:	e7d3a000 	ldrb	sl, [r3, r0]                                 
      tty->rawInBuf.Head = newHead;                                   
a0003dcc:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
a0003dd0:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
a0003dd4:	e5942064 	ldr	r2, [r4, #100]	; 0x64                         
          % tty->rawInBuf.Size)                                       
a0003dd8:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
      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)             
a0003ddc:	e0823003 	add	r3, r2, r3                                    
          % tty->rawInBuf.Size)                                       
a0003de0:	e0600003 	rsb	r0, r0, r3                                    
a0003de4:	eb00318e 	bl	a0010424 <__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)             
a0003de8:	e59430bc 	ldr	r3, [r4, #188]	; 0xbc                         
a0003dec:	e1500003 	cmp	r0, r3                                        
a0003df0:	2a00001f 	bcs	a0003e74 <rtems_termios_read+0x250>           
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
a0003df4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a0003df8:	e3c33001 	bic	r3, r3, #1                                    
a0003dfc:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
a0003e00:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         
a0003e04:	e59f3150 	ldr	r3, [pc, #336]	; a0003f5c <rtems_termios_read+0x338>
a0003e08:	e0023003 	and	r3, r2, r3                                    
a0003e0c:	e59f2148 	ldr	r2, [pc, #328]	; a0003f5c <rtems_termios_read+0x338>
a0003e10:	e1530002 	cmp	r3, r2                                        
a0003e14:	1a00000b 	bne	a0003e48 <rtems_termios_read+0x224>           
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
a0003e18:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
a0003e1c:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0003e20:	0a000002 	beq	a0003e30 <rtems_termios_read+0x20c>           <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
a0003e24:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003e28:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
a0003e2c:	0a000005 	beq	a0003e48 <rtems_termios_read+0x224>           <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
a0003e30:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         <== NOT EXECUTED
a0003e34:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a0003e38:	e59d1000 	ldr	r1, [sp]                                      <== NOT EXECUTED
a0003e3c:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a0003e40:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a0003e44:	ea00000a 	b	a0003e74 <rtems_termios_read+0x250>             <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
a0003e48:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a0003e4c:	e3130c01 	tst	r3, #256	; 0x100                              
a0003e50:	0a000007 	beq	a0003e74 <rtems_termios_read+0x250>           
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
a0003e54:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0003e58:	e3c33004 	bic	r3, r3, #4                                    <== NOT EXECUTED
a0003e5c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
a0003e60:	e59430b0 	ldr	r3, [r4, #176]	; 0xb0                         <== NOT EXECUTED
a0003e64:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
a0003e68:	0a000001 	beq	a0003e74 <rtems_termios_read+0x250>           <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
a0003e6c:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
a0003e70:	e12fff33 	blx	r3                                            <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
a0003e74:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
a0003e78:	e3130002 	tst	r3, #2                                        
a0003e7c:	0a000005 	beq	a0003e98 <rtems_termios_read+0x274>           
        if (siproc (c, tty))                                          
a0003e80:	e1a0000a 	mov	r0, sl                                        
a0003e84:	e1a01004 	mov	r1, r4                                        
a0003e88:	ebffff21 	bl	a0003b14 <siproc>                              
          wait = 0;                                                   
a0003e8c:	e3500000 	cmp	r0, #0                                        
a0003e90:	13a06000 	movne	r6, #0                                      
a0003e94:	ea000006 	b	a0003eb4 <rtems_termios_read+0x290>             
      } else {                                                        
        siproc (c, tty);                                              
a0003e98:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
a0003e9c:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
a0003ea0:	ebffff1b 	bl	a0003b14 <siproc>                              <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
a0003ea4:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         <== NOT EXECUTED
a0003ea8:	e5942020 	ldr	r2, [r4, #32]                                 <== NOT EXECUTED
          wait = 0;                                                   
a0003eac:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
a0003eb0:	a3a06000 	movge	r6, #0                                      <== NOT EXECUTED
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
a0003eb4:	e594a070 	ldr	sl, [r4, #112]	; 0x70                         
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
a0003eb8:	e594205c 	ldr	r2, [r4, #92]	; 0x5c                          
a0003ebc:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
a0003ec0:	e1520003 	cmp	r2, r3                                        
a0003ec4:	0a000004 	beq	a0003edc <rtems_termios_read+0x2b8>           
                       (tty->ccount < (CBUFSIZE-1))) {                
a0003ec8:	e5993008 	ldr	r3, [r9, #8]                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
a0003ecc:	e5942020 	ldr	r2, [r4, #32]                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
a0003ed0:	e2433001 	sub	r3, r3, #1                                    
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
a0003ed4:	e1520003 	cmp	r2, r3                                        
a0003ed8:	baffffb5 	blt	a0003db4 <rtems_termios_read+0x190>           
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
a0003edc:	e3560000 	cmp	r6, #0                                        
a0003ee0:	0a00000c 	beq	a0003f18 <rtems_termios_read+0x2f4>           
      sc = rtems_semaphore_obtain(                                    
a0003ee4:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
a0003ee8:	e594106c 	ldr	r1, [r4, #108]	; 0x6c                         
a0003eec:	e1a0200a 	mov	r2, sl                                        
a0003ef0:	eb0003d2 	bl	a0004e40 <rtems_semaphore_obtain>              
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
a0003ef4:	e3500000 	cmp	r0, #0                                        
a0003ef8:	0affffee 	beq	a0003eb8 <rtems_termios_read+0x294>           
a0003efc:	ea000005 	b	a0003f18 <rtems_termios_read+0x2f4>             <== NOT EXECUTED
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
a0003f00:	e594201c 	ldr	r2, [r4, #28]                                 
    count--;                                                          
a0003f04:	e2488001 	sub	r8, r8, #1                                    
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
a0003f08:	e7d22003 	ldrb	r2, [r2, r3]                                 
a0003f0c:	e2833001 	add	r3, r3, #1                                    
a0003f10:	e4cb2001 	strb	r2, [fp], #1                                 
a0003f14:	e5843024 	str	r3, [r4, #36]	; 0x24                          
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
a0003f18:	e3580000 	cmp	r8, #0                                        
a0003f1c:	0a000003 	beq	a0003f30 <rtems_termios_read+0x30c>           
a0003f20:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
a0003f24:	e5942020 	ldr	r2, [r4, #32]                                 
a0003f28:	e1530002 	cmp	r3, r2                                        
a0003f2c:	bafffff3 	blt	a0003f00 <rtems_termios_read+0x2dc>           
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
a0003f30:	e5953010 	ldr	r3, [r5, #16]                                 
a0003f34:	e0688003 	rsb	r8, r8, r3                                    
a0003f38:	e5858018 	str	r8, [r5, #24]                                 
  tty->tty_rcvwakeup = 0;                                             
a0003f3c:	e3a03000 	mov	r3, #0                                        
a0003f40:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
  rtems_semaphore_release (tty->isem);                                
a0003f44:	e5940014 	ldr	r0, [r4, #20]                                 
a0003f48:	eb000402 	bl	a0004f58 <rtems_semaphore_release>             
  return sc;                                                          
}                                                                     
a0003f4c:	e1a00007 	mov	r0, r7                                        
a0003f50:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

a000426c <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))
a000426c:	e59020b8 	ldr	r2, [r0, #184]	; 0xb8                         
a0004270:	e59f31b8 	ldr	r3, [pc, #440]	; a0004430 <rtems_termios_refill_transmitter+0x1c4>
 * 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)      
{                                                                     
a0004274:	e92d4070 	push	{r4, r5, r6, lr}                             
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
a0004278:	e0023003 	and	r3, r2, r3                                    
a000427c:	e59f21b0 	ldr	r2, [pc, #432]	; a0004434 <rtems_termios_refill_transmitter+0x1c8>
 * 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)      
{                                                                     
a0004280:	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))         
a0004284:	e1530002 	cmp	r3, r2                                        
a0004288:	1a00000c 	bne	a00042c0 <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);
a000428c:	e59030a4 	ldr	r3, [r0, #164]	; 0xa4                         <== NOT EXECUTED
a0004290:	e284104a 	add	r1, r4, #74	; 0x4a                            <== NOT EXECUTED
a0004294:	e2422b01 	sub	r2, r2, #1024	; 0x400                         <== NOT EXECUTED
a0004298:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
a000429c:	e12fff33 	blx	r3                                            <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
a00042a0:	ebfffa08 	bl	a0002ac8 <arm_interrupt_disable>               <== NOT EXECUTED
    tty->t_dqlen--;                                                   
a00042a4:	e5943090 	ldr	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
a00042a8:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
a00042ac:	e5843090 	str	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
a00042b0:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a00042b4:	e3833002 	orr	r3, r3, #2                                    <== NOT EXECUTED
a00042b8:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
a00042bc:	ea00000f 	b	a0004300 <rtems_termios_refill_transmitter+0x94><== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
a00042c0:	e59030b8 	ldr	r3, [r0, #184]	; 0xb8                         
a00042c4:	e2033003 	and	r3, r3, #3                                    
a00042c8:	e3530002 	cmp	r3, #2                                        
a00042cc:	1a00000e 	bne	a000430c <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);
a00042d0:	e59030a4 	ldr	r3, [r0, #164]	; 0xa4                         <== NOT EXECUTED
a00042d4:	e2841049 	add	r1, r4, #73	; 0x49                            <== NOT EXECUTED
a00042d8:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
a00042dc:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
a00042e0:	e12fff33 	blx	r3                                            <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
a00042e4:	ebfff9f7 	bl	a0002ac8 <arm_interrupt_disable>               <== NOT EXECUTED
    tty->t_dqlen--;                                                   
a00042e8:	e5943090 	ldr	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
a00042ec:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
a00042f0:	e5843090 	str	r3, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
a00042f4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a00042f8:	e3c33002 	bic	r3, r3, #2                                    <== NOT EXECUTED
a00042fc:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a0004300:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
a0004304:	e3a05001 	mov	r5, #1                                        <== NOT EXECUTED
a0004308:	ea000046 	b	a0004428 <rtems_termios_refill_transmitter+0x1bc><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
a000430c:	e5902080 	ldr	r2, [r0, #128]	; 0x80                         
a0004310:	e5903084 	ldr	r3, [r0, #132]	; 0x84                         
a0004314:	e1520003 	cmp	r2, r3                                        
a0004318:	1a000005 	bne	a0004334 <rtems_termios_refill_transmitter+0xc8>
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
a000431c:	e5903094 	ldr	r3, [r0, #148]	; 0x94                         
a0004320:	e3530002 	cmp	r3, #2                                        
a0004324:	1a00003e 	bne	a0004424 <rtems_termios_refill_transmitter+0x1b8>
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
a0004328:	e590008c 	ldr	r0, [r0, #140]	; 0x8c                         <== NOT EXECUTED
a000432c:	eb000309 	bl	a0004f58 <rtems_semaphore_release>             <== NOT EXECUTED
a0004330:	ea00003b 	b	a0004424 <rtems_termios_refill_transmitter+0x1b8><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
a0004334:	ebfff9e3 	bl	a0002ac8 <arm_interrupt_disable>               
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
a0004338:	e3a03000 	mov	r3, #0                                        
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
a000433c:	e5942090 	ldr	r2, [r4, #144]	; 0x90                         
    tty->t_dqlen = 0;                                                 
a0004340:	e5843090 	str	r3, [r4, #144]	; 0x90                         
a0004344:	e129f000 	msr	CPSR_fc, r0                                   
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
a0004348:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         
a000434c:	e5941088 	ldr	r1, [r4, #136]	; 0x88                         
a0004350:	e0820003 	add	r0, r2, r3                                    
a0004354:	eb003032 	bl	a0010424 <__umodsi3>                           
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
a0004358:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
a000435c:	e1a06000 	mov	r6, r0                                        
    tty->rawOutBuf.Tail = newTail;                                    
a0004360:	e5840084 	str	r0, [r4, #132]	; 0x84                         
    if (tty->rawOutBufState == rob_wait) {                            
a0004364:	e3530002 	cmp	r3, #2                                        
a0004368:	1a000001 	bne	a0004374 <rtems_termios_refill_transmitter+0x108>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
a000436c:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
a0004370:	eb0002f8 	bl	a0004f58 <rtems_semaphore_release>             
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
a0004374:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
a0004378:	e1560003 	cmp	r6, r3                                        
a000437c:	1a000009 	bne	a00043a8 <rtems_termios_refill_transmitter+0x13c>
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
a0004380:	e59430d4 	ldr	r3, [r4, #212]	; 0xd4                         
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
a0004384:	e3a05000 	mov	r5, #0                                        
a0004388:	e5845094 	str	r5, [r4, #148]	; 0x94                         
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
a000438c:	e1530005 	cmp	r3, r5                                        
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
      nToSend = 0;                                                    
a0004390:	01a05003 	moveq	r5, r3                                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
a0004394:	0a000020 	beq	a000441c <rtems_termios_refill_transmitter+0x1b0>
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
a0004398:	e2840030 	add	r0, r4, #48	; 0x30                            <== NOT EXECUTED
a000439c:	e59410d8 	ldr	r1, [r4, #216]	; 0xd8                         <== NOT EXECUTED
a00043a0:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a00043a4:	ea00001c 	b	a000441c <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))               
a00043a8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
a00043ac:	e2033e21 	and	r3, r3, #528	; 0x210                          
a00043b0:	e3530e21 	cmp	r3, #528	; 0x210                              
a00043b4:	1a000008 	bne	a00043dc <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);                                 
a00043b8:	ebfff9c2 	bl	a0002ac8 <arm_interrupt_disable>               <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
a00043bc:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
a00043c0:	e3833020 	orr	r3, r3, #32                                   <== NOT EXECUTED
a00043c4:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
a00043c8:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
a00043cc:	e5843094 	str	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
a00043d0:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
a00043d4:	e3a05000 	mov	r5, #0                                        <== NOT EXECUTED
a00043d8:	ea00000f 	b	a000441c <rtems_termios_refill_transmitter+0x1b0><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
a00043dc:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
        nToSend = 1;                                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
a00043e0:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         
a00043e4:	e5940010 	ldr	r0, [r4, #16]                                 
      nToSend = 0;                                                    
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
a00043e8:	e1560003 	cmp	r6, r3                                        
        nToSend = tty->rawOutBuf.Size - newTail;                      
a00043ec:	85945088 	ldrhi	r5, [r4, #136]	; 0x88                       
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
a00043f0:	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)) {                   
a00043f4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
        nToSend = 1;                                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
a00043f8:	e0811006 	add	r1, r1, r6                                    
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
a00043fc:	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)) {                   
a0004400:	e3130c06 	tst	r3, #1536	; 0x600                             
        nToSend = 1;                                                  
a0004404:	13a05001 	movne	r5, #1                                      
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
a0004408:	e3a03001 	mov	r3, #1                                        
a000440c:	e5843094 	str	r3, [r4, #148]	; 0x94                         
      (*tty->device.write)(                                           
a0004410:	e1a02005 	mov	r2, r5                                        
a0004414:	e59430a4 	ldr	r3, [r4, #164]	; 0xa4                         
a0004418:	e12fff33 	blx	r3                                            
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
a000441c:	e5846084 	str	r6, [r4, #132]	; 0x84                         
a0004420:	ea000000 	b	a0004428 <rtems_termios_refill_transmitter+0x1bc>
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
a0004424:	e3a05000 	mov	r5, #0                                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
a0004428:	e1a00005 	mov	r0, r5                                        
a000442c:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

a0004204 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
a0004204:	e92d40f3 	push	{r0, r1, r4, r5, r6, r7, lr}                 
a0004208:	e1a04000 	mov	r4, r0                                        
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
a000420c:	e3a05000 	mov	r5, #0                                        
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
a0004210:	e28d6007 	add	r6, sp, #7                                    
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
a0004214:	e1a0300d 	mov	r3, sp                                        
a0004218:	e3a00003 	mov	r0, #3                                        
a000421c:	e3a01002 	mov	r1, #2                                        
a0004220:	e3a02000 	mov	r2, #0                                        
a0004224:	eb000197 	bl	a0004888 <rtems_event_receive>                 
      (TERMIOS_RX_PROC_EVENT | TERMIOS_RX_TERMINATE_EVENT),           
      RTEMS_EVENT_ANY | RTEMS_WAIT,                                   
      RTEMS_NO_TIMEOUT,                                               
      &the_event                                                      
    );                                                                
    if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {              
a0004228:	e59d3000 	ldr	r3, [sp]                                      
a000422c:	e3130001 	tst	r3, #1                                        
a0004230:	0a000002 	beq	a0004240 <rtems_termios_rxdaemon+0x3c>        
      tty->rxTaskId = 0;                                              
a0004234:	e58450c4 	str	r5, [r4, #196]	; 0xc4                         <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
a0004238:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a000423c:	eb0003be 	bl	a000513c <rtems_task_delete>                   <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
a0004240:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
a0004244:	e5940010 	ldr	r0, [r4, #16]                                 
a0004248:	e12fff33 	blx	r3                                            
    if (c != EOF) {                                                   
a000424c:	e3700001 	cmn	r0, #1                                        
a0004250:	0affffef 	beq	a0004214 <rtems_termios_rxdaemon+0x10>        
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
a0004254:	e5cd0007 	strb	r0, [sp, #7]                                 
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
a0004258:	e1a01006 	mov	r1, r6                                        
a000425c:	e1a00004 	mov	r0, r4                                        
a0004260:	e3a02001 	mov	r2, #1                                        
a0004264:	ebffff40 	bl	a0003f6c <rtems_termios_enqueue_raw_characters>
a0004268:	eaffffe9 	b	a0004214 <rtems_termios_rxdaemon+0x10>          
                                                                      

a0004438 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
a0004438:	e92d40f1 	push	{r0, r4, r5, r6, r7, lr}                     
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
a000443c:	e59f6058 	ldr	r6, [pc, #88]	; a000449c <rtems_termios_txdaemon+0x64>
                                                                      
/*                                                                    
 * this task actually processes any transmit events                   
 */                                                                   
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{                                                                     
a0004440:	e1a04000 	mov	r4, r0                                        
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
a0004444:	e3a05000 	mov	r5, #0                                        
a0004448:	e1a0300d 	mov	r3, sp                                        
a000444c:	e3a00003 	mov	r0, #3                                        
a0004450:	e3a01002 	mov	r1, #2                                        
a0004454:	e3a02000 	mov	r2, #0                                        
a0004458:	eb00010a 	bl	a0004888 <rtems_event_receive>                 
       (TERMIOS_TX_START_EVENT | TERMIOS_TX_TERMINATE_EVENT),         
       RTEMS_EVENT_ANY | RTEMS_WAIT,                                  
       RTEMS_NO_TIMEOUT,                                              
       &the_event                                                     
    );                                                                
    if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {              
a000445c:	e59d3000 	ldr	r3, [sp]                                      
a0004460:	e3130001 	tst	r3, #1                                        
a0004464:	0a000002 	beq	a0004474 <rtems_termios_txdaemon+0x3c>        
      tty->txTaskId = 0;                                              
a0004468:	e58450c8 	str	r5, [r4, #200]	; 0xc8                         
      rtems_task_delete(RTEMS_SELF);                                  
a000446c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0004470:	eb000331 	bl	a000513c <rtems_task_delete>                   <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
a0004474:	e59430cc 	ldr	r3, [r4, #204]	; 0xcc                         
a0004478:	e0863283 	add	r3, r6, r3, lsl #5                            
a000447c:	e5933014 	ldr	r3, [r3, #20]                                 
a0004480:	e3530000 	cmp	r3, #0                                        
a0004484:	0a000001 	beq	a0004490 <rtems_termios_txdaemon+0x58>        
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
a0004488:	e1a00004 	mov	r0, r4                                        
a000448c:	e12fff33 	blx	r3                                            <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
a0004490:	e1a00004 	mov	r0, r4                                        
a0004494:	ebffff74 	bl	a000426c <rtems_termios_refill_transmitter>    
  }                                                                   
a0004498:	eaffffea 	b	a0004448 <rtems_termios_txdaemon+0x10>          
                                                                      

a0003b70 <rtems_termios_write>: rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
a0003b70:	e5903000 	ldr	r3, [r0]                                      
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
a0003b74:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
a0003b78:	e5935034 	ldr	r5, [r3, #52]	; 0x34                          
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a0003b7c:	e3a01000 	mov	r1, #0                                        
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
a0003b80:	e1a04000 	mov	r4, r0                                        
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a0003b84:	e1a02001 	mov	r2, r1                                        
a0003b88:	e5950018 	ldr	r0, [r5, #24]                                 
a0003b8c:	eb0004ab 	bl	a0004e40 <rtems_semaphore_obtain>              
  if (sc != RTEMS_SUCCESSFUL)                                         
a0003b90:	e2506000 	subs	r6, r0, #0                                   
a0003b94:	1a00001f 	bne	a0003c18 <rtems_termios_write+0xa8>           
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
a0003b98:	e59520cc 	ldr	r2, [r5, #204]	; 0xcc                         
a0003b9c:	e59f307c 	ldr	r3, [pc, #124]	; a0003c20 <rtems_termios_write+0xb0>
a0003ba0:	e0833282 	add	r3, r3, r2, lsl #5                            
a0003ba4:	e593300c 	ldr	r3, [r3, #12]                                 
a0003ba8:	e3530000 	cmp	r3, #0                                        
a0003bac:	0a000004 	beq	a0003bc4 <rtems_termios_write+0x54>           
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
a0003bb0:	e1a00005 	mov	r0, r5                                        
a0003bb4:	e1a01004 	mov	r1, r4                                        
a0003bb8:	e12fff33 	blx	r3                                            
a0003bbc:	e1a06000 	mov	r6, r0                                        
a0003bc0:	ea000012 	b	a0003c10 <rtems_termios_write+0xa0>             
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
a0003bc4:	e5953034 	ldr	r3, [r5, #52]	; 0x34                          
a0003bc8:	e3130001 	tst	r3, #1                                        
    uint32_t   count = args->count;                                   
a0003bcc:	15947010 	ldrne	r7, [r4, #16]                               
    char      *buffer = args->buffer;                                 
a0003bd0:	1594800c 	ldrne	r8, [r4, #12]                               
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
a0003bd4:	1a000004 	bne	a0003bec <rtems_termios_write+0x7c>           
a0003bd8:	ea000006 	b	a0003bf8 <rtems_termios_write+0x88>             <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
a0003bdc:	e4d80001 	ldrb	r0, [r8], #1                                 
a0003be0:	e1a01005 	mov	r1, r5                                        
a0003be4:	ebfffe79 	bl	a00035d0 <oproc>                               
a0003be8:	e2477001 	sub	r7, r7, #1                                    
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
a0003bec:	e3570000 	cmp	r7, #0                                        
a0003bf0:	1afffff9 	bne	a0003bdc <rtems_termios_write+0x6c>           
a0003bf4:	ea000003 	b	a0003c08 <rtems_termios_write+0x98>             
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
a0003bf8:	e594000c 	ldr	r0, [r4, #12]                                 <== NOT EXECUTED
a0003bfc:	e5941010 	ldr	r1, [r4, #16]                                 <== NOT EXECUTED
a0003c00:	e1a02005 	mov	r2, r5                                        <== NOT EXECUTED
a0003c04:	ebfffe30 	bl	a00034cc <rtems_termios_puts>                  <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
a0003c08:	e5943010 	ldr	r3, [r4, #16]                                 
a0003c0c:	e5843018 	str	r3, [r4, #24]                                 
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
a0003c10:	e5950018 	ldr	r0, [r5, #24]                                 
a0003c14:	eb0004cf 	bl	a0004f58 <rtems_semaphore_release>             
  return sc;                                                          
}                                                                     
a0003c18:	e1a00006 	mov	r0, r6                                        
a0003c1c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

a00061cc <rtems_verror>: { int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) {
a00061cc:	e3100202 	tst	r0, #536870912	; 0x20000000                   
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
a00061d0:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
a00061d4:	e1a05000 	mov	r5, r0                                        
a00061d8:	e1a08001 	mov	r8, r1                                        
a00061dc:	e1a04002 	mov	r4, r2                                        
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
a00061e0:	0a00000e 	beq	a0006220 <rtems_verror+0x54>                  
    if (rtems_panic_in_progress++)                                    
a00061e4:	e59f212c 	ldr	r2, [pc, #300]	; a0006318 <rtems_verror+0x14c>
a00061e8:	e5923000 	ldr	r3, [r2]                                      
a00061ec:	e2831001 	add	r1, r3, #1                                    
a00061f0:	e3530000 	cmp	r3, #0                                        
a00061f4:	e5821000 	str	r1, [r2]                                      
a00061f8:	0a000003 	beq	a000620c <rtems_verror+0x40>                  
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
a00061fc:	e59f3118 	ldr	r3, [pc, #280]	; a000631c <rtems_verror+0x150><== NOT EXECUTED
a0006200:	e5932000 	ldr	r2, [r3]                                      <== NOT EXECUTED
a0006204:	e2822001 	add	r2, r2, #1                                    <== NOT EXECUTED
a0006208:	e5832000 	str	r2, [r3]                                      <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
a000620c:	e59f3104 	ldr	r3, [pc, #260]	; a0006318 <rtems_verror+0x14c>
a0006210:	e5933000 	ldr	r3, [r3]                                      
a0006214:	e3530002 	cmp	r3, #2                                        
      return 0;                                                       
a0006218:	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)                                  
a000621c:	ca00003b 	bgt	a0006310 <rtems_verror+0x144>                 
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
a0006220:	e59f30f8 	ldr	r3, [pc, #248]	; a0006320 <rtems_verror+0x154>
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
a0006224:	e3c56207 	bic	r6, r5, #1879048192	; 0x70000000              
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
a0006228:	e5933000 	ldr	r3, [r3]                                      
a000622c:	e5930008 	ldr	r0, [r3, #8]                                  
a0006230:	eb002fa9 	bl	a00120dc <fflush>                              
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
a0006234:	e2155101 	ands	r5, r5, #1073741824	; 0x40000000             
a0006238:	0a000001 	beq	a0006244 <rtems_verror+0x78>                  
    local_errno = errno;                                              
a000623c:	eb002eaf 	bl	a0011d00 <__errno>                             
a0006240:	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);          
a0006244:	e59f70d4 	ldr	r7, [pc, #212]	; a0006320 <rtems_verror+0x154>
a0006248:	e1a02004 	mov	r2, r4                                        
a000624c:	e1a01008 	mov	r1, r8                                        
a0006250:	e5973000 	ldr	r3, [r7]                                      
a0006254:	e593000c 	ldr	r0, [r3, #12]                                 
a0006258:	eb004811 	bl	a00182a4 <vfprintf>                            
                                                                      
  if (status)                                                         
a000625c:	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);          
a0006260:	e1a04000 	mov	r4, r0                                        
                                                                      
  if (status)                                                         
a0006264:	0a000008 	beq	a000628c <rtems_verror+0xc0>                  
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
a0006268:	e5973000 	ldr	r3, [r7]                                      
a000626c:	e1a00006 	mov	r0, r6                                        
a0006270:	e593700c 	ldr	r7, [r3, #12]                                 
a0006274:	ebffffd0 	bl	a00061bc <rtems_status_text>                   
a0006278:	e59f10a4 	ldr	r1, [pc, #164]	; a0006324 <rtems_verror+0x158>
a000627c:	e1a02000 	mov	r2, r0                                        
a0006280:	e1a00007 	mov	r0, r7                                        
a0006284:	eb00307a 	bl	a0012474 <fprintf>                             
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
a0006288:	e0844000 	add	r4, r4, r0                                    
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
a000628c:	e3550000 	cmp	r5, #0                                        
a0006290:	0a000015 	beq	a00062ec <rtems_verror+0x120>                 
    if ((local_errno > 0) && *strerror(local_errno))                  
a0006294:	da00000d 	ble	a00062d0 <rtems_verror+0x104>                 
a0006298:	e1a00005 	mov	r0, r5                                        
a000629c:	eb003377 	bl	a0013080 <strerror>                            
a00062a0:	e5d03000 	ldrb	r3, [r0]                                     
a00062a4:	e3530000 	cmp	r3, #0                                        
a00062a8:	0a000008 	beq	a00062d0 <rtems_verror+0x104>                 
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
a00062ac:	e59f306c 	ldr	r3, [pc, #108]	; a0006320 <rtems_verror+0x154>
a00062b0:	e1a00005 	mov	r0, r5                                        
a00062b4:	e5933000 	ldr	r3, [r3]                                      
a00062b8:	e593600c 	ldr	r6, [r3, #12]                                 
a00062bc:	eb00336f 	bl	a0013080 <strerror>                            
a00062c0:	e59f1060 	ldr	r1, [pc, #96]	; a0006328 <rtems_verror+0x15c> 
a00062c4:	e1a02000 	mov	r2, r0                                        
a00062c8:	e1a00006 	mov	r0, r6                                        
a00062cc:	ea000004 	b	a00062e4 <rtems_verror+0x118>                   
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
a00062d0:	e59f3048 	ldr	r3, [pc, #72]	; a0006320 <rtems_verror+0x154> 
a00062d4:	e59f1050 	ldr	r1, [pc, #80]	; a000632c <rtems_verror+0x160> 
a00062d8:	e1a02005 	mov	r2, r5                                        
a00062dc:	e5933000 	ldr	r3, [r3]                                      
a00062e0:	e593000c 	ldr	r0, [r3, #12]                                 
a00062e4:	eb003062 	bl	a0012474 <fprintf>                             
a00062e8:	e0844000 	add	r4, r4, r0                                    
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
a00062ec:	e59f502c 	ldr	r5, [pc, #44]	; a0006320 <rtems_verror+0x154> 
a00062f0:	e59f1038 	ldr	r1, [pc, #56]	; a0006330 <rtems_verror+0x164> 
a00062f4:	e5953000 	ldr	r3, [r5]                                      
a00062f8:	e593000c 	ldr	r0, [r3, #12]                                 
a00062fc:	eb00305c 	bl	a0012474 <fprintf>                             
                                                                      
  (void) fflush(stderr);                                              
a0006300:	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");                             
a0006304:	e0804004 	add	r4, r0, r4                                    
                                                                      
  (void) fflush(stderr);                                              
a0006308:	e593000c 	ldr	r0, [r3, #12]                                 
a000630c:	eb002f72 	bl	a00120dc <fflush>                              
                                                                      
  return chars_written;                                               
}                                                                     
a0006310:	e1a00004 	mov	r0, r4                                        
a0006314:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

a000235c <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
a000235c:	e92d4ff1 	push	{r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}     
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
a0002360:	e59fb0dc 	ldr	fp, [pc, #220]	; a0002444 <scanInt+0xe8>      
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
a0002364:	e59f90dc 	ldr	r9, [pc, #220]	; a0002448 <scanInt+0xec>      
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
a0002368:	e3a04000 	mov	r4, #0                                        
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
a000236c:	e1a05000 	mov	r5, r0                                        
a0002370:	e58d1000 	str	r1, [sp]                                      
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
a0002374:	e3e08102 	mvn	r8, #-2147483648	; 0x80000000                 
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
a0002378:	e1a07004 	mov	r7, r4                                        
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
a000237c:	e3a0a00a 	mov	sl, #10                                       
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
a0002380:	e5953004 	ldr	r3, [r5, #4]                                  
a0002384:	e2433001 	sub	r3, r3, #1                                    
a0002388:	e3530000 	cmp	r3, #0                                        
a000238c:	e5853004 	str	r3, [r5, #4]                                  
a0002390:	a5953000 	ldrge	r3, [r5]                                    
a0002394:	a4d36001 	ldrbge	r6, [r3], #1                               
a0002398:	a5853000 	strge	r3, [r5]                                    
a000239c:	aa000003 	bge	a00023b0 <scanInt+0x54>                       
a00023a0:	e59b0000 	ldr	r0, [fp]                                      <== NOT EXECUTED
a00023a4:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
a00023a8:	eb0034c6 	bl	a000f6c8 <__srget_r>                           <== NOT EXECUTED
a00023ac:	e1a06000 	mov	r6, r0                                        <== NOT EXECUTED
    if (c == ':')                                                     
a00023b0:	e356003a 	cmp	r6, #58	; 0x3a                                
a00023b4:	0a000019 	beq	a0002420 <scanInt+0xc4>                       
      break;                                                          
    if (sign == 0) {                                                  
a00023b8:	e3540000 	cmp	r4, #0                                        
a00023bc:	1a000004 	bne	a00023d4 <scanInt+0x78>                       
      if (c == '-') {                                                 
a00023c0:	e356002d 	cmp	r6, #45	; 0x2d                                
        sign = -1;                                                    
        limit++;                                                      
a00023c4:	02888001 	addeq	r8, r8, #1                                  
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
a00023c8:	03e04000 	mvneq	r4, #0                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
a00023cc:	0affffeb 	beq	a0002380 <scanInt+0x24>                       
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
a00023d0:	e3a04001 	mov	r4, #1                                        
    }                                                                 
    if (!isdigit(c))                                                  
a00023d4:	e5993000 	ldr	r3, [r9]                                      
a00023d8:	e0833006 	add	r3, r3, r6                                    
a00023dc:	e5d30001 	ldrb	r0, [r3, #1]                                 
a00023e0:	e2100004 	ands	r0, r0, #4                                   
a00023e4:	0a000015 	beq	a0002440 <scanInt+0xe4>                       
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
a00023e8:	e1a00008 	mov	r0, r8                                        
a00023ec:	e3a0100a 	mov	r1, #10                                       
a00023f0:	eb003dbe 	bl	a0011af0 <__aeabi_uidiv>                       
a00023f4:	e1570000 	cmp	r7, r0                                        
a00023f8:	8a00000f 	bhi	a000243c <scanInt+0xe0>                       
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
a00023fc:	e2466030 	sub	r6, r6, #48	; 0x30                            
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
a0002400:	1a000004 	bne	a0002418 <scanInt+0xbc>                       
a0002404:	e1a00008 	mov	r0, r8                                        
a0002408:	e3a0100a 	mov	r1, #10                                       
a000240c:	eb003e4f 	bl	a0011d50 <__umodsi3>                           
a0002410:	e1560000 	cmp	r6, r0                                        
a0002414:	8a000008 	bhi	a000243c <scanInt+0xe0>                       
      return 0;                                                       
    i = i * 10 + d;                                                   
a0002418:	e027679a 	mla	r7, sl, r7, r6                                
a000241c:	eaffffd7 	b	a0002380 <scanInt+0x24>                         
  }                                                                   
  if (sign == 0)                                                      
a0002420:	e3540000 	cmp	r4, #0                                        
    return 0;                                                         
a0002424:	01a00004 	moveq	r0, r4                                      
  *val = i * sign;                                                    
a0002428:	10040497 	mulne	r4, r7, r4                                  
a000242c:	159d3000 	ldrne	r3, [sp]                                    
  return 1;                                                           
a0002430:	13a00001 	movne	r0, #1                                      
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
a0002434:	15834000 	strne	r4, [r3]                                    
  return 1;                                                           
a0002438:	ea000000 	b	a0002440 <scanInt+0xe4>                         
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
a000243c:	e3a00000 	mov	r0, #0                                        
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
a0002440:	e8bd8ff8 	pop	{r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}      
                                                                      

a0005710 <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
a0005710:	e3520000 	cmp	r2, #0                                        
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
a0005714:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
a0005718:	e1a04000 	mov	r4, r0                                        
a000571c:	e1a05001 	mov	r5, r1                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
a0005720:	0a00000a 	beq	a0005750 <sigaction+0x40>                     
    *oact = _POSIX_signals_Vectors[ sig ];                            
a0005724:	e3a0300c 	mov	r3, #12                                       
a0005728:	e0030394 	mul	r3, r4, r3                                    
a000572c:	e59f00dc 	ldr	r0, [pc, #220]	; a0005810 <sigaction+0x100>   
a0005730:	e0801003 	add	r1, r0, r3                                    
a0005734:	e7900003 	ldr	r0, [r0, r3]                                  
a0005738:	e1a03002 	mov	r3, r2                                        
a000573c:	e4830004 	str	r0, [r3], #4                                  
a0005740:	e5910004 	ldr	r0, [r1, #4]                                  
a0005744:	e5820004 	str	r0, [r2, #4]                                  
a0005748:	e5912008 	ldr	r2, [r1, #8]                                  
a000574c:	e5832004 	str	r2, [r3, #4]                                  
                                                                      
  if ( !sig )                                                         
a0005750:	e3540000 	cmp	r4, #0                                        
a0005754:	0a000004 	beq	a000576c <sigaction+0x5c>                     
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
a0005758:	e2443001 	sub	r3, r4, #1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
a000575c:	e353001f 	cmp	r3, #31                                       
a0005760:	8a000001 	bhi	a000576c <sigaction+0x5c>                     
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
a0005764:	e3540009 	cmp	r4, #9                                        
a0005768:	1a000004 	bne	a0005780 <sigaction+0x70>                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
a000576c:	eb00218a 	bl	a000dd9c <__errno>                             
a0005770:	e3a03016 	mov	r3, #22                                       
a0005774:	e5803000 	str	r3, [r0]                                      
a0005778:	e3e00000 	mvn	r0, #0                                        
a000577c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
a0005780:	e3550000 	cmp	r5, #0                                        
a0005784:	0a00001f 	beq	a0005808 <sigaction+0xf8>                     
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
a0005788:	e10f7000 	mrs	r7, CPSR                                      
a000578c:	e3873080 	orr	r3, r7, #128	; 0x80                           
a0005790:	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 ) {                             
a0005794:	e5953008 	ldr	r3, [r5, #8]                                  
a0005798:	e59f6070 	ldr	r6, [pc, #112]	; a0005810 <sigaction+0x100>   
a000579c:	e3530000 	cmp	r3, #0                                        
a00057a0:	1a000009 	bne	a00057cc <sigaction+0xbc>                     
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
a00057a4:	e283300c 	add	r3, r3, #12                                   
a00057a8:	e0040493 	mul	r4, r3, r4                                    
a00057ac:	e59f1060 	ldr	r1, [pc, #96]	; a0005814 <sigaction+0x104>    
a00057b0:	e0863004 	add	r3, r6, r4                                    
a00057b4:	e0812004 	add	r2, r1, r4                                    
a00057b8:	e7911004 	ldr	r1, [r1, r4]                                  
a00057bc:	e7861004 	str	r1, [r6, r4]                                  
a00057c0:	e9920006 	ldmib	r2, {r1, r2}                                
a00057c4:	e9830006 	stmib	r3, {r1, r2}                                
a00057c8:	ea00000b 	b	a00057fc <sigaction+0xec>                       
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
a00057cc:	e1a00004 	mov	r0, r4                                        
a00057d0:	eb0015cd 	bl	a000af0c <_POSIX_signals_Clear_process_signals>
         _POSIX_signals_Vectors[ sig ] = *act;                        
a00057d4:	e3a0300c 	mov	r3, #12                                       
a00057d8:	e0040493 	mul	r4, r3, r4                                    
a00057dc:	e1a03005 	mov	r3, r5                                        
a00057e0:	e4931004 	ldr	r1, [r3], #4                                  
a00057e4:	e0862004 	add	r2, r6, r4                                    
a00057e8:	e7861004 	str	r1, [r6, r4]                                  
a00057ec:	e5951004 	ldr	r1, [r5, #4]                                  
a00057f0:	e5821004 	str	r1, [r2, #4]                                  
a00057f4:	e5933004 	ldr	r3, [r3, #4]                                  
a00057f8:	e5823008 	str	r3, [r2, #8]                                  
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
a00057fc:	e129f007 	msr	CPSR_fc, r7                                   
   *      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;                                                           
a0005800:	e3a00000 	mov	r0, #0                                        
a0005804:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
a0005808:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
}                                                                     
a000580c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

a0007e20 <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
a0007e20:	e92d4010 	push	{r4, lr}                                     
a0007e24:	e1a04001 	mov	r4, r1                                        
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
a0007e28:	e3a01000 	mov	r1, #0                                        
a0007e2c:	e1a02001 	mov	r2, r1                                        
a0007e30:	ebffff84 	bl	a0007c48 <sigtimedwait>                        
                                                                      
  if ( status != -1 ) {                                               
a0007e34:	e3700001 	cmn	r0, #1                                        
a0007e38:	0a000004 	beq	a0007e50 <sigwait+0x30>                       
    if ( sig )                                                        
a0007e3c:	e3540000 	cmp	r4, #0                                        
a0007e40:	0a000005 	beq	a0007e5c <sigwait+0x3c>                       
      *sig = status;                                                  
a0007e44:	e5840000 	str	r0, [r4]                                      
    return 0;                                                         
a0007e48:	e3a00000 	mov	r0, #0                                        
a0007e4c:	e8bd8010 	pop	{r4, pc}                                      
  }                                                                   
                                                                      
  return errno;                                                       
a0007e50:	eb0020b1 	bl	a001011c <__errno>                             
a0007e54:	e5900000 	ldr	r0, [r0]                                      
a0007e58:	e8bd8010 	pop	{r4, pc}                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
a0007e5c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
a0007e60:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

a0003b14 <siproc>: int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
a0003b14:	e591203c 	ldr	r2, [r1, #60]	; 0x3c                          
a0003b18:	e59f304c 	ldr	r3, [pc, #76]	; a0003b6c <siproc+0x58>        
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
a0003b1c:	e92d4030 	push	{r4, r5, lr}                                 
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
a0003b20:	e0023003 	and	r3, r2, r3                                    
a0003b24:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
a0003b28:	e1a04001 	mov	r4, r1                                        
a0003b2c:	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)) {
a0003b30:	0a00000b 	beq	a0003b64 <siproc+0x50>                        
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
a0003b34:	e5910018 	ldr	r0, [r1, #24]                                 
a0003b38:	e3a01000 	mov	r1, #0                                        
a0003b3c:	e1a02001 	mov	r2, r1                                        
a0003b40:	eb0004be 	bl	a0004e40 <rtems_semaphore_obtain>              
    i = iproc (c, tty);                                               
a0003b44:	e1a01004 	mov	r1, r4                                        
a0003b48:	e1a00005 	mov	r0, r5                                        
a0003b4c:	ebffff88 	bl	a0003974 <iproc>                               
a0003b50:	e1a05000 	mov	r5, r0                                        
    rtems_semaphore_release (tty->osem);                              
a0003b54:	e5940018 	ldr	r0, [r4, #24]                                 
a0003b58:	eb0004fe 	bl	a0004f58 <rtems_semaphore_release>             
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
a0003b5c:	e1a00005 	mov	r0, r5                                        
a0003b60:	e8bd8030 	pop	{r4, r5, pc}                                  
a0003b64:	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);                                               
a0003b68:	eaffff81 	b	a0003974 <iproc>                                <== NOT EXECUTED
                                                                      

a000574c <unmount>: */ int unmount( const char *path ) {
a000574c:	e92d4070 	push	{r4, r5, r6, lr}                             
a0005750:	e24dd018 	sub	sp, sp, #24                                   
a0005754:	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 ) )
a0005758:	eb0025ef 	bl	a000ef1c <strlen>                              
a000575c:	e28d4004 	add	r4, sp, #4                                    
a0005760:	e3a03001 	mov	r3, #1                                        
a0005764:	e1a01000 	mov	r1, r0                                        
a0005768:	e58d3000 	str	r3, [sp]                                      
a000576c:	e1a00005 	mov	r0, r5                                        
a0005770:	e3a02000 	mov	r2, #0                                        
a0005774:	e1a03004 	mov	r3, r4                                        
a0005778:	ebfff464 	bl	a0002910 <rtems_filesystem_evaluate_path>      
a000577c:	e3500000 	cmp	r0, #0                                        
a0005780:	1a000040 	bne	a0005888 <unmount+0x13c>                      
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
a0005784:	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 ){                 
a0005788:	e59d3004 	ldr	r3, [sp, #4]                                  
a000578c:	e595201c 	ldr	r2, [r5, #28]                                 
a0005790:	e1520003 	cmp	r2, r3                                        
a0005794:	0a000004 	beq	a00057ac <unmount+0x60>                       
    rtems_filesystem_freenode( &loc );                                
a0005798:	e1a00004 	mov	r0, r4                                        
a000579c:	ebfff48b 	bl	a00029d0 <rtems_filesystem_freenode>           
    rtems_set_errno_and_return_minus_one( EACCES );                   
a00057a0:	eb002065 	bl	a000d93c <__errno>                             
a00057a4:	e3a0300d 	mov	r3, #13                                       
a00057a8:	ea000011 	b	a00057f4 <unmount+0xa8>                         
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
a00057ac:	e1a00004 	mov	r0, r4                                        
a00057b0:	ebfff486 	bl	a00029d0 <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 )                
a00057b4:	e59f30d8 	ldr	r3, [pc, #216]	; a0005894 <unmount+0x148>     
a00057b8:	e5933000 	ldr	r3, [r3]                                      
a00057bc:	e5933014 	ldr	r3, [r3, #20]                                 
a00057c0:	e1530005 	cmp	r3, r5                                        
a00057c4:	0a000008 	beq	a00057ec <unmount+0xa0>                       
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
a00057c8:	e59f00c8 	ldr	r0, [pc, #200]	; a0005898 <unmount+0x14c>     
a00057cc:	e595102c 	ldr	r1, [r5, #44]	; 0x2c                          
a00057d0:	ebfff6b1 	bl	a000329c <rtems_filesystem_mount_iterate>      
a00057d4:	e3500000 	cmp	r0, #0                                        
a00057d8:	1a000003 	bne	a00057ec <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 )             
a00057dc:	e1a00005 	mov	r0, r5                                        
a00057e0:	ebfff562 	bl	a0002d70 <rtems_libio_is_open_files_in_fs>     
a00057e4:	e3500001 	cmp	r0, #1                                        
a00057e8:	1a000003 	bne	a00057fc <unmount+0xb0>                       
    rtems_set_errno_and_return_minus_one( EBUSY );                    
a00057ec:	eb002052 	bl	a000d93c <__errno>                             
a00057f0:	e3a03010 	mov	r3, #16                                       
a00057f4:	e5803000 	str	r3, [r0]                                      
a00057f8:	ea000022 	b	a0005888 <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 )             
a00057fc:	e5953014 	ldr	r3, [r5, #20]                                 
a0005800:	e1a00005 	mov	r0, r5                                        
a0005804:	e5933028 	ldr	r3, [r3, #40]	; 0x28                          
a0005808:	e12fff33 	blx	r3                                            
a000580c:	e2506000 	subs	r6, r0, #0                                   
a0005810:	1a00001c 	bne	a0005888 <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){          
a0005814:	e5953028 	ldr	r3, [r5, #40]	; 0x28                          
a0005818:	e1a00005 	mov	r0, r5                                        
a000581c:	e593302c 	ldr	r3, [r3, #44]	; 0x2c                          
a0005820:	e12fff33 	blx	r3                                            
a0005824:	e2504000 	subs	r4, r0, #0                                   
a0005828:	0a000007 	beq	a000584c <unmount+0x100>                      
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
a000582c:	e5953014 	ldr	r3, [r5, #20]                                 <== NOT EXECUTED
a0005830:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
a0005834:	e5933020 	ldr	r3, [r3, #32]                                 <== NOT EXECUTED
a0005838:	e12fff33 	blx	r3                                            <== NOT EXECUTED
a000583c:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
a0005840:	0a000010 	beq	a0005888 <unmount+0x13c>                      <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
a0005844:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
a0005848:	eb0003ca 	bl	a0006778 <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 );
a000584c:	e59f6048 	ldr	r6, [pc, #72]	; a000589c <unmount+0x150>      
a0005850:	e1a01004 	mov	r1, r4                                        
a0005854:	e1a02004 	mov	r2, r4                                        
a0005858:	e5960000 	ldr	r0, [r6]                                      
a000585c:	eb000242 	bl	a000616c <rtems_semaphore_obtain>              
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
a0005860:	e1a00005 	mov	r0, r5                                        
a0005864:	eb00048c 	bl	a0006a9c <_Chain_Extract>                      
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
a0005868:	e5960000 	ldr	r0, [r6]                                      
a000586c:	eb000284 	bl	a0006284 <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 );                          
a0005870:	e2850008 	add	r0, r5, #8                                    
a0005874:	ebfff455 	bl	a00029d0 <rtems_filesystem_freenode>           
  free( mt_entry );                                                   
a0005878:	e1a00005 	mov	r0, r5                                        
a000587c:	ebfff458 	bl	a00029e4 <free>                                
                                                                      
  return 0;                                                           
a0005880:	e1a00004 	mov	r0, r4                                        
a0005884:	ea000000 	b	a000588c <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;                                                        
a0005888:	e3e00000 	mvn	r0, #0                                        
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
a000588c:	e28dd018 	add	sp, sp, #24                                   
a0005890:	e8bd8070 	pop	{r4, r5, r6, pc}