RTEMS 4.11
Annotated Report
Sat Nov 27 13:53:00 2010

000093f4 <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 ) {                                              
    93f4:	e5903000 	ldr	r3, [r0]                                      
    93f8:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
    93fc:	e5902010 	ldr	r2, [r0, #16]                                 
  switch( node->type ) {                                              
    9400:	e2433001 	sub	r3, r3, #1                                    
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
    9404:	e5922034 	ldr	r2, [r2, #52]	; 0x34                          
  switch( node->type ) {                                              
    9408:	e3530006 	cmp	r3, #6                                        
    940c:	979ff103 	ldrls	pc, [pc, r3, lsl #2]                        
    9410:	ea000008 	b	9438 <IMFS_Set_handlers+0x44>                   <== NOT EXECUTED
    9414:	00009460 	.word	0x00009460                                  <== NOT EXECUTED
    9418:	00009470 	.word	0x00009470                                  <== NOT EXECUTED
    941c:	00009450 	.word	0x00009450                                  <== NOT EXECUTED
    9420:	00009450 	.word	0x00009450                                  <== NOT EXECUTED
    9424:	00009440 	.word	0x00009440                                  <== NOT EXECUTED
    9428:	00009440 	.word	0x00009440                                  <== NOT EXECUTED
    942c:	00009430 	.word	0x00009430                                  <== NOT EXECUTED
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
    9430:	e5923010 	ldr	r3, [r2, #16]                                 
    9434:	e5803008 	str	r3, [r0, #8]                                  
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    9438:	e3a00000 	mov	r0, #0                                        
    943c:	e12fff1e 	bx	lr                                             
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
    9440:	e5923008 	ldr	r3, [r2, #8]                                  
    9444:	e5803008 	str	r3, [r0, #8]                                  
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    9448:	e3a00000 	mov	r0, #0                                        
    944c:	e12fff1e 	bx	lr                                             
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
    9450:	e59f3028 	ldr	r3, [pc, #40]	; 9480 <IMFS_Set_handlers+0x8c> 
    9454:	e5803008 	str	r3, [r0, #8]                                  
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    9458:	e3a00000 	mov	r0, #0                                        
    945c:	e12fff1e 	bx	lr                                             
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
  switch( node->type ) {                                              
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
    9460:	e592300c 	ldr	r3, [r2, #12]                                 
    9464:	e5803008 	str	r3, [r0, #8]                                  
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    9468:	e3a00000 	mov	r0, #0                                        
    946c:	e12fff1e 	bx	lr                                             
  switch( node->type ) {                                              
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
    9470:	e59f300c 	ldr	r3, [pc, #12]	; 9484 <IMFS_Set_handlers+0x90> 
    9474:	e5803008 	str	r3, [r0, #8]                                  
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
    9478:	e3a00000 	mov	r0, #0                                        
    947c:	e12fff1e 	bx	lr                                             
                                                                      

0000953c <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
    953c:	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 ) ) {                       
    9540:	e3d25007 	bics	r5, r2, #7                                   
  const char                        *pathname,     /* IN     */       
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
    9544:	e24dd040 	sub	sp, sp, #64	; 0x40                            
    9548:	e58d2000 	str	r2, [sp]                                      
    954c:	e1a0a000 	mov	sl, r0                                        
    9550:	e1a04001 	mov	r4, r1                                        
    9554:	e1a07003 	mov	r7, r3                                        
  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 ) ) {                       
    9558:	1a000081 	bne	9764 <IMFS_eval_path+0x228>                   
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
    955c:	e5936000 	ldr	r6, [r3]                                      
    9560:	e28d8004 	add	r8, sp, #4                                    
    9564:	e28d903c 	add	r9, sp, #60	; 0x3c                            
   *  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 );  
    9568:	e1a02008 	mov	r2, r8                                        
    956c:	e1a03009 	mov	r3, r9                                        
    9570:	e08a0005 	add	r0, sl, r5                                    
    9574:	e1a01004 	mov	r1, r4                                        
    9578:	eb0001e1 	bl	9d04 <IMFS_get_token>                          
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
    957c:	e5973000 	ldr	r3, [r7]                                      
    9580:	e3530000 	cmp	r3, #0                                        
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    9584:	e1a0b000 	mov	fp, r0                                        
    pathnamelen -= len;                                               
    9588:	e59d203c 	ldr	r2, [sp, #60]	; 0x3c                          
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
    958c:	0a00004e 	beq	96cc <IMFS_eval_path+0x190>                   
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
    9590:	e3500000 	cmp	r0, #0                                        
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
    9594:	e0624004 	rsb	r4, r2, r4                                    
    i += len;                                                         
    9598:	e0855002 	add	r5, r5, r2                                    
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
    959c:	1a00000f 	bne	95e0 <IMFS_eval_path+0xa4>                    
   *  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 ) {                               
    95a0:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    95a4:	e3520001 	cmp	r2, #1                                        
    95a8:	0a000068 	beq	9750 <IMFS_eval_path+0x214>                   
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
    95ac:	e1a00007 	mov	r0, r7                                        
    95b0:	ebffff8f 	bl	93f4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    95b4:	e59d1000 	ldr	r1, [sp]                                      
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
    95b8:	e1a06000 	mov	r6, r0                                        
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    95bc:	e1a00007 	mov	r0, r7                                        
    95c0:	ebffffb0 	bl	9488 <IMFS_evaluate_permission>                
    95c4:	e3500000 	cmp	r0, #0                                        
    95c8:	1a000036 	bne	96a8 <IMFS_eval_path+0x16c>                   
    rtems_set_errno_and_return_minus_one( EACCES );                   
    95cc:	eb00116d 	bl	db88 <__errno>                                 
    95d0:	e3a0300d 	mov	r3, #13                                       
    95d4:	e5803000 	str	r3, [r0]                                      
    95d8:	e3e06000 	mvn	r6, #0                                        
    95dc:	ea000031 	b	96a8 <IMFS_eval_path+0x16c>                     
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
    95e0:	e596104c 	ldr	r1, [r6, #76]	; 0x4c                          
    95e4:	e3510001 	cmp	r1, #1                                        
    95e8:	0a000031 	beq	96b4 <IMFS_eval_path+0x178>                   
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
    95ec:	e35b0003 	cmp	fp, #3                                        
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
    95f0:	e1a06003 	mov	r6, r3                                        
                                                                      
    switch( type ) {                                                  
    95f4:	0a000006 	beq	9614 <IMFS_eval_path+0xd8>                    
    95f8:	e35b0004 	cmp	fp, #4                                        
    95fc:	0a000025 	beq	9698 <IMFS_eval_path+0x15c>                   
    9600:	e35b0002 	cmp	fp, #2                                        
    9604:	0a000013 	beq	9658 <IMFS_eval_path+0x11c>                   
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
    9608:	e35b0004 	cmp	fp, #4                                        
    960c:	1affffd5 	bne	9568 <IMFS_eval_path+0x2c>                    
    9610:	eaffffe2 	b	95a0 <IMFS_eval_path+0x64>                      <== NOT EXECUTED
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
    9614:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    9618:	e3530003 	cmp	r3, #3                                        
    961c:	0a00002f 	beq	96e0 <IMFS_eval_path+0x1a4>                   
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
    9620:	e3530004 	cmp	r3, #4                                        
    9624:	0a000058 	beq	978c <IMFS_eval_path+0x250>                   
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
    9628:	e3530001 	cmp	r3, #1                                        
    962c:	1a000051 	bne	9778 <IMFS_eval_path+0x23c>                   
                                                                      
        /*                                                            
         *  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 ) {                   
    9630:	e596e05c 	ldr	lr, [r6, #92]	; 0x5c                          
    9634:	e35e0000 	cmp	lr, #0                                        
    9638:	1a000047 	bne	975c <IMFS_eval_path+0x220>                   
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
    963c:	e1a00006 	mov	r0, r6                                        
    9640:	e1a01008 	mov	r1, r8                                        
    9644:	eb00018b 	bl	9c78 <IMFS_find_match_in_dir>                  
        if ( !node )                                                  
    9648:	e2506000 	subs	r6, r0, #0                                   
    964c:	0a00001e 	beq	96cc <IMFS_eval_path+0x190>                   
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
    9650:	e5876000 	str	r6, [r7]                                      
    9654:	eaffffc3 	b	9568 <IMFS_eval_path+0x2c>                      
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
    9658:	e59f1154 	ldr	r1, [pc, #340]	; 97b4 <IMFS_eval_path+0x278>  
    965c:	e5912000 	ldr	r2, [r1]                                      
    9660:	e5922018 	ldr	r2, [r2, #24]                                 
    9664:	e1520003 	cmp	r2, r3                                        
    9668:	0affffbe 	beq	9568 <IMFS_eval_path+0x2c>                    
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
    966c:	e597e010 	ldr	lr, [r7, #16]                                 
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
    9670:	e59e201c 	ldr	r2, [lr, #28]                                 
    9674:	e1520003 	cmp	r2, r3                                        
    9678:	0a00001e 	beq	96f8 <IMFS_eval_path+0x1bc>                   
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
    967c:	e5936008 	ldr	r6, [r3, #8]                                  
    9680:	e3560000 	cmp	r6, #0                                        
    9684:	1afffff1 	bne	9650 <IMFS_eval_path+0x114>                   
            rtems_set_errno_and_return_minus_one( ENOENT );           
    9688:	eb00113e 	bl	db88 <__errno>                                 
    968c:	e3e06000 	mvn	r6, #0                                        
    9690:	e580b000 	str	fp, [r0]                                      
    9694:	ea000003 	b	96a8 <IMFS_eval_path+0x16c>                     
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
    9698:	eb00113a 	bl	db88 <__errno>                                 
    969c:	e3a0305b 	mov	r3, #91	; 0x5b                                
    96a0:	e5803000 	str	r3, [r0]                                      
    96a4:	e3e06000 	mvn	r6, #0                                        
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    rtems_set_errno_and_return_minus_one( EACCES );                   
                                                                      
  return result;                                                      
}                                                                     
    96a8:	e1a00006 	mov	r0, r6                                        
    96ac:	e28dd040 	add	sp, sp, #64	; 0x40                            
    96b0:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
    96b4:	e1a00007 	mov	r0, r7                                        
    96b8:	ebffff72 	bl	9488 <IMFS_evaluate_permission>                
    96bc:	e3500000 	cmp	r0, #0                                        
    96c0:	0affffc1 	beq	95cc <IMFS_eval_path+0x90>                    
    96c4:	e5973000 	ldr	r3, [r7]                                      
    96c8:	eaffffc7 	b	95ec <IMFS_eval_path+0xb0>                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
        if ( !node )                                                  
          rtems_set_errno_and_return_minus_one( ENOENT );             
    96cc:	eb00112d 	bl	db88 <__errno>                                 
    96d0:	e3a03002 	mov	r3, #2                                        
    96d4:	e5803000 	str	r3, [r0]                                      
    96d8:	e3e06000 	mvn	r6, #0                                        
    96dc:	eafffff1 	b	96a8 <IMFS_eval_path+0x16c>                     
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
          IMFS_evaluate_hard_link( pathloc, 0 );                      
    96e0:	e1a00007 	mov	r0, r7                                        
    96e4:	e3a01000 	mov	r1, #0                                        
    96e8:	ebffff80 	bl	94f0 <IMFS_evaluate_hard_link>                 
          node = pathloc->node_access;                                
    96ec:	e5976000 	ldr	r6, [r7]                                      
    96f0:	e596304c 	ldr	r3, [r6, #76]	; 0x4c                          
    96f4:	eaffffcb 	b	9628 <IMFS_eval_path+0xec>                      
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
    96f8:	e28ee008 	add	lr, lr, #8                                    
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
    96fc:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    9700:	e28d6028 	add	r6, sp, #40	; 0x28                            
    9704:	e8a6000f 	stmia	r6!, {r0, r1, r2, r3}                       
      *pathloc = newloc;                                              
    9708:	e28dc028 	add	ip, sp, #40	; 0x28                            
    970c:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
    9710:	e59ec000 	ldr	ip, [lr]                                      
      *pathloc = newloc;                                              
    9714:	e1a0e007 	mov	lr, r7                                        
    9718:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
    971c:	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;                                              
    9720:	e58ec000 	str	ip, [lr]                                      
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
    9724:	e0610005 	rsb	r0, r1, r5                                    
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
    9728:	e586c000 	str	ip, [r6]                                      
      *pathloc = newloc;                                              
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
    972c:	e08a0000 	add	r0, sl, r0                                    
    9730:	e597c00c 	ldr	ip, [r7, #12]                                 
    9734:	e0841001 	add	r1, r4, r1                                    
    9738:	e59d2000 	ldr	r2, [sp]                                      
    973c:	e1a03007 	mov	r3, r7                                        
    9740:	e1a0e00f 	mov	lr, pc                                        
    9744:	e59cf000 	ldr	pc, [ip]                                      
    9748:	e1a06000 	mov	r6, r0                                        
    974c:	eaffffd5 	b	96a8 <IMFS_eval_path+0x16c>                     
   *                                                                  
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
    9750:	e593e05c 	ldr	lr, [r3, #92]	; 0x5c                          
    9754:	e35e0000 	cmp	lr, #0                                        
    9758:	0affff93 	beq	95ac <IMFS_eval_path+0x70>                    
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
    975c:	e28ee01c 	add	lr, lr, #28                                   
    9760:	eaffffe5 	b	96fc <IMFS_eval_path+0x1c0>                     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
    rtems_set_errno_and_return_minus_one( EIO );                      
    9764:	eb001107 	bl	db88 <__errno>                                 <== NOT EXECUTED
    9768:	e3a03005 	mov	r3, #5                                        <== NOT EXECUTED
    976c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    9770:	e3e06000 	mvn	r6, #0                                        <== NOT EXECUTED
    9774:	eaffffcb 	b	96a8 <IMFS_eval_path+0x16c>                     <== NOT EXECUTED
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
    9778:	eb001102 	bl	db88 <__errno>                                 
    977c:	e3a03014 	mov	r3, #20                                       
    9780:	e5803000 	str	r3, [r0]                                      
    9784:	e3e06000 	mvn	r6, #0                                        
    9788:	eaffffc6 	b	96a8 <IMFS_eval_path+0x16c>                     
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
    978c:	e1a00007 	mov	r0, r7                                        
    9790:	e3a01000 	mov	r1, #0                                        
    9794:	eb000007 	bl	97b8 <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 )                                         
    9798:	e3700001 	cmn	r0, #1                                        
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
    979c:	e1a06000 	mov	r6, r0                                        
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
    97a0:	e5973000 	ldr	r3, [r7]                                      
          if ( result == -1 )                                         
    97a4:	0affffbf 	beq	96a8 <IMFS_eval_path+0x16c>                   
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
    97a8:	e1a06003 	mov	r6, r3                                        
    97ac:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    97b0:	eaffff9c 	b	9628 <IMFS_eval_path+0xec>                      
                                                                      

00009920 <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 */ ) {
    9920:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    9924:	e24dd040 	sub	sp, sp, #64	; 0x40                            
    9928:	e1a06001 	mov	r6, r1                                        
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
    992c:	e5915000 	ldr	r5, [r1]                                      
int IMFS_evaluate_for_make(                                           
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
    9930:	e1a0a000 	mov	sl, r0                                        
    9934:	e58d2000 	str	r2, [sp]                                      
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
    9938:	eb00147c 	bl	eb30 <strlen>                                  
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
    993c:	e3a07000 	mov	r7, #0                                        
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
    9940:	e1a04000 	mov	r4, r0                                        
    9944:	e28d8004 	add	r8, sp, #4                                    
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    9948:	e1a01004 	mov	r1, r4                                        
    994c:	e28d303c 	add	r3, sp, #60	; 0x3c                            
    9950:	e08a0007 	add	r0, sl, r7                                    
    9954:	e1a02008 	mov	r2, r8                                        
    9958:	eb0000e9 	bl	9d04 <IMFS_get_token>                          
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    995c:	e5963000 	ldr	r3, [r6]                                      
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    9960:	e59db03c 	ldr	fp, [sp, #60]	; 0x3c                          
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    9964:	e3530000 	cmp	r3, #0                                        
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    9968:	e1a09000 	mov	r9, r0                                        
    pathlen -= len;                                                   
    996c:	e06b4004 	rsb	r4, fp, r4                                    
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
    9970:	0a000035 	beq	9a4c <IMFS_evaluate_for_make+0x12c>           
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
    9974:	e3500000 	cmp	r0, #0                                        
    9978:	1a000006 	bne	9998 <IMFS_evaluate_for_make+0x78>            
          pathloc->node_access = node;                                
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
    997c:	eb001081 	bl	db88 <__errno>                                 
    9980:	e3a03011 	mov	r3, #17                                       
    9984:	e5803000 	str	r3, [r0]                                      
    9988:	e3e05000 	mvn	r5, #0                                        
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
    rtems_set_errno_and_return_minus_one( EACCES );                   
                                                                      
  return result;                                                      
}                                                                     
    998c:	e1a00005 	mov	r0, r5                                        
    9990:	e28dd040 	add	sp, sp, #64	; 0x40                            
    9994:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
    9998:	e595104c 	ldr	r1, [r5, #76]	; 0x4c                          
    999c:	e3510001 	cmp	r1, #1                                        
    99a0:	0a000044 	beq	9ab8 <IMFS_evaluate_for_make+0x198>           
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
    99a4:	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;                                      
    99a8:	e1a05003 	mov	r5, r3                                        
                                                                      
    switch( type ) {                                                  
    99ac:	e3590004 	cmp	r9, #4                                        
    99b0:	979ff109 	ldrls	pc, [pc, r9, lsl #2]                        
    99b4:	eaffffe3 	b	9948 <IMFS_evaluate_for_make+0x28>              <== NOT EXECUTED
    99b8:	0000997c 	.word	0x0000997c                                  <== NOT EXECUTED
    99bc:	00009948 	.word	0x00009948                                  <== NOT EXECUTED
    99c0:	00009a1c 	.word	0x00009a1c                                  <== NOT EXECUTED
    99c4:	000099cc 	.word	0x000099cc                                  <== NOT EXECUTED
    99c8:	00009a60 	.word	0x00009a60                                  <== NOT EXECUTED
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
    99cc:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    99d0:	e3530003 	cmp	r3, #3                                        
    99d4:	0a00006a 	beq	9b84 <IMFS_evaluate_for_make+0x264>           
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
    99d8:	e3530004 	cmp	r3, #4                                        
    99dc:	0a000068 	beq	9b84 <IMFS_evaluate_for_make+0x264>           
          if ( result == -1 )                                         
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
        if ( !node )                                                  
    99e0:	e3550000 	cmp	r5, #0                                        
    99e4:	0a00005f 	beq	9b68 <IMFS_evaluate_for_make+0x248>           
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
    99e8:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    99ec:	e3530001 	cmp	r3, #1                                        
    99f0:	1a00005c 	bne	9b68 <IMFS_evaluate_for_make+0x248>           
	/*                                                                   
	 * 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 ) {                   
    99f4:	e595c05c 	ldr	ip, [r5, #92]	; 0x5c                          
    99f8:	e35c0000 	cmp	ip, #0                                        
    99fc:	1a00005e 	bne	9b7c <IMFS_evaluate_for_make+0x25c>           
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
    9a00:	e1a00005 	mov	r0, r5                                        
    9a04:	e1a01008 	mov	r1, r8                                        
    9a08:	eb00009a 	bl	9c78 <IMFS_find_match_in_dir>                  
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
    9a0c:	e2505000 	subs	r5, r0, #0                                   
    9a10:	0a000017 	beq	9a74 <IMFS_evaluate_for_make+0x154>           
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
    9a14:	e5865000 	str	r5, [r6]                                      
    9a18:	eaffffca 	b	9948 <IMFS_evaluate_for_make+0x28>              
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
    9a1c:	e59f1180 	ldr	r1, [pc, #384]	; 9ba4 <IMFS_evaluate_for_make+0x284>
    9a20:	e5912000 	ldr	r2, [r1]                                      
    9a24:	e5922018 	ldr	r2, [r2, #24]                                 
    9a28:	e1530002 	cmp	r3, r2                                        
    9a2c:	0affffc5 	beq	9948 <IMFS_evaluate_for_make+0x28>            
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
    9a30:	e596c010 	ldr	ip, [r6, #16]                                 
    9a34:	e59c201c 	ldr	r2, [ip, #28]                                 
    9a38:	e1530002 	cmp	r3, r2                                        
    9a3c:	0a000023 	beq	9ad0 <IMFS_evaluate_for_make+0x1b0>           
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
    9a40:	e5935008 	ldr	r5, [r3, #8]                                  
    9a44:	e3550000 	cmp	r5, #0                                        
    9a48:	1afffff1 	bne	9a14 <IMFS_evaluate_for_make+0xf4>            
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
    if ( !IMFS_is_separator( path[ i ] ) )                            
      rtems_set_errno_and_return_minus_one( ENOENT );                 
    9a4c:	eb00104d 	bl	db88 <__errno>                                 
    9a50:	e3a03002 	mov	r3, #2                                        
    9a54:	e5803000 	str	r3, [r0]                                      
    9a58:	e3e05000 	mvn	r5, #0                                        
    9a5c:	eaffffca 	b	998c <IMFS_evaluate_for_make+0x6c>              
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
    9a60:	eb001048 	bl	db88 <__errno>                                 
    9a64:	e3a0305b 	mov	r3, #91	; 0x5b                                
    9a68:	e5803000 	str	r3, [r0]                                      
    9a6c:	e3e05000 	mvn	r5, #0                                        
    9a70:	eaffffc5 	b	998c <IMFS_evaluate_for_make+0x6c>              
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
    9a74:	e59d303c 	ldr	r3, [sp, #60]	; 0x3c                          
    9a78:	e59d1000 	ldr	r1, [sp]                                      
    9a7c:	e0633007 	rsb	r3, r3, r7                                    
    9a80:	e08a3003 	add	r3, sl, r3                                    
    9a84:	e5813000 	str	r3, [r1]                                      
  /*                                                                  
   * 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++) {                                      
    9a88:	e7da0007 	ldrb	r0, [sl, r7]                                 
    9a8c:	e3500000 	cmp	r0, #0                                        
    9a90:	e08a7007 	add	r7, sl, r7                                    
    9a94:	1a000003 	bne	9aa8 <IMFS_evaluate_for_make+0x188>           
    9a98:	ea000021 	b	9b24 <IMFS_evaluate_for_make+0x204>             
    9a9c:	e5f70001 	ldrb	r0, [r7, #1]!                                
    9aa0:	e3500000 	cmp	r0, #0                                        
    9aa4:	0a00001e 	beq	9b24 <IMFS_evaluate_for_make+0x204>           
    if ( !IMFS_is_separator( path[ i ] ) )                            
    9aa8:	ebffe4d3 	bl	2dfc <rtems_filesystem_is_separator>           
    9aac:	e3500000 	cmp	r0, #0                                        
    9ab0:	1afffff9 	bne	9a9c <IMFS_evaluate_for_make+0x17c>           
    9ab4:	eaffffe4 	b	9a4c <IMFS_evaluate_for_make+0x12c>             
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
    9ab8:	e1a00006 	mov	r0, r6                                        
    9abc:	ebfffe71 	bl	9488 <IMFS_evaluate_permission>                
    9ac0:	e3500000 	cmp	r0, #0                                        
    9ac4:	0a000022 	beq	9b54 <IMFS_evaluate_for_make+0x234>           
    9ac8:	e5963000 	ldr	r3, [r6]                                      
    9acc:	eaffffb4 	b	99a4 <IMFS_evaluate_for_make+0x84>              
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
    9ad0:	e28cc008 	add	ip, ip, #8                                    
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
    9ad4:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    9ad8:	e28d4028 	add	r4, sp, #40	; 0x28                            
    9adc:	e8a4000f 	stmia	r4!, {r0, r1, r2, r3}                       
          *pathloc = newloc;                                          
    9ae0:	e28de028 	add	lr, sp, #40	; 0x28                            
    9ae4:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    9ae8:	e1a0e006 	mov	lr, r6                                        
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
    9aec:	e59cc000 	ldr	ip, [ip]                                      
          *pathloc = newloc;                                          
    9af0:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
    9af4:	e59d003c 	ldr	r0, [sp, #60]	; 0x3c                          
	 * 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;                                          
    9af8:	e58ec000 	str	ip, [lr]                                      
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
    9afc:	e0600007 	rsb	r0, r0, r7                                    
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
    9b00:	e584c000 	str	ip, [r4]                                      
          *pathloc = newloc;                                          
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
    9b04:	e596300c 	ldr	r3, [r6, #12]                                 
    9b08:	e08a0000 	add	r0, sl, r0                                    
    9b0c:	e1a01006 	mov	r1, r6                                        
    9b10:	e59d2000 	ldr	r2, [sp]                                      
    9b14:	e1a0e00f 	mov	lr, pc                                        
    9b18:	e593f004 	ldr	pc, [r3, #4]                                  
    9b1c:	e1a05000 	mov	r5, r0                                        
    9b20:	eaffff99 	b	998c <IMFS_evaluate_for_make+0x6c>              
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
    9b24:	e1a00006 	mov	r0, r6                                        
    9b28:	ebfffe31 	bl	93f4 <IMFS_Set_handlers>                       
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    9b2c:	e5963000 	ldr	r3, [r6]                                      
    9b30:	e593304c 	ldr	r3, [r3, #76]	; 0x4c                          
    9b34:	e3530001 	cmp	r3, #1                                        
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
    9b38:	e1a05000 	mov	r5, r0                                        
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    9b3c:	1a000009 	bne	9b68 <IMFS_evaluate_for_make+0x248>           
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
    9b40:	e1a00006 	mov	r0, r6                                        
    9b44:	e3a01003 	mov	r1, #3                                        
    9b48:	ebfffe4e 	bl	9488 <IMFS_evaluate_permission>                
    9b4c:	e3500000 	cmp	r0, #0                                        
    9b50:	1affff8d 	bne	998c <IMFS_evaluate_for_make+0x6c>            
    rtems_set_errno_and_return_minus_one( EACCES );                   
    9b54:	eb00100b 	bl	db88 <__errno>                                 
    9b58:	e3a0300d 	mov	r3, #13                                       
    9b5c:	e5803000 	str	r3, [r0]                                      
    9b60:	e3e05000 	mvn	r5, #0                                        
    9b64:	eaffff88 	b	998c <IMFS_evaluate_for_make+0x6c>              
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    9b68:	eb001006 	bl	db88 <__errno>                                 
    9b6c:	e3a03014 	mov	r3, #20                                       
    9b70:	e5803000 	str	r3, [r0]                                      
    9b74:	e3e05000 	mvn	r5, #0                                        
    9b78:	eaffff83 	b	998c <IMFS_evaluate_for_make+0x6c>              
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
    9b7c:	e28cc01c 	add	ip, ip, #28                                   
    9b80:	eaffffd3 	b	9ad4 <IMFS_evaluate_for_make+0x1b4>             
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
    9b84:	e1a00006 	mov	r0, r6                                        
    9b88:	e3a01000 	mov	r1, #0                                        
    9b8c:	ebffff2e 	bl	984c <IMFS_evaluate_link>                      
                                                                      
          if ( result == -1 )                                         
    9b90:	e3700001 	cmn	r0, #1                                        
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
    9b94:	e1a05000 	mov	r5, r0                                        
                                                                      
          if ( result == -1 )                                         
    9b98:	0affff7b 	beq	998c <IMFS_evaluate_for_make+0x6c>            
    9b9c:	e5965000 	ldr	r5, [r6]                                      
    9ba0:	eaffff8e 	b	99e0 <IMFS_evaluate_for_make+0xc0>              
                                                                      

00009488 <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 ) )
    9488:	e3d13007 	bics	r3, r1, #7                                   
 */                                                                   
int IMFS_evaluate_permission(                                         
  rtems_filesystem_location_info_t  *node,                            
  int                                flags                            
)                                                                     
{                                                                     
    948c:	e92d4070 	push	{r4, r5, r6, lr}                             
    9490:	e1a05001 	mov	r5, r1                                        
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    9494:	1a000010 	bne	94dc <IMFS_evaluate_permission+0x54>          
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  jnode = node->node_access;                                          
    9498:	e5904000 	ldr	r4, [r0]                                      
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
    949c:	eb000318 	bl	a104 <geteuid>                                 
    94a0:	e1a06000 	mov	r6, r0                                        
  st_gid = getegid();                                                 
    94a4:	eb000311 	bl	a0f0 <getegid>                                 
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    94a8:	e1d433bc 	ldrh	r3, [r4, #60]	; 0x3c                         
    94ac:	e1530006 	cmp	r3, r6                                        
    flags_to_test <<= 6;                                              
    94b0:	01a05305 	lsleq	r5, r5, #6                                  
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    94b4:	0a000002 	beq	94c4 <IMFS_evaluate_permission+0x3c>          
    flags_to_test <<= 6;                                              
  else if ( st_gid == jnode->st_gid )                                 
    94b8:	e1d433be 	ldrh	r3, [r4, #62]	; 0x3e                         
    94bc:	e1530000 	cmp	r3, r0                                        
    flags_to_test <<= 3;                                              
    94c0:	01a05185 	lsleq	r5, r5, #3                                  
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    94c4:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
    94c8:	e0050000 	and	r0, r5, 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 );                    
    94cc:	e1550000 	cmp	r5, r0                                        
    94d0:	13a00000 	movne	r0, #0                                      
    94d4:	03a00001 	moveq	r0, #1                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
    94d8:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  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 );                    
    94dc:	eb0011a9 	bl	db88 <__errno>                                 <== NOT EXECUTED
    94e0:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    94e4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    94e8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    94ec:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      

00009ba8 <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 ) {
    9ba8:	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;     
    9bac:	e1a0c000 	mov	ip, r0                                        
    9bb0:	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                 
)                                                                     
{                                                                     
    9bb4:	e24dd014 	sub	sp, sp, #20                                   
    9bb8:	e1a0e000 	mov	lr, 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;                                   
    9bbc:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    9bc0:	e1a0600d 	mov	r6, sp                                        
    9bc4:	e8a6000f 	stmia	r6!, {r0, r1, r2, r3}                       
    9bc8:	e59c2000 	ldr	r2, [ip]                                      
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
    9bcc:	e3a03000 	mov	r3, #0                                        
    * 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;                                   
    9bd0:	e5862000 	str	r2, [r6]                                      
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
    9bd4:	e58e301c 	str	r3, [lr, #28]                                 
    * 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;                                   
    9bd8:	e1a0500d 	mov	r5, sp                                        
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
    9bdc:	e1a0000d 	mov	r0, sp                                        
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
    9be0:	e5946008 	ldr	r6, [r4, #8]                                  
     loc.node_access = (void *)jnode;                                 
    9be4:	e58d4000 	str	r4, [sp]                                      
     IMFS_Set_handlers( &loc );                                       
    9be8:	ebfffe01 	bl	93f4 <IMFS_Set_handlers>                       
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
    9bec:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
    9bf0:	e3530001 	cmp	r3, #1                                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
    9bf4:	e2842054 	add	r2, r4, #84	; 0x54                            
    9bf8:	1a000010 	bne	9c40 <IMFS_fsunmount+0x98>                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
    9bfc:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
    9c00:	e1530002 	cmp	r3, r2                                        
    9c04:	0a000014 	beq	9c5c <IMFS_fsunmount+0xb4>                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
    9c08:	e3540000 	cmp	r4, #0                                        
    9c0c:	0a000008 	beq	9c34 <IMFS_fsunmount+0x8c>                    
       if ( jnode->type == IMFS_DIRECTORY ) {                         
    9c10:	e594304c 	ldr	r3, [r4, #76]	; 0x4c                          
    9c14:	e3530001 	cmp	r3, #1                                        
    9c18:	1affffef 	bne	9bdc <IMFS_fsunmount+0x34>                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
    9c1c:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
    9c20:	e2842054 	add	r2, r4, #84	; 0x54                            
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
       if ( jnode->type == IMFS_DIRECTORY ) {                         
         if ( jnode_has_children( jnode ) )                           
    9c24:	e1530002 	cmp	r3, r2                                        
    9c28:	0affffeb 	beq	9bdc <IMFS_fsunmount+0x34>                    
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
    9c2c:	e2534000 	subs	r4, r3, #0                                   
    9c30:	1affffe9 	bne	9bdc <IMFS_fsunmount+0x34>                    
                                                                      
   return 0;                                                          
    9c34:	e1a00004 	mov	r0, r4                                        
}                                                                     
    9c38:	e28dd014 	add	sp, sp, #20                                   
    9c3c:	e8bd8070 	pop	{r4, r5, r6, pc}                              
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
        result = IMFS_unlink( NULL, &loc );                           
    9c40:	e1a0100d 	mov	r1, sp                                        
    9c44:	e3a00000 	mov	r0, #0                                        
    9c48:	ebffdf76 	bl	1a28 <IMFS_unlink>                             
        if (result != 0)                                              
    9c4c:	e3500000 	cmp	r0, #0                                        
    9c50:	1a000006 	bne	9c70 <IMFS_fsunmount+0xc8>                    
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
    9c54:	e1a04006 	mov	r4, r6                                        
    9c58:	eaffffea 	b	9c08 <IMFS_fsunmount+0x60>                      
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
    9c5c:	e3a00000 	mov	r0, #0                                        
    9c60:	e1a0100d 	mov	r1, sp                                        
    9c64:	ebffdf6f 	bl	1a28 <IMFS_unlink>                             
        if (result != 0)                                              
    9c68:	e3500000 	cmp	r0, #0                                        
    9c6c:	0afffff8 	beq	9c54 <IMFS_fsunmount+0xac>                    
          return -1;                                                  
    9c70:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    9c74:	eaffffef 	b	9c38 <IMFS_fsunmount+0x90>                      <== NOT EXECUTED
                                                                      

0000c0bc <IMFS_memfile_get_block_pointer>: my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
    c0bc:	e59f3200 	ldr	r3, [pc, #512]	; c2c4 <IMFS_memfile_get_block_pointer+0x208>
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
    c0c0:	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 ) {                                  
    c0c4:	e5934000 	ldr	r4, [r3]                                      
    c0c8:	e1a04124 	lsr	r4, r4, #2                                    
    c0cc:	e2443001 	sub	r3, r4, #1                                    
    c0d0:	e1510003 	cmp	r1, r3                                        
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
    c0d4:	e24dd004 	sub	sp, sp, #4                                    
    c0d8:	e1a05000 	mov	r5, r0                                        
    c0dc:	e1a06002 	mov	r6, r2                                        
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    c0e0:	8a000007 	bhi	c104 <IMFS_memfile_get_block_pointer+0x48>    
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
    c0e4:	e3520000 	cmp	r2, #0                                        
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
    c0e8:	e5900058 	ldr	r0, [r0, #88]	; 0x58                          
                                                                      
    if ( malloc_it ) {                                                
    c0ec:	0a00001c 	beq	c164 <IMFS_memfile_get_block_pointer+0xa8>    
                                                                      
      if ( !p ) {                                                     
    c0f0:	e3500000 	cmp	r0, #0                                        
    c0f4:	0a000041 	beq	c200 <IMFS_memfile_get_block_pointer+0x144>   
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
    c0f8:	e0800101 	add	r0, r0, r1, lsl #2                            
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
    c0fc:	e28dd004 	add	sp, sp, #4                                    
    c100:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    c104:	e0274494 	mla	r7, r4, r4, r4                                
    c108:	e2473001 	sub	r3, r7, #1                                    
    c10c:	e1510003 	cmp	r1, r3                                        
    c110:	8a000016 	bhi	c170 <IMFS_memfile_get_block_pointer+0xb4>    
    my_block -= FIRST_DOUBLY_INDIRECT;                                
    c114:	e0647001 	rsb	r7, r4, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    c118:	e1a00007 	mov	r0, r7                                        
    c11c:	e1a01004 	mov	r1, r4                                        
    c120:	eb00147d 	bl	1131c <__umodsi3>                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    c124:	e1a01004 	mov	r1, r4                                        
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    c128:	e1a08000 	mov	r8, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    c12c:	e1a00007 	mov	r0, r7                                        
    c130:	eb001433 	bl	11204 <__aeabi_uidiv>                          
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
    c134:	e3560000 	cmp	r6, #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;                     
    c138:	e1a04000 	mov	r4, r0                                        
                                                                      
    p = info->doubly_indirect;                                        
    c13c:	e595305c 	ldr	r3, [r5, #92]	; 0x5c                          
    if ( malloc_it ) {                                                
    c140:	0a00003f 	beq	c244 <IMFS_memfile_get_block_pointer+0x188>   
                                                                      
      if ( !p ) {                                                     
    c144:	e3530000 	cmp	r3, #0                                        
    c148:	0a000045 	beq	c264 <IMFS_memfile_get_block_pointer+0x1a8>   
        if ( !p )                                                     
           return 0;                                                  
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
    c14c:	e7930104 	ldr	r0, [r3, r4, lsl #2]                          
      if ( !p1 ) {                                                    
    c150:	e3500000 	cmp	r0, #0                                        
        if ( !p )                                                     
           return 0;                                                  
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
    c154:	e0834104 	add	r4, r3, r4, lsl #2                            
      if ( !p1 ) {                                                    
    c158:	0a00002f 	beq	c21c <IMFS_memfile_get_block_pointer+0x160>   
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
    c15c:	e0800108 	add	r0, r0, r8, lsl #2                            
    c160:	eaffffe5 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
    c164:	e3500000 	cmp	r0, #0                                        
    c168:	1affffe2 	bne	c0f8 <IMFS_memfile_get_block_pointer+0x3c>    
    c16c:	eaffffe2 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    c170:	e0234497 	mla	r3, r7, r4, r4                                
    c174:	e2433001 	sub	r3, r3, #1                                    
    c178:	e1510003 	cmp	r1, r3                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
    c17c:	83a00000 	movhi	r0, #0                                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    c180:	8affffdd 	bhi	c0fc <IMFS_memfile_get_block_pointer+0x40>    
    my_block -= FIRST_TRIPLY_INDIRECT;                                
    c184:	e0677001 	rsb	r7, r7, r1                                    
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    c188:	e1a00007 	mov	r0, r7                                        
    c18c:	e1a01004 	mov	r1, r4                                        
    c190:	eb001461 	bl	1131c <__umodsi3>                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    c194:	e1a01004 	mov	r1, r4                                        
   *  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;                     
    c198:	e1a0a000 	mov	sl, r0                                        
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    c19c:	e1a00007 	mov	r0, r7                                        
    c1a0:	eb001417 	bl	11204 <__aeabi_uidiv>                          
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    c1a4:	e1a01004 	mov	r1, r4                                        
   */                                                                 
  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;                     
    c1a8:	e1a08000 	mov	r8, r0                                        
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    c1ac:	eb001414 	bl	11204 <__aeabi_uidiv>                          
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
    c1b0:	e1a01004 	mov	r1, r4                                        
  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;                       
    c1b4:	e1a07000 	mov	r7, r0                                        
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
    c1b8:	e1a00008 	mov	r0, r8                                        
    c1bc:	eb001456 	bl	1131c <__umodsi3>                              
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
    c1c0:	e3560000 	cmp	r6, #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;                               
    c1c4:	e1a04000 	mov	r4, r0                                        
                                                                      
    p = info->triply_indirect;                                        
    c1c8:	e5950060 	ldr	r0, [r5, #96]	; 0x60                          
                                                                      
    if ( malloc_it ) {                                                
    c1cc:	0a000029 	beq	c278 <IMFS_memfile_get_block_pointer+0x1bc>   
      if ( !p ) {                                                     
    c1d0:	e3500000 	cmp	r0, #0                                        
    c1d4:	0a000035 	beq	c2b0 <IMFS_memfile_get_block_pointer+0x1f4>   
        if ( !p )                                                     
           return 0;                                                  
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
    c1d8:	e7903107 	ldr	r3, [r0, r7, lsl #2]                          
      if ( !p1 ) {                                                    
    c1dc:	e3530000 	cmp	r3, #0                                        
        if ( !p )                                                     
           return 0;                                                  
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
    c1e0:	e0807107 	add	r7, r0, r7, lsl #2                            
      if ( !p1 ) {                                                    
    c1e4:	0a00002c 	beq	c29c <IMFS_memfile_get_block_pointer+0x1e0>   
        if ( !p1 )                                                    
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
    c1e8:	e7930104 	ldr	r0, [r3, r4, lsl #2]                          
      if ( !p2 ) {                                                    
    c1ec:	e3500000 	cmp	r0, #0                                        
        if ( !p1 )                                                    
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
    c1f0:	e0834104 	add	r4, r3, r4, lsl #2                            
      if ( !p2 ) {                                                    
    c1f4:	0a00000d 	beq	c230 <IMFS_memfile_get_block_pointer+0x174>   
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p2 )                                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
    c1f8:	e080010a 	add	r0, r0, sl, lsl #2                            
    c1fc:	eaffffbe 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
    c200:	e58d1000 	str	r1, [sp]                                      
    c204:	ebffff9f 	bl	c088 <memfile_alloc_block>                     
        if ( !p )                                                     
    c208:	e3500000 	cmp	r0, #0                                        
    c20c:	e59d1000 	ldr	r1, [sp]                                      
           return 0;                                                  
        info->indirect = p;                                           
    c210:	15850058 	strne	r0, [r5, #88]	; 0x58                        
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
    c214:	1affffb7 	bne	c0f8 <IMFS_memfile_get_block_pointer+0x3c>    
    c218:	eaffffb7 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      <== NOT EXECUTED
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
    c21c:	ebffff99 	bl	c088 <memfile_alloc_block>                     
        if ( !p1 )                                                    
    c220:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
    c224:	15840000 	strne	r0, [r4]                                    
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
    c228:	10800108 	addne	r0, r0, r8, lsl #2                          
    c22c:	eaffffb2 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
    c230:	ebffff94 	bl	c088 <memfile_alloc_block>                     
        if ( !p2 )                                                    
    c234:	e3500000 	cmp	r0, #0                                        
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
    c238:	15840000 	strne	r0, [r4]                                    
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p2 )                                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
    c23c:	1080010a 	addne	r0, r0, sl, lsl #2                          
    c240:	eaffffad 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
    c244:	e3530000 	cmp	r3, #0                                        
    c248:	1a000001 	bne	c254 <IMFS_memfile_get_block_pointer+0x198>   
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
           return 0;                                                  
    c24c:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
    c250:	eaffffa9 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      <== NOT EXECUTED
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    c254:	e7930100 	ldr	r0, [r3, r0, lsl #2]                          
    if ( !p )                                                         
    c258:	e3500000 	cmp	r0, #0                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
    c25c:	10800108 	addne	r0, r0, r8, lsl #2                          
    c260:	eaffffa5 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
    c264:	ebffff87 	bl	c088 <memfile_alloc_block>                     
        if ( !p )                                                     
    c268:	e2503000 	subs	r3, r0, #0                                   
    c26c:	0afffff6 	beq	c24c <IMFS_memfile_get_block_pointer+0x190>   
           return 0;                                                  
        info->doubly_indirect = p;                                    
    c270:	e585305c 	str	r3, [r5, #92]	; 0x5c                          
    c274:	eaffffb4 	b	c14c <IMFS_memfile_get_block_pointer+0x90>      
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
    c278:	e3500000 	cmp	r0, #0                                        
    c27c:	0affff9e 	beq	c0fc <IMFS_memfile_get_block_pointer+0x40>    
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
    c280:	e7900107 	ldr	r0, [r0, r7, lsl #2]                          
    if ( !p1 )                                                        
    c284:	e3500000 	cmp	r0, #0                                        
    c288:	0affff9b 	beq	c0fc <IMFS_memfile_get_block_pointer+0x40>    
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    c28c:	e7900104 	ldr	r0, [r0, r4, lsl #2]                          
    if ( !p2 )                                                        
    c290:	e3500000 	cmp	r0, #0                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
    c294:	1080010a 	addne	r0, r0, sl, lsl #2                          
    c298:	eaffff97 	b	c0fc <IMFS_memfile_get_block_pointer+0x40>      
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
    c29c:	ebffff79 	bl	c088 <memfile_alloc_block>                     
        if ( !p1 )                                                    
    c2a0:	e2503000 	subs	r3, r0, #0                                   
    c2a4:	0affffe8 	beq	c24c <IMFS_memfile_get_block_pointer+0x190>   
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
    c2a8:	e5873000 	str	r3, [r7]                                      
    c2ac:	eaffffcd 	b	c1e8 <IMFS_memfile_get_block_pointer+0x12c>     
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
    c2b0:	ebffff74 	bl	c088 <memfile_alloc_block>                     
        if ( !p )                                                     
    c2b4:	e3500000 	cmp	r0, #0                                        
    c2b8:	0affff8f 	beq	c0fc <IMFS_memfile_get_block_pointer+0x40>    
           return 0;                                                  
        info->triply_indirect = p;                                    
    c2bc:	e5850060 	str	r0, [r5, #96]	; 0x60                          
    c2c0:	eaffffc4 	b	c1d8 <IMFS_memfile_get_block_pointer+0x11c>     
                                                                      

0000c2c8 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
    c2c8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    c2cc:	e1a09000 	mov	r9, r0                                        
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    c2d0:	e590004c 	ldr	r0, [r0, #76]	; 0x4c                          
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
    c2d4:	e24dd014 	sub	sp, sp, #20                                   
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    c2d8:	e3500006 	cmp	r0, #6                                        
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
    c2dc:	e1a07001 	mov	r7, r1                                        
    c2e0:	e1a08002 	mov	r8, r2                                        
    c2e4:	e1a0b003 	mov	fp, r3                                        
    c2e8:	e59d5038 	ldr	r5, [sp, #56]	; 0x38                          
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    c2ec:	0a00005c 	beq	c464 <IMFS_memfile_read+0x19c>                
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    c2f0:	e5992054 	ldr	r2, [r9, #84]	; 0x54                          
                                                                      
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
    c2f4:	e1a03001 	mov	r3, r1                                        
  if ( last_byte > the_jnode->info.file.size )                        
    c2f8:	e3a01000 	mov	r1, #0                                        
    c2fc:	e1510002 	cmp	r1, r2                                        
    c300:	e5992050 	ldr	r2, [r9, #80]	; 0x50                          
                                                                      
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
    c304:	e0851007 	add	r1, r5, r7                                    
  if ( last_byte > the_jnode->info.file.size )                        
    c308:	da00003d 	ble	c404 <IMFS_memfile_read+0x13c>                
    my_length = the_jnode->info.file.size - start;                    
    c30c:	e0635002 	rsb	r5, r3, r2                                    
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    c310:	e59f61b8 	ldr	r6, [pc, #440]	; c4d0 <IMFS_memfile_read+0x208>
    c314:	e5964000 	ldr	r4, [r6]                                      
    c318:	e1a00007 	mov	r0, r7                                        
    c31c:	e1a02004 	mov	r2, r4                                        
    c320:	e1a03fc2 	asr	r3, r2, #31                                   
    c324:	e1a01008 	mov	r1, r8                                        
    c328:	e98d000c 	stmib	sp, {r2, r3}                                
    c32c:	eb00155b 	bl	118a0 <__moddi3>                               
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    c330:	e1a01008 	mov	r1, r8                                        
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
    c334:	e1a0a000 	mov	sl, r0                                        
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    c338:	e99d000c 	ldmib	sp, {r2, r3}                                
    c33c:	e1a00007 	mov	r0, r7                                        
    c340:	eb001429 	bl	113ec <__divdi3>                               
  if ( start_offset )  {                                              
    c344:	e35a0000 	cmp	sl, #0                                        
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
    c348:	e1a07000 	mov	r7, r0                                        
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
    c34c:	01a0800b 	moveq	r8, fp                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    c350:	0a000014 	beq	c3a8 <IMFS_memfile_read+0xe0>                 
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    c354:	e1a00009 	mov	r0, r9                                        
    c358:	e1a01007 	mov	r1, r7                                        
    c35c:	e3a02000 	mov	r2, #0                                        
    c360:	ebffff55 	bl	c0bc <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    c364:	e3500000 	cmp	r0, #0                                        
    c368:	0a000023 	beq	c3fc <IMFS_memfile_read+0x134>                
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
    c36c:	e5901000 	ldr	r1, [r0]                                      
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    c370:	e06a3004 	rsb	r3, sl, r4                                    
    c374:	e1550003 	cmp	r5, r3                                        
    c378:	31a03005 	movcc	r3, r5                                      
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
    c37c:	e081100a 	add	r1, r1, sl                                    
    c380:	e1a02003 	mov	r2, r3                                        
    c384:	e1a0000b 	mov	r0, fp                                        
    c388:	e58d3000 	str	r3, [sp]                                      
    c38c:	eb00082b 	bl	e440 <memcpy>                                  
    dest += to_copy;                                                  
    c390:	e59d3000 	ldr	r3, [sp]                                      
    block++;                                                          
    my_length -= to_copy;                                             
    c394:	e5964000 	ldr	r4, [r6]                                      
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
    dest += to_copy;                                                  
    c398:	e08b8003 	add	r8, fp, r3                                    
    block++;                                                          
    c39c:	e2877001 	add	r7, r7, #1                                    
    my_length -= to_copy;                                             
    c3a0:	e0635005 	rsb	r5, r3, r5                                    
    copied += to_copy;                                                
    c3a4:	e1a0a003 	mov	sl, r3                                        
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    c3a8:	e1550004 	cmp	r5, r4                                        
    c3ac:	2a000008 	bcs	c3d4 <IMFS_memfile_read+0x10c>                
    c3b0:	ea000017 	b	c414 <IMFS_memfile_read+0x14c>                  
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    c3b4:	e5931000 	ldr	r1, [r3]                                      
    c3b8:	eb000820 	bl	e440 <memcpy>                                  
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    c3bc:	e5963000 	ldr	r3, [r6]                                      
    c3c0:	e1530005 	cmp	r3, r5                                        
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
    c3c4:	e0888004 	add	r8, r8, r4                                    
    block++;                                                          
    c3c8:	e2877001 	add	r7, r7, #1                                    
    my_length -= to_copy;                                             
    copied += to_copy;                                                
    c3cc:	e08aa004 	add	sl, sl, r4                                    
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    c3d0:	8a00000f 	bhi	c414 <IMFS_memfile_read+0x14c>                
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    c3d4:	e3a02000 	mov	r2, #0                                        
    c3d8:	e1a01007 	mov	r1, r7                                        
    c3dc:	e1a00009 	mov	r0, r9                                        
    c3e0:	ebffff35 	bl	c0bc <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    c3e4:	e2503000 	subs	r3, r0, #0                                   
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    c3e8:	e1a02004 	mov	r2, r4                                        
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
    c3ec:	e0645005 	rsb	r5, r4, r5                                    
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    c3f0:	e1a00008 	mov	r0, r8                                        
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
    c3f4:	1affffee 	bne	c3b4 <IMFS_memfile_read+0xec>                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    c3f8:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
                                                                      
  return copied;                                                      
}                                                                     
    c3fc:	e28dd014 	add	sp, sp, #20                                   
    c400:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    c404:	1affffc1 	bne	c310 <IMFS_memfile_read+0x48>                 
    c408:	e1510002 	cmp	r1, r2                                        
    c40c:	9affffbf 	bls	c310 <IMFS_memfile_read+0x48>                 
    c410:	eaffffbd 	b	c30c <IMFS_memfile_read+0x44>                   
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
    c414:	e3550000 	cmp	r5, #0                                        
    c418:	0a00000a 	beq	c448 <IMFS_memfile_read+0x180>                
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    c41c:	e1a00009 	mov	r0, r9                                        
    c420:	e1a01007 	mov	r1, r7                                        
    c424:	e3a02000 	mov	r2, #0                                        
    c428:	ebffff23 	bl	c0bc <IMFS_memfile_get_block_pointer>          
    if ( !block_ptr )                                                 
    c42c:	e2503000 	subs	r3, r0, #0                                   
    c430:	0afffff0 	beq	c3f8 <IMFS_memfile_read+0x130>                
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    c434:	e1a00008 	mov	r0, r8                                        
    c438:	e5931000 	ldr	r1, [r3]                                      
    c43c:	e1a02005 	mov	r2, r5                                        
    c440:	eb0007fe 	bl	e440 <memcpy>                                  
    copied += my_length;                                              
    c444:	e08aa005 	add	sl, sl, r5                                    
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
    c448:	e28d000c 	add	r0, sp, #12                                   
    c44c:	e3a01000 	mov	r1, #0                                        
    c450:	ebffd6dc 	bl	1fc8 <gettimeofday>                            
    c454:	e59d300c 	ldr	r3, [sp, #12]                                 
                                                                      
  return copied;                                                      
    c458:	e1a0000a 	mov	r0, sl                                        
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
    c45c:	e5893040 	str	r3, [r9, #64]	; 0x40                          
                                                                      
  return copied;                                                      
    c460:	eaffffe5 	b	c3fc <IMFS_memfile_read+0x134>                  
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
    c464:	e2894050 	add	r4, r9, #80	; 0x50                            
    c468:	e8940018 	ldm	r4, {r3, r4}                                  
    c46c:	e1a00003 	mov	r0, r3                                        
    c470:	e1a01004 	mov	r1, r4                                        
    c474:	e3a02000 	mov	r2, #0                                        
    c478:	e0500007 	subs	r0, r0, r7                                   
    c47c:	e0c11008 	sbc	r1, r1, r8                                    
    c480:	e1520001 	cmp	r2, r1                                        
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
    c484:	e5992058 	ldr	r2, [r9, #88]	; 0x58                          
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
    c488:	da00000b 	ble	c4bc <IMFS_memfile_read+0x1f4>                
      my_length = the_jnode->info.linearfile.size - start;            
    c48c:	e067a003 	rsb	sl, r7, r3                                    
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
    c490:	e0821007 	add	r1, r2, r7                                    
    c494:	e1a0000b 	mov	r0, fp                                        
    c498:	e1a0200a 	mov	r2, sl                                        
    c49c:	eb0007e7 	bl	e440 <memcpy>                                  
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
    c4a0:	e28d000c 	add	r0, sp, #12                                   
    c4a4:	e3a01000 	mov	r1, #0                                        
    c4a8:	ebffd6c6 	bl	1fc8 <gettimeofday>                            
    c4ac:	e59d300c 	ldr	r3, [sp, #12]                                 
                                                                      
  return copied;                                                      
    c4b0:	e1a0000a 	mov	r0, sl                                        
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
    c4b4:	e5893040 	str	r3, [r9, #64]	; 0x40                          
    c4b8:	eaffffcf 	b	c3fc <IMFS_memfile_read+0x134>                  
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
    c4bc:	1a000001 	bne	c4c8 <IMFS_memfile_read+0x200>                
    c4c0:	e1550000 	cmp	r5, r0                                        
    c4c4:	8afffff0 	bhi	c48c <IMFS_memfile_read+0x1c4>                
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
    c4c8:	e1a0a005 	mov	sl, r5                                        <== NOT EXECUTED
    c4cc:	eaffffef 	b	c490 <IMFS_memfile_read+0x1c8>                  <== NOT EXECUTED
                                                                      

0000188c <IMFS_mount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
    188c:	e5903008 	ldr	r3, [r0, #8]                                  
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    1890:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    1894:	e3520001 	cmp	r2, #1                                        
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_mount(                                                       
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
    1898:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    189c:	1a000002 	bne	18ac <IMFS_mount+0x20>                        
  /*                                                                  
   *  Set mt_fs pointer to point to the mount table entry for         
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
    18a0:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
  return 0;                                                           
    18a4:	e3a00000 	mov	r0, #0                                        
}                                                                     
    18a8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    18ac:	eb0030b5 	bl	db88 <__errno>                                 <== NOT EXECUTED
    18b0:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
    18b4:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    18b8:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    18bc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      

00004280 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
    4280:	e92d4030 	push	{r4, r5, lr}                                 
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
    4284:	e59f50f8 	ldr	r5, [pc, #248]	; 4384 <IMFS_print_jnode+0x104>
    4288:	e5953000 	ldr	r3, [r5]                                      
 *  This routine prints the contents of the specified jnode.          
 */                                                                   
void IMFS_print_jnode(                                                
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
    428c:	e1a04000 	mov	r4, r0                                        
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
    4290:	e5931008 	ldr	r1, [r3, #8]                                  
    4294:	e280000c 	add	r0, r0, #12                                   
    4298:	eb003889 	bl	124c4 <fputs>                                  
  switch( the_jnode->type ) {                                         
    429c:	e594204c 	ldr	r2, [r4, #76]	; 0x4c                          
    42a0:	e2423001 	sub	r3, r2, #1                                    
    42a4:	e3530006 	cmp	r3, #6                                        
    42a8:	979ff103 	ldrls	pc, [pc, r3, lsl #2]                        
    42ac:	ea000023 	b	4340 <IMFS_print_jnode+0xc0>                    <== NOT EXECUTED
    42b0:	00004354 	.word	0x00004354                                  <== NOT EXECUTED
    42b4:	00004368 	.word	0x00004368                                  <== NOT EXECUTED
    42b8:	000042cc 	.word	0x000042cc                                  <== NOT EXECUTED
    42bc:	000042cc 	.word	0x000042cc                                  <== NOT EXECUTED
    42c0:	00004304 	.word	0x00004304                                  <== NOT EXECUTED
    42c4:	00004324 	.word	0x00004324                                  <== NOT EXECUTED
    42c8:	000042e8 	.word	0x000042e8                                  <== NOT EXECUTED
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
    42cc:	e5953000 	ldr	r3, [r5]                                      
    42d0:	e59f00b0 	ldr	r0, [pc, #176]	; 4388 <IMFS_print_jnode+0x108>
    42d4:	e5933008 	ldr	r3, [r3, #8]                                  
    42d8:	e3a01001 	mov	r1, #1                                        
    42dc:	e3a02013 	mov	r2, #19                                       
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
    42e0:	e8bd4030 	pop	{r4, r5, lr}                                  
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
    42e4:	ea003ba7 	b	13188 <fwrite>                                  
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
    42e8:	e5953000 	ldr	r3, [r5]                                      
    42ec:	e59f0098 	ldr	r0, [pc, #152]	; 438c <IMFS_print_jnode+0x10c>
    42f0:	e5933008 	ldr	r3, [r3, #8]                                  
    42f4:	e3a01001 	mov	r1, #1                                        
    42f8:	e3a02012 	mov	r2, #18                                       
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
    42fc:	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" );                        
    4300:	ea003ba0 	b	13188 <fwrite>                                  
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
    4304:	e5953000 	ldr	r3, [r5]                                      
    4308:	e59f1080 	ldr	r1, [pc, #128]	; 4390 <IMFS_print_jnode+0x110>
    430c:	e5930008 	ldr	r0, [r3, #8]                                  
    4310:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
    4314:	eb003815 	bl	12370 <fprintf>                                
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
    4318:	e59f0074 	ldr	r0, [pc, #116]	; 4394 <IMFS_print_jnode+0x114>
}                                                                     
    431c:	e8bd4030 	pop	{r4, r5, lr}                                  
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
    4320:	ea003f79 	b	1410c <puts>                                    
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
    4324:	e5953000 	ldr	r3, [r5]                                      
    4328:	e59f1068 	ldr	r1, [pc, #104]	; 4398 <IMFS_print_jnode+0x118>
    432c:	e5930008 	ldr	r0, [r3, #8]                                  
    4330:	e5942050 	ldr	r2, [r4, #80]	; 0x50                          
    4334:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
    4338:	eb00380c 	bl	12370 <fprintf>                                
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
    433c:	eafffff5 	b	4318 <IMFS_print_jnode+0x98>                    
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
    4340:	e5953000 	ldr	r3, [r5]                                      <== NOT EXECUTED
    4344:	e59f1050 	ldr	r1, [pc, #80]	; 439c <IMFS_print_jnode+0x11c> <== NOT EXECUTED
    4348:	e5930008 	ldr	r0, [r3, #8]                                  <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
}                                                                     
    434c:	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 );            
    4350:	ea003806 	b	12370 <fprintf>                                 <== NOT EXECUTED
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( the_jnode->type ) {                                         
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
    4354:	e5953000 	ldr	r3, [r5]                                      
    4358:	e3a0002f 	mov	r0, #47	; 0x2f                                
    435c:	e5931008 	ldr	r1, [r3, #8]                                  
    4360:	eb003822 	bl	123f0 <fputc>                                  
      break;                                                          
    4364:	eaffffeb 	b	4318 <IMFS_print_jnode+0x98>                    
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
    4368:	e5953000 	ldr	r3, [r5]                                      
    436c:	e59f102c 	ldr	r1, [pc, #44]	; 43a0 <IMFS_print_jnode+0x120> 
    4370:	e5930008 	ldr	r0, [r3, #8]                                  
    4374:	e2842050 	add	r2, r4, #80	; 0x50                            
    4378:	e892000c 	ldm	r2, {r2, r3}                                  
    437c:	eb0037fb 	bl	12370 <fprintf>                                
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
    4380:	eaffffe4 	b	4318 <IMFS_print_jnode+0x98>                    
                                                                      

00009eb0 <IMFS_stat>: { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access;
    9eb0:	e5903000 	ldr	r3, [r0]                                      
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
    9eb4:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    9eb8:	e2422002 	sub	r2, r2, #2                                    
                                                                      
int IMFS_stat(                                                        
  rtems_filesystem_location_info_t *loc,                              
  struct stat                      *buf                               
)                                                                     
{                                                                     
    9ebc:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
    9ec0:	e3520005 	cmp	r2, #5                                        
    9ec4:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
    9ec8:	ea000027 	b	9f6c <IMFS_stat+0xbc>                           <== NOT EXECUTED
    9ecc:	00009f58 	.word	0x00009f58                                  <== NOT EXECUTED
    9ed0:	00009f6c 	.word	0x00009f6c                                  <== NOT EXECUTED
    9ed4:	00009ee4 	.word	0x00009ee4                                  <== NOT EXECUTED
    9ed8:	00009f80 	.word	0x00009f80                                  <== NOT EXECUTED
    9edc:	00009f80 	.word	0x00009f80                                  <== NOT EXECUTED
    9ee0:	00009ee4 	.word	0x00009ee4                                  <== NOT EXECUTED
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
    9ee4:	e3a04000 	mov	r4, #0                                        
    9ee8:	e3a05000 	mov	r5, #0                                        
    9eec:	e5814020 	str	r4, [r1, #32]                                 
    9ef0:	e5815024 	str	r5, [r1, #36]	; 0x24                          
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
    9ef4:	e5902010 	ldr	r2, [r0, #16]                                 
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
    9ef8:	e5922034 	ldr	r2, [r2, #52]	; 0x34                          
    9efc:	e5927000 	ldr	r7, [r2]                                      
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
    9f00:	e3a02cff 	mov	r2, #65280	; 0xff00                           
    9f04:	e28220fe 	add	r2, r2, #254	; 0xfe                           
  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;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
    9f08:	e5930048 	ldr	r0, [r3, #72]	; 0x48                          
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
    9f0c:	e5936030 	ldr	r6, [r3, #48]	; 0x30                          
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
    9f10:	e5935038 	ldr	r5, [r3, #56]	; 0x38                          
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
    9f14:	e2834040 	add	r4, r3, #64	; 0x40                            
    9f18:	e8941010 	ldm	r4, {r4, ip}                                  
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
    9f1c:	e1d383b4 	ldrh	r8, [r3, #52]	; 0x34                         
  /*                                                                  
   * 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 =                                                       
    9f20:	e5812000 	str	r2, [r1]                                      
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
    9f24:	e1d323bc 	ldrh	r2, [r3, #60]	; 0x3c                         
  buf->st_gid   = the_jnode->st_gid;                                  
    9f28:	e1d333be 	ldrh	r3, [r3, #62]	; 0x3e                         
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
    9f2c:	e1c181b0 	strh	r8, [r1, #16]                                
  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;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
    9f30:	e5810038 	str	r0, [r1, #56]	; 0x38                          
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
    9f34:	e1c121b2 	strh	r2, [r1, #18]                                
  /*                                                                  
   * 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 =                                                       
    9f38:	e5817004 	str	r7, [r1, #4]                                  
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
    9f3c:	e1c131b4 	strh	r3, [r1, #20]                                
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
    9f40:	e581600c 	str	r6, [r1, #12]                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
    9f44:	e5815008 	str	r5, [r1, #8]                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
    9f48:	e5814028 	str	r4, [r1, #40]	; 0x28                          
  buf->st_mtime = the_jnode->stat_mtime;                              
    9f4c:	e581c030 	str	ip, [r1, #48]	; 0x30                          
  buf->st_ctime = the_jnode->stat_ctime;                              
                                                                      
  return 0;                                                           
    9f50:	e3a00000 	mov	r0, #0                                        
}                                                                     
    9f54:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      
  switch ( the_jnode->type ) {                                        
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
    9f58:	e2832050 	add	r2, r3, #80	; 0x50                            
    9f5c:	e8921004 	ldm	r2, {r2, ip}                                  
    9f60:	e581c01c 	str	ip, [r1, #28]                                 
    9f64:	e5812018 	str	r2, [r1, #24]                                 
      break;                                                          
    9f68:	eaffffe1 	b	9ef4 <IMFS_stat+0x44>                           
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
    9f6c:	eb000f05 	bl	db88 <__errno>                                 
    9f70:	e3a03086 	mov	r3, #134	; 0x86                               
    9f74:	e5803000 	str	r3, [r0]                                      
    9f78:	e3e00000 	mvn	r0, #0                                        
    9f7c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
    9f80:	e2835050 	add	r5, r3, #80	; 0x50                            
    9f84:	e8950030 	ldm	r5, {r4, r5}                                  
    9f88:	e5814020 	str	r4, [r1, #32]                                 
    9f8c:	e5815024 	str	r5, [r1, #36]	; 0x24                          
      break;                                                          
    9f90:	eaffffd7 	b	9ef4 <IMFS_stat+0x44>                           
                                                                      

00001a28 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
    1a28:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
    1a2c:	e5915000 	ldr	r5, [r1]                                      
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
    1a30:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    1a34:	e3530003 	cmp	r3, #3                                        
                                                                      
int IMFS_unlink(                                                      
  rtems_filesystem_location_info_t  *parentloc, /* IN */              
  rtems_filesystem_location_info_t  *loc        /* IN */              
)                                                                     
{                                                                     
    1a38:	e24dd01c 	sub	sp, sp, #28                                   
    1a3c:	e1a04001 	mov	r4, r1                                        
    1a40:	e1a06000 	mov	r6, r0                                        
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
    1a44:	0a000006 	beq	1a64 <IMFS_unlink+0x3c>                       
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
    1a48:	e5943008 	ldr	r3, [r4, #8]                                  
    1a4c:	e1a00006 	mov	r0, r6                                        
    1a50:	e1a01004 	mov	r1, r4                                        
    1a54:	e1a0e00f 	mov	lr, pc                                        
    1a58:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
                                                                      
  return result;                                                      
}                                                                     
    1a5c:	e28dd01c 	add	sp, sp, #28                                   
    1a60:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
    1a64:	e595e050 	ldr	lr, [r5, #80]	; 0x50                          
    1a68:	e35e0000 	cmp	lr, #0                                        
    1a6c:	0a00001f 	beq	1af0 <IMFS_unlink+0xc8>                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
    1a70:	e1a07001 	mov	r7, r1                                        
    1a74:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    1a78:	e1a0c00d 	mov	ip, sp                                        
    1a7c:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    the_link.node_access = node->info.hard_link.link_node;            
    1a80:	e28d801c 	add	r8, sp, #28                                   
    1a84:	e528e01c 	str	lr, [r8, #-28]!                               
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
    1a88:	e5973000 	ldr	r3, [r7]                                      
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
    1a8c:	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;                                                  
    1a90:	e58c3000 	str	r3, [ip]                                      
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
    1a94:	eb001e56 	bl	93f4 <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)               
    1a98:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
    1a9c:	e1d323b4 	ldrh	r2, [r3, #52]	; 0x34                         
    1aa0:	e3520001 	cmp	r2, #1                                        
    1aa4:	0a000008 	beq	1acc <IMFS_unlink+0xa4>                       
        if ( result != 0 )                                            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
    1aa8:	e2422001 	sub	r2, r2, #1                                    
    1aac:	e1c323b4 	strh	r2, [r3, #52]	; 0x34                         
        IMFS_update_ctime( node->info.hard_link.link_node );          
    1ab0:	e28d0014 	add	r0, sp, #20                                   
    1ab4:	e3a01000 	mov	r1, #0                                        
    1ab8:	eb000142 	bl	1fc8 <gettimeofday>                            
    1abc:	e5953050 	ldr	r3, [r5, #80]	; 0x50                          
    1ac0:	e59d2014 	ldr	r2, [sp, #20]                                 
    1ac4:	e5832048 	str	r2, [r3, #72]	; 0x48                          
    1ac8:	eaffffde 	b	1a48 <IMFS_unlink+0x20>                         
     *  to remove the node that is a link and the node itself.        
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
    1acc:	e1a00006 	mov	r0, r6                                        
    1ad0:	e1a0100d 	mov	r1, sp                                        
    1ad4:	e59d3008 	ldr	r3, [sp, #8]                                  
    1ad8:	e1a0e00f 	mov	lr, pc                                        
    1adc:	e593f034 	ldr	pc, [r3, #52]	; 0x34                          
        if ( result != 0 )                                            
    1ae0:	e3500000 	cmp	r0, #0                                        
    1ae4:	0affffd7 	beq	1a48 <IMFS_unlink+0x20>                       
            return -1;                                                
    1ae8:	e3e00000 	mvn	r0, #0                                        
    1aec:	eaffffda 	b	1a5c <IMFS_unlink+0x34>                         
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    1af0:	eb003024 	bl	db88 <__errno>                                 <== NOT EXECUTED
    1af4:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    1af8:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1afc:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1b00:	eaffffd5 	b	1a5c <IMFS_unlink+0x34>                         <== NOT EXECUTED
                                                                      

00001b04 <IMFS_unmount>: rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
    1b04:	e5903008 	ldr	r3, [r0, #8]                                  
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    1b08:	e593204c 	ldr	r2, [r3, #76]	; 0x4c                          
    1b0c:	e3520001 	cmp	r2, #1                                        
#include <rtems/seterr.h>                                             
                                                                      
int IMFS_unmount(                                                     
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
    1b10:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    1b14:	1a000005 	bne	1b30 <IMFS_unmount+0x2c>                      
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
    1b18:	e593205c 	ldr	r2, [r3, #92]	; 0x5c                          
    1b1c:	e3520000 	cmp	r2, #0                                        
    1b20:	0a000007 	beq	1b44 <IMFS_unmount+0x40>                      
  /*                                                                  
   * 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;                                  
    1b24:	e3a00000 	mov	r0, #0                                        
    1b28:	e583005c 	str	r0, [r3, #92]	; 0x5c                          
                                                                      
  return 0;                                                           
}                                                                     
    1b2c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
    1b30:	eb003014 	bl	db88 <__errno>                                 <== NOT EXECUTED
    1b34:	e3a03014 	mov	r3, #20                                       <== NOT EXECUTED
    1b38:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1b3c:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1b40:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
    1b44:	eb00300f 	bl	db88 <__errno>                                 <== NOT EXECUTED
    1b48:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    1b4c:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    1b50:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    1b54:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      

00001ea0 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
    1ea0:	e92d4ff0 	push	{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);                       
    1ea4:	e59030bc 	ldr	r3, [r0, #188]	; 0xbc                         
  size = Stack_check_usable_stack_size(stack);                        
    1ea8:	e59060b8 	ldr	r6, [r0, #184]	; 0xb8                         
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
    1eac:	e283c010 	add	ip, r3, #16                                   
  size = Stack_check_usable_stack_size(stack);                        
    1eb0:	e2466010 	sub	r6, r6, #16                                   
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    1eb4:	e28cb010 	add	fp, ip, #16                                   
    for (ebase = base + length; base < ebase; base++)                 
    1eb8:	e3c61003 	bic	r1, r6, #3                                    
    1ebc:	e08b1001 	add	r1, fp, r1                                    
    1ec0:	e15b0001 	cmp	fp, r1                                        
static rtems_printk_plugin_t   print_handler;                         
                                                                      
void Stack_check_Dump_threads_usage(                                  
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
    1ec4:	e24dd010 	sub	sp, sp, #16                                   
    1ec8:	e1a05000 	mov	r5, r0                                        
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    1ecc:	e59090e8 	ldr	r9, [r0, #232]	; 0xe8                         
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
    1ed0:	2a00000d 	bcs	1f0c <Stack_check_Dump_threads_usage+0x6c>    
      if (*base != U32_PATTERN)                                       
    1ed4:	e3a02ca6 	mov	r2, #42496	; 0xa600                           
    1ed8:	e242205b 	sub	r2, r2, #91	; 0x5b                            
    1edc:	e59c0010 	ldr	r0, [ip, #16]                                 
    1ee0:	e1822802 	orr	r2, r2, r2, lsl #16                           
    1ee4:	e1500002 	cmp	r0, r2                                        
 *  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(                                  
    1ee8:	02833024 	addeq	r3, r3, #36	; 0x24                          
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
    1eec:	0a000003 	beq	1f00 <Stack_check_Dump_threads_usage+0x60>    
    1ef0:	ea000027 	b	1f94 <Stack_check_Dump_threads_usage+0xf4>      <== NOT EXECUTED
    1ef4:	e4932004 	ldr	r2, [r3], #4                                  
    1ef8:	e1520000 	cmp	r2, r0                                        
    1efc:	1a000024 	bne	1f94 <Stack_check_Dump_threads_usage+0xf4>    
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
    1f00:	e1510003 	cmp	r1, r3                                        
      if (*base != U32_PATTERN)                                       
    1f04:	e1a0b003 	mov	fp, 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++)                 
    1f08:	8afffff9 	bhi	1ef4 <Stack_check_Dump_threads_usage+0x54>    
  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;                                                         
    1f0c:	e3a0b000 	mov	fp, #0                                        <== NOT EXECUTED
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
    1f10:	e5958008 	ldr	r8, [r5, #8]                                  
    1f14:	e59f409c 	ldr	r4, [pc, #156]	; 1fb8 <Stack_check_Dump_threads_usage+0x118>
    1f18:	e3a01005 	mov	r1, #5                                        
    1f1c:	e28d2008 	add	r2, sp, #8                                    
    1f20:	e1a00008 	mov	r0, r8                                        
    1f24:	e8940480 	ldm	r4, {r7, sl}                                  
    1f28:	eb001845 	bl	8044 <rtems_object_get_name>                   
    1f2c:	e1a02008 	mov	r2, r8                                        
    1f30:	e1a03000 	mov	r3, r0                                        
    1f34:	e59f1080 	ldr	r1, [pc, #128]	; 1fbc <Stack_check_Dump_threads_usage+0x11c>
    1f38:	e1a0000a 	mov	r0, sl                                        
    1f3c:	e1a0e00f 	mov	lr, pc                                        
    1f40:	e12fff17 	bx	r7                                             
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
    1f44:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         
    1f48:	e59520bc 	ldr	r2, [r5, #188]	; 0xbc                         
    1f4c:	e2433001 	sub	r3, r3, #1                                    
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
    1f50:	e0823003 	add	r3, r2, r3                                    
    1f54:	e5940004 	ldr	r0, [r4, #4]                                  
    1f58:	e58d9000 	str	r9, [sp]                                      
    1f5c:	e58d6004 	str	r6, [sp, #4]                                  
    1f60:	e59f1058 	ldr	r1, [pc, #88]	; 1fc0 <Stack_check_Dump_threads_usage+0x120>
    1f64:	e1a0e00f 	mov	lr, pc                                        
    1f68:	e594f000 	ldr	pc, [r4]                                      
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
    1f6c:	e5943008 	ldr	r3, [r4, #8]                                  
    1f70:	e3530000 	cmp	r3, #0                                        
    1f74:	0a00000a 	beq	1fa4 <Stack_check_Dump_threads_usage+0x104>   
    (*print_handler)( print_context, "Unavailable\n" );               
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
    1f78:	e5940004 	ldr	r0, [r4, #4]                                  
    1f7c:	e59f1040 	ldr	r1, [pc, #64]	; 1fc4 <Stack_check_Dump_threads_usage+0x124>
    1f80:	e1a0200b 	mov	r2, fp                                        
    1f84:	e1a0e00f 	mov	lr, pc                                        
    1f88:	e594f000 	ldr	pc, [r4]                                      
  }                                                                   
                                                                      
                                                                      
}                                                                     
    1f8c:	e28dd010 	add	sp, sp, #16                                   
    1f90:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
  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 )                                              
    1f94:	e35b0000 	cmp	fp, #0                                        
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
    1f98:	108cc006 	addne	ip, ip, r6                                  
    1f9c:	106bb00c 	rsbne	fp, fp, ip                                  
    1fa0:	eaffffda 	b	1f10 <Stack_check_Dump_threads_usage+0x70>      
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
    (*print_handler)( print_context, "Unavailable\n" );               
    1fa4:	e5940004 	ldr	r0, [r4, #4]                                  <== NOT EXECUTED
    1fa8:	e59f1018 	ldr	r1, [pc, #24]	; 1fc8 <Stack_check_Dump_threads_usage+0x128><== NOT EXECUTED
    1fac:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    1fb0:	e594f000 	ldr	pc, [r4]                                      <== NOT EXECUTED
    1fb4:	eafffff4 	b	1f8c <Stack_check_Dump_threads_usage+0xec>      <== NOT EXECUTED
                                                                      

00016b5c <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) {
   16b5c:	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                    
)                                                                     
{                                                                     
   16b60:	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 ) {             
   16b64:	e1530002 	cmp	r3, r2                                        
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
   16b68:	e1a07000 	mov	r7, r0                                        
   16b6c:	e1a05002 	mov	r5, r2                                        
   16b70:	e1a08001 	mov	r8, r1                                        
   16b74:	e59da020 	ldr	sl, [sp, #32]                                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
   16b78:	3a000016 	bcc	16bd8 <_CORE_message_queue_Broadcast+0x7c>    
   *  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 ) {         
   16b7c:	e5906048 	ldr	r6, [r0, #72]	; 0x48                          
   16b80:	e3560000 	cmp	r6, #0                                        
    *count = 0;                                                       
   16b84:	13a00000 	movne	r0, #0                                      
   16b88:	158a0000 	strne	r0, [sl]                                    
   *  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 ) {         
   16b8c:	18bd85f0 	popne	{r4, r5, r6, r7, r8, sl, pc}                
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
   16b90:	e1a00007 	mov	r0, r7                                        
   16b94:	eb000b0d 	bl	197d0 <_Thread_queue_Dequeue>                  
   16b98:	e2504000 	subs	r4, r0, #0                                   
   16b9c:	0a00000a 	beq	16bcc <_CORE_message_queue_Broadcast+0x70>    
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
   16ba0:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
   16ba4:	e1a01008 	mov	r1, r8                                        
   16ba8:	e1a02005 	mov	r2, r5                                        
   16bac:	eb002465 	bl	1fd48 <memcpy>                                 
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
   16bb0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
   16bb4:	e1a00007 	mov	r0, r7                                        
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
   16bb8:	e5835000 	str	r5, [r3]                                      
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
   16bbc:	eb000b03 	bl	197d0 <_Thread_queue_Dequeue>                  
   16bc0:	e2504000 	subs	r4, r0, #0                                   
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
   16bc4:	e2866001 	add	r6, r6, #1                                    
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
   16bc8:	1afffff4 	bne	16ba0 <_CORE_message_queue_Broadcast+0x44>    
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
   16bcc:	e58a6000 	str	r6, [sl]                                      
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
   16bd0:	e1a00004 	mov	r0, r4                                        
   16bd4:	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;                    
   16bd8:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
   16bdc:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

0000b7c0 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
    b7c0:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    b7c4:	e1a08002 	mov	r8, r2                                        
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
    b7c8:	e5902010 	ldr	r2, [r0, #16]                                 
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
    b7cc:	e24dd01c 	sub	sp, sp, #28                                   
    b7d0:	e1a05001 	mov	r5, r1                                        
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    b7d4:	e2911004 	adds	r1, r1, #4                                   
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
    b7d8:	e1a07000 	mov	r7, r0                                        
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    b7dc:	e58d1000 	str	r1, [sp]                                      
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
    b7e0:	e1a0b003 	mov	fp, r3                                        
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
    b7e4:	e58d200c 	str	r2, [sp, #12]                                 
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    b7e8:	2a00007a 	bcs	b9d8 <_Heap_Allocate_aligned_with_boundary+0x218>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    b7ec:	e3530000 	cmp	r3, #0                                        
    b7f0:	1a000076 	bne	b9d0 <_Heap_Allocate_aligned_with_boundary+0x210>
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
    b7f4:	e5979008 	ldr	r9, [r7, #8]                                  
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b7f8:	e1570009 	cmp	r7, r9                                        
    b7fc:	0a000075 	beq	b9d8 <_Heap_Allocate_aligned_with_boundary+0x218>
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    b800:	e59d300c 	ldr	r3, [sp, #12]                                 
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
    b804:	e2651004 	rsb	r1, r5, #4                                    
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    b808:	e2833007 	add	r3, r3, #7                                    
    b80c:	e58d3010 	str	r3, [sp, #16]                                 
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
    b810:	e58d1014 	str	r1, [sp, #20]                                 
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b814:	e3a06001 	mov	r6, #1                                        
      /*                                                              
       * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
       * field.  Thus the value is about one unit larger than the real block
       * size.  The greater than operator takes this into account.    
       */                                                             
      if ( block->size_and_flag > block_size_floor ) {                
    b818:	e599a004 	ldr	sl, [r9, #4]                                  
    b81c:	e59d2000 	ldr	r2, [sp]                                      
    b820:	e152000a 	cmp	r2, sl                                        
    b824:	2a000050 	bcs	b96c <_Heap_Allocate_aligned_with_boundary+0x1ac>
        if ( alignment == 0 ) {                                       
    b828:	e3580000 	cmp	r8, #0                                        
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
    b82c:	02894008 	addeq	r4, r9, #8                                  
    b830:	0a000053 	beq	b984 <_Heap_Allocate_aligned_with_boundary+0x1c4>
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
    b834:	e5973014 	ldr	r3, [r7, #20]                                 
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
    b838:	e59d1014 	ldr	r1, [sp, #20]                                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
    b83c:	e59d2010 	ldr	r2, [sp, #16]                                 
    - 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;                
    b840:	e3caa001 	bic	sl, sl, #1                                    
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
    b844:	e089a00a 	add	sl, r9, sl                                    
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
    b848:	e081400a 	add	r4, r1, sl                                    
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
    b84c:	e58d3004 	str	r3, [sp, #4]                                  
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
    b850:	e0633002 	rsb	r3, r3, r2                                    
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
    b854:	e1a00004 	mov	r0, r4                                        
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    b858:	e083a00a 	add	sl, r3, sl                                    
    b85c:	e1a01008 	mov	r1, r8                                        
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
    b860:	e2893008 	add	r3, r9, #8                                    
    b864:	e58d3008 	str	r3, [sp, #8]                                  
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
    b868:	eb0016ab 	bl	1131c <__umodsi3>                              
    b86c:	e0604004 	rsb	r4, r0, r4                                    
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
                                                                      
  alloc_begin = _Heap_Align_down( alloc_begin, alignment );           
                                                                      
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
    b870:	e15a0004 	cmp	sl, r4                                        
    b874:	2a000003 	bcs	b888 <_Heap_Allocate_aligned_with_boundary+0xc8>
    b878:	e1a0000a 	mov	r0, sl                                        
    b87c:	e1a01008 	mov	r1, r8                                        
    b880:	eb0016a5 	bl	1131c <__umodsi3>                              
    b884:	e060400a 	rsb	r4, r0, sl                                    
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    b888:	e35b0000 	cmp	fp, #0                                        
    b88c:	0a000026 	beq	b92c <_Heap_Allocate_aligned_with_boundary+0x16c>
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
    alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
    b890:	e084a005 	add	sl, r4, r5                                    
    b894:	e1a0000a 	mov	r0, sl                                        
    b898:	e1a0100b 	mov	r1, fp                                        
    b89c:	eb00169e 	bl	1131c <__umodsi3>                              
    b8a0:	e060000a 	rsb	r0, r0, sl                                    
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
    b8a4:	e15a0000 	cmp	sl, r0                                        
    b8a8:	93a0a000 	movls	sl, #0                                      
    b8ac:	83a0a001 	movhi	sl, #1                                      
    b8b0:	e1540000 	cmp	r4, r0                                        
    b8b4:	23a0a000 	movcs	sl, #0                                      
    b8b8:	e35a0000 	cmp	sl, #0                                        
    b8bc:	0a00001a 	beq	b92c <_Heap_Allocate_aligned_with_boundary+0x16c>
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    b8c0:	e59d1008 	ldr	r1, [sp, #8]                                  
    b8c4:	e0813005 	add	r3, r1, r5                                    
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
    b8c8:	e1530000 	cmp	r3, r0                                        
    b8cc:	958d9018 	strls	r9, [sp, #24]                               
    b8d0:	91a09003 	movls	r9, r3                                      
    b8d4:	9a000002 	bls	b8e4 <_Heap_Allocate_aligned_with_boundary+0x124>
    b8d8:	ea000023 	b	b96c <_Heap_Allocate_aligned_with_boundary+0x1ac>
    b8dc:	e1590000 	cmp	r9, r0                                        
    b8e0:	8a00003e 	bhi	b9e0 <_Heap_Allocate_aligned_with_boundary+0x220>
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
    b8e4:	e0654000 	rsb	r4, r5, r0                                    
    b8e8:	e1a01008 	mov	r1, r8                                        
    b8ec:	e1a00004 	mov	r0, r4                                        
    b8f0:	eb001689 	bl	1131c <__umodsi3>                              
    b8f4:	e0604004 	rsb	r4, r0, r4                                    
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
    b8f8:	e084a005 	add	sl, r4, r5                                    
    b8fc:	e1a0000a 	mov	r0, sl                                        
    b900:	e1a0100b 	mov	r1, fp                                        
    b904:	eb001684 	bl	1131c <__umodsi3>                              
    b908:	e060000a 	rsb	r0, r0, sl                                    
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
    b90c:	e15a0000 	cmp	sl, r0                                        
    b910:	93a0a000 	movls	sl, #0                                      
    b914:	83a0a001 	movhi	sl, #1                                      
    b918:	e1540000 	cmp	r4, r0                                        
    b91c:	23a0a000 	movcs	sl, #0                                      
    b920:	e35a0000 	cmp	sl, #0                                        
    b924:	1affffec 	bne	b8dc <_Heap_Allocate_aligned_with_boundary+0x11c>
    b928:	e59d9018 	ldr	r9, [sp, #24]                                 
      boundary_line = _Heap_Align_down( alloc_end, boundary );        
    }                                                                 
  }                                                                   
                                                                      
  /* Ensure that the we have a valid new block at the beginning */    
  if ( alloc_begin >= alloc_begin_floor ) {                           
    b92c:	e59d2008 	ldr	r2, [sp, #8]                                  
    b930:	e1520004 	cmp	r2, r4                                        
    b934:	8a00000c 	bhi	b96c <_Heap_Allocate_aligned_with_boundary+0x1ac>
    b938:	e59d100c 	ldr	r1, [sp, #12]                                 
    b93c:	e1a00004 	mov	r0, r4                                        
    b940:	eb001675 	bl	1131c <__umodsi3>                              
    b944:	e269a4ff 	rsb	sl, r9, #-16777216	; 0xff000000               
    b948:	e28aa8ff 	add	sl, sl, #16711680	; 0xff0000                  
    b94c:	e28aacff 	add	sl, sl, #65280	; 0xff00                       
    b950:	e28aa0f8 	add	sl, sl, #248	; 0xf8                           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
    b954:	e08aa004 	add	sl, sl, r4                                    
    uintptr_t const alloc_block_begin =                               
      (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
    uintptr_t const free_size = alloc_block_begin - block_begin;      
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
    b958:	e59d1004 	ldr	r1, [sp, #4]                                  
    b95c:	e060300a 	rsb	r3, r0, sl                                    
    b960:	e15a0000 	cmp	sl, r0                                        
    b964:	11510003 	cmpne	r1, r3                                      
    b968:	9a000005 	bls	b984 <_Heap_Allocate_aligned_with_boundary+0x1c4>
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
    b96c:	e5999008 	ldr	r9, [r9, #8]                                  
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b970:	e1570009 	cmp	r7, r9                                        
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
    b974:	e2863001 	add	r3, r6, #1                                    
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b978:	0a00001d 	beq	b9f4 <_Heap_Allocate_aligned_with_boundary+0x234>
    b97c:	e1a06003 	mov	r6, r3                                        
    b980:	eaffffa4 	b	b818 <_Heap_Allocate_aligned_with_boundary+0x58>
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
    b984:	e3540000 	cmp	r4, #0                                        
    b988:	0afffff7 	beq	b96c <_Heap_Allocate_aligned_with_boundary+0x1ac>
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
    b98c:	e2872048 	add	r2, r7, #72	; 0x48                            
    b990:	e892000c 	ldm	r2, {r2, r3}                                  
    b994:	e2822001 	add	r2, r2, #1                                    
    stats->searches += search_count;                                  
    b998:	e0833006 	add	r3, r3, r6                                    
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
    b99c:	e5872048 	str	r2, [r7, #72]	; 0x48                          
    stats->searches += search_count;                                  
    b9a0:	e587304c 	str	r3, [r7, #76]	; 0x4c                          
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
    b9a4:	e1a00007 	mov	r0, r7                                        
    b9a8:	e1a01009 	mov	r1, r9                                        
    b9ac:	e1a02004 	mov	r2, r4                                        
    b9b0:	e1a03005 	mov	r3, r5                                        
    b9b4:	ebffeb8b 	bl	67e8 <_Heap_Block_allocate>                    
    b9b8:	e1a00004 	mov	r0, r4                                        
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
    b9bc:	e5973044 	ldr	r3, [r7, #68]	; 0x44                          
    b9c0:	e1530006 	cmp	r3, r6                                        
    stats->max_search = search_count;                                 
    b9c4:	35876044 	strcc	r6, [r7, #68]	; 0x44                        
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
    b9c8:	e28dd01c 	add	sp, sp, #28                                   
    b9cc:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
    b9d0:	e1550003 	cmp	r5, r3                                        
    b9d4:	9a000008 	bls	b9fc <_Heap_Allocate_aligned_with_boundary+0x23c>
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b9d8:	e3a00000 	mov	r0, #0                                        
    b9dc:	eafffff9 	b	b9c8 <_Heap_Allocate_aligned_with_boundary+0x208>
    b9e0:	e59d9018 	ldr	r9, [sp, #24]                                 <== NOT EXECUTED
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
    b9e4:	e5999008 	ldr	r9, [r9, #8]                                  <== NOT EXECUTED
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b9e8:	e1570009 	cmp	r7, r9                                        <== NOT EXECUTED
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
    b9ec:	e2863001 	add	r3, r6, #1                                    <== NOT EXECUTED
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
    b9f0:	1affffe1 	bne	b97c <_Heap_Allocate_aligned_with_boundary+0x1bc><== NOT EXECUTED
    b9f4:	e3a00000 	mov	r0, #0                                        
    b9f8:	eaffffef 	b	b9bc <_Heap_Allocate_aligned_with_boundary+0x1fc>
    if ( boundary < alloc_size ) {                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    b9fc:	e3580000 	cmp	r8, #0                                        
    ba00:	01a08002 	moveq	r8, r2                                      
    ba04:	eaffff7a 	b	b7f4 <_Heap_Allocate_aligned_with_boundary+0x34>
                                                                      

0000ba08 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
    ba08:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
    ba0c:	e1a04000 	mov	r4, r0                                        
    ba10:	e1a05001 	mov	r5, r1                                        
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
    ba14:	e1a00001 	mov	r0, r1                                        
    ba18:	e5941010 	ldr	r1, [r4, #16]                                 
    ba1c:	eb00163e 	bl	1131c <__umodsi3>                              
    ba20:	e2455008 	sub	r5, r5, #8                                    
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    ba24:	e5943020 	ldr	r3, [r4, #32]                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
    ba28:	e0605005 	rsb	r5, r0, r5                                    
  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;             
    ba2c:	e1550003 	cmp	r5, r3                                        
    ba30:	3a00002f 	bcc	baf4 <_Heap_Free+0xec>                        
    ba34:	e5941024 	ldr	r1, [r4, #36]	; 0x24                          
    ba38:	e1550001 	cmp	r5, r1                                        
    ba3c:	8a00002c 	bhi	baf4 <_Heap_Free+0xec>                        
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    ba40:	e595c004 	ldr	ip, [r5, #4]                                  
    - 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;                
    ba44:	e3cc6001 	bic	r6, ip, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    ba48:	e0852006 	add	r2, r5, r6                                    
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
    ba4c:	e1530002 	cmp	r3, r2                                        
    ba50:	8a000027 	bhi	baf4 <_Heap_Free+0xec>                        
    ba54:	e1510002 	cmp	r1, r2                                        
    ba58:	3a000027 	bcc	bafc <_Heap_Free+0xf4>                        
    ba5c:	e5927004 	ldr	r7, [r2, #4]                                  
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
    ba60:	e2170001 	ands	r0, r7, #1                                   
    ba64:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
    ba68:	e1510002 	cmp	r1, r2                                        
    - 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;                
    ba6c:	e3c77001 	bic	r7, r7, #1                                    
    ba70:	03a08000 	moveq	r8, #0                                      
    ba74:	0a000004 	beq	ba8c <_Heap_Free+0x84>                        
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    ba78:	e0820007 	add	r0, r2, 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;                 
    ba7c:	e5900004 	ldr	r0, [r0, #4]                                  
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
    ba80:	e3100001 	tst	r0, #1                                        
    ba84:	13a08000 	movne	r8, #0                                      
    ba88:	03a08001 	moveq	r8, #1                                      
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    ba8c:	e21c0001 	ands	r0, ip, #1                                   
    ba90:	1a00001b 	bne	bb04 <_Heap_Free+0xfc>                        
    uintptr_t const prev_size = block->prev_size;                     
    ba94:	e595c000 	ldr	ip, [r5]                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    ba98:	e06ca005 	rsb	sl, ip, r5                                    
  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;             
    ba9c:	e153000a 	cmp	r3, sl                                        
    baa0:	88bd85f0 	pophi	{r4, r5, r6, r7, r8, sl, pc}                
    baa4:	e151000a 	cmp	r1, sl                                        
    baa8:	38bd85f0 	popcc	{r4, r5, r6, r7, r8, sl, pc}                
  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;                 
    baac:	e59a0004 	ldr	r0, [sl, #4]                                  
      return( false );                                                
    }                                                                 
                                                                      
    /* As we always coalesce free blocks, the block that preceedes prev_block
       must have been used. */                                        
    if ( !_Heap_Is_prev_used ( prev_block) ) {                        
    bab0:	e2100001 	ands	r0, r0, #1                                   
    bab4:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
    bab8:	e3580000 	cmp	r8, #0                                        
    babc:	0a000039 	beq	bba8 <_Heap_Free+0x1a0>                       
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
    bac0:	e5940038 	ldr	r0, [r4, #56]	; 0x38                          
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
    bac4:	e0867007 	add	r7, r6, r7                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    bac8:	e5923008 	ldr	r3, [r2, #8]                                  
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
    bacc:	e087c00c 	add	ip, r7, ip                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    bad0:	e592200c 	ldr	r2, [r2, #12]                                 
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
    bad4:	e2400001 	sub	r0, r0, #1                                    
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
    bad8:	e38c1001 	orr	r1, ip, #1                                    
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
    badc:	e5823008 	str	r3, [r2, #8]                                  
  next->prev = prev;                                                  
    bae0:	e583200c 	str	r2, [r3, #12]                                 
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
    bae4:	e5840038 	str	r0, [r4, #56]	; 0x38                          
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
    bae8:	e58a1004 	str	r1, [sl, #4]                                  
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    baec:	e78ac00c 	str	ip, [sl, ip]                                  
    baf0:	ea00000f 	b	bb34 <_Heap_Free+0x12c>                         
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    _HAssert( false );                                                
    return false;                                                     
    baf4:	e3a00000 	mov	r0, #0                                        
    baf8:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
    bafc:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    bb00:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    bb04:	e3580000 	cmp	r8, #0                                        
    bb08:	0a000014 	beq	bb60 <_Heap_Free+0x158>                       
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    bb0c:	e5923008 	ldr	r3, [r2, #8]                                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
    bb10:	e0877006 	add	r7, r7, r6                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
    bb14:	e592200c 	ldr	r2, [r2, #12]                                 
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
    bb18:	e3871001 	orr	r1, r7, #1                                    
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
    bb1c:	e5853008 	str	r3, [r5, #8]                                  
  new_block->prev = prev;                                             
    bb20:	e585200c 	str	r2, [r5, #12]                                 
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
    bb24:	e5825008 	str	r5, [r2, #8]                                  
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
    bb28:	e583500c 	str	r5, [r3, #12]                                 
    bb2c:	e5851004 	str	r1, [r5, #4]                                  
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
    bb30:	e7857007 	str	r7, [r5, r7]                                  
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
    bb34:	e5942040 	ldr	r2, [r4, #64]	; 0x40                          
  ++stats->frees;                                                     
    bb38:	e5943050 	ldr	r3, [r4, #80]	; 0x50                          
  stats->free_size += block_size;                                     
    bb3c:	e5941030 	ldr	r1, [r4, #48]	; 0x30                          
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
    bb40:	e2422001 	sub	r2, r2, #1                                    
  ++stats->frees;                                                     
    bb44:	e2833001 	add	r3, r3, #1                                    
  stats->free_size += block_size;                                     
    bb48:	e0816006 	add	r6, r1, r6                                    
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
    bb4c:	e5842040 	str	r2, [r4, #64]	; 0x40                          
  ++stats->frees;                                                     
    bb50:	e5843050 	str	r3, [r4, #80]	; 0x50                          
  stats->free_size += block_size;                                     
    bb54:	e5846030 	str	r6, [r4, #48]	; 0x30                          
                                                                      
  return( true );                                                     
    bb58:	e3a00001 	mov	r0, #1                                        
    bb5c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
    next_block->prev_size = size;                                     
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    bb60:	e3863001 	orr	r3, r6, #1                                    
    bb64:	e5853004 	str	r3, [r5, #4]                                  
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    bb68:	e2843038 	add	r3, r4, #56	; 0x38                            
    bb6c:	e8931008 	ldm	r3, {r3, ip}                                  
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    bb70:	e5920004 	ldr	r0, [r2, #4]                                  
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
    bb74:	e5941008 	ldr	r1, [r4, #8]                                  
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    bb78:	e2833001 	add	r3, r3, #1                                    
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    bb7c:	e3c00001 	bic	r0, r0, #1                                    
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
    bb80:	e153000c 	cmp	r3, ip                                        
                                                                      
  new_block->next = next;                                             
    bb84:	e5851008 	str	r1, [r5, #8]                                  
  new_block->prev = block_before;                                     
    bb88:	e585400c 	str	r4, [r5, #12]                                 
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    bb8c:	e5820004 	str	r0, [r2, #4]                                  
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
    bb90:	e581500c 	str	r5, [r1, #12]                                 
    next_block->prev_size = block_size;                               
    bb94:	e7856006 	str	r6, [r5, r6]                                  
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
    bb98:	e5845008 	str	r5, [r4, #8]                                  
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    bb9c:	e5843038 	str	r3, [r4, #56]	; 0x38                          
    if ( stats->max_free_blocks < stats->free_blocks ) {              
      stats->max_free_blocks = stats->free_blocks;                    
    bba0:	8584303c 	strhi	r3, [r4, #60]	; 0x3c                        
    bba4:	eaffffe2 	b	bb34 <_Heap_Free+0x12c>                         
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
    bba8:	e086c00c 	add	ip, r6, ip                                    
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
    bbac:	e38c3001 	orr	r3, ip, #1                                    
    bbb0:	e58a3004 	str	r3, [sl, #4]                                  
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
    bbb4:	e5923004 	ldr	r3, [r2, #4]                                  
    bbb8:	e3c33001 	bic	r3, r3, #1                                    
    bbbc:	e5823004 	str	r3, [r2, #4]                                  
      next_block->prev_size = size;                                   
    bbc0:	e785c006 	str	ip, [r5, r6]                                  
    bbc4:	eaffffda 	b	bb34 <_Heap_Free+0x12c>                         
                                                                      

00013148 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
   13148:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
   1314c:	e1a04000 	mov	r4, r0                                        
   13150:	e1a05001 	mov	r5, r1                                        
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
   13154:	e1a00001 	mov	r0, r1                                        
   13158:	e5941010 	ldr	r1, [r4, #16]                                 
   1315c:	e1a07002 	mov	r7, r2                                        
   13160:	ebfff86d 	bl	1131c <__umodsi3>                              
   13164:	e2456008 	sub	r6, r5, #8                                    
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
   13168:	e5943020 	ldr	r3, [r4, #32]                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
   1316c:	e0600006 	rsb	r0, r0, r6                                    
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
   13170:	e1500003 	cmp	r0, r3                                        
   13174:	3a000010 	bcc	131bc <_Heap_Size_of_alloc_area+0x74>         
   13178:	e5942024 	ldr	r2, [r4, #36]	; 0x24                          
   1317c:	e1500002 	cmp	r0, r2                                        
   13180:	8a00000d 	bhi	131bc <_Heap_Size_of_alloc_area+0x74>         
    - 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;                
   13184:	e5906004 	ldr	r6, [r0, #4]                                  
   13188:	e3c66001 	bic	r6, r6, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
   1318c:	e0806006 	add	r6, r0, r6                                    
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
   13190:	e1530006 	cmp	r3, r6                                        
   13194:	8a000008 	bhi	131bc <_Heap_Size_of_alloc_area+0x74>         
   13198:	e1520006 	cmp	r2, r6                                        
   1319c:	3a000008 	bcc	131c4 <_Heap_Size_of_alloc_area+0x7c>         
  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;                 
   131a0:	e5960004 	ldr	r0, [r6, #4]                                  
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
   131a4:	e2100001 	ands	r0, r0, #1                                   
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
   131a8:	12655004 	rsbne	r5, r5, #4                                  
   131ac:	10856006 	addne	r6, r5, r6                                  
   131b0:	15876000 	strne	r6, [r7]                                    
                                                                      
  return true;                                                        
   131b4:	13a00001 	movne	r0, #1                                      
   131b8:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
   131bc:	e3a00000 	mov	r0, #0                                        
   131c0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
   131c4:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
                                                                      
  return true;                                                        
}                                                                     
   131c8:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

00007558 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
    7558:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  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() ) ) {                
    755c:	e59f35cc 	ldr	r3, [pc, #1484]	; 7b30 <_Heap_Walk+0x5d8>     
  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;                      
    7560:	e31200ff 	tst	r2, #255	; 0xff                               
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    7564:	e5933000 	ldr	r3, [r3]                                      
  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;                      
    7568:	e59f25c4 	ldr	r2, [pc, #1476]	; 7b34 <_Heap_Walk+0x5dc>     
    756c:	e59f95c4 	ldr	r9, [pc, #1476]	; 7b38 <_Heap_Walk+0x5e0>     
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
    7570:	e1a0a001 	mov	sl, 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;                      
    7574:	11a09002 	movne	r9, r2                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
    7578:	e5901010 	ldr	r1, [r0, #16]                                 
  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() ) ) {                
    757c:	e3530003 	cmp	r3, #3                                        
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
    7580:	e5902014 	ldr	r2, [r0, #20]                                 
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
    7584:	e5903024 	ldr	r3, [r0, #36]	; 0x24                          
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
    7588:	e24dd038 	sub	sp, sp, #56	; 0x38                            
    758c:	e1a04000 	mov	r4, r0                                        
  uintptr_t const page_size = heap->page_size;                        
    7590:	e58d1024 	str	r1, [sp, #36]	; 0x24                          
  uintptr_t const min_block_size = heap->min_block_size;              
    7594:	e58d2028 	str	r2, [sp, #40]	; 0x28                          
  Heap_Block *const first_block = heap->first_block;                  
    7598:	e5908020 	ldr	r8, [r0, #32]                                 
  Heap_Block *const last_block = heap->last_block;                    
    759c:	e58d302c 	str	r3, [sp, #44]	; 0x2c                          
  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() ) ) {                
    75a0:	0a000002 	beq	75b0 <_Heap_Walk+0x58>                        
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
    75a4:	e3a00001 	mov	r0, #1                                        
}                                                                     
    75a8:	e28dd038 	add	sp, sp, #56	; 0x38                            
    75ac:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
  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)(                                                         
    75b0:	e594101c 	ldr	r1, [r4, #28]                                 
    75b4:	e5900018 	ldr	r0, [r0, #24]                                 
    75b8:	e2842008 	add	r2, r4, #8                                    
    75bc:	e892000c 	ldm	r2, {r2, r3}                                  
    75c0:	e59dc028 	ldr	ip, [sp, #40]	; 0x28                          
    75c4:	e58d1008 	str	r1, [sp, #8]                                  
    75c8:	e59d102c 	ldr	r1, [sp, #44]	; 0x2c                          
    75cc:	e58d0004 	str	r0, [sp, #4]                                  
    75d0:	e58d1010 	str	r1, [sp, #16]                                 
    75d4:	e58d2014 	str	r2, [sp, #20]                                 
    75d8:	e58d3018 	str	r3, [sp, #24]                                 
    75dc:	e59f2558 	ldr	r2, [pc, #1368]	; 7b3c <_Heap_Walk+0x5e4>     
    75e0:	e58dc000 	str	ip, [sp]                                      
    75e4:	e58d800c 	str	r8, [sp, #12]                                 
    75e8:	e1a0000a 	mov	r0, sl                                        
    75ec:	e3a01000 	mov	r1, #0                                        
    75f0:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
    75f4:	e1a0e00f 	mov	lr, pc                                        
    75f8:	e12fff19 	bx	r9                                             
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    75fc:	e59d2024 	ldr	r2, [sp, #36]	; 0x24                          
    7600:	e3520000 	cmp	r2, #0                                        
    7604:	0a000026 	beq	76a4 <_Heap_Walk+0x14c>                       
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    7608:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
    760c:	e2135007 	ands	r5, r3, #7                                   
    7610:	1a00002a 	bne	76c0 <_Heap_Walk+0x168>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    7614:	e59d0028 	ldr	r0, [sp, #40]	; 0x28                          
    7618:	e59d1024 	ldr	r1, [sp, #36]	; 0x24                          
    761c:	ebffe55f 	bl	ba0 <__umodsi3>                                
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    7620:	e250b000 	subs	fp, r0, #0                                   
    7624:	1a00002c 	bne	76dc <_Heap_Walk+0x184>                       
    7628:	e2880008 	add	r0, r8, #8                                    
    762c:	e59d1024 	ldr	r1, [sp, #36]	; 0x24                          
    7630:	ebffe55a 	bl	ba0 <__umodsi3>                                
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
    7634:	e2506000 	subs	r6, r0, #0                                   
    7638:	1a00002f 	bne	76fc <_Heap_Walk+0x1a4>                       
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    763c:	e598b004 	ldr	fp, [r8, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    7640:	e21b5001 	ands	r5, fp, #1                                   
    7644:	0a0000cd 	beq	7980 <_Heap_Walk+0x428>                       
    - 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;                
    7648:	e59dc02c 	ldr	ip, [sp, #44]	; 0x2c                          
    764c:	e59c3004 	ldr	r3, [ip, #4]                                  
    7650:	e3c33001 	bic	r3, r3, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    7654:	e08c3003 	add	r3, ip, 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;                 
    7658:	e5935004 	ldr	r5, [r3, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    765c:	e2155001 	ands	r5, r5, #1                                   
    7660:	0a000008 	beq	7688 <_Heap_Walk+0x130>                       
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
    7664:	e1580003 	cmp	r8, r3                                        
    7668:	0a00002b 	beq	771c <_Heap_Walk+0x1c4>                       
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
    766c:	e1a0000a 	mov	r0, sl                                        <== NOT EXECUTED
    7670:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
    7674:	e59f24c4 	ldr	r2, [pc, #1220]	; 7b40 <_Heap_Walk+0x5e8>     <== NOT EXECUTED
    7678:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    767c:	e12fff19 	bx	r9                                             <== NOT EXECUTED
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7680:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    7684:	eaffffc7 	b	75a8 <_Heap_Walk+0x50>                          <== NOT EXECUTED
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    (*printer)(                                                       
    7688:	e1a0000a 	mov	r0, sl                                        
    768c:	e3a01001 	mov	r1, #1                                        
    7690:	e59f24ac 	ldr	r2, [pc, #1196]	; 7b44 <_Heap_Walk+0x5ec>     
    7694:	e1a0e00f 	mov	lr, pc                                        
    7698:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    769c:	e1a00005 	mov	r0, r5                                        
    76a0:	eaffffc0 	b	75a8 <_Heap_Walk+0x50>                          
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    (*printer)( source, true, "page size is zero\n" );                
    76a4:	e1a0000a 	mov	r0, sl                                        
    76a8:	e3a01001 	mov	r1, #1                                        
    76ac:	e59f2494 	ldr	r2, [pc, #1172]	; 7b48 <_Heap_Walk+0x5f0>     
    76b0:	e1a0e00f 	mov	lr, pc                                        
    76b4:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    76b8:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
    76bc:	eaffffb9 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    (*printer)(                                                       
    76c0:	e1a0000a 	mov	r0, sl                                        
    76c4:	e3a01001 	mov	r1, #1                                        
    76c8:	e59f247c 	ldr	r2, [pc, #1148]	; 7b4c <_Heap_Walk+0x5f4>     
    76cc:	e1a0e00f 	mov	lr, pc                                        
    76d0:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    76d4:	e3a00000 	mov	r0, #0                                        
    76d8:	eaffffb2 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    (*printer)(                                                       
    76dc:	e1a0000a 	mov	r0, sl                                        
    76e0:	e3a01001 	mov	r1, #1                                        
    76e4:	e59f2464 	ldr	r2, [pc, #1124]	; 7b50 <_Heap_Walk+0x5f8>     
    76e8:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    76ec:	e1a0e00f 	mov	lr, pc                                        
    76f0:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    76f4:	e1a00005 	mov	r0, r5                                        
    76f8:	eaffffaa 	b	75a8 <_Heap_Walk+0x50>                          
  }                                                                   
                                                                      
  if (                                                                
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
    76fc:	e1a0000a 	mov	r0, sl                                        
    7700:	e3a01001 	mov	r1, #1                                        
    7704:	e59f2448 	ldr	r2, [pc, #1096]	; 7b54 <_Heap_Walk+0x5fc>     
    7708:	e1a03008 	mov	r3, r8                                        
    770c:	e1a0e00f 	mov	lr, pc                                        
    7710:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7714:	e1a0000b 	mov	r0, fp                                        
    7718:	eaffffa2 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    771c:	e5945008 	ldr	r5, [r4, #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 ) {                            
    7720:	e1540005 	cmp	r4, r5                                        
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
    7724:	e5947010 	ldr	r7, [r4, #16]                                 
  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 ) {                            
    7728:	05943020 	ldreq	r3, [r4, #32]                               
    772c:	0a00000d 	beq	7768 <_Heap_Walk+0x210>                       
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    7730:	e5943020 	ldr	r3, [r4, #32]                                 
  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;             
    7734:	e1530005 	cmp	r3, r5                                        
    7738:	9a000097 	bls	799c <_Heap_Walk+0x444>                       
  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 ) ) {              
      (*printer)(                                                     
    773c:	e1a0000a 	mov	r0, sl                                        
    7740:	e3a01001 	mov	r1, #1                                        
    7744:	e59f240c 	ldr	r2, [pc, #1036]	; 7b58 <_Heap_Walk+0x600>     
    7748:	e1a03005 	mov	r3, r5                                        
    774c:	e1a0e00f 	mov	lr, pc                                        
    7750:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7754:	e3a00000 	mov	r0, #0                                        
    7758:	eaffff92 	b	75a8 <_Heap_Walk+0x50>                          
    775c:	e1a03008 	mov	r3, r8                                        
    7760:	e28d8030 	add	r8, sp, #48	; 0x30                            
    7764:	e8980900 	ldm	r8, {r8, fp}                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
    7768:	e1a06008 	mov	r6, r8                                        
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
    776c:	e3cb7001 	bic	r7, fp, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
    7770:	e0875006 	add	r5, r7, r6                                    
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
    7774:	e1530005 	cmp	r3, r5                                        
    7778:	9a000008 	bls	77a0 <_Heap_Walk+0x248>                       
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
      (*printer)(                                                     
    777c:	e1a0000a 	mov	r0, sl                                        
    7780:	e58d5000 	str	r5, [sp]                                      
    7784:	e3a01001 	mov	r1, #1                                        
    7788:	e59f23cc 	ldr	r2, [pc, #972]	; 7b5c <_Heap_Walk+0x604>      
    778c:	e1a03006 	mov	r3, r6                                        
    7790:	e1a0e00f 	mov	lr, pc                                        
    7794:	e12fff19 	bx	r9                                             
        "block 0x%08x: next block 0x%08x not in heap\n",              
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
    7798:	e3a00000 	mov	r0, #0                                        
    779c:	eaffff81 	b	75a8 <_Heap_Walk+0x50>                          
    77a0:	e5943024 	ldr	r3, [r4, #36]	; 0x24                          
    77a4:	e1530005 	cmp	r3, r5                                        
    77a8:	3afffff3 	bcc	777c <_Heap_Walk+0x224>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    77ac:	e59d1024 	ldr	r1, [sp, #36]	; 0x24                          
    77b0:	e1a00007 	mov	r0, r7                                        
    77b4:	ebffe4f9 	bl	ba0 <__umodsi3>                                
    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;               
    77b8:	e59d102c 	ldr	r1, [sp, #44]	; 0x2c                          
    77bc:	e0563001 	subs	r3, r6, r1                                   
    77c0:	13a03001 	movne	r3, #1                                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
    77c4:	e3500000 	cmp	r0, #0                                        
    77c8:	0a000001 	beq	77d4 <_Heap_Walk+0x27c>                       
    77cc:	e3530000 	cmp	r3, #0                                        
    77d0:	1a0000aa 	bne	7a80 <_Heap_Walk+0x528>                       
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
    77d4:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
    77d8:	e1520007 	cmp	r2, r7                                        
    77dc:	9a000001 	bls	77e8 <_Heap_Walk+0x290>                       
    77e0:	e3530000 	cmp	r3, #0                                        
    77e4:	1a0000ae 	bne	7aa4 <_Heap_Walk+0x54c>                       
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
    77e8:	e1560005 	cmp	r6, r5                                        
    77ec:	3a000001 	bcc	77f8 <_Heap_Walk+0x2a0>                       
    77f0:	e3530000 	cmp	r3, #0                                        
    77f4:	1a0000b4 	bne	7acc <_Heap_Walk+0x574>                       
  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;                 
    77f8:	e5953004 	ldr	r3, [r5, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
    77fc:	e3130001 	tst	r3, #1                                        
    7800:	e20bb001 	and	fp, fp, #1                                    
    7804:	0a000018 	beq	786c <_Heap_Walk+0x314>                       
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
    7808:	e35b0000 	cmp	fp, #0                                        
    780c:	0a00000c 	beq	7844 <_Heap_Walk+0x2ec>                       
      (*printer)(                                                     
    7810:	e58d7000 	str	r7, [sp]                                      
    7814:	e1a0000a 	mov	r0, sl                                        
    7818:	e3a01000 	mov	r1, #0                                        
    781c:	e59f233c 	ldr	r2, [pc, #828]	; 7b60 <_Heap_Walk+0x608>      
    7820:	e1a03006 	mov	r3, r6                                        
    7824:	e1a0e00f 	mov	lr, pc                                        
    7828:	e12fff19 	bx	r9                                             
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
    782c:	e1580005 	cmp	r8, r5                                        
    7830:	0affff5b 	beq	75a4 <_Heap_Walk+0x4c>                        
    7834:	e595b004 	ldr	fp, [r5, #4]                                  
    7838:	e5943020 	ldr	r3, [r4, #32]                                 
    783c:	e1a06005 	mov	r6, r5                                        
    7840:	eaffffc9 	b	776c <_Heap_Walk+0x214>                         
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
    7844:	e58d7000 	str	r7, [sp]                                      
    7848:	e5963000 	ldr	r3, [r6]                                      
    784c:	e1a0000a 	mov	r0, sl                                        
    7850:	e58d3004 	str	r3, [sp, #4]                                  
    7854:	e1a0100b 	mov	r1, fp                                        
    7858:	e59f2304 	ldr	r2, [pc, #772]	; 7b64 <_Heap_Walk+0x60c>      
    785c:	e1a03006 	mov	r3, r6                                        
    7860:	e1a0e00f 	mov	lr, pc                                        
    7864:	e12fff19 	bx	r9                                             
    7868:	eaffffef 	b	782c <_Heap_Walk+0x2d4>                         
    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 ?                                 
    786c:	e596200c 	ldr	r2, [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)(                                                         
    7870:	e5943008 	ldr	r3, [r4, #8]                                  
    7874:	e1530002 	cmp	r3, r2                                        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    7878:	e594100c 	ldr	r1, [r4, #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)(                                                         
    787c:	059f02e4 	ldreq	r0, [pc, #740]	; 7b68 <_Heap_Walk+0x610>    
    7880:	0a000003 	beq	7894 <_Heap_Walk+0x33c>                       
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    7884:	e59f32e0 	ldr	r3, [pc, #736]	; 7b6c <_Heap_Walk+0x614>      
    7888:	e1540002 	cmp	r4, r2                                        
    788c:	e59f02dc 	ldr	r0, [pc, #732]	; 7b70 <_Heap_Walk+0x618>      
    7890:	01a00003 	moveq	r0, r3                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
    7894:	e5963008 	ldr	r3, [r6, #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)(                                                         
    7898:	e1510003 	cmp	r1, r3                                        
    789c:	059f12d0 	ldreq	r1, [pc, #720]	; 7b74 <_Heap_Walk+0x61c>    
    78a0:	0a000003 	beq	78b4 <_Heap_Walk+0x35c>                       
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
    78a4:	e59fc2cc 	ldr	ip, [pc, #716]	; 7b78 <_Heap_Walk+0x620>      
    78a8:	e1540003 	cmp	r4, r3                                        
    78ac:	e59f12bc 	ldr	r1, [pc, #700]	; 7b70 <_Heap_Walk+0x618>      
    78b0:	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)(                                                         
    78b4:	e58d2004 	str	r2, [sp, #4]                                  
    78b8:	e58d0008 	str	r0, [sp, #8]                                  
    78bc:	e58d300c 	str	r3, [sp, #12]                                 
    78c0:	e58d1010 	str	r1, [sp, #16]                                 
    78c4:	e1a03006 	mov	r3, r6                                        
    78c8:	e58d7000 	str	r7, [sp]                                      
    78cc:	e1a0000a 	mov	r0, sl                                        
    78d0:	e3a01000 	mov	r1, #0                                        
    78d4:	e59f22a0 	ldr	r2, [pc, #672]	; 7b7c <_Heap_Walk+0x624>      
    78d8:	e1a0e00f 	mov	lr, pc                                        
    78dc:	e12fff19 	bx	r9                                             
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    78e0:	e5953000 	ldr	r3, [r5]                                      
    78e4:	e1570003 	cmp	r7, r3                                        
    78e8:	1a000011 	bne	7934 <_Heap_Walk+0x3dc>                       
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    78ec:	e35b0000 	cmp	fp, #0                                        
    78f0:	0a00001a 	beq	7960 <_Heap_Walk+0x408>                       
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    78f4:	e5943008 	ldr	r3, [r4, #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 ) {                            
    78f8:	e1540003 	cmp	r4, r3                                        
    78fc:	0a000004 	beq	7914 <_Heap_Walk+0x3bc>                       
    if ( free_block == block ) {                                      
    7900:	e1560003 	cmp	r6, r3                                        
    7904:	0affffc8 	beq	782c <_Heap_Walk+0x2d4>                       
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
    7908:	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 ) {                            
    790c:	e1540003 	cmp	r4, r3                                        
    7910:	1afffffa 	bne	7900 <_Heap_Walk+0x3a8>                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
    7914:	e1a0000a 	mov	r0, sl                                        
    7918:	e3a01001 	mov	r1, #1                                        
    791c:	e59f225c 	ldr	r2, [pc, #604]	; 7b80 <_Heap_Walk+0x628>      
    7920:	e1a03006 	mov	r3, r6                                        
    7924:	e1a0e00f 	mov	lr, pc                                        
    7928:	e12fff19 	bx	r9                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
    792c:	e3a00000 	mov	r0, #0                                        
    7930:	eaffff1c 	b	75a8 <_Heap_Walk+0x50>                          
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    (*printer)(                                                       
    7934:	e58d3004 	str	r3, [sp, #4]                                  
    7938:	e1a0000a 	mov	r0, sl                                        
    793c:	e58d7000 	str	r7, [sp]                                      
    7940:	e58d5008 	str	r5, [sp, #8]                                  
    7944:	e3a01001 	mov	r1, #1                                        
    7948:	e59f2234 	ldr	r2, [pc, #564]	; 7b84 <_Heap_Walk+0x62c>      
    794c:	e1a03006 	mov	r3, r6                                        
    7950:	e1a0e00f 	mov	lr, pc                                        
    7954:	e12fff19 	bx	r9                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
    7958:	e3a00000 	mov	r0, #0                                        
    795c:	eaffff11 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    (*printer)(                                                       
    7960:	e1a0000a 	mov	r0, sl                                        
    7964:	e3a01001 	mov	r1, #1                                        
    7968:	e59f2218 	ldr	r2, [pc, #536]	; 7b88 <_Heap_Walk+0x630>      
    796c:	e1a03006 	mov	r3, r6                                        
    7970:	e1a0e00f 	mov	lr, pc                                        
    7974:	e12fff19 	bx	r9                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
    7978:	e1a0000b 	mov	r0, fp                                        
    797c:	eaffff09 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    (*printer)(                                                       
    7980:	e1a0000a 	mov	r0, sl                                        
    7984:	e3a01001 	mov	r1, #1                                        
    7988:	e59f21fc 	ldr	r2, [pc, #508]	; 7b8c <_Heap_Walk+0x634>      
    798c:	e1a0e00f 	mov	lr, pc                                        
    7990:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7994:	e1a00005 	mov	r0, r5                                        
    7998:	eaffff02 	b	75a8 <_Heap_Walk+0x50>                          
  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;             
    799c:	e594c024 	ldr	ip, [r4, #36]	; 0x24                          
    79a0:	e15c0005 	cmp	ip, r5                                        
    79a4:	3affff64 	bcc	773c <_Heap_Walk+0x1e4>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    79a8:	e2850008 	add	r0, r5, #8                                    
    79ac:	e1a01007 	mov	r1, r7                                        
    79b0:	e58d3020 	str	r3, [sp, #32]                                 
    79b4:	e58dc01c 	str	ip, [sp, #28]                                 
    79b8:	ebffe478 	bl	ba0 <__umodsi3>                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
    79bc:	e3500000 	cmp	r0, #0                                        
    79c0:	e59d3020 	ldr	r3, [sp, #32]                                 
    79c4:	e59dc01c 	ldr	ip, [sp, #28]                                 
    79c8:	1a000048 	bne	7af0 <_Heap_Walk+0x598>                       
    - 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;                
    79cc:	e5952004 	ldr	r2, [r5, #4]                                  
    79d0:	e3c22001 	bic	r2, r2, #1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    79d4:	e0852002 	add	r2, r5, r2                                    
  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;                 
    79d8:	e5922004 	ldr	r2, [r2, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
    79dc:	e3120001 	tst	r2, #1                                        
    79e0:	1a00004a 	bne	7b10 <_Heap_Walk+0x5b8>                       
    79e4:	e58d8030 	str	r8, [sp, #48]	; 0x30                          
    79e8:	e58db034 	str	fp, [sp, #52]	; 0x34                          
    79ec:	e1a01004 	mov	r1, r4                                        
    79f0:	e1a06005 	mov	r6, r5                                        
    79f4:	e1a08003 	mov	r8, r3                                        
    79f8:	e1a0b00c 	mov	fp, ip                                        
    79fc:	ea000013 	b	7a50 <_Heap_Walk+0x4f8>                         
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
    7a00:	e5955008 	ldr	r5, [r5, #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 ) {                            
    7a04:	e1540005 	cmp	r4, r5                                        
    7a08:	0affff53 	beq	775c <_Heap_Walk+0x204>                       
  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;             
    7a0c:	e1580005 	cmp	r8, r5                                        
    7a10:	8affff49 	bhi	773c <_Heap_Walk+0x1e4>                       
    7a14:	e155000b 	cmp	r5, fp                                        
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    7a18:	e2850008 	add	r0, r5, #8                                    
    7a1c:	e1a01007 	mov	r1, r7                                        
  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;             
    7a20:	8affff45 	bhi	773c <_Heap_Walk+0x1e4>                       
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
    7a24:	ebffe45d 	bl	ba0 <__umodsi3>                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
    7a28:	e3500000 	cmp	r0, #0                                        
    7a2c:	1a00002f 	bne	7af0 <_Heap_Walk+0x598>                       
    - 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;                
    7a30:	e5953004 	ldr	r3, [r5, #4]                                  
    7a34:	e3c33001 	bic	r3, r3, #1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
    7a38:	e0833005 	add	r3, r3, r5                                    
  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;                 
    7a3c:	e5933004 	ldr	r3, [r3, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
    7a40:	e3130001 	tst	r3, #1                                        
    7a44:	1a000031 	bne	7b10 <_Heap_Walk+0x5b8>                       
    7a48:	e1a01006 	mov	r1, r6                                        
    7a4c:	e1a06005 	mov	r6, r5                                        
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
    7a50:	e595200c 	ldr	r2, [r5, #12]                                 
    7a54:	e1520001 	cmp	r2, r1                                        
    7a58:	0affffe8 	beq	7a00 <_Heap_Walk+0x4a8>                       
      (*printer)(                                                     
    7a5c:	e58d2000 	str	r2, [sp]                                      
    7a60:	e1a0000a 	mov	r0, sl                                        
    7a64:	e3a01001 	mov	r1, #1                                        
    7a68:	e59f2120 	ldr	r2, [pc, #288]	; 7b90 <_Heap_Walk+0x638>      
    7a6c:	e1a03005 	mov	r3, r5                                        
    7a70:	e1a0e00f 	mov	lr, pc                                        
    7a74:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7a78:	e3a00000 	mov	r0, #0                                        
    7a7c:	eafffec9 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
      (*printer)(                                                     
    7a80:	e1a0000a 	mov	r0, sl                                        
    7a84:	e58d7000 	str	r7, [sp]                                      
    7a88:	e3a01001 	mov	r1, #1                                        
    7a8c:	e59f2100 	ldr	r2, [pc, #256]	; 7b94 <_Heap_Walk+0x63c>      
    7a90:	e1a03006 	mov	r3, r6                                        
    7a94:	e1a0e00f 	mov	lr, pc                                        
    7a98:	e12fff19 	bx	r9                                             
        "block 0x%08x: block size %u not page aligned\n",             
        block,                                                        
        block_size                                                    
      );                                                              
                                                                      
      return false;                                                   
    7a9c:	e3a00000 	mov	r0, #0                                        
    7aa0:	eafffec0 	b	75a8 <_Heap_Walk+0x50>                          
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
      (*printer)(                                                     
    7aa4:	e58d2004 	str	r2, [sp, #4]                                  
    7aa8:	e1a0000a 	mov	r0, sl                                        
    7aac:	e58d7000 	str	r7, [sp]                                      
    7ab0:	e3a01001 	mov	r1, #1                                        
    7ab4:	e59f20dc 	ldr	r2, [pc, #220]	; 7b98 <_Heap_Walk+0x640>      
    7ab8:	e1a03006 	mov	r3, r6                                        
    7abc:	e1a0e00f 	mov	lr, pc                                        
    7ac0:	e12fff19 	bx	r9                                             
        block,                                                        
        block_size,                                                   
        min_block_size                                                
      );                                                              
                                                                      
      return false;                                                   
    7ac4:	e3a00000 	mov	r0, #0                                        
    7ac8:	eafffeb6 	b	75a8 <_Heap_Walk+0x50>                          
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
      (*printer)(                                                     
    7acc:	e1a0000a 	mov	r0, sl                                        
    7ad0:	e58d5000 	str	r5, [sp]                                      
    7ad4:	e3a01001 	mov	r1, #1                                        
    7ad8:	e59f20bc 	ldr	r2, [pc, #188]	; 7b9c <_Heap_Walk+0x644>      
    7adc:	e1a03006 	mov	r3, r6                                        
    7ae0:	e1a0e00f 	mov	lr, pc                                        
    7ae4:	e12fff19 	bx	r9                                             
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
    7ae8:	e3a00000 	mov	r0, #0                                        
    7aec:	eafffead 	b	75a8 <_Heap_Walk+0x50>                          
    }                                                                 
                                                                      
    if (                                                              
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
    7af0:	e1a0000a 	mov	r0, sl                                        
    7af4:	e3a01001 	mov	r1, #1                                        
    7af8:	e59f20a0 	ldr	r2, [pc, #160]	; 7ba0 <_Heap_Walk+0x648>      
    7afc:	e1a03005 	mov	r3, r5                                        
    7b00:	e1a0e00f 	mov	lr, pc                                        
    7b04:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7b08:	e3a00000 	mov	r0, #0                                        
    7b0c:	eafffea5 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
      (*printer)(                                                     
    7b10:	e1a0000a 	mov	r0, sl                                        
    7b14:	e3a01001 	mov	r1, #1                                        
    7b18:	e59f2084 	ldr	r2, [pc, #132]	; 7ba4 <_Heap_Walk+0x64c>      
    7b1c:	e1a03005 	mov	r3, r5                                        
    7b20:	e1a0e00f 	mov	lr, pc                                        
    7b24:	e12fff19 	bx	r9                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
    7b28:	e3a00000 	mov	r0, #0                                        
    7b2c:	eafffe9d 	b	75a8 <_Heap_Walk+0x50>                          
                                                                      

00006a34 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
    6a34:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    6a38:	e5904034 	ldr	r4, [r0, #52]	; 0x34                          
    6a3c:	e3540000 	cmp	r4, #0                                        
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
    6a40:	e24dd014 	sub	sp, sp, #20                                   
    6a44:	e1a05000 	mov	r5, r0                                        
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
    6a48:	e1d070b8 	ldrh	r7, [r0, #8]                                 
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    6a4c:	0a00009b 	beq	6cc0 <_Objects_Extend_information+0x28c>      
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
    6a50:	e1d081b4 	ldrh	r8, [r0, #20]                                
    6a54:	e1d0a1b0 	ldrh	sl, [r0, #16]                                
    6a58:	e1a01008 	mov	r1, r8                                        
    6a5c:	e1a0000a 	mov	r0, sl                                        
    6a60:	eb0029e7 	bl	11204 <__aeabi_uidiv>                          
    6a64:	e1a03800 	lsl	r3, r0, #16                                   
                                                                      
    for ( ; block < block_count; block++ ) {                          
    6a68:	e1b03823 	lsrs	r3, r3, #16                                  
    6a6c:	0a000099 	beq	6cd8 <_Objects_Extend_information+0x2a4>      
      if ( information->object_blocks[ block ] == NULL ) {            
    6a70:	e5949000 	ldr	r9, [r4]                                      
    6a74:	e3590000 	cmp	r9, #0                                        
    6a78:	01a01008 	moveq	r1, r8                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
    6a7c:	01a06007 	moveq	r6, r7                                      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
    6a80:	01a04009 	moveq	r4, r9                                      
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
    6a84:	0a00000c 	beq	6abc <_Objects_Extend_information+0x88>       
    6a88:	e1a02004 	mov	r2, r4                                        
    6a8c:	e1a01008 	mov	r1, r8                                        
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
    6a90:	e1a06007 	mov	r6, r7                                        
  index_base    = minimum_index;                                      
  block         = 0;                                                  
    6a94:	e3a04000 	mov	r4, #0                                        
    6a98:	ea000002 	b	6aa8 <_Objects_Extend_information+0x74>         
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
    6a9c:	e5b29004 	ldr	r9, [r2, #4]!                                 
    6aa0:	e3590000 	cmp	r9, #0                                        
    6aa4:	0a000004 	beq	6abc <_Objects_Extend_information+0x88>       
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
    6aa8:	e2844001 	add	r4, r4, #1                                    
    6aac:	e1530004 	cmp	r3, r4                                        
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
        break;                                                        
      } else                                                          
        index_base += information->allocation_size;                   
    6ab0:	e0866008 	add	r6, r6, r8                                    
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
    6ab4:	8afffff8 	bhi	6a9c <_Objects_Extend_information+0x68>       
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
    6ab8:	e3a09001 	mov	r9, #1                                        
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
    6abc:	e08aa001 	add	sl, sl, r1                                    
  /*                                                                  
   *  We need to limit the number of objects to the maximum number    
   *  representable in the index portion of the object Id.  In the    
   *  case of 16-bit Ids, this is only 256 object instances.          
   */                                                                 
  if ( maximum > OBJECTS_ID_FINAL_INDEX ) {                           
    6ac0:	e35a0801 	cmp	sl, #65536	; 0x10000                          
    6ac4:	2a000063 	bcs	6c58 <_Objects_Extend_information+0x224>      
  /*                                                                  
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
  if ( information->auto_extend ) {                                   
    6ac8:	e5d52012 	ldrb	r2, [r5, #18]                                
                                                                      
  /*                                                                  
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
    6acc:	e5950018 	ldr	r0, [r5, #24]                                 
  if ( information->auto_extend ) {                                   
    6ad0:	e3520000 	cmp	r2, #0                                        
                                                                      
  /*                                                                  
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
    6ad4:	e0000091 	mul	r0, r1, r0                                    
  if ( information->auto_extend ) {                                   
    6ad8:	1a000060 	bne	6c60 <_Objects_Extend_information+0x22c>      
    new_object_block = _Workspace_Allocate( block_size );             
    if ( !new_object_block )                                          
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
    6adc:	e58d3000 	str	r3, [sp]                                      
    6ae0:	eb000877 	bl	8cc4 <_Workspace_Allocate_or_fatal_error>      
    6ae4:	e59d3000 	ldr	r3, [sp]                                      
    6ae8:	e1a08000 	mov	r8, r0                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
    6aec:	e3590000 	cmp	r9, #0                                        
    6af0:	0a000039 	beq	6bdc <_Objects_Extend_information+0x1a8>      
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
    6af4:	e283b001 	add	fp, r3, #1                                    
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
    6af8:	e08b008b 	add	r0, fp, fp, lsl #1                            
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    6afc:	e08a0000 	add	r0, sl, r0                                    
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
    6b00:	e0800007 	add	r0, r0, r7                                    
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
    6b04:	e1a00100 	lsl	r0, r0, #2                                    
    6b08:	e58d3000 	str	r3, [sp]                                      
    6b0c:	eb000862 	bl	8c9c <_Workspace_Allocate>                     
                                                                      
    if ( !object_blocks ) {                                           
    6b10:	e2509000 	subs	r9, r0, #0                                   
    6b14:	e59d3000 	ldr	r3, [sp]                                      
    6b18:	0a000073 	beq	6cec <_Objects_Extend_information+0x2b8>      
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
    6b1c:	e1d521b0 	ldrh	r2, [r5, #16]                                
    6b20:	e1570002 	cmp	r7, r2                                        
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
    6b24:	e089c10b 	add	ip, r9, fp, lsl #2                            
    6b28:	e089b18b 	add	fp, r9, fp, lsl #3                            
    6b2c:	3a000051 	bcc	6c78 <_Objects_Extend_information+0x244>      
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
    6b30:	e3570000 	cmp	r7, #0                                        
    6b34:	13a02000 	movne	r2, #0                                      
    6b38:	11a0100b 	movne	r1, fp                                      
        local_table[ index ] = NULL;                                  
    6b3c:	11a00002 	movne	r0, r2                                      
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
    6b40:	0a000003 	beq	6b54 <_Objects_Extend_information+0x120>      
    6b44:	e2822001 	add	r2, r2, #1                                    
    6b48:	e1570002 	cmp	r7, r2                                        
        local_table[ index ] = NULL;                                  
    6b4c:	e4810004 	str	r0, [r1], #4                                  
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
    6b50:	8afffffb 	bhi	6b44 <_Objects_Extend_information+0x110>      
    6b54:	e1a03103 	lsl	r3, r3, #2                                    
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
    6b58:	e1d511b4 	ldrh	r1, [r5, #20]                                
    6b5c:	e0861001 	add	r1, r6, r1                                    
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    6b60:	e3a00000 	mov	r0, #0                                        
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
    6b64:	e1560001 	cmp	r6, r1                                        
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    6b68:	e7890003 	str	r0, [r9, r3]                                  
    inactive_per_block[block_count] = 0;                              
    6b6c:	e78c0003 	str	r0, [ip, r3]                                  
                                                                      
    for ( index=index_base ;                                          
    6b70:	2a000005 	bcs	6b8c <_Objects_Extend_information+0x158>      
    6b74:	e08b2106 	add	r2, fp, r6, lsl #2                            
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
    6b78:	e1a03006 	mov	r3, r6                                        
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
    6b7c:	e2833001 	add	r3, r3, #1                                    
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
    6b80:	e1530001 	cmp	r3, r1                                        
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    6b84:	e4820004 	str	r0, [r2], #4                                  
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
    6b88:	3afffffb 	bcc	6b7c <_Objects_Extend_information+0x148>      
    6b8c:	e10f3000 	mrs	r3, CPSR                                      
    6b90:	e3832080 	orr	r2, r3, #128	; 0x80                           
    6b94:	e129f002 	msr	CPSR_fc, r2                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
    6b98:	e5952000 	ldr	r2, [r5]                                      
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
    6b9c:	e1d510b4 	ldrh	r1, [r5, #4]                                 
    6ba0:	e1a02c02 	lsl	r2, r2, #24                                   
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    6ba4:	e1a0a80a 	lsl	sl, sl, #16                                   
    6ba8:	e3822801 	orr	r2, r2, #65536	; 0x10000                      
    6bac:	e1a0a82a 	lsr	sl, sl, #16                                   
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
    6bb0:	e1822d81 	orr	r2, r2, r1, lsl #27                           
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
    6bb4:	e182200a 	orr	r2, r2, sl                                    
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
    6bb8:	e5950034 	ldr	r0, [r5, #52]	; 0x34                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    6bbc:	e585c030 	str	ip, [r5, #48]	; 0x30                          
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    6bc0:	e5859034 	str	r9, [r5, #52]	; 0x34                          
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    6bc4:	e585b01c 	str	fp, [r5, #28]                                 
    information->maximum = (Objects_Maximum) maximum;                 
    6bc8:	e1c5a1b0 	strh	sl, [r5, #16]                                
    information->maximum_id = _Objects_Build_id(                      
    6bcc:	e585200c 	str	r2, [r5, #12]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    6bd0:	e129f003 	msr	CPSR_fc, r3                                   
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
                                                                      
    if ( old_tables )                                                 
    6bd4:	e3500000 	cmp	r0, #0                                        
      _Workspace_Free( old_tables );                                  
    6bd8:	1b000835 	blne	8cb4 <_Workspace_Free>                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
    6bdc:	e5953034 	ldr	r3, [r5, #52]	; 0x34                          
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
    6be0:	e28d7008 	add	r7, sp, #8                                    
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
    6be4:	e7838104 	str	r8, [r3, r4, lsl #2]                          
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
    6be8:	e1a01008 	mov	r1, r8                                        
    6bec:	e1a00007 	mov	r0, r7                                        
    6bf0:	e1d521b4 	ldrh	r2, [r5, #20]                                
    6bf4:	e5953018 	ldr	r3, [r5, #24]                                 
    6bf8:	eb00125f 	bl	b57c <_Chain_Initialize>                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
    6bfc:	e1a04104 	lsl	r4, r4, #2                                    
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
    6c00:	e2858020 	add	r8, r5, #32                                   
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
    6c04:	ea000009 	b	6c30 <_Objects_Extend_information+0x1fc>        
    6c08:	e5953000 	ldr	r3, [r5]                                      
                                                                      
    the_object->id = _Objects_Build_id(                               
    6c0c:	e1d520b4 	ldrh	r2, [r5, #4]                                 
    6c10:	e1a03c03 	lsl	r3, r3, #24                                   
    6c14:	e3833801 	orr	r3, r3, #65536	; 0x10000                      
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
    6c18:	e1833d82 	orr	r3, r3, r2, lsl #27                           
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
    6c1c:	e1833006 	orr	r3, r3, r6                                    
    6c20:	e5813008 	str	r3, [r1, #8]                                  
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
    6c24:	e1a00008 	mov	r0, r8                                        
    6c28:	ebfffce6 	bl	5fc8 <_Chain_Append>                           
                                                                      
    index++;                                                          
    6c2c:	e2866001 	add	r6, r6, #1                                    
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
    6c30:	e1a00007 	mov	r0, r7                                        
    6c34:	ebfffcf6 	bl	6014 <_Chain_Get>                              
    6c38:	e2501000 	subs	r1, r0, #0                                   
    6c3c:	1afffff1 	bne	6c08 <_Objects_Extend_information+0x1d4>      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
    6c40:	e1d522bc 	ldrh	r2, [r5, #44]	; 0x2c                         
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
    6c44:	e1d531b4 	ldrh	r3, [r5, #20]                                
    6c48:	e5951030 	ldr	r1, [r5, #48]	; 0x30                          
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
    6c4c:	e0832002 	add	r2, r3, r2                                    
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
    6c50:	e7813004 	str	r3, [r1, r4]                                  
  information->inactive =                                             
    6c54:	e1c522bc 	strh	r2, [r5, #44]	; 0x2c                         
    (Objects_Maximum)(information->inactive + information->allocation_size);
}                                                                     
    6c58:	e28dd014 	add	sp, sp, #20                                   
    6c5c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
  if ( information->auto_extend ) {                                   
    new_object_block = _Workspace_Allocate( block_size );             
    6c60:	e58d3000 	str	r3, [sp]                                      
    6c64:	eb00080c 	bl	8c9c <_Workspace_Allocate>                     
    if ( !new_object_block )                                          
    6c68:	e2508000 	subs	r8, r0, #0                                   
    6c6c:	e59d3000 	ldr	r3, [sp]                                      
    6c70:	1affff9d 	bne	6aec <_Objects_Extend_information+0xb8>       
    6c74:	eafffff7 	b	6c58 <_Objects_Extend_information+0x224>        
      /*                                                              
       *  Copy each section of the table over. This has to be performed as
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
    6c78:	e1a03103 	lsl	r3, r3, #2                                    
    6c7c:	e5951034 	ldr	r1, [r5, #52]	; 0x34                          
    6c80:	e1a02003 	mov	r2, r3                                        
    6c84:	e88d1008 	stm	sp, {r3, ip}                                  
    6c88:	eb001dec 	bl	e440 <memcpy>                                  
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
    6c8c:	e89d1008 	ldm	sp, {r3, ip}                                  
    6c90:	e1a0000c 	mov	r0, ip                                        
    6c94:	e1a02003 	mov	r2, r3                                        
    6c98:	e5951030 	ldr	r1, [r5, #48]	; 0x30                          
    6c9c:	eb001de7 	bl	e440 <memcpy>                                  
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
    6ca0:	e1d521b0 	ldrh	r2, [r5, #16]                                
    6ca4:	e0872002 	add	r2, r7, r2                                    
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
    6ca8:	e1a0000b 	mov	r0, fp                                        
    6cac:	e595101c 	ldr	r1, [r5, #28]                                 
    6cb0:	e1a02102 	lsl	r2, r2, #2                                    
    6cb4:	eb001de1 	bl	e440 <memcpy>                                  
    6cb8:	e89d1008 	ldm	sp, {r3, ip}                                  
    6cbc:	eaffffa5 	b	6b58 <_Objects_Extend_information+0x124>        
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    6cc0:	e1d0a1b0 	ldrh	sl, [r0, #16]                                
    6cc4:	e1d011b4 	ldrh	r1, [r0, #20]                                
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
    6cc8:	e1a06007 	mov	r6, r7                                        
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
    6ccc:	e3a09001 	mov	r9, #1                                        
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
    6cd0:	e1a03004 	mov	r3, r4                                        
    6cd4:	eaffff78 	b	6abc <_Objects_Extend_information+0x88>         
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
    6cd8:	e1a01008 	mov	r1, r8                                        <== NOT EXECUTED
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
    6cdc:	e1a06007 	mov	r6, r7                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
    6ce0:	e3a09001 	mov	r9, #1                                        <== NOT EXECUTED
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
    6ce4:	e1a04003 	mov	r4, r3                                        <== NOT EXECUTED
    6ce8:	eaffff73 	b	6abc <_Objects_Extend_information+0x88>         <== NOT EXECUTED
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
                                                                      
    if ( !object_blocks ) {                                           
      _Workspace_Free( new_object_block );                            
    6cec:	e1a00008 	mov	r0, r8                                        
    6cf0:	eb0007ef 	bl	8cb4 <_Workspace_Free>                         
      return;                                                         
    6cf4:	eaffffd7 	b	6c58 <_Objects_Extend_information+0x224>        
                                                                      

00007064 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
    7064:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
    7068:	e1d040b8 	ldrh	r4, [r0, #8]                                 
  block_count = (information->maximum - index_base) /                 
    706c:	e1d051b4 	ldrh	r5, [r0, #20]                                
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
    7070:	e1a06000 	mov	r6, r0                                        
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
    7074:	e1d001b0 	ldrh	r0, [r0, #16]                                
    7078:	e1a01005 	mov	r1, r5                                        
    707c:	e0640000 	rsb	r0, r4, r0                                    
    7080:	eb00285f 	bl	11204 <__aeabi_uidiv>                          
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    7084:	e3500000 	cmp	r0, #0                                        
    7088:	08bd80f0 	popeq	{r4, r5, r6, r7, pc}                        
    if ( information->inactive_per_block[ block ] ==                  
    708c:	e5962030 	ldr	r2, [r6, #48]	; 0x30                          
    7090:	e5923000 	ldr	r3, [r2]                                      
    7094:	e1550003 	cmp	r5, r3                                        
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    7098:	13a03000 	movne	r3, #0                                      
    if ( information->inactive_per_block[ block ] ==                  
    709c:	1a000005 	bne	70b8 <_Objects_Shrink_information+0x54>       
    70a0:	ea000008 	b	70c8 <_Objects_Shrink_information+0x64>         <== NOT EXECUTED
    70a4:	e5b21004 	ldr	r1, [r2, #4]!                                 
    70a8:	e1550001 	cmp	r5, r1                                        
      information->inactive -= information->allocation_size;          
                                                                      
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
    70ac:	e0844005 	add	r4, r4, r5                                    
    70b0:	e1a07103 	lsl	r7, r3, #2                                    
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
    70b4:	0a000004 	beq	70cc <_Objects_Shrink_information+0x68>       
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    70b8:	e2833001 	add	r3, r3, #1                                    
    70bc:	e1500003 	cmp	r0, r3                                        
    70c0:	8afffff7 	bhi	70a4 <_Objects_Shrink_information+0x40>       
    70c4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
    if ( information->inactive_per_block[ block ] ==                  
    70c8:	e3a07000 	mov	r7, #0                                        <== NOT EXECUTED
         information->allocation_size ) {                             
                                                                      
      /*                                                              
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) _Chain_First( &information->Inactive );
    70cc:	e5960020 	ldr	r0, [r6, #32]                                 
    70d0:	ea000002 	b	70e0 <_Objects_Shrink_information+0x7c>         
         if ((index >= index_base) &&                                 
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
         }                                                            
       }                                                              
       while ( the_object );                                          
    70d4:	e3550000 	cmp	r5, #0                                        
    70d8:	0a00000b 	beq	710c <_Objects_Shrink_information+0xa8>       
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
    70dc:	e1a00005 	mov	r0, r5                                        
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) _Chain_First( &information->Inactive );
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
    70e0:	e1d030b8 	ldrh	r3, [r0, #8]                                 
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
    70e4:	e1530004 	cmp	r3, r4                                        
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
    70e8:	e5905000 	ldr	r5, [r0]                                      
         if ((index >= index_base) &&                                 
    70ec:	3afffff8 	bcc	70d4 <_Objects_Shrink_information+0x70>       
             (index < (index_base + information->allocation_size))) { 
    70f0:	e1d621b4 	ldrh	r2, [r6, #20]                                
    70f4:	e0842002 	add	r2, r4, r2                                    
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
    70f8:	e1530002 	cmp	r3, r2                                        
    70fc:	2afffff4 	bcs	70d4 <_Objects_Shrink_information+0x70>       
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
    7100:	ebfffbbb 	bl	5ff4 <_Chain_Extract>                          
         }                                                            
       }                                                              
       while ( the_object );                                          
    7104:	e3550000 	cmp	r5, #0                                        
    7108:	1afffff3 	bne	70dc <_Objects_Shrink_information+0x78>       
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
    710c:	e5963034 	ldr	r3, [r6, #52]	; 0x34                          
    7110:	e7930007 	ldr	r0, [r3, r7]                                  
    7114:	eb0006e6 	bl	8cb4 <_Workspace_Free>                         
      information->object_blocks[ block ] = NULL;                     
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
    7118:	e1d602bc 	ldrh	r0, [r6, #44]	; 0x2c                         
    711c:	e1d631b4 	ldrh	r3, [r6, #20]                                
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
    7120:	e5961034 	ldr	r1, [r6, #52]	; 0x34                          
      information->inactive_per_block[ block ] = 0;                   
    7124:	e5962030 	ldr	r2, [r6, #48]	; 0x30                          
                                                                      
      information->inactive -= information->allocation_size;          
    7128:	e0633000 	rsb	r3, r3, r0                                    
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
    712c:	e7815007 	str	r5, [r1, r7]                                  
      information->inactive_per_block[ block ] = 0;                   
    7130:	e7825007 	str	r5, [r2, r7]                                  
                                                                      
      information->inactive -= information->allocation_size;          
    7134:	e1c632bc 	strh	r3, [r6, #44]	; 0x2c                         
                                                                      
      return;                                                         
    7138:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

0000db04 <_POSIX_signals_Clear_process_signals>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile (
    db04:	e10f2000 	mrs	r2, CPSR                                      
    db08:	e3823080 	orr	r3, r2, #128	; 0x80                           
    db0c:	e129f003 	msr	CPSR_fc, r3                                   
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
    db10:	e59f1050 	ldr	r1, [pc, #80]	; db68 <_POSIX_signals_Clear_process_signals+0x64>
    db14:	e0803080 	add	r3, r0, r0, lsl #1                            
    db18:	e7911103 	ldr	r1, [r1, r3, lsl #2]                          
    db1c:	e3510002 	cmp	r1, #2                                        
    db20:	e1a01103 	lsl	r1, r3, #2                                    
    db24:	0a000007 	beq	db48 <_POSIX_signals_Clear_process_signals+0x44>
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
    db28:	e59f303c 	ldr	r3, [pc, #60]	; db6c <_POSIX_signals_Clear_process_signals+0x68>
    db2c:	e5931000 	ldr	r1, [r3]                                      
    db30:	e3a0c001 	mov	ip, #1                                        
    db34:	e2400001 	sub	r0, r0, #1                                    
    db38:	e1c1001c 	bic	r0, r1, ip, lsl r0                            
    db3c:	e5830000 	str	r0, [r3]                                      
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    db40:	e129f002 	msr	CPSR_fc, r2                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
    db44:	e12fff1e 	bx	lr                                             
    db48:	e59fc020 	ldr	ip, [pc, #32]	; db70 <_POSIX_signals_Clear_process_signals+0x6c>
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
    db4c:	e2811004 	add	r1, r1, #4                                    
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
    db50:	e79c3103 	ldr	r3, [ip, r3, lsl #2]                          
    db54:	e081c00c 	add	ip, r1, ip                                    
    db58:	e153000c 	cmp	r3, ip                                        
    db5c:	0afffff1 	beq	db28 <_POSIX_signals_Clear_process_signals+0x24>
    db60:	e129f002 	msr	CPSR_fc, r2                                   <== NOT EXECUTED
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
    db64:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

0002200c <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
   2200c:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
   22010:	e5905010 	ldr	r5, [r0, #16]                                 
   22014:	e3c534ef 	bic	r3, r5, #-285212672	; 0xef000000              
   22018:	e3c338ff 	bic	r3, r3, #16711680	; 0xff0000                  
   2201c:	e3c33c7f 	bic	r3, r3, #32512	; 0x7f00                       
   22020:	e3a0c201 	mov	ip, #268435456	; 0x10000000                   
   22024:	e3c330ff 	bic	r3, r3, #255	; 0xff                           
   22028:	e28cc902 	add	ip, ip, #32768	; 0x8000                       
   2202c:	e2417001 	sub	r7, r1, #1                                    
   22030:	e3a06001 	mov	r6, #1                                        
   22034:	e153000c 	cmp	r3, ip                                        
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
   22038:	e1a04000 	mov	r4, r0                                        
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
   2203c:	e59030fc 	ldr	r3, [r0, #252]	; 0xfc                         
   22040:	e1a07716 	lsl	r7, r6, r7                                    
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
   22044:	0a00001b 	beq	220b8 <_POSIX_signals_Unblock_thread+0xac>    
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
   22048:	e59330d0 	ldr	r3, [r3, #208]	; 0xd0                         
   2204c:	e1d77003 	bics	r7, r7, r3                                   
   22050:	0a000016 	beq	220b0 <_POSIX_signals_Unblock_thread+0xa4>    
     *      it is not blocked, THEN                                   
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
   22054:	e2157201 	ands	r7, r5, #268435456	; 0x10000000              
   22058:	0a000012 	beq	220a8 <_POSIX_signals_Unblock_thread+0x9c>    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
   2205c:	e3c564ff 	bic	r6, r5, #-16777216	; 0xff000000               
   22060:	e3c6673f 	bic	r6, r6, #16515072	; 0xfc0000                  
   22064:	e3c66c41 	bic	r6, r6, #16640	; 0x4100                       
   22068:	e3c6601f 	bic	r6, r6, #31                                   
      the_thread->Wait.return_code = EINTR;                           
   2206c:	e3a03004 	mov	r3, #4                                        
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
   22070:	e3560000 	cmp	r6, #0                                        
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
      the_thread->Wait.return_code = EINTR;                           
   22074:	e5803034 	str	r3, [r0, #52]	; 0x34                          
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
   22078:	1a00002e 	bne	22138 <_POSIX_signals_Unblock_thread+0x12c>   
         _Thread_queue_Extract_with_proxy( the_thread );              
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
   2207c:	e2150008 	ands	r0, r5, #8                                   
   22080:	08bd80f0 	popeq	{r4, r5, r6, r7, pc}                        
          (void) _Watchdog_Remove( &the_thread->Timer );              
   22084:	e2840048 	add	r0, r4, #72	; 0x48                            
   22088:	ebffb02b 	bl	e13c <_Watchdog_Remove>                        
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
   2208c:	e3a01201 	mov	r1, #268435456	; 0x10000000                   
   22090:	e2811bff 	add	r1, r1, #261120	; 0x3fc00                     
   22094:	e1a00004 	mov	r0, r4                                        
   22098:	e2811ffe 	add	r1, r1, #1016	; 0x3f8                         
   2209c:	ebffab1f 	bl	cd20 <_Thread_Clear_state>                     
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
   220a0:	e1a00006 	mov	r0, r6                                        
   220a4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
          (void) _Watchdog_Remove( &the_thread->Timer );              
          _Thread_Unblock( the_thread );                              
       }                                                              
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
   220a8:	e3550000 	cmp	r5, #0                                        
   220ac:	0a000016 	beq	2210c <_POSIX_signals_Unblock_thread+0x100>   
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
   220b0:	e1a00007 	mov	r0, r7                                        
   220b4:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
   220b8:	e5900030 	ldr	r0, [r0, #48]	; 0x30                          
   220bc:	e1170000 	tst	r7, r0                                        
   220c0:	0a00000d 	beq	220fc <_POSIX_signals_Unblock_thread+0xf0>    
      the_thread->Wait.return_code = EINTR;                           
   220c4:	e3a03004 	mov	r3, #4                                        
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
   220c8:	e3520000 	cmp	r2, #0                                        
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
      the_thread->Wait.return_code = EINTR;                           
   220cc:	e5843034 	str	r3, [r4, #52]	; 0x34                          
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
   220d0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
   220d4:	18920007 	ldmne	r2, {r0, r1, r2}                            
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
   220d8:	05831000 	streq	r1, [r3]                                    
        the_info->si_code = SI_USER;                                  
   220dc:	03a01001 	moveq	r1, #1                                      
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
   220e0:	18830007 	stmne	r3, {r0, r1, r2}                            
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
   220e4:	05831004 	streq	r1, [r3, #4]                                
        the_info->si_value.sival_int = 0;                             
   220e8:	05832008 	streq	r2, [r3, #8]                                
      } else {                                                        
        *the_info = *info;                                            
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
   220ec:	e1a00004 	mov	r0, r4                                        
   220f0:	ebffadb4 	bl	d7c8 <_Thread_queue_Extract_with_proxy>        
      return true;                                                    
   220f4:	e3a00001 	mov	r0, #1                                        
   220f8:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
   220fc:	e59300d0 	ldr	r0, [r3, #208]	; 0xd0                         
   22100:	e1d70000 	bics	r0, r7, r0                                   
   22104:	1affffee 	bne	220c4 <_POSIX_signals_Unblock_thread+0xb8>    
   22108:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
          (void) _Watchdog_Remove( &the_thread->Timer );              
          _Thread_Unblock( the_thread );                              
       }                                                              
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
   2210c:	e59f2030 	ldr	r2, [pc, #48]	; 22144 <_POSIX_signals_Unblock_thread+0x138>
   22110:	e5920000 	ldr	r0, [r2]                                      
   22114:	e3500000 	cmp	r0, #0                                        
   22118:	08bd80f0 	popeq	{r4, r5, r6, r7, pc}                        
   2211c:	e5923004 	ldr	r3, [r2, #4]                                  
   22120:	e1540003 	cmp	r4, r3                                        
        _Thread_Dispatch_necessary = true;                            
   22124:	05c26010 	strbeq	r6, [r2, #16]                              
    }                                                                 
  }                                                                   
  return false;                                                       
   22128:	01a00005 	moveq	r0, r5                                      
          (void) _Watchdog_Remove( &the_thread->Timer );              
          _Thread_Unblock( the_thread );                              
       }                                                              
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
   2212c:	08bd80f0 	popeq	{r4, r5, r6, r7, pc}                        
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
   22130:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
}                                                                     
   22134:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
         _Thread_queue_Extract_with_proxy( the_thread );              
   22138:	ebffada2 	bl	d7c8 <_Thread_queue_Extract_with_proxy>        
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
   2213c:	e3a00000 	mov	r0, #0                                        
   22140:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      

00006640 <_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();
    6640:	e59f30b8 	ldr	r3, [pc, #184]	; 6700 <_TOD_Validate+0xc0>    
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
  const rtems_time_of_day *the_tod                                    
)                                                                     
{                                                                     
    6644:	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)                                  ||                  
    6648:	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();                 
    664c:	e593100c 	ldr	r1, [r3, #12]                                 
      (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;                                                    
    6650:	01a00004 	moveq	r0, r4                                      
  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)                                  ||                  
    6654:	08bd8010 	popeq	{r4, pc}                                    
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
    6658:	e3a0093d 	mov	r0, #999424	; 0xf4000                         
    665c:	e2800d09 	add	r0, r0, #576	; 0x240                          
    6660:	eb0048d3 	bl	189b4 <__aeabi_uidiv>                          
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
    6664:	e5943018 	ldr	r3, [r4, #24]                                 
    6668:	e1500003 	cmp	r0, r3                                        
    666c:	9a00001f 	bls	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->ticks  >= ticks_per_second)       ||                  
    6670:	e5943014 	ldr	r3, [r4, #20]                                 
    6674:	e353003b 	cmp	r3, #59	; 0x3b                                
    6678:	8a00001c 	bhi	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
    667c:	e5943010 	ldr	r3, [r4, #16]                                 
    6680:	e353003b 	cmp	r3, #59	; 0x3b                                
    6684:	8a000019 	bhi	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
    6688:	e594300c 	ldr	r3, [r4, #12]                                 
    668c:	e3530017 	cmp	r3, #23                                       
    6690:	8a000016 	bhi	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
    6694:	e5940004 	ldr	r0, [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)      ||                  
    6698:	e3500000 	cmp	r0, #0                                        
    669c:	08bd8010 	popeq	{r4, pc}                                    
      (the_tod->month  == 0)                      ||                  
    66a0:	e350000c 	cmp	r0, #12                                       
    66a4:	8a000011 	bhi	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
    66a8:	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)    ||                  
    66ac:	e3a03d1f 	mov	r3, #1984	; 0x7c0                             
    66b0:	e2833003 	add	r3, r3, #3                                    
    66b4:	e1520003 	cmp	r2, r3                                        
    66b8:	9a00000c 	bls	66f0 <_TOD_Validate+0xb0>                     
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
    66bc:	e5944008 	ldr	r4, [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)          ||                  
    66c0:	e3540000 	cmp	r4, #0                                        
    66c4:	0a00000b 	beq	66f8 <_TOD_Validate+0xb8>                     
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
    66c8:	e3120003 	tst	r2, #3                                        
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
    66cc:	059f3030 	ldreq	r3, [pc, #48]	; 6704 <_TOD_Validate+0xc4>   
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
    66d0:	159f302c 	ldrne	r3, [pc, #44]	; 6704 <_TOD_Validate+0xc4>   
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
    66d4:	0280000d 	addeq	r0, r0, #13                                 
    66d8:	07930100 	ldreq	r0, [r3, r0, lsl #2]                        
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
    66dc:	17930100 	ldrne	r0, [r3, r0, lsl #2]                        
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
    66e0:	e1500004 	cmp	r0, r4                                        
    66e4:	33a00000 	movcc	r0, #0                                      
    66e8:	23a00001 	movcs	r0, #1                                      
    66ec:	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;                                                    
    66f0:	e3a00000 	mov	r0, #0                                        
    66f4:	e8bd8010 	pop	{r4, pc}                                      
    66f8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
    66fc:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00008830 <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
    8830:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
    8834:	e59f5050 	ldr	r5, [pc, #80]	; 888c <_User_extensions_Thread_create+0x5c>
    8838:	e4954004 	ldr	r4, [r5], #4                                  
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
    883c:	e1540005 	cmp	r4, r5                                        
#include <rtems/score/userext.h>                                      
                                                                      
bool _User_extensions_Thread_create (                                 
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
    8840:	e1a06000 	mov	r6, r0                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
    8844:	0a00000e 	beq	8884 <_User_extensions_Thread_create+0x54>    
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
      status = (*the_extension->Callouts.thread_create)(              
    8848:	e59f7040 	ldr	r7, [pc, #64]	; 8890 <_User_extensions_Thread_create+0x60>
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
    884c:	e5943014 	ldr	r3, [r4, #20]                                 
    8850:	e3530000 	cmp	r3, #0                                        
      status = (*the_extension->Callouts.thread_create)(              
    8854:	e1a01006 	mov	r1, r6                                        
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
    8858:	0a000004 	beq	8870 <_User_extensions_Thread_create+0x40>    
      status = (*the_extension->Callouts.thread_create)(              
    885c:	e5970004 	ldr	r0, [r7, #4]                                  
    8860:	e1a0e00f 	mov	lr, pc                                        
    8864:	e12fff13 	bx	r3                                             
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
    8868:	e3500000 	cmp	r0, #0                                        
    886c:	08bd80f0 	popeq	{r4, r5, r6, r7, pc}                        
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
    8870:	e5944000 	ldr	r4, [r4]                                      
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
    8874:	e1540005 	cmp	r4, r5                                        
    8878:	1afffff3 	bne	884c <_User_extensions_Thread_create+0x1c>    
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
    887c:	e3a00001 	mov	r0, #1                                        
    8880:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
    8884:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
}                                                                     
    8888:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

0000a6ac <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
    a6ac:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    a6b0:	e1a04000 	mov	r4, r0                                        
    a6b4:	e1a05002 	mov	r5, r2                                        
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    a6b8:	e10f3000 	mrs	r3, CPSR                                      
    a6bc:	e3832080 	orr	r2, r3, #128	; 0x80                           
    a6c0:	e129f002 	msr	CPSR_fc, r2                                   
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
    a6c4:	e1a07000 	mov	r7, r0                                        
    a6c8:	e4972004 	ldr	r2, [r7], #4                                  
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    a6cc:	e1520007 	cmp	r2, r7                                        
    a6d0:	0a000018 	beq	a738 <_Watchdog_Adjust+0x8c>                  
    switch ( direction ) {                                            
    a6d4:	e3510000 	cmp	r1, #0                                        
    a6d8:	1a000018 	bne	a740 <_Watchdog_Adjust+0x94>                  
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
    a6dc:	e3550000 	cmp	r5, #0                                        
    a6e0:	0a000014 	beq	a738 <_Watchdog_Adjust+0x8c>                  
          if ( units < _Watchdog_First( header )->delta_interval ) {  
    a6e4:	e5926010 	ldr	r6, [r2, #16]                                 
    a6e8:	e1550006 	cmp	r5, r6                                        
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
    a6ec:	23a08001 	movcs	r8, #1                                      
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
    a6f0:	2a000005 	bcs	a70c <_Watchdog_Adjust+0x60>                  
    a6f4:	ea000018 	b	a75c <_Watchdog_Adjust+0xb0>                    <== NOT EXECUTED
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
    a6f8:	e0555006 	subs	r5, r5, r6                                   
    a6fc:	0a00000d 	beq	a738 <_Watchdog_Adjust+0x8c>                  
          if ( units < _Watchdog_First( header )->delta_interval ) {  
    a700:	e5926010 	ldr	r6, [r2, #16]                                 
    a704:	e1560005 	cmp	r6, r5                                        
    a708:	8a000013 	bhi	a75c <_Watchdog_Adjust+0xb0>                  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
    a70c:	e5828010 	str	r8, [r2, #16]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    a710:	e129f003 	msr	CPSR_fc, r3                                   
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
    a714:	e1a00004 	mov	r0, r4                                        
    a718:	eb0000a0 	bl	a9a0 <_Watchdog_Tickle>                        
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    a71c:	e10f3000 	mrs	r3, CPSR                                      
    a720:	e3832080 	orr	r2, r3, #128	; 0x80                           
    a724:	e129f002 	msr	CPSR_fc, r2                                   
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
    a728:	e5941000 	ldr	r1, [r4]                                      
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
                                                                      
            if ( _Chain_Is_empty( header ) )                          
    a72c:	e1570001 	cmp	r7, r1                                        
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
    a730:	e1a02001 	mov	r2, r1                                        
    a734:	1affffef 	bne	a6f8 <_Watchdog_Adjust+0x4c>                  
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    a738:	e129f003 	msr	CPSR_fc, r3                                   
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
    a73c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
    a740:	e3510001 	cmp	r1, #1                                        
    a744:	1afffffb 	bne	a738 <_Watchdog_Adjust+0x8c>                  
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
    a748:	e5921010 	ldr	r1, [r2, #16]                                 
    a74c:	e0815005 	add	r5, r1, r5                                    
    a750:	e5825010 	str	r5, [r2, #16]                                 
    a754:	e129f003 	msr	CPSR_fc, r3                                   
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
    a758:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
    a75c:	e0655006 	rsb	r5, r5, r6                                    
    a760:	e5825010 	str	r5, [r2, #16]                                 
            break;                                                    
    a764:	eafffff3 	b	a738 <_Watchdog_Adjust+0x8c>                    
                                                                      

000065cc <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
    65cc:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
    65d0:	e1a00001 	mov	r0, r1                                        
int _rename_r(                                                        
  struct _reent *ptr __attribute__((unused)),                         
  const char    *old,                                                 
  const char    *new                                                  
)                                                                     
{                                                                     
    65d4:	e24dd048 	sub	sp, sp, #72	; 0x48                            
    65d8:	e1a05001 	mov	r5, r1                                        
    65dc:	e1a06002 	mov	r6, r2                                        
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
    65e0:	ebfffa34 	bl	4eb8 <rtems_filesystem_dirname>                
                                                                      
  if ( old_parent_pathlen == 0 )                                      
    65e4:	e2507000 	subs	r7, r0, #0                                   
    65e8:	1a000059 	bne	6754 <_rename_r+0x188>                        
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
    65ec:	e28d4018 	add	r4, sp, #24                                   
    65f0:	e1a00005 	mov	r0, r5                                        
    65f4:	e28d1044 	add	r1, sp, #68	; 0x44                            
    65f8:	e1a02004 	mov	r2, r4                                        
    65fc:	eb0000e8 	bl	69a4 <rtems_filesystem_get_start_loc>          
  rtems_filesystem_location_info_t    old_parent_loc;                 
  rtems_filesystem_location_info_t    new_parent_loc;                 
  int                                 i;                              
  int                                 result;                         
  const char                         *name;                           
  bool                                free_old_parentloc = false;     
    6600:	e1a08007 	mov	r8, r7                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
    6604:	e1a0e004 	mov	lr, r4                                        
    6608:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    660c:	e28dc02c 	add	ip, sp, #44	; 0x2c                            
    6610:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    6614:	e59e3000 	ldr	r3, [lr]                                      
  name = old + old_parent_pathlen;                                    
    6618:	e0855007 	add	r5, r5, r7                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
    661c:	e58c3000 	str	r3, [ip]                                      
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    6620:	e1a00005 	mov	r0, r5                                        
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
    6624:	e58d5040 	str	r5, [sp, #64]	; 0x40                          
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    6628:	eb0039c8 	bl	14d50 <strlen>                                 
    662c:	e1a01000 	mov	r1, r0                                        
    6630:	e1a00005 	mov	r0, r5                                        
    6634:	ebfffa2e 	bl	4ef4 <rtems_filesystem_prefix_separators>      
    6638:	e0855000 	add	r5, r5, r0                                    
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    663c:	e1a00005 	mov	r0, r5                                        
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    6640:	e58d5040 	str	r5, [sp, #64]	; 0x40                          
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    6644:	eb0039c1 	bl	14d50 <strlen>                                 
    6648:	e28d702c 	add	r7, sp, #44	; 0x2c                            
    664c:	e1a01000 	mov	r1, r0                                        
    6650:	e3a02000 	mov	r2, #0                                        
    6654:	e1a00005 	mov	r0, r5                                        
    6658:	e1a03007 	mov	r3, r7                                        
    665c:	e58d2000 	str	r2, [sp]                                      
    6660:	ebfff9e2 	bl	4df0 <rtems_filesystem_evaluate_relative_path> 
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    6664:	e3500000 	cmp	r0, #0                                        
    6668:	1a000031 	bne	6734 <_rename_r+0x168>                        
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
    666c:	e28d5004 	add	r5, sp, #4                                    
    6670:	e1a00006 	mov	r0, r6                                        
    6674:	e1a02005 	mov	r2, r5                                        
    6678:	e28d1044 	add	r1, sp, #68	; 0x44                            
    667c:	eb0000c8 	bl	69a4 <rtems_filesystem_get_start_loc>          
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
    6680:	e59d0044 	ldr	r0, [sp, #68]	; 0x44                          
    6684:	e1a01005 	mov	r1, r5                                        
    6688:	e0860000 	add	r0, r6, r0                                    
    668c:	e28d2040 	add	r2, sp, #64	; 0x40                            
    6690:	e59d3010 	ldr	r3, [sp, #16]                                 
    6694:	e1a0e00f 	mov	lr, pc                                        
    6698:	e593f004 	ldr	pc, [r3, #4]                                  
  if ( result != 0 ) {                                                
    669c:	e3500000 	cmp	r0, #0                                        
    66a0:	1a000037 	bne	6784 <_rename_r+0x1b8>                        
  /*                                                                  
   *  Check to see if the caller is trying to rename across file system
   *  boundaries.                                                     
   */                                                                 
                                                                      
  if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {         
    66a4:	e59d3014 	ldr	r3, [sp, #20]                                 
    66a8:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
    66ac:	e1520003 	cmp	r2, r3                                        
    66b0:	1a000013 	bne	6704 <_rename_r+0x138>                        
      rtems_filesystem_freenode( &old_parent_loc );                   
    rtems_filesystem_freenode( &old_loc );                            
    rtems_set_errno_and_return_minus_one( EXDEV );                    
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
    66b4:	e1a01007 	mov	r1, r7                                        
    66b8:	e1a02005 	mov	r2, r5                                        
    66bc:	e59d3040 	ldr	r3, [sp, #64]	; 0x40                          
    66c0:	e59dc010 	ldr	ip, [sp, #16]                                 
    66c4:	e1a00004 	mov	r0, r4                                        
    66c8:	e1a0e00f 	mov	lr, pc                                        
    66cc:	e59cf040 	ldr	pc, [ip, #64]	; 0x40                          
    66d0:	e1a06000 	mov	r6, r0                                        
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
    66d4:	e1a00005 	mov	r0, r5                                        
    66d8:	ebfffa98 	bl	5140 <rtems_filesystem_freenode>               
  if ( free_old_parentloc )                                           
    66dc:	e3580000 	cmp	r8, #0                                        
    66e0:	1a000004 	bne	66f8 <_rename_r+0x12c>                        
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
    66e4:	e1a00007 	mov	r0, r7                                        
    66e8:	ebfffa94 	bl	5140 <rtems_filesystem_freenode>               
                                                                      
  return result;                                                      
}                                                                     
    66ec:	e1a00006 	mov	r0, r6                                        
    66f0:	e28dd048 	add	sp, sp, #72	; 0x48                            
    66f4:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
  if ( free_old_parentloc )                                           
    rtems_filesystem_freenode( &old_parent_loc );                     
    66f8:	e1a00004 	mov	r0, r4                                        
    66fc:	ebfffa8f 	bl	5140 <rtems_filesystem_freenode>               
    6700:	eafffff7 	b	66e4 <_rename_r+0x118>                          
   *  Check to see if the caller is trying to rename across file system
   *  boundaries.                                                     
   */                                                                 
                                                                      
  if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {         
    rtems_filesystem_freenode( &new_parent_loc );                     
    6704:	e1a00005 	mov	r0, r5                                        
    6708:	ebfffa8c 	bl	5140 <rtems_filesystem_freenode>               
    if ( free_old_parentloc )                                         
    670c:	e3580000 	cmp	r8, #0                                        
      rtems_filesystem_freenode( &old_parent_loc );                   
    6710:	11a00004 	movne	r0, r4                                      
    6714:	1bfffa89 	blne	5140 <rtems_filesystem_freenode>             
    rtems_filesystem_freenode( &old_loc );                            
    6718:	e1a00007 	mov	r0, r7                                        
    671c:	ebfffa87 	bl	5140 <rtems_filesystem_freenode>               
    rtems_set_errno_and_return_minus_one( EXDEV );                    
    6720:	eb002c87 	bl	11944 <__errno>                                
    6724:	e3a03012 	mov	r3, #18                                       
    6728:	e5803000 	str	r3, [r0]                                      
    672c:	e3e06000 	mvn	r6, #0                                        
    6730:	eaffffed 	b	66ec <_rename_r+0x120>                          
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
    6734:	e3580000 	cmp	r8, #0                                        
    6738:	1a000001 	bne	6744 <_rename_r+0x178>                        
      rtems_filesystem_freenode( &old_parent_loc );                   
    return -1;                                                        
    673c:	e3e06000 	mvn	r6, #0                                        
    6740:	eaffffe9 	b	66ec <_rename_r+0x120>                          <== NOT EXECUTED
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
    6744:	e1a00004 	mov	r0, r4                                        
    6748:	ebfffa7c 	bl	5140 <rtems_filesystem_freenode>               
    return -1;                                                        
    674c:	e3e06000 	mvn	r6, #0                                        
    6750:	eaffffe5 	b	66ec <_rename_r+0x120>                          
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
                                                                      
  if ( old_parent_pathlen == 0 )                                      
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
    6754:	e3a03000 	mov	r3, #0                                        
    6758:	e28d4018 	add	r4, sp, #24                                   
    675c:	e58d3000 	str	r3, [sp]                                      
    6760:	e3a02002 	mov	r2, #2                                        
    6764:	e1a00005 	mov	r0, r5                                        
    6768:	e1a01007 	mov	r1, r7                                        
    676c:	e1a03004 	mov	r3, r4                                        
    6770:	ebfff9ba 	bl	4e60 <rtems_filesystem_evaluate_path>          
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
    6774:	e3500000 	cmp	r0, #0                                        
    6778:	1affffef 	bne	673c <_rename_r+0x170>                        
      return -1;                                                      
                                                                      
    free_old_parentloc = true;                                        
    677c:	e3a08001 	mov	r8, #1                                        
    6780:	eaffff9f 	b	6604 <_rename_r+0x38>                           
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
  if ( result != 0 ) {                                                
    rtems_filesystem_freenode( &new_parent_loc );                     
    6784:	e1a00005 	mov	r0, r5                                        
    6788:	ebfffa6c 	bl	5140 <rtems_filesystem_freenode>               
    if ( free_old_parentloc )                                         
    678c:	e3580000 	cmp	r8, #0                                        
      rtems_filesystem_freenode( &old_parent_loc );                   
    6790:	11a00004 	movne	r0, r4                                      
    6794:	1bfffa69 	blne	5140 <rtems_filesystem_freenode>             
    rtems_filesystem_freenode( &old_loc );                            
    6798:	e1a00007 	mov	r0, r7                                        
    679c:	ebfffa67 	bl	5140 <rtems_filesystem_freenode>               
    return -1;                                                        
    67a0:	e3e06000 	mvn	r6, #0                                        
    67a4:	eaffffd0 	b	66ec <_rename_r+0x120>                          
                                                                      

000060d0 <aio_cancel>: * operation(s) cannot be canceled */ int aio_cancel(int fildes, struct aiocb *aiocbp) {
    60d0:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
    60d4:	e59f41b4 	ldr	r4, [pc, #436]	; 6290 <aio_cancel+0x1c0>      
 *                          operation(s) cannot be canceled           
 */                                                                   
                                                                      
                                                                      
int aio_cancel(int fildes, struct aiocb  *aiocbp)                     
{                                                                     
    60d8:	e1a05001 	mov	r5, r1                                        
    60dc:	e1a07000 	mov	r7, r0                                        
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
    60e0:	e1a00004 	mov	r0, r4                                        
    60e4:	eb000442 	bl	71f4 <pthread_mutex_lock>                      
                                                                      
  if (aiocbp == NULL)                                                 
    60e8:	e3550000 	cmp	r5, #0                                        
    60ec:	0a00002d 	beq	61a8 <aio_cancel+0xd8>                        
      pthread_mutex_unlock (&aio_request_queue.mutex);                
      return AIO_CANCELED;                                            
    }                                                                 
  else                                                                
    {                                                                 
      if (aiocbp->aio_fildes != fildes) {                             
    60f0:	e5956000 	ldr	r6, [r5]                                      
    60f4:	e1560007 	cmp	r6, r7                                        
    60f8:	1a000023 	bne	618c <aio_cancel+0xbc>                        
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  rtems_set_errno_and_return_minus_one (EINVAL);                     
	}                                                                    
                                                                      
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
    60fc:	e2840048 	add	r0, r4, #72	; 0x48                            <== NOT EXECUTED
    6100:	e1a01006 	mov	r1, r6                                        <== NOT EXECUTED
    6104:	e3a02000 	mov	r2, #0                                        <== NOT EXECUTED
    6108:	eb0000c2 	bl	6418 <rtems_aio_search_fd>                     <== NOT EXECUTED
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
    610c:	e2507000 	subs	r7, r0, #0                                   <== NOT EXECUTED
    6110:	0a00000c 	beq	6148 <aio_cancel+0x78>                        <== NOT EXECUTED
	    pthread_mutex_unlock (&aio_request_queue.mutex);                 
	    return result;                                                   
                                                                      
	  }                                                                  
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
    6114:	e287401c 	add	r4, r7, #28                                   <== NOT EXECUTED
    6118:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    611c:	eb000434 	bl	71f4 <pthread_mutex_lock>                      <== NOT EXECUTED
      result = rtems_aio_remove_req (&r_chain->next_fd, aiocbp);      
    6120:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    6124:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    6128:	eb0001bb 	bl	681c <rtems_aio_remove_req>                    <== NOT EXECUTED
    612c:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
    6130:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6134:	eb00044f 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      pthread_mutex_unlock (&aio_request_queue.mutex);                
    6138:	e59f0150 	ldr	r0, [pc, #336]	; 6290 <aio_cancel+0x1c0>      <== NOT EXECUTED
    613c:	eb00044d 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      return result;                                                  
                                                                      
    }                                                                 
                                                                      
  return AIO_ALLDONE;                                                 
}                                                                     
    6140:	e1a00005 	mov	r0, r5                                        
    6144:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
	if (!rtems_chain_is_empty (&aio_request_queue.idle_req))             
    6148:	e5942054 	ldr	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
    614c:	e2843058 	add	r3, r4, #88	; 0x58                            <== NOT EXECUTED
    6150:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    6154:	0affffee 	beq	6114 <aio_cancel+0x44>                        <== NOT EXECUTED
	  {                                                                  
	    r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,      
    6158:	e2840054 	add	r0, r4, #84	; 0x54                            <== NOT EXECUTED
    615c:	e1a01006 	mov	r1, r6                                        <== NOT EXECUTED
    6160:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
    6164:	eb0000ab 	bl	6418 <rtems_aio_search_fd>                     <== NOT EXECUTED
					   fildes,                                                       
					   0);                                                           
	    if (r_chain == NULL)                                             
    6168:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    616c:	0a000006 	beq	618c <aio_cancel+0xbc>                        <== 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);       
    6170:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    6174:	eb0001a8 	bl	681c <rtems_aio_remove_req>                    <== NOT EXECUTED
    6178:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
	    pthread_mutex_unlock (&aio_request_queue.mutex);                 
    617c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6180:	eb00043c 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      return result;                                                  
                                                                      
    }                                                                 
                                                                      
  return AIO_ALLDONE;                                                 
}                                                                     
    6184:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6188:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
	    r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,      
					   fildes,                                                       
					   0);                                                           
	    if (r_chain == NULL)                                             
	      {                                                              
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
    618c:	e1a00004 	mov	r0, r4                                        
    6190:	eb000438 	bl	7278 <pthread_mutex_unlock>                    
		rtems_set_errno_and_return_minus_one (EINVAL);                      
    6194:	eb002990 	bl	107dc <__errno>                                
    6198:	e3a03016 	mov	r3, #22                                       
    619c:	e5803000 	str	r3, [r0]                                      
    61a0:	e3e05000 	mvn	r5, #0                                        
    61a4:	eaffffe5 	b	6140 <aio_cancel+0x70>                          
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
                                                                      
  if (aiocbp == NULL)                                                 
    {                                                                 
      if (fcntl (fildes, F_GETFL) < 0) {                              
    61a8:	e1a00007 	mov	r0, r7                                        
    61ac:	e3a01003 	mov	r1, #3                                        
    61b0:	eb001b6a 	bl	cf60 <fcntl>                                   
    61b4:	e3500000 	cmp	r0, #0                                        
    61b8:	ba00002d 	blt	6274 <aio_cancel+0x1a4>                       
        pthread_mutex_unlock(&aio_request_queue.mutex);               
	rtems_set_errno_and_return_minus_one (EBADF);                        
      }                                                               
                                                                      
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
    61bc:	e2840048 	add	r0, r4, #72	; 0x48                            <== NOT EXECUTED
    61c0:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
    61c4:	e1a02005 	mov	r2, r5                                        <== NOT EXECUTED
    61c8:	eb000092 	bl	6418 <rtems_aio_search_fd>                     <== NOT EXECUTED
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
    61cc:	e2506000 	subs	r6, r0, #0                                   <== NOT EXECUTED
    61d0:	0a00000b 	beq	6204 <aio_cancel+0x134>                       <== NOT EXECUTED
                                                                      
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  return AIO_ALLDONE;                                                
	}                                                                    
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
    61d4:	e286701c 	add	r7, r6, #28                                   <== NOT EXECUTED
    61d8:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    61dc:	eb000404 	bl	71f4 <pthread_mutex_lock>                      <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    61e0:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    61e4:	eb000a75 	bl	8bc0 <_Chain_Extract>                          <== NOT EXECUTED
      rtems_chain_extract (&r_chain->next_fd);                        
      rtems_aio_remove_fd (r_chain);                                  
    61e8:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    61ec:	eb000174 	bl	67c4 <rtems_aio_remove_fd>                     <== NOT EXECUTED
      pthread_mutex_unlock (&r_chain->mutex);                         
    61f0:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    61f4:	eb00041f 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      pthread_mutex_unlock (&aio_request_queue.mutex);                
    61f8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    61fc:	eb00041d 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      return AIO_CANCELED;                                            
    6200:	eaffffce 	b	6140 <aio_cancel+0x70>                          <== NOT EXECUTED
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
				     fildes,                                                      
				     0);                                                          
      if (r_chain == NULL)                                            
	{                                                                    
	  if (!rtems_chain_is_empty (&aio_request_queue.idle_req))           
    6204:	e5942054 	ldr	r2, [r4, #84]	; 0x54                          <== NOT EXECUTED
    6208:	e2843058 	add	r3, r4, #88	; 0x58                            <== NOT EXECUTED
    620c:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
    6210:	0a000013 	beq	6264 <aio_cancel+0x194>                       <== NOT EXECUTED
	    {                                                                
	      r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,    
    6214:	e2840054 	add	r0, r4, #84	; 0x54                            <== NOT EXECUTED
    6218:	e1a01007 	mov	r1, r7                                        <== NOT EXECUTED
    621c:	e1a02006 	mov	r2, r6                                        <== NOT EXECUTED
    6220:	eb00007c 	bl	6418 <rtems_aio_search_fd>                     <== NOT EXECUTED
					     fildes,                                                     
					     0);                                                         
	      if (r_chain == NULL) {                                         
    6224:	e2505000 	subs	r5, r0, #0                                   <== NOT EXECUTED
    6228:	0a00000d 	beq	6264 <aio_cancel+0x194>                       <== NOT EXECUTED
		return AIO_ALLDONE;                                                 
              }                                                       
                                                                      
	      rtems_chain_extract (&r_chain->next_fd);	                      
	      rtems_aio_remove_fd (r_chain);                                 
	      pthread_mutex_destroy (&r_chain->mutex);                       
    622c:	e285701c 	add	r7, r5, #28                                   <== NOT EXECUTED
    6230:	eb000a62 	bl	8bc0 <_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);                                 
    6234:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6238:	eb000161 	bl	67c4 <rtems_aio_remove_fd>                     <== NOT EXECUTED
	      pthread_mutex_destroy (&r_chain->mutex);                       
    623c:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    6240:	eb000348 	bl	6f68 <pthread_mutex_destroy>                   <== NOT EXECUTED
	      pthread_cond_destroy (&r_chain->mutex);                        
    6244:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    6248:	eb00026f 	bl	6c0c <pthread_cond_destroy>                    <== NOT EXECUTED
	      free (r_chain);                                                
    624c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6250:	ebfff282 	bl	2c60 <free>                                    <== NOT EXECUTED
                                                                      
	      pthread_mutex_unlock (&aio_request_queue.mutex);               
    6254:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6258:	eb000406 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
	      return AIO_CANCELED;                                           
    625c:	e1a05006 	mov	r5, r6                                        <== NOT EXECUTED
    6260:	eaffffb6 	b	6140 <aio_cancel+0x70>                          <== NOT EXECUTED
	    }                                                                
                                                                      
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
    6264:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6268:	eb000402 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
	  return AIO_ALLDONE;                                                
    626c:	e3a05002 	mov	r5, #2                                        <== NOT EXECUTED
    6270:	eaffffb2 	b	6140 <aio_cancel+0x70>                          <== NOT EXECUTED
  pthread_mutex_lock (&aio_request_queue.mutex);                      
                                                                      
  if (aiocbp == NULL)                                                 
    {                                                                 
      if (fcntl (fildes, F_GETFL) < 0) {                              
        pthread_mutex_unlock(&aio_request_queue.mutex);               
    6274:	e1a00004 	mov	r0, r4                                        
    6278:	eb0003fe 	bl	7278 <pthread_mutex_unlock>                    
	rtems_set_errno_and_return_minus_one (EBADF);                        
    627c:	eb002956 	bl	107dc <__errno>                                
    6280:	e3a03009 	mov	r3, #9                                        
    6284:	e5803000 	str	r3, [r0]                                      
    6288:	e3e05000 	mvn	r5, #0                                        
    628c:	eaffffab 	b	6140 <aio_cancel+0x70>                          
                                                                      

0000629c <aio_fsync>: ) { rtems_aio_request *req; int mode; if (op != O_SYNC)
    629c:	e3500a02 	cmp	r0, #8192	; 0x2000                            
                                                                      
int aio_fsync(                                                        
  int            op,                                                  
  struct aiocb  *aiocbp                                               
)                                                                     
{                                                                     
    62a0:	e92d4030 	push	{r4, r5, lr}                                 
    62a4:	e1a04001 	mov	r4, r1                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
    62a8:	13a05016 	movne	r5, #22                                     
)                                                                     
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
    62ac:	1a000011 	bne	62f8 <aio_fsync+0x5c>                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
    62b0:	e5910000 	ldr	r0, [r1]                                      
    62b4:	e3a01003 	mov	r1, #3                                        
    62b8:	eb001b28 	bl	cf60 <fcntl>                                   
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    62bc:	e2000003 	and	r0, r0, #3                                    
    62c0:	e2400001 	sub	r0, r0, #1                                    
    62c4:	e3500001 	cmp	r0, #1                                        
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
    62c8:	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)))
    62cc:	8a000009 	bhi	62f8 <aio_fsync+0x5c>                         
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
    62d0:	e3a00018 	mov	r0, #24                                       
    62d4:	ebfff400 	bl	32dc <malloc>                                  <== NOT EXECUTED
  if (req == NULL)                                                    
    62d8:	e2503000 	subs	r3, r0, #0                                   <== NOT EXECUTED
    62dc:	0a000004 	beq	62f4 <aio_fsync+0x58>                         <== NOT EXECUTED
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
    62e0:	e5834014 	str	r4, [r3, #20]                                 <== NOT EXECUTED
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
    62e4:	e3a03003 	mov	r3, #3                                        <== NOT EXECUTED
    62e8:	e584302c 	str	r3, [r4, #44]	; 0x2c                          <== NOT EXECUTED
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
    62ec:	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);                                     
    62f0:	ea000162 	b	6880 <rtems_aio_enqueue>                        <== NOT EXECUTED
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
    62f4:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
    62f8:	e3e03000 	mvn	r3, #0                                        
    62fc:	e5845030 	str	r5, [r4, #48]	; 0x30                          
    6300:	e5843034 	str	r3, [r4, #52]	; 0x34                          
    6304:	eb002934 	bl	107dc <__errno>                                
    6308:	e5805000 	str	r5, [r0]                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
    630c:	e3e00000 	mvn	r0, #0                                        
    6310:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00006a64 <aio_read>: * 0 - otherwise */ int aio_read (struct aiocb *aiocbp) {
    6a64:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
    6a68:	e3a01003 	mov	r1, #3                                        
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_read (struct aiocb *aiocbp)                                       
{                                                                     
    6a6c:	e1a04000 	mov	r4, r0                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
    6a70:	e5900000 	ldr	r0, [r0]                                      
    6a74:	eb001939 	bl	cf60 <fcntl>                                   
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    6a78:	e2000003 	and	r0, r0, #3                                    
    6a7c:	e3500002 	cmp	r0, #2                                        
    6a80:	13500000 	cmpne	r0, #0                                      
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
    6a84:	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)))
    6a88:	1a00000f 	bne	6acc <aio_read+0x68>                          
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
    6a8c:	e5943014 	ldr	r3, [r4, #20]                                 
    6a90:	e3530000 	cmp	r3, #0                                        
    6a94:	1a000013 	bne	6ae8 <aio_read+0x84>                          
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    6a98:	e5943008 	ldr	r3, [r4, #8]                                  
    6a9c:	e3530000 	cmp	r3, #0                                        
    6aa0:	ba000010 	blt	6ae8 <aio_read+0x84>                          
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
    6aa4:	e3a00018 	mov	r0, #24                                       
    6aa8:	ebfff20b 	bl	32dc <malloc>                                  
  if (req == NULL)                                                    
    6aac:	e2503000 	subs	r3, r0, #0                                   
    6ab0:	0a000004 	beq	6ac8 <aio_read+0x64>                          
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
    6ab4:	e5834014 	str	r4, [r3, #20]                                 
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
    6ab8:	e3a03001 	mov	r3, #1                                        
    6abc:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
    6ac0:	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);                                     
    6ac4:	eaffff6d 	b	6880 <rtems_aio_enqueue>                        
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
    6ac8:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
    6acc:	e3e03000 	mvn	r3, #0                                        
    6ad0:	e5845030 	str	r5, [r4, #48]	; 0x30                          
    6ad4:	e5843034 	str	r3, [r4, #52]	; 0x34                          
    6ad8:	eb00273f 	bl	107dc <__errno>                                
    6adc:	e5805000 	str	r5, [r0]                                      
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
    6ae0:	e3e00000 	mvn	r0, #0                                        
    6ae4:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  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);            
    6ae8:	e3a05016 	mov	r5, #22                                       
    6aec:	eafffff6 	b	6acc <aio_read+0x68>                            
                                                                      

00006af8 <aio_write>: * 0 - otherwise */ int aio_write (struct aiocb *aiocbp) {
    6af8:	e92d4030 	push	{r4, r5, lr}                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
    6afc:	e3a01003 	mov	r1, #3                                        
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_write (struct aiocb *aiocbp)                                      
{                                                                     
    6b00:	e1a04000 	mov	r4, r0                                        
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
    6b04:	e5900000 	ldr	r0, [r0]                                      
    6b08:	eb001914 	bl	cf60 <fcntl>                                   
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    6b0c:	e2000003 	and	r0, r0, #3                                    
    6b10:	e2400001 	sub	r0, r0, #1                                    
    6b14:	e3500001 	cmp	r0, #1                                        
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
    6b18:	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)))
    6b1c:	8a00000f 	bhi	6b60 <aio_write+0x68>                         
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
    6b20:	e5943014 	ldr	r3, [r4, #20]                                 
    6b24:	e3530000 	cmp	r3, #0                                        
    6b28:	1a000013 	bne	6b7c <aio_write+0x84>                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    6b2c:	e5943008 	ldr	r3, [r4, #8]                                  
    6b30:	e3530000 	cmp	r3, #0                                        
    6b34:	ba000010 	blt	6b7c <aio_write+0x84>                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
    6b38:	e3a00018 	mov	r0, #24                                       
    6b3c:	ebfff1e6 	bl	32dc <malloc>                                  
  if (req == NULL)                                                    
    6b40:	e2503000 	subs	r3, r0, #0                                   
    6b44:	0a000004 	beq	6b5c <aio_write+0x64>                         
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
    6b48:	e5834014 	str	r4, [r3, #20]                                 
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
    6b4c:	e3a03002 	mov	r3, #2                                        
    6b50:	e584302c 	str	r3, [r4, #44]	; 0x2c                          
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
    6b54:	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);                                     
    6b58:	eaffff48 	b	6880 <rtems_aio_enqueue>                        
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
    6b5c:	e3a0500b 	mov	r5, #11                                       <== NOT EXECUTED
    6b60:	e3e03000 	mvn	r3, #0                                        
    6b64:	e5845030 	str	r5, [r4, #48]	; 0x30                          
    6b68:	e5843034 	str	r3, [r4, #52]	; 0x34                          
    6b6c:	eb00271a 	bl	107dc <__errno>                                
    6b70:	e5805000 	str	r5, [r0]                                      
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
    6b74:	e3e00000 	mvn	r0, #0                                        
    6b78:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
  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);            
    6b7c:	e3a05016 	mov	r5, #22                                       
    6b80:	eafffff6 	b	6b60 <aio_write+0x68>                           
                                                                      

000090c4 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
    90c4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    90c8:	e3d2a007 	bics	sl, r2, #7                                   
  const char                        *pathname,                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
    90cc:	e1a09000 	mov	r9, r0                                        
    90d0:	e1a04001 	mov	r4, r1                                        
    90d4:	e1a0b003 	mov	fp, r3                                        
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    90d8:	1a000027 	bne	917c <devFS_evaluate_path+0xb8>               
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
    90dc:	e5937000 	ldr	r7, [r3]                                      
  if (!device_name_table)                                             
    90e0:	e3570000 	cmp	r7, #0                                        
    90e4:	0a000029 	beq	9190 <devFS_evaluate_path+0xcc>               
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    90e8:	e59f30b4 	ldr	r3, [pc, #180]	; 91a4 <devFS_evaluate_path+0xe0>
    90ec:	e5938000 	ldr	r8, [r3]                                      
    90f0:	e3580000 	cmp	r8, #0                                        
    90f4:	11a0500a 	movne	r5, sl                                      
    90f8:	0a000010 	beq	9140 <devFS_evaluate_path+0x7c>               
    if (!device_name_table[i].device_name)                            
    90fc:	e08aa10a 	add	sl, sl, sl, lsl #2                            
    9100:	e797610a 	ldr	r6, [r7, sl, lsl #2]                          
    9104:	e2561000 	subs	r1, r6, #0                                   
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
    9108:	e1a00009 	mov	r0, r9                                        
    910c:	e1a02004 	mov	r2, r4                                        
  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++) {                     
    if (!device_name_table[i].device_name)                            
    9110:	e087a10a 	add	sl, r7, sl, lsl #2                            
    9114:	0a000005 	beq	9130 <devFS_evaluate_path+0x6c>               
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
    9118:	eb000df2 	bl	c8e8 <strncmp>                                 
    911c:	e3500000 	cmp	r0, #0                                        
    9120:	1a000002 	bne	9130 <devFS_evaluate_path+0x6c>               
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
    9124:	e7d60004 	ldrb	r0, [r6, r4]                                 
    9128:	e3500000 	cmp	r0, #0                                        
    912c:	0a000008 	beq	9154 <devFS_evaluate_path+0x90>               
  /* 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++) {                     
    9130:	e2855001 	add	r5, r5, #1                                    
    9134:	e1580005 	cmp	r8, r5                                        
    9138:	e1a0a005 	mov	sl, r5                                        
    913c:	8affffee 	bhi	90fc <devFS_evaluate_path+0x38>               
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
    9140:	eb000a61 	bl	bacc <__errno>                                 
    9144:	e3a03002 	mov	r3, #2                                        
    9148:	e5803000 	str	r3, [r0]                                      
    914c:	e3e00000 	mvn	r0, #0                                        
}                                                                     
    9150:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    9154:	e59f304c 	ldr	r3, [pc, #76]	; 91a8 <devFS_evaluate_path+0xe4>
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    9158:	e59f204c 	ldr	r2, [pc, #76]	; 91ac <devFS_evaluate_path+0xe8>
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    915c:	e5933000 	ldr	r3, [r3]                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    9160:	e58b2008 	str	r2, [fp, #8]                                  
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    9164:	e5933028 	ldr	r3, [r3, #40]	; 0x28                          
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    9168:	e59f2040 	ldr	r2, [pc, #64]	; 91b0 <devFS_evaluate_path+0xec>
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    916c:	e58ba000 	str	sl, [fp]                                      
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    9170:	e58b200c 	str	r2, [fp, #12]                                 
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    9174:	e58b3010 	str	r3, [fp, #16]                                 
    return 0;                                                         
    9178:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
    917c:	eb000a52 	bl	bacc <__errno>                                 <== NOT EXECUTED
    9180:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    9184:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    9188:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    918c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          <== NOT EXECUTED
                                                                      
  /* 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 );                   
    9190:	eb000a4d 	bl	bacc <__errno>                                 
    9194:	e3a0300e 	mov	r3, #14                                       
    9198:	e5803000 	str	r3, [r0]                                      
    919c:	e3e00000 	mvn	r0, #0                                        
    91a0:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

00002e68 <drainOutput>: drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
    2e68:	e59030b4 	ldr	r3, [r0, #180]	; 0xb4                         
    2e6c:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Drain output queue                                                 
 */                                                                   
static void                                                           
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
    2e70:	e92d4030 	push	{r4, r5, lr}                                 
    2e74:	e1a04000 	mov	r4, r0                                        
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    2e78:	08bd8030 	popeq	{r4, r5, pc}                                
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    2e7c:	e10f3000 	mrs	r3, CPSR                                      
    2e80:	e3832080 	orr	r2, r3, #128	; 0x80                           
    2e84:	e129f002 	msr	CPSR_fc, r2                                   
    rtems_interrupt_disable (level);                                  
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
    2e88:	e5901084 	ldr	r1, [r0, #132]	; 0x84                         
    2e8c:	e5902080 	ldr	r2, [r0, #128]	; 0x80                         
    2e90:	e1510002 	cmp	r1, r2                                        
    2e94:	0a00000f 	beq	2ed8 <drainOutput+0x70>                       
      tty->rawOutBufState = rob_wait;                                 
    2e98:	e3a05002 	mov	r5, #2                                        <== NOT EXECUTED
    2e9c:	e5845094 	str	r5, [r4, #148]	; 0x94                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    2ea0:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
    2ea4:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    2ea8:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         <== NOT EXECUTED
    2eac:	e1a02001 	mov	r2, r1                                        <== NOT EXECUTED
    2eb0:	eb0009d0 	bl	55f8 <rtems_semaphore_obtain>                  <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
    2eb4:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    2eb8:	1a000008 	bne	2ee0 <drainOutput+0x78>                       <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    2ebc:	e10f3000 	mrs	r3, CPSR                                      <== NOT EXECUTED
    2ec0:	e3832080 	orr	r2, r3, #128	; 0x80                           <== NOT EXECUTED
    2ec4:	e129f002 	msr	CPSR_fc, r2                                   <== 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) {              
    2ec8:	e5941084 	ldr	r1, [r4, #132]	; 0x84                         <== NOT EXECUTED
    2ecc:	e5942080 	ldr	r2, [r4, #128]	; 0x80                         <== NOT EXECUTED
    2ed0:	e1510002 	cmp	r1, r2                                        <== NOT EXECUTED
    2ed4:	1afffff0 	bne	2e9c <drainOutput+0x34>                       <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    2ed8:	e129f003 	msr	CPSR_fc, r3                                   
    2edc:	e8bd8030 	pop	{r4, r5, pc}                                  
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    2ee0:	eb000b6d 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

00003c94 <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)
    3c94:	e5903020 	ldr	r3, [r0, #32]                                 
    3c98:	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)                   
{                                                                     
    3c9c:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
    3ca0:	e1a04000 	mov	r4, r0                                        
    3ca4:	e1a06001 	mov	r6, r1                                        
  if (tty->ccount == 0)                                               
    3ca8:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
    return;                                                           
  if (lineFlag) {                                                     
    3cac:	e3510000 	cmp	r1, #0                                        
    3cb0:	0a000010 	beq	3cf8 <erase+0x64>                             
    if (!(tty->termios.c_lflag & ECHO)) {                             
    3cb4:	e590103c 	ldr	r1, [r0, #60]	; 0x3c                          
    3cb8:	e2112008 	ands	r2, r1, #8                                   
      tty->ccount = 0;                                                
    3cbc:	05802020 	streq	r2, [r0, #32]                               
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
    3cc0:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
    3cc4:	e2110010 	ands	r0, r1, #16                                  
    3cc8:	1a00000c 	bne	3d00 <erase+0x6c>                             
      tty->ccount = 0;                                                
    3ccc:	e5840020 	str	r0, [r4, #32]                                 <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
    3cd0:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    3cd4:	e5d40044 	ldrb	r0, [r4, #68]	; 0x44                         <== NOT EXECUTED
    3cd8:	ebffffc8 	bl	3c00 <echo>                                    <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
    3cdc:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
    3ce0:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    3ce4:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                <== NOT EXECUTED
        echo ('\n', tty);                                             
    3ce8:	e3a0000a 	mov	r0, #10                                       <== NOT EXECUTED
    3cec:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
    3cf0:	e8bd45f0 	pop	{r4, r5, r6, r7, r8, sl, lr}                  <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
      if (tty->termios.c_lflag & ECHOK)                               
        echo ('\n', tty);                                             
    3cf4:	eaffffc1 	b	3c00 <echo>                                     <== NOT EXECUTED
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    3cf8:	e590103c 	ldr	r1, [r0, #60]	; 0x3c                          
    3cfc:	e2012008 	and	r2, r1, #8                                    
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
    3d00:	e59f7198 	ldr	r7, [pc, #408]	; 3ea0 <erase+0x20c>           
    3d04:	ea000008 	b	3d2c <erase+0x98>                               
    3d08:	e3110c02 	tst	r1, #512	; 0x200                              <== NOT EXECUTED
    3d0c:	1a00004b 	bne	3e40 <erase+0x1ac>                            <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
    3d10:	e3560000 	cmp	r6, #0                                        <== NOT EXECUTED
    3d14:	08bd85f0 	popeq	{r4, r5, r6, r7, r8, sl, pc}                <== NOT EXECUTED
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    3d18:	e5943020 	ldr	r3, [r4, #32]                                 
    3d1c:	e3530000 	cmp	r3, #0                                        
    3d20:	0a000045 	beq	3e3c <erase+0x1a8>                            
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
      if (tty->termios.c_lflag & ECHOK)                               
        echo ('\n', tty);                                             
    3d24:	e594103c 	ldr	r1, [r4, #60]	; 0x3c                          
    3d28:	e2012008 	and	r2, r1, #8                                    
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
    3d2c:	e2433001 	sub	r3, r3, #1                                    
    3d30:	e594001c 	ldr	r0, [r4, #28]                                 
    3d34:	e5843020 	str	r3, [r4, #32]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
    3d38:	e3520000 	cmp	r2, #0                                        
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
    3d3c:	e7d05003 	ldrb	r5, [r0, r3]                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
    3d40:	0afffff2 	beq	3d10 <erase+0x7c>                             
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
    3d44:	e3560000 	cmp	r6, #0                                        
    3d48:	1a000001 	bne	3d54 <erase+0xc0>                             
    3d4c:	e3110010 	tst	r1, #16                                       
    3d50:	0a000035 	beq	3e2c <erase+0x198>                            
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
    3d54:	e3550009 	cmp	r5, #9                                        
    3d58:	0a00000f 	beq	3d9c <erase+0x108>                            
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
    3d5c:	e5973000 	ldr	r3, [r7]                                      
    3d60:	e2855001 	add	r5, r5, #1                                    
    3d64:	e7d33005 	ldrb	r3, [r3, r5]                                 
    3d68:	e3130020 	tst	r3, #32                                       
    3d6c:	1affffe5 	bne	3d08 <erase+0x74>                             
          rtems_termios_puts ("\b \b", 3, tty);                       
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
          rtems_termios_puts ("\b \b", 3, tty);                       
    3d70:	e59f012c 	ldr	r0, [pc, #300]	; 3ea4 <erase+0x210>           
    3d74:	e3a01003 	mov	r1, #3                                        
    3d78:	e1a02004 	mov	r2, r4                                        
    3d7c:	ebfffefd 	bl	3978 <rtems_termios_puts>                      
          if (tty->column)                                            
    3d80:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    3d84:	e3530000 	cmp	r3, #0                                        
            tty->column--;                                            
    3d88:	12433001 	subne	r3, r3, #1                                  
    3d8c:	15843028 	strne	r3, [r4, #40]	; 0x28                        
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
    3d90:	e3560000 	cmp	r6, #0                                        
    3d94:	1affffdf 	bne	3d18 <erase+0x84>                             
    3d98:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
    3d9c:	e3530000 	cmp	r3, #0                                        
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
        int col = tty->read_start_column;                             
    3da0:	e594502c 	ldr	r5, [r4, #44]	; 0x2c                          
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
    3da4:	0a000011 	beq	3df0 <erase+0x15c>                            
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
    3da8:	e5978000 	ldr	r8, [r7]                                      
    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;                                                    
    3dac:	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)                       
    3db0:	e201ac02 	and	sl, r1, #512	; 0x200                          
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
    3db4:	e7d01002 	ldrb	r1, [r0, r2]                                 
          if (c == '\t') {                                            
    3db8:	e3510009 	cmp	r1, #9                                        
            col = (col | 7) + 1;                                      
    3dbc:	03855007 	orreq	r5, r5, #7                                  
          } else if (iscntrl (c)) {                                   
    3dc0:	e088c001 	add	ip, r8, r1                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
    3dc4:	e2822001 	add	r2, r2, #1                                    
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
    3dc8:	02855001 	addeq	r5, r5, #1                                  
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
    3dcc:	0a000005 	beq	3de8 <erase+0x154>                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
    3dd0:	e5dcc001 	ldrb	ip, [ip, #1]                                 
    3dd4:	e31c0020 	tst	ip, #32                                       
            if (tty->termios.c_lflag & ECHOCTL)                       
              col += 2;                                               
          } else {                                                    
            col++;                                                    
    3dd8:	02855001 	addeq	r5, r5, #1                                  
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
    3ddc:	0a000001 	beq	3de8 <erase+0x154>                            
            if (tty->termios.c_lflag & ECHOCTL)                       
    3de0:	e35a0000 	cmp	sl, #0                                        <== NOT EXECUTED
              col += 2;                                               
    3de4:	12855002 	addne	r5, r5, #2                                  <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
    3de8:	e1530002 	cmp	r3, r2                                        
    3dec:	1afffff0 	bne	3db4 <erase+0x120>                            
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
    3df0:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    3df4:	e1550003 	cmp	r5, r3                                        
    3df8:	aaffffc4 	bge	3d10 <erase+0x7c>                             
          rtems_termios_puts ("\b", 1, tty);                          
    3dfc:	e59f00a4 	ldr	r0, [pc, #164]	; 3ea8 <erase+0x214>           
    3e00:	e3a01001 	mov	r1, #1                                        
    3e04:	e1a02004 	mov	r2, r4                                        
    3e08:	ebfffeda 	bl	3978 <rtems_termios_puts>                      
          tty->column--;                                              
    3e0c:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
    3e10:	e2433001 	sub	r3, r3, #1                                    
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
    3e14:	e1530005 	cmp	r3, r5                                        
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
    3e18:	e5843028 	str	r3, [r4, #40]	; 0x28                          
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
    3e1c:	cafffff6 	bgt	3dfc <erase+0x168>                            
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
    3e20:	e3560000 	cmp	r6, #0                                        
    3e24:	1affffbb 	bne	3d18 <erase+0x84>                             
    3e28:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== 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);                        
    3e2c:	e5d40043 	ldrb	r0, [r4, #67]	; 0x43                         <== NOT EXECUTED
    3e30:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
    3e34:	e8bd45f0 	pop	{r4, r5, r6, r7, r8, sl, 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);                        
    3e38:	eaffff70 	b	3c00 <echo>                                     <== NOT EXECUTED
    3e3c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
    3e40:	e59f005c 	ldr	r0, [pc, #92]	; 3ea4 <erase+0x210>            <== NOT EXECUTED
    3e44:	e3a01003 	mov	r1, #3                                        <== NOT EXECUTED
    3e48:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    3e4c:	ebfffec9 	bl	3978 <rtems_termios_puts>                      <== NOT EXECUTED
          if (tty->column)                                            
    3e50:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
    3e54:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->column--;                                            
    3e58:	12433001 	subne	r3, r3, #1                                  <== NOT EXECUTED
    3e5c:	15843028 	strne	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
    3e60:	e5973000 	ldr	r3, [r7]                                      <== NOT EXECUTED
    3e64:	e7d33005 	ldrb	r3, [r3, r5]                                 <== NOT EXECUTED
    3e68:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    3e6c:	0affffbf 	beq	3d70 <erase+0xdc>                             <== NOT EXECUTED
    3e70:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          <== NOT EXECUTED
    3e74:	e3130c02 	tst	r3, #512	; 0x200                              <== NOT EXECUTED
    3e78:	0affffa4 	beq	3d10 <erase+0x7c>                             <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
    3e7c:	e59f0020 	ldr	r0, [pc, #32]	; 3ea4 <erase+0x210>            <== NOT EXECUTED
    3e80:	e3a01003 	mov	r1, #3                                        <== NOT EXECUTED
    3e84:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    3e88:	ebfffeba 	bl	3978 <rtems_termios_puts>                      <== NOT EXECUTED
          if (tty->column)                                            
    3e8c:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
    3e90:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->column--;                                            
    3e94:	12433001 	subne	r3, r3, #1                                  <== NOT EXECUTED
    3e98:	15843028 	strne	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
    3e9c:	eaffffbb 	b	3d90 <erase+0xfc>                               <== NOT EXECUTED
                                                                      

000028b8 <fcntl>: int fcntl( int fd, int cmd, ... ) {
    28b8:	e92d000e 	push	{r1, r2, r3}                                 
    28bc:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    28c0:	e59f31d0 	ldr	r3, [pc, #464]	; 2a98 <fcntl+0x1e0>           
    28c4:	e5933000 	ldr	r3, [r3]                                      
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
    28c8:	e24dd004 	sub	sp, sp, #4                                    
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
    28cc:	e28d2028 	add	r2, sp, #40	; 0x28                            
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    28d0:	e1500003 	cmp	r0, r3                                        
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
    28d4:	e59d4024 	ldr	r4, [sp, #36]	; 0x24                          
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
    28d8:	e58d2000 	str	r2, [sp]                                      
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
    28dc:	2a000061 	bcs	2a68 <fcntl+0x1b0>                            
  iop = rtems_libio_iop( fd );                                        
    28e0:	e59f71b4 	ldr	r7, [pc, #436]	; 2a9c <fcntl+0x1e4>           
    28e4:	e5976000 	ldr	r6, [r7]                                      
    28e8:	e0600180 	rsb	r0, r0, r0, lsl #3                            
    28ec:	e0865180 	add	r5, r6, r0, lsl #3                            
  rtems_libio_check_is_open(iop);                                     
    28f0:	e595c014 	ldr	ip, [r5, #20]                                 
    28f4:	e31c0c01 	tst	ip, #256	; 0x100                              
    28f8:	0a00005a 	beq	2a68 <fcntl+0x1b0>                            
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    28fc:	e3540009 	cmp	r4, #9                                        
    2900:	979ff104 	ldrls	pc, [pc, r4, lsl #2]                        
    2904:	ea000028 	b	29ac <fcntl+0xf4>                               
    2908:	000029bc 	.word	0x000029bc                                  
    290c:	00002a20 	.word	0x00002a20                                  
    2910:	00002a30 	.word	0x00002a30                                  
    2914:	00002a50 	.word	0x00002a50                                  
    2918:	00002954 	.word	0x00002954                                  
    291c:	00002930 	.word	0x00002930                                  
    2920:	00002930 	.word	0x00002930                                  
    2924:	00002930 	.word	0x00002930                                  
    2928:	00002930 	.word	0x00002930                                  
    292c:	00002930 	.word	0x00002930                                  
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
    2930:	eb0030bb 	bl	ec24 <__errno>                                 
    2934:	e3a03086 	mov	r3, #134	; 0x86                               
    2938:	e5803000 	str	r3, [r0]                                      
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
    if (err) {                                                        
      errno = err;                                                    
      ret = -1;                                                       
    293c:	e3e06000 	mvn	r6, #0                                        
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
    2940:	e1a00006 	mov	r0, r6                                        
    2944:	e28dd004 	add	sp, sp, #4                                    
    2948:	e8bd47f0 	pop	{r4, r5, r6, r7, r8, r9, sl, lr}              
    294c:	e28dd00c 	add	sp, sp, #12                                   
    2950:	e12fff1e 	bx	lr                                             
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
    2954:	e5920000 	ldr	r0, [r2]                                      
    2958:	eb000181 	bl	2f64 <rtems_libio_fcntl_flags>                 
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
    295c:	e5953014 	ldr	r3, [r5, #20]                                 
    2960:	e3c00f7f 	bic	r0, r0, #508	; 0x1fc                          
    2964:	e3c00002 	bic	r0, r0, #2                                    
    2968:	e1a00b00 	lsl	r0, r0, #22                                   
    296c:	e3c33c02 	bic	r3, r3, #512	; 0x200                          
    2970:	e1a00b20 	lsr	r0, r0, #22                                   
    2974:	e3c33001 	bic	r3, r3, #1                                    
    2978:	e1800003 	orr	r0, r0, r3                                    
    297c:	e5850014 	str	r0, [r5, #20]                                 
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
    2980:	e3a06000 	mov	r6, #0                                        
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
    2984:	e1a00004 	mov	r0, r4                                        
    2988:	e5953020 	ldr	r3, [r5, #32]                                 
    298c:	e1a01005 	mov	r1, r5                                        
    2990:	e1a0e00f 	mov	lr, pc                                        
    2994:	e593f030 	ldr	pc, [r3, #48]	; 0x30                          
    if (err) {                                                        
    2998:	e2504000 	subs	r4, r0, #0                                   
    299c:	0affffe7 	beq	2940 <fcntl+0x88>                             
      errno = err;                                                    
    29a0:	eb00309f 	bl	ec24 <__errno>                                 <== NOT EXECUTED
    29a4:	e5804000 	str	r4, [r0]                                      <== NOT EXECUTED
    29a8:	eaffffe3 	b	293c <fcntl+0x84>                               <== NOT EXECUTED
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
    29ac:	eb00309c 	bl	ec24 <__errno>                                 
    29b0:	e3a03016 	mov	r3, #22                                       
    29b4:	e5803000 	str	r3, [r0]                                      
    29b8:	eaffffdf 	b	293c <fcntl+0x84>                               
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
    29bc:	e592a000 	ldr	sl, [r2]                                      
      if ( fd2 )                                                      
    29c0:	e35a0000 	cmp	sl, #0                                        
    29c4:	0a00002c 	beq	2a7c <fcntl+0x1c4>                            
        diop = rtems_libio_iop( fd2 );                                
    29c8:	e153000a 	cmp	r3, sl                                        
    29cc:	806aa18a 	rsbhi	sl, sl, sl, lsl #3                          
    29d0:	8086a18a 	addhi	sl, r6, sl, lsl #3                          
    29d4:	81a0900a 	movhi	r9, sl                                      
    29d8:	93a09000 	movls	r9, #0                                      
    29dc:	91a0a009 	movls	sl, r9                                      
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
    29e0:	e2857018 	add	r7, r5, #24                                   
    29e4:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    29e8:	e28a8018 	add	r8, sl, #24                                   
    29ec:	e8a8000f 	stmia	r8!, {r0, r1, r2, r3}                       
      ret = (int) (diop - rtems_libio_iops);                          
    29f0:	e0669009 	rsb	r9, r6, r9                                    
    29f4:	e1a091c9 	asr	r9, r9, #3                                    
    29f8:	e0896189 	add	r6, r9, r9, lsl #3                            
    29fc:	e0866306 	add	r6, r6, r6, lsl #6                            
    2a00:	e0896186 	add	r6, r9, r6, lsl #3                            
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
    2a04:	e5973000 	ldr	r3, [r7]                                      
      ret = (int) (diop - rtems_libio_iops);                          
    2a08:	e0866786 	add	r6, r6, r6, lsl #15                           
    2a0c:	e0896186 	add	r6, r9, r6, lsl #3                            
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
    2a10:	e58ac014 	str	ip, [sl, #20]                                 
      diop->pathinfo   = iop->pathinfo;                               
    2a14:	e5883000 	str	r3, [r8]                                      
      ret = (int) (diop - rtems_libio_iops);                          
    2a18:	e2666000 	rsb	r6, r6, #0                                    
    2a1c:	ea00000e 	b	2a5c <fcntl+0x1a4>                              
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
    2a20:	e31c0b02 	tst	ip, #2048	; 0x800                             
    2a24:	03a06000 	moveq	r6, #0                                      
    2a28:	13a06001 	movne	r6, #1                                      
    2a2c:	eaffffd4 	b	2984 <fcntl+0xcc>                               
       *  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 ) )                                        
    2a30:	e5926000 	ldr	r6, [r2]                                      
    2a34:	e3560000 	cmp	r6, #0                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
    2a38:	138ccb02 	orrne	ip, ip, #2048	; 0x800                       
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
    2a3c:	03cccb02 	biceq	ip, ip, #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;                      
    2a40:	1585c014 	strne	ip, [r5, #20]                               
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
    2a44:	13a06000 	movne	r6, #0                                      
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
    2a48:	0585c014 	streq	ip, [r5, #20]                               
    2a4c:	eaffffcc 	b	2984 <fcntl+0xcc>                               
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
    2a50:	e1a0000c 	mov	r0, ip                                        
    2a54:	eb00014f 	bl	2f98 <rtems_libio_to_fcntl_flags>              
    2a58:	e1a06000 	mov	r6, r0                                        
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    2a5c:	e3560000 	cmp	r6, #0                                        
    2a60:	aaffffc7 	bge	2984 <fcntl+0xcc>                             
    2a64:	eaffffb5 	b	2940 <fcntl+0x88>                               <== NOT EXECUTED
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
    2a68:	eb00306d 	bl	ec24 <__errno>                                 
    2a6c:	e3a03009 	mov	r3, #9                                        
    2a70:	e5803000 	str	r3, [r0]                                      
    2a74:	e3e06000 	mvn	r6, #0                                        
    2a78:	eaffffb0 	b	2940 <fcntl+0x88>                               
      fd2 = va_arg( ap, int );                                        
      if ( fd2 )                                                      
        diop = rtems_libio_iop( fd2 );                                
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
    2a7c:	eb000158 	bl	2fe4 <rtems_libio_allocate>                    
        if ( diop == 0 ) {                                            
    2a80:	e250a000 	subs	sl, r0, #0                                   
    2a84:	0affffac 	beq	293c <fcntl+0x84>                             
    2a88:	e595c014 	ldr	ip, [r5, #20]                                 
    2a8c:	e1a0900a 	mov	r9, sl                                        
    2a90:	e5976000 	ldr	r6, [r7]                                      
    2a94:	eaffffd1 	b	29e0 <fcntl+0x128>                              
                                                                      

0000c298 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
    c298:	e92d45f0 	push	{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) {                              
    c29c:	e59f546c 	ldr	r5, [pc, #1132]	; c710 <fifo_open+0x478>      
    c2a0:	e5958000 	ldr	r8, [r5]                                      
    c2a4:	e3580000 	cmp	r8, #0                                        
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
    c2a8:	e24dd00c 	sub	sp, sp, #12                                   
    c2ac:	e1a04000 	mov	r4, r0                                        
    c2b0:	e1a06001 	mov	r6, r1                                        
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    c2b4:	0a000024 	beq	c34c <fifo_open+0xb4>                         
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    c2b8:	e3a01000 	mov	r1, #0                                        
    c2bc:	e1a00008 	mov	r0, r8                                        
    c2c0:	e1a02001 	mov	r2, r1                                        
    c2c4:	ebffed95 	bl	7920 <rtems_semaphore_obtain>                  
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    c2c8:	e250a000 	subs	sl, r0, #0                                   
    c2cc:	1a0000e4 	bne	c664 <fifo_open+0x3cc>                        
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
    c2d0:	e5945000 	ldr	r5, [r4]                                      
  if (pipe == NULL) {                                                 
    c2d4:	e3550000 	cmp	r5, #0                                        
    c2d8:	0a00007f 	beq	c4dc <fifo_open+0x244>                        
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c2dc:	e3a01000 	mov	r1, #0                                        
    c2e0:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c2e4:	e1a02001 	mov	r2, r1                                        
    c2e8:	ebffed8c 	bl	7920 <rtems_semaphore_obtain>                  
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    c2ec:	e5943000 	ldr	r3, [r4]                                      
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c2f0:	e3500000 	cmp	r0, #0                                        
    c2f4:	01a07000 	moveq	r7, r0                                      
    c2f8:	13e07003 	mvnne	r7, #3                                      
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    c2fc:	e3530000 	cmp	r3, #0                                        
    c300:	0a0000c7 	beq	c624 <fifo_open+0x38c>                        
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
    c304:	ebffffa9 	bl	c1b0 <pipe_unlock>                             
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    c308:	e3570000 	cmp	r7, #0                                        
    c30c:	1a00000b 	bne	c340 <fifo_open+0xa8>                         
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    c310:	e5963014 	ldr	r3, [r6, #20]                                 
    c314:	e2033006 	and	r3, r3, #6                                    
    c318:	e3530004 	cmp	r3, #4                                        
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
    c31c:	e5945000 	ldr	r5, [r4]                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    c320:	0a000015 	beq	c37c <fifo_open+0xe4>                         
    c324:	e3530006 	cmp	r3, #6                                        
    c328:	0a000057 	beq	c48c <fifo_open+0x1f4>                        
    c32c:	e3530002 	cmp	r3, #2                                        
    c330:	0a000035 	beq	c40c <fifo_open+0x174>                        
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
    c334:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c338:	ebffedc1 	bl	7a44 <rtems_semaphore_release>                 
  return 0;                                                           
    c33c:	e3a07000 	mov	r7, #0                                        
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
  return err;                                                         
}                                                                     
    c340:	e1a00007 	mov	r0, r7                                        
    c344:	e28dd00c 	add	sp, sp, #12                                   
    c348:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
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 );
    c34c:	e59f73c0 	ldr	r7, [pc, #960]	; c714 <fifo_open+0x47c>       
    c350:	e1a01008 	mov	r1, r8                                        
    c354:	e5970000 	ldr	r0, [r7]                                      
    c358:	e1a02008 	mov	r2, r8                                        
    c35c:	ebffed6f 	bl	7920 <rtems_semaphore_obtain>                  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
    c360:	e5953000 	ldr	r3, [r5]                                      
    c364:	e3530000 	cmp	r3, #0                                        
    c368:	0a0000b2 	beq	c638 <fifo_open+0x3a0>                        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    c36c:	e5970000 	ldr	r0, [r7]                                      <== NOT EXECUTED
    c370:	ebffedb3 	bl	7a44 <rtems_semaphore_release>                 <== NOT EXECUTED
    c374:	e5958000 	ldr	r8, [r5]                                      <== NOT EXECUTED
    c378:	eaffffce 	b	c2b8 <fifo_open+0x20>                           <== NOT EXECUTED
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
    c37c:	e5953014 	ldr	r3, [r5, #20]                                 
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
    c380:	e5951024 	ldr	r1, [r5, #36]	; 0x24                          
                                                                      
      if (pipe->Writers ++ == 0)                                      
    c384:	e2832001 	add	r2, r3, #1                                    
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
    c388:	e2811001 	add	r1, r1, #1                                    
                                                                      
      if (pipe->Writers ++ == 0)                                      
    c38c:	e3530000 	cmp	r3, #0                                        
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
    c390:	e5851024 	str	r1, [r5, #36]	; 0x24                          
                                                                      
      if (pipe->Writers ++ == 0)                                      
    c394:	e5852014 	str	r2, [r5, #20]                                 
    c398:	0a0000b3 	beq	c66c <fifo_open+0x3d4>                        
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
    c39c:	e5953010 	ldr	r3, [r5, #16]                                 
    c3a0:	e3530000 	cmp	r3, #0                                        
    c3a4:	1affffe2 	bne	c334 <fifo_open+0x9c>                         
    c3a8:	e5963014 	ldr	r3, [r6, #20]                                 
    c3ac:	e3130001 	tst	r3, #1                                        
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
    c3b0:	05957020 	ldreq	r7, [r5, #32]                               
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
    c3b4:	0a000007 	beq	c3d8 <fifo_open+0x140>                        
    c3b8:	ea0000c3 	b	c6cc <fifo_open+0x434>                          
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    c3bc:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c3c0:	ebffed56 	bl	7920 <rtems_semaphore_obtain>                  
    c3c4:	e3500000 	cmp	r0, #0                                        
    c3c8:	1a00000a 	bne	c3f8 <fifo_open+0x160>                        
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
    c3cc:	e5953020 	ldr	r3, [r5, #32]                                 
    c3d0:	e1530007 	cmp	r3, r7                                        
    c3d4:	1affffd6 	bne	c334 <fifo_open+0x9c>                         
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
    c3d8:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c3dc:	ebffed98 	bl	7a44 <rtems_semaphore_release>                 
          if (! PIPE_WRITEWAIT(pipe))                                 
    c3e0:	e3a01000 	mov	r1, #0                                        
    c3e4:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
    c3e8:	eb000728 	bl	e090 <rtems_barrier_wait>                      
    c3ec:	e2501000 	subs	r1, r0, #0                                   
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    c3f0:	e1a02001 	mov	r2, r1                                        
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
    c3f4:	0afffff0 	beq	c3bc <fifo_open+0x124>                        
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
    c3f8:	e3e07003 	mvn	r7, #3                                        <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
    c3fc:	e1a00004 	mov	r0, r4                                        
    c400:	e1a01006 	mov	r1, r6                                        
    c404:	ebffff6d 	bl	c1c0 <pipe_release>                            
  return err;                                                         
    c408:	eaffffcc 	b	c340 <fifo_open+0xa8>                           
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
    c40c:	e5953010 	ldr	r3, [r5, #16]                                 
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
    c410:	e5951020 	ldr	r1, [r5, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    c414:	e2832001 	add	r2, r3, #1                                    
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
    c418:	e2811001 	add	r1, r1, #1                                    
      if (pipe->Readers ++ == 0)                                      
    c41c:	e3530000 	cmp	r3, #0                                        
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
    c420:	e5851020 	str	r1, [r5, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    c424:	e5852010 	str	r2, [r5, #16]                                 
    c428:	0a000097 	beq	c68c <fifo_open+0x3f4>                        
        PIPE_WAKEUPWRITERS(pipe);                                     
                                                                      
      if (pipe->Writers == 0) {                                       
    c42c:	e5953014 	ldr	r3, [r5, #20]                                 
    c430:	e3530000 	cmp	r3, #0                                        
    c434:	1affffbe 	bne	c334 <fifo_open+0x9c>                         
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
    c438:	e5963014 	ldr	r3, [r6, #20]                                 
    c43c:	e3130001 	tst	r3, #1                                        
    c440:	1affffbb 	bne	c334 <fifo_open+0x9c>                         
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
    c444:	e5957024 	ldr	r7, [r5, #36]	; 0x24                          
    c448:	ea000006 	b	c468 <fifo_open+0x1d0>                          
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    c44c:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c450:	ebffed32 	bl	7920 <rtems_semaphore_obtain>                  
    c454:	e3500000 	cmp	r0, #0                                        
    c458:	1affffe6 	bne	c3f8 <fifo_open+0x160>                        
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
    c45c:	e5953024 	ldr	r3, [r5, #36]	; 0x24                          
    c460:	e1530007 	cmp	r3, r7                                        
    c464:	1affffb2 	bne	c334 <fifo_open+0x9c>                         
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
    c468:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c46c:	ebffed74 	bl	7a44 <rtems_semaphore_release>                 
          if (! PIPE_READWAIT(pipe))                                  
    c470:	e3a01000 	mov	r1, #0                                        
    c474:	e595002c 	ldr	r0, [r5, #44]	; 0x2c                          
    c478:	eb000704 	bl	e090 <rtems_barrier_wait>                      
    c47c:	e2501000 	subs	r1, r0, #0                                   
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
    c480:	e1a02001 	mov	r2, r1                                        
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
    c484:	0afffff0 	beq	c44c <fifo_open+0x1b4>                        
    c488:	eaffffda 	b	c3f8 <fifo_open+0x160>                          <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
    c48c:	e5953010 	ldr	r3, [r5, #16]                                 
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
    c490:	e5951020 	ldr	r1, [r5, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    c494:	e2832001 	add	r2, r3, #1                                    
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
    c498:	e2811001 	add	r1, r1, #1                                    
      if (pipe->Readers ++ == 0)                                      
    c49c:	e3530000 	cmp	r3, #0                                        
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
    c4a0:	e5851020 	str	r1, [r5, #32]                                 
      if (pipe->Readers ++ == 0)                                      
    c4a4:	e5852010 	str	r2, [r5, #16]                                 
    c4a8:	0a000073 	beq	c67c <fifo_open+0x3e4>                        
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
    c4ac:	e5953014 	ldr	r3, [r5, #20]                                 
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
    c4b0:	e5951024 	ldr	r1, [r5, #36]	; 0x24                          
      if (pipe->Writers ++ == 0)                                      
    c4b4:	e2832001 	add	r2, r3, #1                                    
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
    c4b8:	e2811001 	add	r1, r1, #1                                    
      if (pipe->Writers ++ == 0)                                      
    c4bc:	e3530000 	cmp	r3, #0                                        
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
    c4c0:	e5851024 	str	r1, [r5, #36]	; 0x24                          
      if (pipe->Writers ++ == 0)                                      
    c4c4:	e5852014 	str	r2, [r5, #20]                                 
    c4c8:	1affff99 	bne	c334 <fifo_open+0x9c>                         
        PIPE_WAKEUPREADERS(pipe);                                     
    c4cc:	e595002c 	ldr	r0, [r5, #44]	; 0x2c                          
    c4d0:	e28d1008 	add	r1, sp, #8                                    
    c4d4:	eb0006d5 	bl	e030 <rtems_barrier_release>                   
    c4d8:	eaffff95 	b	c334 <fifo_open+0x9c>                           
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
    c4dc:	e3a00034 	mov	r0, #52	; 0x34                                
    c4e0:	ebffdff7 	bl	44c4 <malloc>                                  
  if (pipe == NULL)                                                   
    c4e4:	e3500000 	cmp	r0, #0                                        
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
    c4e8:	e1a05000 	mov	r5, r0                                        
    c4ec:	e1a08000 	mov	r8, r0                                        
  if (pipe == NULL)                                                   
    c4f0:	0a000081 	beq	c6fc <fifo_open+0x464>                        
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
    c4f4:	e1a02000 	mov	r2, r0                                        
    c4f8:	e482a004 	str	sl, [r2], #4                                  
    c4fc:	e2822004 	add	r2, r2, #4                                    
    c500:	e482a004 	str	sl, [r2], #4                                  
    c504:	e482a004 	str	sl, [r2], #4                                  
    c508:	e482a004 	str	sl, [r2], #4                                  
    c50c:	e482a004 	str	sl, [r2], #4                                  
    c510:	e482a004 	str	sl, [r2], #4                                  
    c514:	e482a004 	str	sl, [r2], #4                                  
    c518:	e482a004 	str	sl, [r2], #4                                  
    c51c:	e482a004 	str	sl, [r2], #4                                  
    c520:	e482a004 	str	sl, [r2], #4                                  
    c524:	e482a004 	str	sl, [r2], #4                                  
                                                                      
  pipe->Size = PIPE_BUF;                                              
    c528:	e3a03c02 	mov	r3, #512	; 0x200                              
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
  if (pipe == NULL)                                                   
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
    c52c:	e582a000 	str	sl, [r2]                                      
                                                                      
  pipe->Size = PIPE_BUF;                                              
  pipe->Buffer = malloc(pipe->Size);                                  
    c530:	e1a00003 	mov	r0, r3                                        
  pipe = malloc(sizeof(pipe_control_t));                              
  if (pipe == NULL)                                                   
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
                                                                      
  pipe->Size = PIPE_BUF;                                              
    c534:	e5853004 	str	r3, [r5, #4]                                  
  pipe->Buffer = malloc(pipe->Size);                                  
    c538:	ebffdfe1 	bl	44c4 <malloc>                                  
  if (! pipe->Buffer)                                                 
    c53c:	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);                                  
    c540:	e5850000 	str	r0, [r5]                                      
  if (! pipe->Buffer)                                                 
    c544:	0a00006a 	beq	c6f4 <fifo_open+0x45c>                        
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
    c548:	e59f71c8 	ldr	r7, [pc, #456]	; c718 <fifo_open+0x480>       
    c54c:	e5d70000 	ldrb	r0, [r7]                                     
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
    c550:	e3800205 	orr	r0, r0, #1342177280	; 0x50000000              
    c554:	e3800849 	orr	r0, r0, #4784128	; 0x490000                   
    c558:	e1a0100a 	mov	r1, sl                                        
    c55c:	e3800c72 	orr	r0, r0, #29184	; 0x7200                       
    c560:	e1a0200a 	mov	r2, sl                                        
    c564:	e285302c 	add	r3, r5, #44	; 0x2c                            
    c568:	eb000652 	bl	deb8 <rtems_barrier_create>                    
    c56c:	e2501000 	subs	r1, r0, #0                                   
    c570:	1a00005d 	bne	c6ec <fifo_open+0x454>                        
        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),                          
    c574:	e5d73000 	ldrb	r3, [r7]                                     
  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(                                           
    c578:	e3833205 	orr	r3, r3, #1342177280	; 0x50000000              
    c57c:	e3833849 	orr	r3, r3, #4784128	; 0x490000                   
    c580:	e3830c77 	orr	r0, r3, #30464	; 0x7700                       
    c584:	e1a02001 	mov	r2, r1                                        
    c588:	e2853030 	add	r3, r5, #48	; 0x30                            
    c58c:	eb000649 	bl	deb8 <rtems_barrier_create>                    
    c590:	e2503000 	subs	r3, r0, #0                                   
    c594:	1a000052 	bne	c6e4 <fifo_open+0x44c>                        
        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,                       
    c598:	e5d70000 	ldrb	r0, [r7]                                     
  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(                                         
    c59c:	e3800205 	orr	r0, r0, #1342177280	; 0x50000000              
    c5a0:	e3800849 	orr	r0, r0, #4784128	; 0x490000                   
    c5a4:	e285c028 	add	ip, r5, #40	; 0x28                            
    c5a8:	e3800c73 	orr	r0, r0, #29440	; 0x7300                       
    c5ac:	e3a01001 	mov	r1, #1                                        
    c5b0:	e3a02010 	mov	r2, #16                                       
    c5b4:	e58dc000 	str	ip, [sp]                                      
    c5b8:	ebffec3e 	bl	76b8 <rtems_semaphore_create>                  
    c5bc:	e3500000 	cmp	r0, #0                                        
    c5c0:	1a000045 	bne	c6dc <fifo_open+0x444>                        
/* 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
    c5c4:	e28d8004 	add	r8, sp, #4                                    
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
    _Objects_Get( &_Barrier_Information, id, location );              
    c5c8:	e595102c 	ldr	r1, [r5, #44]	; 0x2c                          
    c5cc:	e1a02008 	mov	r2, r8                                        
    c5d0:	e59f0144 	ldr	r0, [pc, #324]	; c71c <fifo_open+0x484>       
    c5d4:	ebfff2d1 	bl	9120 <_Objects_Get>                            
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
    c5d8:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    c5dc:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
    c5e0:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
    c5e4:	ebfff5b9 	bl	9cd0 <_Thread_Enable_dispatch>                 
    c5e8:	e1a02008 	mov	r2, r8                                        
    c5ec:	e5951030 	ldr	r1, [r5, #48]	; 0x30                          
    c5f0:	e59f0124 	ldr	r0, [pc, #292]	; c71c <fifo_open+0x484>       
    c5f4:	ebfff2c9 	bl	9120 <_Objects_Get>                            
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
    c5f8:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    c5fc:	e3833201 	orr	r3, r3, #268435456	; 0x10000000               
    c600:	e580304c 	str	r3, [r0, #76]	; 0x4c                          
  _Thread_Enable_dispatch();                                          
    c604:	ebfff5b1 	bl	9cd0 <_Thread_Enable_dispatch>                 
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
    c608:	e5d73000 	ldrb	r3, [r7]                                     
    c60c:	e353007a 	cmp	r3, #122	; 0x7a                               
    c610:	e2832001 	add	r2, r3, #1                                    
    c = 'a';                                                          
    c614:	03a03061 	moveq	r3, #97	; 0x61                              
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
    c618:	e5c72000 	strb	r2, [r7]                                     
    c = 'a';                                                          
    c61c:	05c73000 	strbeq	r3, [r7]                                   
    c620:	eaffff2d 	b	c2dc <fifo_open+0x44>                           
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    if (err)                                                          
    c624:	e3570000 	cmp	r7, #0                                        
    c628:	1a00001b 	bne	c69c <fifo_open+0x404>                        
      pipe_free(pipe);                                                
    else                                                              
      *pipep = pipe;                                                  
    c62c:	e5845000 	str	r5, [r4]                                      
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
    c630:	ebfffede 	bl	c1b0 <pipe_unlock>                             
    c634:	eaffff35 	b	c310 <fifo_open+0x78>                           
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
      sc = rtems_semaphore_create(                                    
    c638:	e1a03008 	mov	r3, r8                                        
    c63c:	e3a01001 	mov	r1, #1                                        
    c640:	e3a02054 	mov	r2, #84	; 0x54                                
    c644:	e59f00d4 	ldr	r0, [pc, #212]	; c720 <fifo_open+0x488>       
    c648:	e58d5000 	str	r5, [sp]                                      
    c64c:	ebffec19 	bl	76b8 <rtems_semaphore_create>                  
    c650:	e1a08000 	mov	r8, r0                                        
    c654:	e5970000 	ldr	r0, [r7]                                      
    c658:	ebffecf9 	bl	7a44 <rtems_semaphore_release>                 
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    c65c:	e3580000 	cmp	r8, #0                                        
    c660:	0a000028 	beq	c708 <fifo_open+0x470>                        
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
    c664:	e3e0700b 	mvn	r7, #11                                       
    c668:	eaffff34 	b	c340 <fifo_open+0xa8>                           
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
    c66c:	e595002c 	ldr	r0, [r5, #44]	; 0x2c                          
    c670:	e28d1008 	add	r1, sp, #8                                    
    c674:	eb00066d 	bl	e030 <rtems_barrier_release>                   
    c678:	eaffff47 	b	c39c <fifo_open+0x104>                          
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
    c67c:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
    c680:	e28d1008 	add	r1, sp, #8                                    
    c684:	eb000669 	bl	e030 <rtems_barrier_release>                   
    c688:	eaffff87 	b	c4ac <fifo_open+0x214>                          
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
    c68c:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
    c690:	e28d1008 	add	r1, sp, #8                                    
    c694:	eb000665 	bl	e030 <rtems_barrier_release>                   
    c698:	eaffff63 	b	c42c <fifo_open+0x194>                          
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
    c69c:	e595002c 	ldr	r0, [r5, #44]	; 0x2c                          <== NOT EXECUTED
    c6a0:	eb000636 	bl	df80 <rtems_barrier_delete>                    <== NOT EXECUTED
  rtems_barrier_delete(pipe->writeBarrier);                           
    c6a4:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          <== NOT EXECUTED
    c6a8:	eb000634 	bl	df80 <rtems_barrier_delete>                    <== NOT EXECUTED
  rtems_semaphore_delete(pipe->Semaphore);                            
    c6ac:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          <== NOT EXECUTED
    c6b0:	ebffec71 	bl	787c <rtems_semaphore_delete>                  <== NOT EXECUTED
  free(pipe->Buffer);                                                 
    c6b4:	e5950000 	ldr	r0, [r5]                                      <== NOT EXECUTED
    c6b8:	ebffdd67 	bl	3c5c <free>                                    <== NOT EXECUTED
  free(pipe);                                                         
    c6bc:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    c6c0:	ebffdd65 	bl	3c5c <free>                                    <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
    c6c4:	ebfffeb9 	bl	c1b0 <pipe_unlock>                             <== NOT EXECUTED
    c6c8:	eaffff1c 	b	c340 <fifo_open+0xa8>                           <== NOT EXECUTED
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
    c6cc:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c6d0:	ebffecdb 	bl	7a44 <rtems_semaphore_release>                 
        err = -ENXIO;                                                 
    c6d4:	e3e07005 	mvn	r7, #5                                        
        goto out_error;                                               
    c6d8:	eaffff47 	b	c3fc <fifo_open+0x164>                          
  if (c ++ == 'z')                                                    
    c = 'a';                                                          
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
    c6dc:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
    c6e0:	eb000626 	bl	df80 <rtems_barrier_delete>                    
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
    c6e4:	e598002c 	ldr	r0, [r8, #44]	; 0x2c                          
    c6e8:	eb000624 	bl	df80 <rtems_barrier_delete>                    
err_rbar:                                                             
  free(pipe->Buffer);                                                 
    c6ec:	e5980000 	ldr	r0, [r8]                                      
    c6f0:	ebffdd59 	bl	3c5c <free>                                    
err_buf:                                                              
  free(pipe);                                                         
    c6f4:	e1a00008 	mov	r0, r8                                        
    c6f8:	ebffdd57 	bl	3c5c <free>                                    
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
    c6fc:	e3e0700b 	mvn	r7, #11                                       
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
    c700:	ebfffeaa 	bl	c1b0 <pipe_unlock>                             
    c704:	eaffff0d 	b	c340 <fifo_open+0xa8>                           
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    c708:	e5958000 	ldr	r8, [r5]                                      
    c70c:	eafffee9 	b	c2b8 <fifo_open+0x20>                           
                                                                      

00002b28 <fpathconf>: { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd);
    2b28:	e59f310c 	ldr	r3, [pc, #268]	; 2c3c <fpathconf+0x114>       
    2b2c:	e5933000 	ldr	r3, [r3]                                      
    2b30:	e1500003 	cmp	r0, r3                                        
                                                                      
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
    2b34:	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);                                           
    2b38:	2a000035 	bcs	2c14 <fpathconf+0xec>                         
  iop = rtems_libio_iop(fd);                                          
    2b3c:	e59f30fc 	ldr	r3, [pc, #252]	; 2c40 <fpathconf+0x118>       
    2b40:	e5933000 	ldr	r3, [r3]                                      
    2b44:	e0600180 	rsb	r0, r0, r0, lsl #3                            
    2b48:	e0830180 	add	r0, r3, r0, lsl #3                            
  rtems_libio_check_is_open(iop);                                     
    2b4c:	e5903014 	ldr	r3, [r0, #20]                                 
    2b50:	e3130c01 	tst	r3, #256	; 0x100                              
    2b54:	0a00002e 	beq	2c14 <fpathconf+0xec>                         
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
    2b58:	e3130002 	tst	r3, #2                                        
    2b5c:	0a000031 	beq	2c28 <fpathconf+0x100>                        
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
    2b60:	e5903028 	ldr	r3, [r0, #40]	; 0x28                          
                                                                      
  switch ( name ) {                                                   
    2b64:	e351000b 	cmp	r1, #11                                       
    2b68:	979ff101 	ldrls	pc, [pc, r1, lsl #2]                        
    2b6c:	ea00000d 	b	2ba8 <fpathconf+0x80>                           
    2b70:	00002bbc 	.word	0x00002bbc                                  
    2b74:	00002bc4 	.word	0x00002bc4                                  
    2b78:	00002bcc 	.word	0x00002bcc                                  
    2b7c:	00002bd4 	.word	0x00002bd4                                  
    2b80:	00002bdc 	.word	0x00002bdc                                  
    2b84:	00002be4 	.word	0x00002be4                                  
    2b88:	00002bec 	.word	0x00002bec                                  
    2b8c:	00002bf4 	.word	0x00002bf4                                  
    2b90:	00002bfc 	.word	0x00002bfc                                  
    2b94:	00002c04 	.word	0x00002c04                                  
    2b98:	00002c0c 	.word	0x00002c0c                                  
    2b9c:	00002ba0 	.word	0x00002ba0                                  
      break;                                                          
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
      break;                                                          
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
    2ba0:	e5930060 	ldr	r0, [r3, #96]	; 0x60                          
      break;                                                          
    2ba4:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    2ba8:	eb00301d 	bl	ec24 <__errno>                                 
    2bac:	e3a03016 	mov	r3, #22                                       
    2bb0:	e5803000 	str	r3, [r0]                                      
    2bb4:	e3e00000 	mvn	r0, #0                                        
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
    2bb8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
    2bbc:	e5930038 	ldr	r0, [r3, #56]	; 0x38                          
      break;                                                          
    2bc0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
    2bc4:	e593003c 	ldr	r0, [r3, #60]	; 0x3c                          
      break;                                                          
    2bc8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
    2bcc:	e5930040 	ldr	r0, [r3, #64]	; 0x40                          
      break;                                                          
    2bd0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
    2bd4:	e5930044 	ldr	r0, [r3, #68]	; 0x44                          
      break;                                                          
    2bd8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
    2bdc:	e5930048 	ldr	r0, [r3, #72]	; 0x48                          
      break;                                                          
    2be0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
    2be4:	e593004c 	ldr	r0, [r3, #76]	; 0x4c                          
      break;                                                          
    2be8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
    2bec:	e5930054 	ldr	r0, [r3, #84]	; 0x54                          
      break;                                                          
    2bf0:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
    2bf4:	e5930058 	ldr	r0, [r3, #88]	; 0x58                          
      break;                                                          
    2bf8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
    2bfc:	e5930064 	ldr	r0, [r3, #100]	; 0x64                         
      break;                                                          
    2c00:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
    2c04:	e5930050 	ldr	r0, [r3, #80]	; 0x50                          
      break;                                                          
    2c08:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
    2c0c:	e593005c 	ldr	r0, [r3, #92]	; 0x5c                          
      break;                                                          
    2c10:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
  iop = rtems_libio_iop(fd);                                          
  rtems_libio_check_is_open(iop);                                     
    2c14:	eb003002 	bl	ec24 <__errno>                                 
    2c18:	e3a03009 	mov	r3, #9                                        
    2c1c:	e5803000 	str	r3, [r0]                                      
    2c20:	e3e00000 	mvn	r0, #0                                        
    2c24:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
    2c28:	eb002ffd 	bl	ec24 <__errno>                                 
    2c2c:	e3a03016 	mov	r3, #22                                       
    2c30:	e5803000 	str	r3, [r0]                                      
    2c34:	e3e00000 	mvn	r0, #0                                        
    2c38:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      

00003eac <iproc>: * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP)
    3eac:	e5913030 	ldr	r3, [r1, #48]	; 0x30                          
    3eb0:	e3130020 	tst	r3, #32                                       
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3eb4:	e92d4030 	push	{r4, r5, lr}                                 
    3eb8:	e20040ff 	and	r4, r0, #255	; 0xff                           
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
    3ebc:	1200407f 	andne	r4, r0, #127	; 0x7f                         
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    3ec0:	e3130c02 	tst	r3, #512	; 0x200                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3ec4:	e1a05001 	mov	r5, r1                                        
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    3ec8:	0a000007 	beq	3eec <iproc+0x40>                             
    c = tolower (c);                                                  
    3ecc:	e59f21a0 	ldr	r2, [pc, #416]	; 4074 <iproc+0x1c8>           
    3ed0:	e5922000 	ldr	r2, [r2]                                      
    3ed4:	e0822004 	add	r2, r2, r4                                    
    3ed8:	e5d22001 	ldrb	r2, [r2, #1]                                 
    3edc:	e2022003 	and	r2, r2, #3                                    
    3ee0:	e3520001 	cmp	r2, #1                                        
    3ee4:	02844020 	addeq	r4, r4, #32                                 
    3ee8:	e20440ff 	and	r4, r4, #255	; 0xff                           
                                                                      
  if (c == '\r') {                                                    
    3eec:	e354000d 	cmp	r4, #13                                       
    3ef0:	0a000014 	beq	3f48 <iproc+0x9c>                             
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    3ef4:	e354000a 	cmp	r4, #10                                       
    3ef8:	0a000036 	beq	3fd8 <iproc+0x12c>                            
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    3efc:	e3540000 	cmp	r4, #0                                        
    3f00:	1a000016 	bne	3f60 <iproc+0xb4>                             
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    3f04:	e59f316c 	ldr	r3, [pc, #364]	; 4078 <iproc+0x1cc>           
    3f08:	e5932008 	ldr	r2, [r3, #8]                                  
    3f0c:	e5953020 	ldr	r3, [r5, #32]                                 
    3f10:	e2422001 	sub	r2, r2, #1                                    
    3f14:	e1530002 	cmp	r3, r2                                        
    3f18:	aa000008 	bge	3f40 <iproc+0x94>                             
    if (tty->termios.c_lflag & ECHO)                                  
    3f1c:	e595203c 	ldr	r2, [r5, #60]	; 0x3c                          
    3f20:	e3120008 	tst	r2, #8                                        
    3f24:	1a00002e 	bne	3fe4 <iproc+0x138>                            
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
    3f28:	e595101c 	ldr	r1, [r5, #28]                                 <== NOT EXECUTED
    3f2c:	e2832001 	add	r2, r3, #1                                    <== NOT EXECUTED
    3f30:	e7c14003 	strb	r4, [r1, r3]                                 <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
    3f34:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
    3f38:	e5852020 	str	r2, [r5, #32]                                 <== NOT EXECUTED
    3f3c:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
    3f40:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
    3f44:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
    3f48:	e3130080 	tst	r3, #128	; 0x80                               
      return 0;                                                       
    3f4c:	13a00000 	movne	r0, #0                                      
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
    3f50:	18bd8030 	popne	{r4, r5, pc}                                
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
    3f54:	e3130c01 	tst	r3, #256	; 0x100                              
    3f58:	03a0400d 	moveq	r4, #13                                     
    3f5c:	13a0400a 	movne	r4, #10                                     
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    3f60:	e595303c 	ldr	r3, [r5, #60]	; 0x3c                          
    3f64:	e3130002 	tst	r3, #2                                        
    3f68:	0affffe5 	beq	3f04 <iproc+0x58>                             
    if (c == tty->termios.c_cc[VERASE]) {                             
    3f6c:	e5d52043 	ldrb	r2, [r5, #67]	; 0x43                         
    3f70:	e1520004 	cmp	r2, r4                                        
    3f74:	0a000039 	beq	4060 <iproc+0x1b4>                            
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
    3f78:	e5d52044 	ldrb	r2, [r5, #68]	; 0x44                         
    3f7c:	e1520004 	cmp	r2, r4                                        
    3f80:	0a000025 	beq	401c <iproc+0x170>                            
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
    3f84:	e5d52045 	ldrb	r2, [r5, #69]	; 0x45                         
    3f88:	e1520004 	cmp	r2, r4                                        
      return 1;                                                       
    3f8c:	03a00001 	moveq	r0, #1                                      
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
    3f90:	08bd8030 	popeq	{r4, r5, pc}                                
      return 1;                                                       
    } else if (c == '\n') {                                           
    3f94:	e354000a 	cmp	r4, #10                                       
    3f98:	0a000024 	beq	4030 <iproc+0x184>                            
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
    3f9c:	e5d5204c 	ldrb	r2, [r5, #76]	; 0x4c                         
    3fa0:	e1520004 	cmp	r2, r4                                        
    3fa4:	0a000002 	beq	3fb4 <iproc+0x108>                            
    3fa8:	e5d52051 	ldrb	r2, [r5, #81]	; 0x51                         
    3fac:	e1520004 	cmp	r2, r4                                        
    3fb0:	1affffd3 	bne	3f04 <iproc+0x58>                             
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
    3fb4:	e3130008 	tst	r3, #8                                        <== NOT EXECUTED
    3fb8:	1a000013 	bne	400c <iproc+0x160>                            <== NOT EXECUTED
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
    3fbc:	e285101c 	add	r1, r5, #28                                   <== NOT EXECUTED
    3fc0:	e891000a 	ldm	r1, {r1, r3}                                  <== NOT EXECUTED
    3fc4:	e2832001 	add	r2, r3, #1                                    <== NOT EXECUTED
    3fc8:	e7c14003 	strb	r4, [r1, r3]                                 <== NOT EXECUTED
      return 1;                                                       
    3fcc:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
    3fd0:	e5852020 	str	r2, [r5, #32]                                 <== NOT EXECUTED
      return 1;                                                       
    3fd4:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    c = '\r';                                                         
    3fd8:	e3130040 	tst	r3, #64	; 0x40                                
    3fdc:	13a0400d 	movne	r4, #13                                     
    3fe0:	eaffffde 	b	3f60 <iproc+0xb4>                               
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    3fe4:	e1a00004 	mov	r0, r4                                        
    3fe8:	e1a01005 	mov	r1, r5                                        
    3fec:	ebffff03 	bl	3c00 <echo>                                    
    3ff0:	e285101c 	add	r1, r5, #28                                   
    3ff4:	e891000a 	ldm	r1, {r1, r3}                                  
    tty->cbuf[tty->ccount++] = c;                                     
    3ff8:	e2832001 	add	r2, r3, #1                                    
    3ffc:	e7c14003 	strb	r4, [r1, r3]                                 
  }                                                                   
  return 0;                                                           
    4000:	e3a00000 	mov	r0, #0                                        
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
    4004:	e5852020 	str	r2, [r5, #32]                                 
    4008:	e8bd8030 	pop	{r4, r5, pc}                                  
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
        echo (c, tty);                                                
    400c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    4010:	e1a01005 	mov	r1, r5                                        <== NOT EXECUTED
    4014:	ebfffef9 	bl	3c00 <echo>                                    <== NOT EXECUTED
    4018:	eaffffe7 	b	3fbc <iproc+0x110>                              <== NOT EXECUTED
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
    401c:	e1a00005 	mov	r0, r5                                        
    4020:	e3a01001 	mov	r1, #1                                        
    4024:	ebffff1a 	bl	3c94 <erase>                                   
      return 0;                                                       
    4028:	e3a00000 	mov	r0, #0                                        
    402c:	e8bd8030 	pop	{r4, r5, pc}                                  
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    } else if (c == '\n') {                                           
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
    4030:	e3130048 	tst	r3, #72	; 0x48                                
        echo (c, tty);                                                
    4034:	11a00004 	movne	r0, r4                                      
    4038:	11a01005 	movne	r1, r5                                      
    403c:	1bfffeef 	blne	3c00 <echo>                                  
      tty->cbuf[tty->ccount++] = c;                                   
    4040:	e285101c 	add	r1, r5, #28                                   
    4044:	e891000a 	ldm	r1, {r1, r3}                                  
    4048:	e3a0000a 	mov	r0, #10                                       
    404c:	e2832001 	add	r2, r3, #1                                    
    4050:	e7c10003 	strb	r0, [r1, r3]                                 
      return 1;                                                       
    4054:	e3a00001 	mov	r0, #1                                        
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    } else if (c == '\n') {                                           
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
    4058:	e5852020 	str	r2, [r5, #32]                                 
      return 1;                                                       
    405c:	e8bd8030 	pop	{r4, r5, pc}                                  
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
    4060:	e1a00005 	mov	r0, r5                                        
    4064:	e3a01000 	mov	r1, #0                                        
    4068:	ebffff09 	bl	3c94 <erase>                                   
      return 0;                                                       
    406c:	e3a00000 	mov	r0, #0                                        
    4070:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00021d08 <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
   21d08:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
   21d0c:	e24dd00c 	sub	sp, sp, #12                                   
   21d10:	e1a04000 	mov	r4, r0                                        
   21d14:	e1a05001 	mov	r5, r1                                        
   21d18:	e1a08002 	mov	r8, r2                                        
  POSIX_signals_Siginfo_node  *psiginfo;                              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
   21d1c:	ebffff40 	bl	21a24 <getpid>                                 
   21d20:	e1500004 	cmp	r0, r4                                        
   21d24:	1a000095 	bne	21f80 <killinfo+0x278>                        
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
   21d28:	e3550000 	cmp	r5, #0                                        
   21d2c:	0a000098 	beq	21f94 <killinfo+0x28c>                        
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
   21d30:	e2454001 	sub	r4, r5, #1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
   21d34:	e354001f 	cmp	r4, #31                                       
   21d38:	8a000095 	bhi	21f94 <killinfo+0x28c>                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
   21d3c:	e59f627c 	ldr	r6, [pc, #636]	; 21fc0 <killinfo+0x2b8>       
   21d40:	e1a07085 	lsl	r7, r5, #1                                    
   21d44:	e0873005 	add	r3, r7, r5                                    
   21d48:	e0863103 	add	r3, r6, r3, lsl #2                            
   21d4c:	e5933008 	ldr	r3, [r3, #8]                                  
   21d50:	e3530001 	cmp	r3, #1                                        
    return 0;                                                         
   21d54:	03a00000 	moveq	r0, #0                                      
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
   21d58:	0a000038 	beq	21e40 <killinfo+0x138>                        
  /*                                                                  
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
   21d5c:	e3550008 	cmp	r5, #8                                        
   21d60:	13550004 	cmpne	r5, #4                                      
   21d64:	0a000037 	beq	21e48 <killinfo+0x140>                        
   21d68:	e355000b 	cmp	r5, #11                                       
   21d6c:	0a000035 	beq	21e48 <killinfo+0x140>                        
                                                                      
static inline sigset_t signo_to_mask(                                 
  uint32_t sig                                                        
)                                                                     
{                                                                     
  return 1u << (sig - 1);                                             
   21d70:	e3a03001 	mov	r3, #1                                        
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
   21d74:	e58d3004 	str	r3, [sp, #4]                                  
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
   21d78:	e58d5000 	str	r5, [sp]                                      
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
   21d7c:	e3580000 	cmp	r8, #0                                        
   21d80:	e1a04413 	lsl	r4, r3, r4                                    
    siginfo->si_value.sival_int = 0;                                  
  } else {                                                            
    siginfo->si_value = *value;                                       
   21d84:	15983000 	ldrne	r3, [r8]                                    
   21d88:	158d3008 	strne	r3, [sp, #8]                                
   21d8c:	e59f3230 	ldr	r3, [pc, #560]	; 21fc4 <killinfo+0x2bc>       
   21d90:	e5932000 	ldr	r2, [r3]                                      
   21d94:	e2822001 	add	r2, r2, #1                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
    siginfo->si_value.sival_int = 0;                                  
   21d98:	058d8008 	streq	r8, [sp, #8]                                
   21d9c:	e5832000 	str	r2, [r3]                                      
                                                                      
  /*                                                                  
   *  Is the currently executing thread interested?  If so then it will
   *  get it an execute it as soon as the dispatcher executes.        
   */                                                                 
  the_thread = _Thread_Executing;                                     
   21da0:	e59f3220 	ldr	r3, [pc, #544]	; 21fc8 <killinfo+0x2c0>       
   21da4:	e5930004 	ldr	r0, [r3, #4]                                  
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
  if ( _POSIX_signals_Is_interested( api, mask ) ) {                  
   21da8:	e59030fc 	ldr	r3, [r0, #252]	; 0xfc                         
   21dac:	e59330d0 	ldr	r3, [r3, #208]	; 0xd0                         
   21db0:	e1d43003 	bics	r3, r4, r3                                   
   21db4:	1a000014 	bne	21e0c <killinfo+0x104>                        
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
   21db8:	e59f120c 	ldr	r1, [pc, #524]	; 21fcc <killinfo+0x2c4>       
   21dbc:	e4913004 	ldr	r3, [r1], #4                                  
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
   21dc0:	e1530001 	cmp	r3, r1                                        
   21dc4:	0a000030 	beq	21e8c <killinfo+0x184>                        
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
   21dc8:	e5932030 	ldr	r2, [r3, #48]	; 0x30                          
   21dcc:	e1140002 	tst	r4, r2                                        
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
   21dd0:	e1a00003 	mov	r0, r3                                        
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
   21dd4:	e59320fc 	ldr	r2, [r3, #252]	; 0xfc                         
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
   21dd8:	0a000008 	beq	21e00 <killinfo+0xf8>                         
   21ddc:	ea00000a 	b	21e0c <killinfo+0x104>                          
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
   21de0:	e5933000 	ldr	r3, [r3]                                      
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
   21de4:	e1530001 	cmp	r3, r1                                        
   21de8:	0a000027 	beq	21e8c <killinfo+0x184>                        
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
   21dec:	e5932030 	ldr	r2, [r3, #48]	; 0x30                          <== NOT EXECUTED
   21df0:	e1140002 	tst	r4, r2                                        <== NOT EXECUTED
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
   21df4:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
   21df8:	e59320fc 	ldr	r2, [r3, #252]	; 0xfc                         <== NOT EXECUTED
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
   21dfc:	1a000002 	bne	21e0c <killinfo+0x104>                        <== NOT EXECUTED
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
   21e00:	e59220d0 	ldr	r2, [r2, #208]	; 0xd0                         
   21e04:	e1d42002 	bics	r2, r4, r2                                   
   21e08:	0afffff4 	beq	21de0 <killinfo+0xd8>                         
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
   21e0c:	e1a01005 	mov	r1, r5                                        
   21e10:	e1a0200d 	mov	r2, sp                                        
   21e14:	eb00007c 	bl	2200c <_POSIX_signals_Unblock_thread>          
   21e18:	e3500000 	cmp	r0, #0                                        
   21e1c:	1a000005 	bne	21e38 <killinfo+0x130>                        
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
   21e20:	e1a00004 	mov	r0, r4                                        
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
   21e24:	e0875005 	add	r5, r7, r5                                    
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
   21e28:	eb00006d 	bl	21fe4 <_POSIX_signals_Set_process_signals>     
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
   21e2c:	e7963105 	ldr	r3, [r6, r5, lsl #2]                          
   21e30:	e3530002 	cmp	r3, #2                                        
   21e34:	0a000007 	beq	21e58 <killinfo+0x150>                        
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
   21e38:	ebffac96 	bl	d098 <_Thread_Enable_dispatch>                 
  return 0;                                                           
   21e3c:	e3a00000 	mov	r0, #0                                        
}                                                                     
   21e40:	e28dd00c 	add	sp, sp, #12                                   
   21e44:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
      return pthread_kill( pthread_self(), sig );                     
   21e48:	eb0000f7 	bl	2222c <pthread_self>                           
   21e4c:	e1a01005 	mov	r1, r5                                        
   21e50:	eb0000bc 	bl	22148 <pthread_kill>                           
   21e54:	eafffff9 	b	21e40 <killinfo+0x138>                          
  _POSIX_signals_Set_process_signals( mask );                         
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
   21e58:	e59f0170 	ldr	r0, [pc, #368]	; 21fd0 <killinfo+0x2c8>       
   21e5c:	ebffa5e7 	bl	b600 <_Chain_Get>                              
    if ( !psiginfo ) {                                                
   21e60:	e250c000 	subs	ip, r0, #0                                   
   21e64:	0a00004f 	beq	21fa8 <killinfo+0x2a0>                        
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
   21e68:	e1a0300d 	mov	r3, sp                                        
   21e6c:	e8930007 	ldm	r3, {r0, r1, r2}                              
   21e70:	e28c3008 	add	r3, ip, #8                                    
   21e74:	e8830007 	stm	r3, {r0, r1, r2}                              
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
   21e78:	e59f0154 	ldr	r0, [pc, #340]	; 21fd4 <killinfo+0x2cc>       
   21e7c:	e1a0100c 	mov	r1, ip                                        
   21e80:	e0800105 	add	r0, r0, r5, lsl #2                            
   21e84:	ebffa5ca 	bl	b5b4 <_Chain_Append>                           
   21e88:	eaffffea 	b	21e38 <killinfo+0x130>                          
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
   21e8c:	e59f3144 	ldr	r3, [pc, #324]	; 21fd8 <killinfo+0x2d0>       
   21e90:	e5d3e000 	ldrb	lr, [r3]                                     
   21e94:	e59fa140 	ldr	sl, [pc, #320]	; 21fdc <killinfo+0x2d4>       
   21e98:	e28ee001 	add	lr, lr, #1                                    
   *                                                                  
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
   21e9c:	e3a08000 	mov	r8, #0                                        
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
                                                                      
    /*                                                                
     *  This can occur when no one is interested and an API is not configured.
     */                                                               
    if ( !_Objects_Information_table[ the_api ] )                     
   21ea0:	e5ba3004 	ldr	r3, [sl, #4]!                                 
   21ea4:	e3530000 	cmp	r3, #0                                        
   21ea8:	0a000022 	beq	21f38 <killinfo+0x230>                        
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
   21eac:	e5933004 	ldr	r3, [r3, #4]                                  
       */                                                             
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
   21eb0:	e1d3c1b0 	ldrh	ip, [r3, #16]                                
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
   21eb4:	e35c0000 	cmp	ip, #0                                        
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
   21eb8:	e593101c 	ldr	r1, [r3, #28]                                 
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
   21ebc:	0a00001d 	beq	21f38 <killinfo+0x230>                        
   21ec0:	e3a02001 	mov	r2, #1                                        
      the_thread = (Thread_Control *) object_table[ index ];          
   21ec4:	e5b13004 	ldr	r3, [r1, #4]!                                 
                                                                      
      if ( !the_thread )                                              
   21ec8:	e3530000 	cmp	r3, #0                                        
   21ecc:	0a000016 	beq	21f2c <killinfo+0x224>                        
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
   21ed0:	e5930014 	ldr	r0, [r3, #20]                                 
   21ed4:	e150000e 	cmp	r0, lr                                        
   21ed8:	8a000013 	bhi	21f2c <killinfo+0x224>                        
      #if defined(RTEMS_DEBUG)                                        
        if ( !api )                                                   
          continue;                                                   
      #endif                                                          
                                                                      
      if ( !_POSIX_signals_Is_interested( api, mask ) )               
   21edc:	e59390fc 	ldr	r9, [r3, #252]	; 0xfc                         
   21ee0:	e59990d0 	ldr	r9, [r9, #208]	; 0xd0                         
   21ee4:	e1d49009 	bics	r9, r4, r9                                   
   21ee8:	0a00000f 	beq	21f2c <killinfo+0x224>                        
       *                                                              
       *  NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
       *        so we never have to worry about deferencing a NULL    
       *        interested thread.                                    
       */                                                             
      if ( the_thread->current_priority < interested_priority ) {     
   21eec:	e150000e 	cmp	r0, lr                                        
   21ef0:	3a00001c 	bcc	21f68 <killinfo+0x260>                        
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
   21ef4:	e3580000 	cmp	r8, #0                                        
   21ef8:	0a00000b 	beq	21f2c <killinfo+0x224>                        
   21efc:	e5989010 	ldr	r9, [r8, #16]                                 
   21f00:	e3590000 	cmp	r9, #0                                        
   21f04:	0a000008 	beq	21f2c <killinfo+0x224>                        
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
   21f08:	e593b010 	ldr	fp, [r3, #16]                                 
   21f0c:	e35b0000 	cmp	fp, #0                                        
   21f10:	0a000014 	beq	21f68 <killinfo+0x260>                        
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
   21f14:	e3190201 	tst	r9, #268435456	; 0x10000000                   
   21f18:	1a000003 	bne	21f2c <killinfo+0x224>                        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL);              
   21f1c:	e20bb201 	and	fp, fp, #268435456	; 0x10000000               
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
   21f20:	e35b0000 	cmp	fp, #0                                        
   21f24:	11a0e000 	movne	lr, r0                                      
   21f28:	11a08003 	movne	r8, r3                                      
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
   21f2c:	e2822001 	add	r2, r2, #1                                    
   21f30:	e15c0002 	cmp	ip, r2                                        
   21f34:	2affffe2 	bcs	21ec4 <killinfo+0x1bc>                        
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
                                                                      
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
   21f38:	e59f30a0 	ldr	r3, [pc, #160]	; 21fe0 <killinfo+0x2d8>       
   21f3c:	e15a0003 	cmp	sl, r3                                        
   21f40:	1affffd6 	bne	21ea0 <killinfo+0x198>                        
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
   21f44:	e3580000 	cmp	r8, #0                                        
   21f48:	0affffb4 	beq	21e20 <killinfo+0x118>                        
   21f4c:	e1a00008 	mov	r0, r8                                        
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
   21f50:	e1a01005 	mov	r1, r5                                        
   21f54:	e1a0200d 	mov	r2, sp                                        
   21f58:	eb00002b 	bl	2200c <_POSIX_signals_Unblock_thread>          
   21f5c:	e3500000 	cmp	r0, #0                                        
   21f60:	0affffae 	beq	21e20 <killinfo+0x118>                        
   21f64:	eaffffb3 	b	21e38 <killinfo+0x130>                          <== NOT EXECUTED
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
   21f68:	e2822001 	add	r2, r2, #1                                    
   21f6c:	e15c0002 	cmp	ip, r2                                        
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
   21f70:	e1a0e000 	mov	lr, r0                                        
   21f74:	e1a08003 	mov	r8, r3                                        
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
   21f78:	2affffd1 	bcs	21ec4 <killinfo+0x1bc>                        
   21f7c:	eaffffed 	b	21f38 <killinfo+0x230>                          
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
    rtems_set_errno_and_return_minus_one( ESRCH );                    
   21f80:	ebffc4d3 	bl	132d4 <__errno>                                
   21f84:	e3a03003 	mov	r3, #3                                        
   21f88:	e5803000 	str	r3, [r0]                                      
   21f8c:	e3e00000 	mvn	r0, #0                                        
   21f90:	eaffffaa 	b	21e40 <killinfo+0x138>                          
   */                                                                 
  if ( !sig )                                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
   21f94:	ebffc4ce 	bl	132d4 <__errno>                                
   21f98:	e3a03016 	mov	r3, #22                                       
   21f9c:	e5803000 	str	r3, [r0]                                      
   21fa0:	e3e00000 	mvn	r0, #0                                        
   21fa4:	eaffffa5 	b	21e40 <killinfo+0x138>                          
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
   21fa8:	ebffac3a 	bl	d098 <_Thread_Enable_dispatch>                 
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
   21fac:	ebffc4c8 	bl	132d4 <__errno>                                
   21fb0:	e3a0300b 	mov	r3, #11                                       
   21fb4:	e5803000 	str	r3, [r0]                                      
   21fb8:	e3e00000 	mvn	r0, #0                                        
   21fbc:	eaffff9f 	b	21e40 <killinfo+0x138>                          
                                                                      

0000228c <malloc>: size_t size ) { void *return_this; MSBUMP(malloc_calls, 1);
    228c:	e59f30d4 	ldr	r3, [pc, #212]	; 2368 <malloc+0xdc>           
    2290:	e5932004 	ldr	r2, [r3, #4]                                  
    2294:	e2822001 	add	r2, r2, #1                                    
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
    2298:	e92d4030 	push	{r4, r5, lr}                                 
    229c:	e1a04000 	mov	r4, r0                                        
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
    22a0:	e5832004 	str	r2, [r3, #4]                                  
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
    22a4:	ebffffb0 	bl	216c <malloc_deferred_frees_process>           
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    22a8:	e3540000 	cmp	r4, #0                                        
    return (void *) 0;                                                
    22ac:	01a05004 	moveq	r5, r4                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    22b0:	0a000018 	beq	2318 <malloc+0x8c>                            
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
    22b4:	e59f30b0 	ldr	r3, [pc, #176]	; 236c <malloc+0xe0>           
    22b8:	e5933000 	ldr	r3, [r3]                                      
    22bc:	e3530003 	cmp	r3, #3                                        
    22c0:	0a000024 	beq	2358 <malloc+0xcc>                            
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
    22c4:	e59f30a4 	ldr	r3, [pc, #164]	; 2370 <malloc+0xe4>           
    22c8:	e3a02000 	mov	r2, #0                                        
    22cc:	e5930000 	ldr	r0, [r3]                                      
    22d0:	e1a01004 	mov	r1, r4                                        
    22d4:	e1a03002 	mov	r3, r2                                        
    22d8:	eb001397 	bl	713c <_Protected_heap_Allocate_aligned_with_boundary>
   * If this fails then return a NULL pointer.                        
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
    22dc:	e2505000 	subs	r5, r0, #0                                   
    22e0:	0a00000e 	beq	2320 <malloc+0x94>                            
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
    22e4:	e59f3088 	ldr	r3, [pc, #136]	; 2374 <malloc+0xe8>           
    22e8:	e5933000 	ldr	r3, [r3]                                      
    22ec:	e3530000 	cmp	r3, #0                                        
    (*rtems_malloc_dirty_helper)( return_this, size );                
    22f0:	11a00005 	movne	r0, r5                                      
    22f4:	11a01004 	movne	r1, r4                                      
    22f8:	11a0e00f 	movne	lr, pc                                      
    22fc:	112fff13 	bxne	r3                                           
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
    2300:	e59f3070 	ldr	r3, [pc, #112]	; 2378 <malloc+0xec>           
    2304:	e5933000 	ldr	r3, [r3]                                      
    2308:	e3530000 	cmp	r3, #0                                        
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
    230c:	11a00005 	movne	r0, r5                                      
    2310:	11a0e00f 	movne	lr, pc                                      
    2314:	1593f004 	ldrne	pc, [r3, #4]                                
                                                                      
  return return_this;                                                 
}                                                                     
    2318:	e1a00005 	mov	r0, r5                                        
    231c:	e8bd8030 	pop	{r4, r5, pc}                                  
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
    if (rtems_malloc_sbrk_helpers)                                    
    2320:	e59f3054 	ldr	r3, [pc, #84]	; 237c <malloc+0xf0>            
    2324:	e5933000 	ldr	r3, [r3]                                      
    2328:	e3530000 	cmp	r3, #0                                        
    232c:	0a000005 	beq	2348 <malloc+0xbc>                            
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
    2330:	e1a00004 	mov	r0, r4                                        
    2334:	e1a0e00f 	mov	lr, pc                                        
    2338:	e593f004 	ldr	pc, [r3, #4]                                  
    if ( !return_this ) {                                             
    233c:	e3500000 	cmp	r0, #0                                        
    2340:	11a05000 	movne	r5, r0                                      
    2344:	1affffe6 	bne	22e4 <malloc+0x58>                            
      errno = ENOMEM;                                                 
    2348:	eb002e0e 	bl	db88 <__errno>                                 
    234c:	e3a0300c 	mov	r3, #12                                       
    2350:	e5803000 	str	r3, [r0]                                      
      return (void *) 0;                                              
    2354:	eaffffef 	b	2318 <malloc+0x8c>                              
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() )                                 
    2358:	ebffff6f 	bl	211c <malloc_is_system_state_OK>               
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
    235c:	e2505000 	subs	r5, r0, #0                                   
    2360:	1affffd7 	bne	22c4 <malloc+0x38>                            
    2364:	eaffffeb 	b	2318 <malloc+0x8c>                              <== NOT EXECUTED
                                                                      

0000cb54 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
    cb54:	e92d4030 	push	{r4, r5, lr}                                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
    cb58:	e5905018 	ldr	r5, [r0, #24]                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    cb5c:	e595304c 	ldr	r3, [r5, #76]	; 0x4c                          
    cb60:	e3530006 	cmp	r3, #6                                        
rtems_off64_t memfile_lseek(                                          
  rtems_libio_t   *iop,                                               
  rtems_off64_t    offset,                                            
  int              whence                                             
)                                                                     
{                                                                     
    cb64:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    cb68:	0a00000d 	beq	cba4 <memfile_lseek+0x50>                     
    if (iop->offset > the_jnode->info.linearfile.size)                
      iop->offset = the_jnode->info.linearfile.size;                  
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
    cb6c:	e1a00005 	mov	r0, r5                                        
    cb70:	e284200c 	add	r2, r4, #12                                   
    cb74:	e8920006 	ldm	r2, {r1, r2}                                  
    cb78:	ebfffee7 	bl	c71c <IMFS_memfile_extend>                     
    cb7c:	e3500000 	cmp	r0, #0                                        
    cb80:	1a000018 	bne	cbe8 <memfile_lseek+0x94>                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
                                                                      
    iop->size = the_jnode->info.file.size;                            
    cb84:	e2853050 	add	r3, r5, #80	; 0x50                            
    cb88:	e893000c 	ldm	r3, {r2, r3}                                  
    cb8c:	e984000c 	stmib	r4, {r2, r3}                                
    cb90:	e284300c 	add	r3, r4, #12                                   
    cb94:	e893000c 	ldm	r3, {r2, r3}                                  
  }                                                                   
  return iop->offset;                                                 
}                                                                     
    cb98:	e1a00002 	mov	r0, r2                                        
    cb9c:	e1a01003 	mov	r1, r3                                        
    cba0:	e8bd8030 	pop	{r4, r5, pc}                                  
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    if (iop->offset > the_jnode->info.linearfile.size)                
    cba4:	e280300c 	add	r3, r0, #12                                   
    cba8:	e893000c 	ldm	r3, {r2, r3}                                  
    cbac:	e5951054 	ldr	r1, [r5, #84]	; 0x54                          
    cbb0:	e1530001 	cmp	r3, r1                                        
    cbb4:	e5950050 	ldr	r0, [r5, #80]	; 0x50                          
    cbb8:	ca000002 	bgt	cbc8 <memfile_lseek+0x74>                     
    cbbc:	1afffff5 	bne	cb98 <memfile_lseek+0x44>                     
    cbc0:	e1520000 	cmp	r2, r0                                        
    cbc4:	9afffff3 	bls	cb98 <memfile_lseek+0x44>                     
      iop->offset = the_jnode->info.linearfile.size;                  
    cbc8:	e1a02000 	mov	r2, r0                                        <== NOT EXECUTED
    cbcc:	e1a03001 	mov	r3, r1                                        <== NOT EXECUTED
    cbd0:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
    cbd4:	e584000c 	str	r0, [r4, #12]                                 <== NOT EXECUTED
    cbd8:	e5841010 	str	r1, [r4, #16]                                 <== NOT EXECUTED
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
                                                                      
    iop->size = the_jnode->info.file.size;                            
  }                                                                   
  return iop->offset;                                                 
}                                                                     
    cbdc:	e1a00002 	mov	r0, r2                                        <== NOT EXECUTED
    cbe0:	e1a01003 	mov	r1, r3                                        <== NOT EXECUTED
    cbe4:	e8bd8030 	pop	{r4, r5, pc}                                  <== NOT EXECUTED
    if (iop->offset > the_jnode->info.linearfile.size)                
      iop->offset = the_jnode->info.linearfile.size;                  
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
    cbe8:	eb0003e6 	bl	db88 <__errno>                                 
    cbec:	e3a0301c 	mov	r3, #28                                       
    cbf0:	e5803000 	str	r3, [r0]                                      
    cbf4:	e3e02000 	mvn	r2, #0                                        
    cbf8:	e3e03000 	mvn	r3, #0                                        
    cbfc:	eaffffe5 	b	cb98 <memfile_lseek+0x44>                       
                                                                      

0000ca40 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
    ca40:	e92d4070 	push	{r4, r5, r6, lr}                             
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
    ca44:	e5903014 	ldr	r3, [r0, #20]                                 
    ca48:	e3130f81 	tst	r3, #516	; 0x204                              
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
    ca4c:	e24dd004 	sub	sp, sp, #4                                    
    ca50:	e1a04000 	mov	r4, r0                                        
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
    ca54:	e5905018 	ldr	r5, [r0, #24]                                 
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
    ca58:	0a000002 	beq	ca68 <memfile_open+0x28>                      
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
    ca5c:	e595204c 	ldr	r2, [r5, #76]	; 0x4c                          
    ca60:	e3520006 	cmp	r2, #6                                        
    ca64:	0a00000a 	beq	ca94 <memfile_open+0x54>                      
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
    ca68:	e2850050 	add	r0, r5, #80	; 0x50                            
    ca6c:	e8900005 	ldm	r0, {r0, r2}                                  
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
    ca70:	e3130c02 	tst	r3, #512	; 0x200                              
    iop->offset = the_jnode->info.file.size;                          
    ca74:	1584000c 	strne	r0, [r4, #12]                               
    ca78:	15842010 	strne	r2, [r4, #16]                               
    ca7c:	15952054 	ldrne	r2, [r5, #84]	; 0x54                        
    ca80:	15950050 	ldrne	r0, [r5, #80]	; 0x50                        
                                                                      
  iop->size = the_jnode->info.file.size;                              
    ca84:	e9840005 	stmib	r4, {r0, r2}                                
  return 0;                                                           
    ca88:	e3a00000 	mov	r0, #0                                        
}                                                                     
    ca8c:	e28dd004 	add	sp, sp, #4                                    
    ca90:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  /*                                                                  
   * 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;               
    ca94:	e595c050 	ldr	ip, [r5, #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;                         
    ca98:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
   && (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;                               
    the_jnode->info.file.size            = 0;                         
    ca9c:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    caa0:	e3a02000 	mov	r2, #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;                               
    caa4:	e3a06005 	mov	r6, #5                                        <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
    caa8:	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;  
    caac:	e5953058 	ldr	r3, [r5, #88]	; 0x58                          <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    cab0:	e585604c 	str	r6, [r5, #76]	; 0x4c                          <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    cab4:	e5851050 	str	r1, [r5, #80]	; 0x50                          <== NOT EXECUTED
    cab8:	e5852054 	str	r2, [r5, #84]	; 0x54                          <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
    cabc:	e5850058 	str	r0, [r5, #88]	; 0x58                          <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
    cac0:	e585005c 	str	r0, [r5, #92]	; 0x5c                          <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
    cac4:	e5850060 	str	r0, [r5, #96]	; 0x60                          <== NOT EXECUTED
    if ((count != 0)                                                  
    cac8:	05943014 	ldreq	r3, [r4, #20]                               <== NOT EXECUTED
    cacc:	01a00001 	moveq	r0, r1                                      <== NOT EXECUTED
    cad0:	0affffe6 	beq	ca70 <memfile_open+0x30>                      <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
    cad4:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    cad8:	e58dc000 	str	ip, [sp]                                      <== NOT EXECUTED
    cadc:	ebffff5b 	bl	c850 <IMFS_memfile_write>                      <== NOT EXECUTED
    cae0:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
    cae4:	0affffe8 	beq	ca8c <memfile_open+0x4c>                      <== NOT EXECUTED
    cae8:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
    caec:	eaffffdd 	b	ca68 <memfile_open+0x28>                        <== NOT EXECUTED
                                                                      

000024c0 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
    24c0:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
    24c4:	e3530001 	cmp	r3, #1                                        
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
    24c8:	e24dd030 	sub	sp, sp, #48	; 0x30                            
    24cc:	e58d3008 	str	r3, [sp, #8]                                  
    24d0:	e1a07000 	mov	r7, r0                                        
    24d4:	e1a06001 	mov	r6, r1                                        
    24d8:	e1a09002 	mov	r9, r2                                        
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
    24dc:	8a00009a 	bhi	274c <mount+0x28c>                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
    24e0:	e1a00002 	mov	r0, r2                                        
    24e4:	eb00200d 	bl	a520 <rtems_filesystem_get_mount_handler>      
  if ( !mount_h )                                                     
    24e8:	e3500000 	cmp	r0, #0                                        
    24ec:	e58d0014 	str	r0, [sp, #20]                                 
    24f0:	0a000095 	beq	274c <mount+0x28c>                            
{                                                                     
  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;                                   
    24f4:	e2565000 	subs	r5, r6, #0                                   
    24f8:	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 : "/"; 
    24fc:	e3550000 	cmp	r5, #0                                        
    2500:	0a00008a 	beq	2730 <mount+0x270>                            
 * 	4) The mount point exists with the proper permissions to allow mounting
 *	5) The selected mount point already has a file system mounted to it
 *                                                                    
 */                                                                   
                                                                      
int mount(                                                            
    2504:	e1a00006 	mov	r0, r6                                        
    2508:	eb003188 	bl	eb30 <strlen>                                  
    250c:	e2803001 	add	r3, r0, #1                                    
    2510:	e58d0010 	str	r0, [sp, #16]                                 
    2514:	e58d300c 	str	r3, [sp, #12]                                 
    2518:	e58d6018 	str	r6, [sp, #24]                                 
  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;          
    251c:	e1a00009 	mov	r0, r9                                        
    2520:	eb003182 	bl	eb30 <strlen>                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
    2524:	e3570000 	cmp	r7, #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;          
    2528:	e280b001 	add	fp, r0, #1                                    
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
    252c:	01a08007 	moveq	r8, r7                                      
    2530:	0a000002 	beq	2540 <mount+0x80>                             
    2534:	e1a00007 	mov	r0, r7                                        
    2538:	eb00317c 	bl	eb30 <strlen>                                  
    253c:	e2808001 	add	r8, r0, #1                                    
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
    2540:	e59d300c 	ldr	r3, [sp, #12]                                 
    2544:	e2831074 	add	r1, r3, #116	; 0x74                           
    2548:	e081100b 	add	r1, r1, fp                                    
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
    254c:	e3a00001 	mov	r0, #1                                        
    2550:	e0811008 	add	r1, r1, r8                                    
    2554:	ebfffe05 	bl	1d70 <calloc>                                  
                                                                      
  if ( mt_entry != NULL ) {                                           
    2558:	e2504000 	subs	r4, r0, #0                                   
    255c:	0a00006e 	beq	271c <mount+0x25c>                            
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
    2560:	e284a074 	add	sl, r4, #116	; 0x74                           
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
    2564:	e08a300b 	add	r3, sl, fp                                    
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    2568:	e1a01009 	mov	r1, r9                                        
    256c:	e1a0200b 	mov	r2, fp                                        
    2570:	e1a0000a 	mov	r0, sl                                        
    2574:	e58d3004 	str	r3, [sp, #4]                                  
    2578:	eb002fb0 	bl	e440 <memcpy>                                  
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    str += source_size;                                               
    257c:	e59d3004 	ldr	r3, [sp, #4]                                  
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    2580:	e1a01007 	mov	r1, r7                                        
    2584:	e1a02008 	mov	r2, r8                                        
    2588:	e1a00003 	mov	r0, r3                                        
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    258c:	e584a06c 	str	sl, [r4, #108]	; 0x6c                         
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    str += source_size;                                               
    2590:	e0839008 	add	r9, r3, r8                                    
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    2594:	eb002fa9 	bl	e440 <memcpy>                                  
    mt_entry->dev = str;                                              
    2598:	e59d3004 	ldr	r3, [sp, #4]                                  
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
    259c:	e59d1018 	ldr	r1, [sp, #24]                                 
    25a0:	e59d200c 	ldr	r2, [sp, #12]                                 
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    25a4:	e5843070 	str	r3, [r4, #112]	; 0x70                         
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
    25a8:	e1a00009 	mov	r0, r9                                        
    25ac:	eb002fa3 	bl	e440 <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;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
    25b0:	e59fe20c 	ldr	lr, [pc, #524]	; 27c4 <mount+0x304>           
    25b4:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    25b8:	e284c038 	add	ip, r4, #56	; 0x38                            
    25bc:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    25c0:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    25c4:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    25c8:	e89e000f 	ldm	lr, {r0, r1, r2, r3}                          
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
    25cc:	e59de008 	ldr	lr, [sp, #8]                                  
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    25d0:	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;                                           
    25d4:	e5849068 	str	r9, [r4, #104]	; 0x68                         
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
    25d8:	e584402c 	str	r4, [r4, #44]	; 0x2c                          
  mt_entry->options = options;                                        
    25dc:	e584e030 	str	lr, [r4, #48]	; 0x30                          
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
    25e0:	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 ) {                                                 
    25e4:	1a000024 	bne	267c <mount+0x1bc>                            
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
    25e8:	e59f31d8 	ldr	r3, [pc, #472]	; 27c8 <mount+0x308>           
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
    25ec:	e5932000 	ldr	r2, [r3]                                      
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
    25f0:	e2833004 	add	r3, r3, #4                                    
    25f4:	e1520003 	cmp	r2, r3                                        
)                                                                     
{                                                                     
  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;           
    25f8:	01a07005 	moveq	r7, r5                                      
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
    25fc:	1a000057 	bne	2760 <mount+0x2a0>                            
     *  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 ) ) {                               
    2600:	e1a00004 	mov	r0, r4                                        
    2604:	e59d1054 	ldr	r1, [sp, #84]	; 0x54                          
    2608:	e59d3014 	ldr	r3, [sp, #20]                                 
    260c:	e1a0e00f 	mov	lr, pc                                        
    2610:	e12fff13 	bx	r3                                             
    2614:	e2506000 	subs	r6, r0, #0                                   
    2618:	1a000057 	bne	277c <mount+0x2bc>                            
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 );
    261c:	e59f71a8 	ldr	r7, [pc, #424]	; 27cc <mount+0x30c>           
    2620:	e1a02006 	mov	r2, r6                                        
    2624:	e1a01006 	mov	r1, r6                                        
    2628:	e5970000 	ldr	r0, [r7]                                      
    262c:	eb000bf1 	bl	55f8 <rtems_semaphore_obtain>                  
    2630:	e59f0190 	ldr	r0, [pc, #400]	; 27c8 <mount+0x308>           
    2634:	e1a01004 	mov	r1, r4                                        
    2638:	eb000e62 	bl	5fc8 <_Chain_Append>                           
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    263c:	e5970000 	ldr	r0, [r7]                                      
    2640:	eb000c35 	bl	571c <rtems_semaphore_release>                 
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    2644:	e3550000 	cmp	r5, #0                                        
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
    2648:	11a00006 	movne	r0, r6                                      
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    264c:	1a000008 	bne	2674 <mount+0x1b4>                            
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
    2650:	e59f3178 	ldr	r3, [pc, #376]	; 27d0 <mount+0x310>           
    2654:	e284401c 	add	r4, r4, #28                                   
    2658:	e593c000 	ldr	ip, [r3]                                      
    265c:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    2660:	e28cc018 	add	ip, ip, #24                                   
    2664:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    2668:	e5943000 	ldr	r3, [r4]                                      
    266c:	e58c3000 	str	r3, [ip]                                      
                                                                      
  return 0;                                                           
    2670:	e1a00005 	mov	r0, r5                                        
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
}                                                                     
    2674:	e28dd030 	add	sp, sp, #48	; 0x30                            
    2678:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
    267c:	e28d701c 	add	r7, sp, #28                                   
    2680:	e3a0c001 	mov	ip, #1                                        
    2684:	e1a00006 	mov	r0, r6                                        
    2688:	e59d1010 	ldr	r1, [sp, #16]                                 
    268c:	e3a02007 	mov	r2, #7                                        
    2690:	e1a03007 	mov	r3, r7                                        
    2694:	e58dc000 	str	ip, [sp]                                      
    2698:	ebfffde2 	bl	1e28 <rtems_filesystem_evaluate_path>          
    269c:	e3700001 	cmn	r0, #1                                        
    26a0:	0a000031 	beq	276c <mount+0x2ac>                            
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
    26a4:	e1a00007 	mov	r0, r7                                        
    26a8:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    26ac:	e1a0e00f 	mov	lr, pc                                        
    26b0:	e593f010 	ldr	pc, [r3, #16]                                 
    26b4:	e3500001 	cmp	r0, #1                                        
    26b8:	1a000039 	bne	27a4 <mount+0x2e4>                            
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
    26bc:	e59f0110 	ldr	r0, [pc, #272]	; 27d4 <mount+0x314>           
    26c0:	e59d101c 	ldr	r1, [sp, #28]                                 
    26c4:	ebffff5f 	bl	2448 <rtems_filesystem_mount_iterate>          
    26c8:	e3500000 	cmp	r0, #0                                        
    26cc:	1a000038 	bne	27b4 <mount+0x2f4>                            
     *  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;            
    26d0:	e59d201c 	ldr	r2, [sp, #28]                                 
    26d4:	e5842008 	str	r2, [r4, #8]                                  
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    26d8:	e28d2024 	add	r2, sp, #36	; 0x24                            
    26dc:	e892000c 	ldm	r2, {r2, r3}                                  
    26e0:	e5842010 	str	r2, [r4, #16]                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
    26e4:	e59d202c 	ldr	r2, [sp, #44]	; 0x2c                          
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
    26e8:	e5843014 	str	r3, [r4, #20]                                 
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
    26ec:	e5842018 	str	r2, [r4, #24]                                 
    /*                                                                
     *  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 ) ) {                             
    26f0:	e1a00004 	mov	r0, r4                                        
    26f4:	e1a0e00f 	mov	lr, pc                                        
    26f8:	e593f020 	ldr	pc, [r3, #32]                                 
    26fc:	e3500000 	cmp	r0, #0                                        
    2700:	0affffbe 	beq	2600 <mount+0x140>                            
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
    2704:	e1a00004 	mov	r0, r4                                        
    2708:	ebfffe05 	bl	1f24 <free>                                    
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
    270c:	e1a00007 	mov	r0, r7                                        
    2710:	ebfffdfe 	bl	1f10 <rtems_filesystem_freenode>               
                                                                      
  return -1;                                                          
    2714:	e3e00000 	mvn	r0, #0                                        
    2718:	eaffffd5 	b	2674 <mount+0x1b4>                              
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
    271c:	eb002d19 	bl	db88 <__errno>                                 <== NOT EXECUTED
    2720:	e3a0300c 	mov	r3, #12                                       <== NOT EXECUTED
    2724:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
    2728:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    272c:	eaffffd0 	b	2674 <mount+0x1b4>                              <== NOT EXECUTED
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
    2730:	e59fe0a0 	ldr	lr, [pc, #160]	; 27d8 <mount+0x318>           
    2734:	e3a03002 	mov	r3, #2                                        
    2738:	e58de018 	str	lr, [sp, #24]                                 
    273c:	e3a0e001 	mov	lr, #1                                        
    2740:	e58d300c 	str	r3, [sp, #12]                                 
    2744:	e58de010 	str	lr, [sp, #16]                                 
    2748:	eaffff73 	b	251c <mount+0x5c>                               
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
  if ( !mount_h )                                                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    274c:	eb002d0d 	bl	db88 <__errno>                                 
    2750:	e3a03016 	mov	r3, #22                                       
    2754:	e5803000 	str	r3, [r0]                                      
    2758:	e3e00000 	mvn	r0, #0                                        
    275c:	eaffffc4 	b	2674 <mount+0x1b4>                              
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
      errno = EINVAL;                                                 
    2760:	eb002d08 	bl	db88 <__errno>                                 <== NOT EXECUTED
    2764:	e3a03016 	mov	r3, #22                                       <== NOT EXECUTED
    2768:	e5803000 	str	r3, [r0]                                      <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
    276c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    2770:	ebfffdeb 	bl	1f24 <free>                                    <== NOT EXECUTED
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
    2774:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
    2778:	eaffffbd 	b	2674 <mount+0x1b4>                              <== NOT EXECUTED
                                                                      
  if ( (*mount_h)( mt_entry, data ) ) {                               
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
    277c:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
    2780:	e1a00004 	mov	r0, r4                                        
    2784:	e1a0e00f 	mov	lr, pc                                        
    2788:	e593f028 	ldr	pc, [r3, #40]	; 0x28                          
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
    278c:	e1a00004 	mov	r0, r4                                        
    2790:	ebfffde3 	bl	1f24 <free>                                    
                                                                      
  if ( loc_to_free )                                                  
    2794:	e3570000 	cmp	r7, #0                                        
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
    2798:	03e00000 	mvneq	r0, #0                                      
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
    279c:	0affffb4 	beq	2674 <mount+0x1b4>                            
    27a0:	eaffffd9 	b	270c <mount+0x24c>                              
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
      errno = ENOTDIR;                                                
    27a4:	eb002cf7 	bl	db88 <__errno>                                 
    27a8:	e3a03014 	mov	r3, #20                                       
    27ac:	e5803000 	str	r3, [r0]                                      
      goto cleanup_and_bail;                                          
    27b0:	eaffffd3 	b	2704 <mount+0x244>                              
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
      errno = EBUSY;                                                  
    27b4:	eb002cf3 	bl	db88 <__errno>                                 
    27b8:	e3a03010 	mov	r3, #16                                       
    27bc:	e5803000 	str	r3, [r0]                                      
      goto cleanup_and_bail;                                          
    27c0:	eaffffcf 	b	2704 <mount+0x244>                              
                                                                      

000027e0 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
    27e0:	e92d4010 	push	{r4, lr}                                     
    27e4:	e1a04000 	mov	r4, r0                                        
  switch ( fileno(fp) ) {                                             
    27e8:	eb002de9 	bl	df94 <fileno>                                  
    27ec:	e3500002 	cmp	r0, #2                                        
    27f0:	9a000003 	bls	2804 <newlib_free_buffers+0x24>               
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
    27f4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    27f8:	eb002d30 	bl	dcc0 <fclose>                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
    27fc:	e3a00000 	mov	r0, #0                                        
    2800:	e8bd8010 	pop	{r4, pc}                                      
{                                                                     
  switch ( fileno(fp) ) {                                             
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
    2804:	e1d430bc 	ldrh	r3, [r4, #12]                                
    2808:	e3130080 	tst	r3, #128	; 0x80                               
    280c:	0afffffa 	beq	27fc <newlib_free_buffers+0x1c>               
        free( fp->_bf._base );                                        
    2810:	e5940010 	ldr	r0, [r4, #16]                                 
    2814:	ebfffdc2 	bl	1f24 <free>                                    <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
    2818:	e1d420bc 	ldrh	r2, [r4, #12]                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
    281c:	e3a03000 	mov	r3, #0                                        <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
    2820:	e3c22080 	bic	r2, r2, #128	; 0x80                           <== NOT EXECUTED
    2824:	e1c420bc 	strh	r2, [r4, #12]                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
    2828:	e5843000 	str	r3, [r4]                                      <== NOT EXECUTED
    282c:	e5843010 	str	r3, [r4, #16]                                 <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
    2830:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    2834:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00003a90 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
    3a90:	e92d4010 	push	{r4, lr}                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    3a94:	e5913034 	ldr	r3, [r1, #52]	; 0x34                          
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3a98:	e24dd004 	sub	sp, sp, #4                                    
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    3a9c:	e3130001 	tst	r3, #1                                        
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
    3aa0:	e1a04001 	mov	r4, r1                                        
    3aa4:	e5cd0000 	strb	r0, [sp]                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    3aa8:	0a000014 	beq	3b00 <oproc+0x70>                             
    switch (c) {                                                      
    3aac:	e5dd1000 	ldrb	r1, [sp]                                     
    3ab0:	e2412008 	sub	r2, r1, #8                                    
    3ab4:	e3520005 	cmp	r2, #5                                        
    3ab8:	979ff102 	ldrls	pc, [pc, r2, lsl #2]                        
    3abc:	ea000005 	b	3ad8 <oproc+0x48>                               
    3ac0:	00003b88 	.word	0x00003b88                                  
    3ac4:	00003b50 	.word	0x00003b50                                  
    3ac8:	00003b9c 	.word	0x00003b9c                                  
    3acc:	00003ad8 	.word	0x00003ad8                                  
    3ad0:	00003ad8 	.word	0x00003ad8                                  
    3ad4:	00003b18 	.word	0x00003b18                                  
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
    3ad8:	e3130002 	tst	r3, #2                                        
    3adc:	1a00003a 	bne	3bcc <oproc+0x13c>                            
    3ae0:	e59f310c 	ldr	r3, [pc, #268]	; 3bf4 <oproc+0x164>           
    3ae4:	e5933000 	ldr	r3, [r3]                                      
        c = toupper(c);                                               
      if (!iscntrl(c))                                                
    3ae8:	e0831001 	add	r1, r3, r1                                    
    3aec:	e5d13001 	ldrb	r3, [r1, #1]                                 
    3af0:	e3130020 	tst	r3, #32                                       
        tty->column++;                                                
    3af4:	05943028 	ldreq	r3, [r4, #40]	; 0x28                        
    3af8:	02833001 	addeq	r3, r3, #1                                  
    3afc:	05843028 	streq	r3, [r4, #40]	; 0x28                        
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
    3b00:	e1a0000d 	mov	r0, sp                                        
    3b04:	e3a01001 	mov	r1, #1                                        
    3b08:	e1a02004 	mov	r2, r4                                        
    3b0c:	ebffff99 	bl	3978 <rtems_termios_puts>                      
}                                                                     
    3b10:	e28dd004 	add	sp, sp, #4                                    
    3b14:	e8bd8010 	pop	{r4, pc}                                      
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
    3b18:	e3130010 	tst	r3, #16                                       <== NOT EXECUTED
    3b1c:	0a000002 	beq	3b2c <oproc+0x9c>                             <== NOT EXECUTED
    3b20:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          <== NOT EXECUTED
    3b24:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    3b28:	0afffff8 	beq	3b10 <oproc+0x80>                             <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
    3b2c:	e2132008 	ands	r2, r3, #8                                   <== NOT EXECUTED
        c = '\n';                                                     
        if (tty->termios.c_oflag & ONLRET)                            
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
    3b30:	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) {                             
    3b34:	0afffff1 	beq	3b00 <oproc+0x70>                             <== NOT EXECUTED
        c = '\n';                                                     
        if (tty->termios.c_oflag & ONLRET)                            
    3b38:	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';                                                     
    3b3c:	e3a0300a 	mov	r3, #10                                       <== NOT EXECUTED
    3b40:	e5cd3000 	strb	r3, [sp]                                     <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
          tty->column = 0;                                            
    3b44:	13a03000 	movne	r3, #0                                      <== NOT EXECUTED
    3b48:	15843028 	strne	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
    3b4c:	eaffffeb 	b	3b00 <oproc+0x70>                               <== NOT EXECUTED
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
    3b50:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3b54:	e2033b06 	and	r3, r3, #6144	; 0x1800                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
    3b58:	e2021007 	and	r1, r2, #7                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3b5c:	e3530b06 	cmp	r3, #6144	; 0x1800                            
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
    3b60:	e2611008 	rsb	r1, r1, #8                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
        return;                                                       
      }                                                               
      tty->column += i;                                               
    3b64:	10811002 	addne	r1, r1, r2                                  
    3b68:	15841028 	strne	r1, [r4, #40]	; 0x28                        
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
    3b6c:	1affffe3 	bne	3b00 <oproc+0x70>                             
        tty->column += i;                                             
    3b70:	e0812002 	add	r2, r1, r2                                    
    3b74:	e5842028 	str	r2, [r4, #40]	; 0x28                          
        rtems_termios_puts ( "        ",  i, tty);                    
    3b78:	e59f0078 	ldr	r0, [pc, #120]	; 3bf8 <oproc+0x168>           
    3b7c:	e1a02004 	mov	r2, r4                                        
    3b80:	ebffff7c 	bl	3978 <rtems_termios_puts>                      
        return;                                                       
    3b84:	eaffffe1 	b	3b10 <oproc+0x80>                               
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
    3b88:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          <== NOT EXECUTED
    3b8c:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
        tty->column--;                                                
    3b90:	c2433001 	subgt	r3, r3, #1                                  <== NOT EXECUTED
    3b94:	c5843028 	strgt	r3, [r4, #40]	; 0x28                        <== NOT EXECUTED
    3b98:	eaffffd8 	b	3b00 <oproc+0x70>                               <== NOT EXECUTED
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
    3b9c:	e3130020 	tst	r3, #32                                       
        tty->column = 0;                                              
    3ba0:	13a02000 	movne	r2, #0                                      
    3ba4:	15842028 	strne	r2, [r4, #40]	; 0x28                        
      if (tty->termios.c_oflag & ONLCR) {                             
    3ba8:	e3130004 	tst	r3, #4                                        
    3bac:	0affffd3 	beq	3b00 <oproc+0x70>                             
        rtems_termios_puts ("\r", 1, tty);                            
    3bb0:	e59f0044 	ldr	r0, [pc, #68]	; 3bfc <oproc+0x16c>            
    3bb4:	e3a01001 	mov	r1, #1                                        
    3bb8:	e1a02004 	mov	r2, r4                                        
    3bbc:	ebffff6d 	bl	3978 <rtems_termios_puts>                      
        tty->column = 0;                                              
    3bc0:	e3a03000 	mov	r3, #0                                        
    3bc4:	e5843028 	str	r3, [r4, #40]	; 0x28                          
    3bc8:	eaffffcc 	b	3b00 <oproc+0x70>                               
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
        c = toupper(c);                                               
    3bcc:	e59f3020 	ldr	r3, [pc, #32]	; 3bf4 <oproc+0x164>            <== NOT EXECUTED
    3bd0:	e5933000 	ldr	r3, [r3]                                      <== NOT EXECUTED
    3bd4:	e0832001 	add	r2, r3, r1                                    <== NOT EXECUTED
    3bd8:	e5d22001 	ldrb	r2, [r2, #1]                                 <== NOT EXECUTED
    3bdc:	e2022003 	and	r2, r2, #3                                    <== NOT EXECUTED
    3be0:	e3520002 	cmp	r2, #2                                        <== NOT EXECUTED
    3be4:	02411020 	subeq	r1, r1, #32                                 <== NOT EXECUTED
    3be8:	e20110ff 	and	r1, r1, #255	; 0xff                           <== NOT EXECUTED
    3bec:	e5cd1000 	strb	r1, [sp]                                     <== NOT EXECUTED
    3bf0:	eaffffbc 	b	3ae8 <oproc+0x58>                               <== NOT EXECUTED
                                                                      

0000caf0 <pipe_ioctl>: uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
    caf0:	e3a03a46 	mov	r3, #286720	; 0x46000                         
    caf4:	e2833e67 	add	r3, r3, #1648	; 0x670                         
    caf8:	e283313d 	add	r3, r3, #1073741839	; 0x4000000f              
    cafc:	e1510003 	cmp	r1, r3                                        
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    cb00:	e92d4070 	push	{r4, r5, r6, lr}                             
    cb04:	e1a05000 	mov	r5, r0                                        
    cb08:	e1a04002 	mov	r4, r2                                        
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
    cb0c:	13e00015 	mvnne	r0, #21                                     
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    cb10:	18bd8070 	popne	{r4, r5, r6, pc}                            
    if (buffer == NULL)                                               
    cb14:	e3520000 	cmp	r2, #0                                        
      return -EFAULT;                                                 
    cb18:	03e0000d 	mvneq	r0, #13                                     
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
    cb1c:	08bd8070 	popeq	{r4, r5, r6, pc}                            
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
    cb20:	e3a01000 	mov	r1, #0                                        
    cb24:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    cb28:	e1a02001 	mov	r2, r1                                        
    cb2c:	ebffeb7b 	bl	7920 <rtems_semaphore_obtain>                  
    cb30:	e2506000 	subs	r6, r0, #0                                   
    cb34:	0a000001 	beq	cb40 <pipe_ioctl+0x50>                        
      return -EINTR;                                                  
    cb38:	e3e00003 	mvn	r0, #3                                        <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
    cb3c:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    cb40:	e595300c 	ldr	r3, [r5, #12]                                 
    PIPE_UNLOCK(pipe);                                                
    cb44:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    cb48:	e5843000 	str	r3, [r4]                                      
    PIPE_UNLOCK(pipe);                                                
    cb4c:	ebffebbc 	bl	7a44 <rtems_semaphore_release>                 
    return 0;                                                         
    cb50:	e1a00006 	mov	r0, r6                                        
    cb54:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

0000c724 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
    c724:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    c728:	e1a09001 	mov	r9, r1                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c72c:	e3a01000 	mov	r1, #0                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    c730:	e24dd008 	sub	sp, sp, #8                                    
    c734:	e1a04000 	mov	r4, r0                                        
    c738:	e1a05002 	mov	r5, r2                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c73c:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
    c740:	e1a02001 	mov	r2, r1                                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    c744:	e1a08003 	mov	r8, r3                                        
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c748:	ebffec74 	bl	7920 <rtems_semaphore_obtain>                  
    c74c:	e250a000 	subs	sl, r0, #0                                   
    return -EINTR;                                                    
    c750:	13e07003 	mvnne	r7, #3                                      
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c754:	1a000027 	bne	c7f8 <pipe_read+0xd4>                         
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    c758:	e3550000 	cmp	r5, #0                                        
    c75c:	01a07005 	moveq	r7, r5                                      
    c760:	01a06007 	moveq	r6, r7                                      
    c764:	0a00001f 	beq	c7e8 <pipe_read+0xc4>                         
    c768:	e1a0700a 	mov	r7, sl                                        
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
    c76c:	e28db004 	add	fp, sp, #4                                    
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
    c770:	e594200c 	ldr	r2, [r4, #12]                                 
    c774:	e3520000 	cmp	r2, #0                                        
    c778:	1a000021 	bne	c804 <pipe_read+0xe0>                         
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
    c77c:	e5946014 	ldr	r6, [r4, #20]                                 
    c780:	e3560000 	cmp	r6, #0                                        
    c784:	0a000017 	beq	c7e8 <pipe_read+0xc4>                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
    c788:	e5986014 	ldr	r6, [r8, #20]                                 
    c78c:	e2166001 	ands	r6, r6, #1                                   
    c790:	1a00003b 	bne	c884 <pipe_read+0x160>                        
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
    c794:	e5943018 	ldr	r3, [r4, #24]                                 
    c798:	e2833001 	add	r3, r3, #1                                    
    c79c:	e5843018 	str	r3, [r4, #24]                                 
      PIPE_UNLOCK(pipe);                                              
    c7a0:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    c7a4:	ebffeca6 	bl	7a44 <rtems_semaphore_release>                 
      if (! PIPE_READWAIT(pipe))                                      
    c7a8:	e1a01006 	mov	r1, r6                                        
    c7ac:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
    c7b0:	eb000636 	bl	e090 <rtems_barrier_wait>                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c7b4:	e1a01006 	mov	r1, r6                                        
    c7b8:	e1a02001 	mov	r2, r1                                        
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
    c7bc:	e2506000 	subs	r6, r0, #0                                   
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c7c0:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
    c7c4:	13e06003 	mvnne	r6, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c7c8:	ebffec54 	bl	7920 <rtems_semaphore_obtain>                  
    c7cc:	e3500000 	cmp	r0, #0                                        
    c7d0:	1a00002d 	bne	c88c <pipe_read+0x168>                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
    c7d4:	e5943018 	ldr	r3, [r4, #24]                                 
      if (ret != 0)                                                   
    c7d8:	e3560000 	cmp	r6, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
    c7dc:	e2433001 	sub	r3, r3, #1                                    
    c7e0:	e5843018 	str	r3, [r4, #24]                                 
      if (ret != 0)                                                   
    c7e4:	0affffe1 	beq	c770 <pipe_read+0x4c>                         
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
    c7e8:	e5940028 	ldr	r0, [r4, #40]	; 0x28                          
    c7ec:	ebffec94 	bl	7a44 <rtems_semaphore_release>                 
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
    c7f0:	e3570000 	cmp	r7, #0                                        
    c7f4:	d1a07006 	movle	r7, r6                                      
}                                                                     
    c7f8:	e1a00007 	mov	r0, r7                                        
    c7fc:	e28dd008 	add	sp, sp, #8                                    
    c800:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    c804:	e5941008 	ldr	r1, [r4, #8]                                  
    c808:	e5943004 	ldr	r3, [r4, #4]                                  
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    c80c:	e06a6005 	rsb	r6, sl, r5                                    
    c810:	e1520006 	cmp	r2, r6                                        
    c814:	31a06002 	movcc	r6, r2                                      
    chunk1 = pipe->Size - pipe->Start;                                
    c818:	e0613003 	rsb	r3, r1, r3                                    
    if (chunk > chunk1) {                                             
    c81c:	e1560003 	cmp	r6, r3                                        
    c820:	ca00001b 	bgt	c894 <pipe_read+0x170>                        
      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);       
    c824:	e5943000 	ldr	r3, [r4]                                      
    c828:	e089000a 	add	r0, r9, sl                                    
    c82c:	e0831001 	add	r1, r3, r1                                    
    c830:	e1a02006 	mov	r2, r6                                        
    c834:	eb001258 	bl	1119c <memcpy>                                 
                                                                      
    pipe->Start += chunk;                                             
    c838:	e5940008 	ldr	r0, [r4, #8]                                  
    pipe->Start %= pipe->Size;                                        
    c83c:	e5941004 	ldr	r1, [r4, #4]                                  
    c840:	e0860000 	add	r0, r6, r0                                    
    c844:	eb003e4d 	bl	1c180 <__umodsi3>                              
    pipe->Length -= chunk;                                            
    c848:	e594300c 	ldr	r3, [r4, #12]                                 
    c84c:	e0663003 	rsb	r3, r6, r3                                    
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
    c850:	e3530000 	cmp	r3, #0                                        
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
    c854:	e5840008 	str	r0, [r4, #8]                                  
    pipe->Length -= chunk;                                            
    c858:	e584300c 	str	r3, [r4, #12]                                 
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
    c85c:	05843008 	streq	r3, [r4, #8]                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
    c860:	e594301c 	ldr	r3, [r4, #28]                                 
    c864:	e3530000 	cmp	r3, #0                                        
    c868:	1a000016 	bne	c8c8 <pipe_read+0x1a4>                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
    c86c:	e0877006 	add	r7, r7, r6                                    
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    c870:	e1570005 	cmp	r7, r5                                        
    c874:	e1a0a007 	mov	sl, r7                                        
    c878:	3affffbc 	bcc	c770 <pipe_read+0x4c>                         
    c87c:	e3a06000 	mov	r6, #0                                        
    c880:	eaffffd8 	b	c7e8 <pipe_read+0xc4>                           
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
    c884:	e3e0600a 	mvn	r6, #10                                       
    c888:	eaffffd6 	b	c7e8 <pipe_read+0xc4>                           
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
    c88c:	e3e06003 	mvn	r6, #3                                        <== NOT EXECUTED
    c890:	eaffffd6 	b	c7f0 <pipe_read+0xcc>                           <== NOT EXECUTED
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    if (chunk > chunk1) {                                             
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
    c894:	e5940000 	ldr	r0, [r4]                                      
    c898:	e1a02003 	mov	r2, r3                                        
    c89c:	e0801001 	add	r1, r0, r1                                    
    c8a0:	e089000a 	add	r0, r9, sl                                    
    c8a4:	e58d3000 	str	r3, [sp]                                      
    c8a8:	eb00123b 	bl	1119c <memcpy>                                 
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    c8ac:	e59d3000 	ldr	r3, [sp]                                      
    c8b0:	e08a0003 	add	r0, sl, r3                                    
    c8b4:	e0890000 	add	r0, r9, r0                                    
    c8b8:	e5941000 	ldr	r1, [r4]                                      
    c8bc:	e0632006 	rsb	r2, r3, r6                                    
    c8c0:	eb001235 	bl	1119c <memcpy>                                 
    c8c4:	eaffffdb 	b	c838 <pipe_read+0x114>                          
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
    c8c8:	e5940030 	ldr	r0, [r4, #48]	; 0x30                          
    c8cc:	e1a0100b 	mov	r1, fp                                        
    c8d0:	eb0005d6 	bl	e030 <rtems_barrier_release>                   
    c8d4:	eaffffe4 	b	c86c <pipe_read+0x148>                          
                                                                      

0000c8d8 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
    c8d8:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    c8dc:	e2524000 	subs	r4, r2, #0                                   
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
    c8e0:	e24dd008 	sub	sp, sp, #8                                    
    c8e4:	e1a05000 	mov	r5, r0                                        
    c8e8:	e1a06001 	mov	r6, r1                                        
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
    c8ec:	01a07004 	moveq	r7, r4                                      
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    c8f0:	1a000002 	bne	c900 <pipe_write+0x28>                        
#endif                                                                
                                                                      
  if (written > 0)                                                    
    return written;                                                   
  return ret;                                                         
}                                                                     
    c8f4:	e1a00007 	mov	r0, r7                                        
    c8f8:	e28dd008 	add	sp, sp, #8                                    
    c8fc:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c900:	e3a01000 	mov	r1, #0                                        
    c904:	e5900028 	ldr	r0, [r0, #40]	; 0x28                          
    c908:	e1a02001 	mov	r2, r1                                        
    c90c:	e58d3000 	str	r3, [sp]                                      
    c910:	ebffec02 	bl	7920 <rtems_semaphore_obtain>                  
    c914:	e2509000 	subs	r9, r0, #0                                   
    c918:	e59d3000 	ldr	r3, [sp]                                      
    return -EINTR;                                                    
    c91c:	13e07003 	mvnne	r7, #3                                      
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    c920:	1afffff3 	bne	c8f4 <pipe_write+0x1c>                        
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    c924:	e5957010 	ldr	r7, [r5, #16]                                 
    c928:	e3570000 	cmp	r7, #0                                        
    c92c:	0a000057 	beq	ca90 <pipe_write+0x1b8>                       
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
    c930:	e5958004 	ldr	r8, [r5, #4]                                  
    c934:	e1540008 	cmp	r4, r8                                        
    c938:	91a0a004 	movls	sl, r4                                      
    c93c:	83a0a001 	movhi	sl, #1                                      
    c940:	e1a07009 	mov	r7, r9                                        
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
    c944:	e28db004 	add	fp, sp, #4                                    
                                                                      
  /* 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) {                                
    c948:	e595100c 	ldr	r1, [r5, #12]                                 
    c94c:	e0612008 	rsb	r2, r1, r8                                    
    c950:	e152000a 	cmp	r2, sl                                        
    c954:	2a000021 	bcs	c9e0 <pipe_write+0x108>                       
      if (LIBIO_NODELAY(iop)) {                                       
    c958:	e5938014 	ldr	r8, [r3, #20]                                 
    c95c:	e2188001 	ands	r8, r8, #1                                   
    c960:	1a000052 	bne	cab0 <pipe_write+0x1d8>                       
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
    c964:	e595201c 	ldr	r2, [r5, #28]                                 
    c968:	e2822001 	add	r2, r2, #1                                    
    c96c:	e585201c 	str	r2, [r5, #28]                                 
      PIPE_UNLOCK(pipe);                                              
    c970:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    c974:	e58d3000 	str	r3, [sp]                                      
    c978:	ebffec31 	bl	7a44 <rtems_semaphore_release>                 
      if (! PIPE_WRITEWAIT(pipe))                                     
    c97c:	e1a01008 	mov	r1, r8                                        
    c980:	e5950030 	ldr	r0, [r5, #48]	; 0x30                          
    c984:	eb0005c1 	bl	e090 <rtems_barrier_wait>                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c988:	e1a01008 	mov	r1, r8                                        
    c98c:	e1a02001 	mov	r2, r1                                        
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
    c990:	e2508000 	subs	r8, r0, #0                                   
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c994:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
    c998:	13e08003 	mvnne	r8, #3                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
    c99c:	ebffebdf 	bl	7920 <rtems_semaphore_obtain>                  
    c9a0:	e3500000 	cmp	r0, #0                                        
    c9a4:	e59d3000 	ldr	r3, [sp]                                      
    c9a8:	1a00003e 	bne	caa8 <pipe_write+0x1d0>                       
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
    c9ac:	e595201c 	ldr	r2, [r5, #28]                                 
      if (ret != 0)                                                   
    c9b0:	e3580000 	cmp	r8, #0                                        
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
    c9b4:	e2422001 	sub	r2, r2, #1                                    
    c9b8:	e585201c 	str	r2, [r5, #28]                                 
      if (ret != 0)                                                   
    c9bc:	1a00002c 	bne	ca74 <pipe_write+0x19c>                       
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
    c9c0:	e5952010 	ldr	r2, [r5, #16]                                 
    c9c4:	e3520000 	cmp	r2, #0                                        
    c9c8:	0a000030 	beq	ca90 <pipe_write+0x1b8>                       
    c9cc:	e5958004 	ldr	r8, [r5, #4]                                  
                                                                      
  /* 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) {                                
    c9d0:	e595100c 	ldr	r1, [r5, #12]                                 
    c9d4:	e0612008 	rsb	r2, r1, r8                                    
    c9d8:	e152000a 	cmp	r2, sl                                        
    c9dc:	3affffdd 	bcc	c958 <pipe_write+0x80>                        
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    c9e0:	e5950008 	ldr	r0, [r5, #8]                                  
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    c9e4:	e069a004 	rsb	sl, r9, r4                                    
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    c9e8:	e0810000 	add	r0, r1, r0                                    
    c9ec:	e1a01008 	mov	r1, r8                                        
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    c9f0:	e152000a 	cmp	r2, sl                                        
    c9f4:	31a0a002 	movcc	sl, r2                                      
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    c9f8:	e58d3000 	str	r3, [sp]                                      
    c9fc:	eb003ddf 	bl	1c180 <__umodsi3>                              
    ca00:	e0608008 	rsb	r8, r0, r8                                    
    if (chunk > chunk1) {                                             
    ca04:	e15a0008 	cmp	sl, r8                                        
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    ca08:	e1a0c000 	mov	ip, r0                                        
    if (chunk > chunk1) {                                             
    ca0c:	e59d3000 	ldr	r3, [sp]                                      
    ca10:	da000028 	ble	cab8 <pipe_write+0x1e0>                       
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
    ca14:	e5950000 	ldr	r0, [r5]                                      
    ca18:	e0861009 	add	r1, r6, r9                                    
    ca1c:	e1a02008 	mov	r2, r8                                        
    ca20:	e080000c 	add	r0, r0, ip                                    
    ca24:	eb0011dc 	bl	1119c <memcpy>                                 
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    ca28:	e0881009 	add	r1, r8, r9                                    
    ca2c:	e5950000 	ldr	r0, [r5]                                      
    ca30:	e0861001 	add	r1, r6, r1                                    
    ca34:	e068200a 	rsb	r2, r8, sl                                    
    ca38:	eb0011d7 	bl	1119c <memcpy>                                 
    ca3c:	e59d3000 	ldr	r3, [sp]                                      
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    ca40:	e595200c 	ldr	r2, [r5, #12]                                 
    if (pipe->waitingReaders > 0)                                     
    ca44:	e5951018 	ldr	r1, [r5, #24]                                 
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    ca48:	e082200a 	add	r2, r2, sl                                    
    if (pipe->waitingReaders > 0)                                     
    ca4c:	e3510000 	cmp	r1, #0                                        
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    ca50:	e585200c 	str	r2, [r5, #12]                                 
    if (pipe->waitingReaders > 0)                                     
    ca54:	1a00001f 	bne	cad8 <pipe_write+0x200>                       
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
    ca58:	e087700a 	add	r7, r7, sl                                    
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    ca5c:	e1540007 	cmp	r4, r7                                        
    ca60:	e1a09007 	mov	r9, r7                                        
    ca64:	85958004 	ldrhi	r8, [r5, #4]                                
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
    ca68:	83a0a001 	movhi	sl, #1                                      
    ca6c:	8affffb5 	bhi	c948 <pipe_write+0x70>                        
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    ca70:	e3a08000 	mov	r8, #0                                        
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
    ca74:	e5950028 	ldr	r0, [r5, #40]	; 0x28                          
    ca78:	ebffebf1 	bl	7a44 <rtems_semaphore_release>                 
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    ca7c:	e3780020 	cmn	r8, #32                                       
    ca80:	0a000004 	beq	ca98 <pipe_write+0x1c0>                       
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
    ca84:	e3570000 	cmp	r7, #0                                        
    ca88:	d1a07008 	movle	r7, r8                                      
    ca8c:	eaffff98 	b	c8f4 <pipe_write+0x1c>                          
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
    ca90:	e3e0801f 	mvn	r8, #31                                       
    ca94:	eafffff6 	b	ca74 <pipe_write+0x19c>                         
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
    ca98:	eb00022a 	bl	d348 <getpid>                                  
    ca9c:	e3a0100d 	mov	r1, #13                                       
    caa0:	eb0002f6 	bl	d680 <kill>                                    
    caa4:	eafffff6 	b	ca84 <pipe_write+0x1ac>                         
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
    caa8:	e3e08003 	mvn	r8, #3                                        <== NOT EXECUTED
    caac:	eafffff4 	b	ca84 <pipe_write+0x1ac>                         <== NOT EXECUTED
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
    cab0:	e3e0800a 	mvn	r8, #10                                       
    cab4:	eaffffee 	b	ca74 <pipe_write+0x19c>                         
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
    cab8:	e5950000 	ldr	r0, [r5]                                      
    cabc:	e0861009 	add	r1, r6, r9                                    
    cac0:	e080000c 	add	r0, r0, ip                                    
    cac4:	e1a0200a 	mov	r2, sl                                        
    cac8:	e58d3000 	str	r3, [sp]                                      
    cacc:	eb0011b2 	bl	1119c <memcpy>                                 
    cad0:	e59d3000 	ldr	r3, [sp]                                      
    cad4:	eaffffd9 	b	ca40 <pipe_write+0x168>                         
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
    cad8:	e595002c 	ldr	r0, [r5, #44]	; 0x2c                          
    cadc:	e1a0100b 	mov	r1, fp                                        
    cae0:	e58d3000 	str	r3, [sp]                                      
    cae4:	eb000551 	bl	e030 <rtems_barrier_release>                   
    cae8:	e59d3000 	ldr	r3, [sp]                                      
    caec:	eaffffd9 	b	ca58 <pipe_write+0x180>                         
                                                                      

0000a86c <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
    a86c:	e3500000 	cmp	r0, #0                                        
    a870:	0a00000e 	beq	a8b0 <pthread_attr_setschedpolicy+0x44>       
    a874:	e5903000 	ldr	r3, [r0]                                      
    a878:	e3530000 	cmp	r3, #0                                        
    a87c:	0a00000b 	beq	a8b0 <pthread_attr_setschedpolicy+0x44>       
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
    a880:	e3510004 	cmp	r1, #4                                        
    a884:	9a000001 	bls	a890 <pthread_attr_setschedpolicy+0x24>       
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
    a888:	e3a00086 	mov	r0, #134	; 0x86                               
  }                                                                   
}                                                                     
    a88c:	e12fff1e 	bx	lr                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
    a890:	e3a03001 	mov	r3, #1                                        
    a894:	e1a03113 	lsl	r3, r3, r1                                    
    a898:	e3130017 	tst	r3, #23                                       
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
    a89c:	15801014 	strne	r1, [r0, #20]                               
      return 0;                                                       
    a8a0:	13a00000 	movne	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
    a8a4:	112fff1e 	bxne	lr                                           
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
    a8a8:	e3a00086 	mov	r0, #134	; 0x86                               
  }                                                                   
}                                                                     
    a8ac:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
    a8b0:	e3a00016 	mov	r0, #22                                       
    a8b4:	e12fff1e 	bx	lr                                             
                                                                      

00007724 <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
    7724:	e3500000 	cmp	r0, #0                                        
    7728:	0a000008 	beq	7750 <pthread_mutexattr_setpshared+0x2c>      
    772c:	e5903000 	ldr	r3, [r0]                                      
    7730:	e3530000 	cmp	r3, #0                                        
    7734:	0a000005 	beq	7750 <pthread_mutexattr_setpshared+0x2c>      
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    7738:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
    773c:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
    7740:	93a00000 	movls	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    7744:	912fff1e 	bxls	lr                                           
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
    7748:	e3a00016 	mov	r0, #22                                       
  }                                                                   
}                                                                     
    774c:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
    7750:	e3a00016 	mov	r0, #22                                       
    7754:	e12fff1e 	bx	lr                                             
                                                                      

00006b7c <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
    6b7c:	e92d4030 	push	{r4, r5, lr}                                 
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    6b80:	e2505000 	subs	r5, r0, #0                                   
                                                                      
int pthread_rwlock_timedrdlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
    6b84:	e24dd00c 	sub	sp, sp, #12                                   
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    6b88:	0a00001d 	beq	6c04 <pthread_rwlock_timedrdlock+0x88>        
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
    6b8c:	e1a00001 	mov	r0, r1                                        
    6b90:	e28d1004 	add	r1, sp, #4                                    
    6b94:	eb001a03 	bl	d3a8 <_POSIX_Absolute_timeout_to_ticks>        
    6b98:	e5951000 	ldr	r1, [r5]                                      
    6b9c:	e1a04000 	mov	r4, r0                                        
    6ba0:	e28d2008 	add	r2, sp, #8                                    
    6ba4:	e59f0098 	ldr	r0, [pc, #152]	; 6c44 <pthread_rwlock_timedrdlock+0xc8>
    6ba8:	eb000ab1 	bl	9674 <_Objects_Get>                            
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
    6bac:	e59d3008 	ldr	r3, [sp, #8]                                  
    6bb0:	e3530000 	cmp	r3, #0                                        
    6bb4:	1a000012 	bne	6c04 <pthread_rwlock_timedrdlock+0x88>        
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
    6bb8:	e5951000 	ldr	r1, [r5]                                      
int	_EXFUN(pthread_rwlock_init,                                       
	(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));  
int	_EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));     
int	_EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedrdlock,                                
    6bbc:	e3540003 	cmp	r4, #3                                        
    6bc0:	13a05000 	movne	r5, #0                                      
    6bc4:	03a05001 	moveq	r5, #1                                      
    6bc8:	e58d3000 	str	r3, [sp]                                      
    6bcc:	e2800010 	add	r0, r0, #16                                   
    6bd0:	e1a02005 	mov	r2, r5                                        
    6bd4:	e59d3004 	ldr	r3, [sp, #4]                                  
    6bd8:	eb00073d 	bl	88d4 <_CORE_RWLock_Obtain_for_reading>         
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
    6bdc:	eb000d82 	bl	a1ec <_Thread_Enable_dispatch>                 
      if ( !do_wait ) {                                               
    6be0:	e3550000 	cmp	r5, #0                                        
    6be4:	1a000011 	bne	6c30 <pthread_rwlock_timedrdlock+0xb4>        
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
    6be8:	e59f3058 	ldr	r3, [pc, #88]	; 6c48 <pthread_rwlock_timedrdlock+0xcc>
    6bec:	e5933004 	ldr	r3, [r3, #4]                                  
    6bf0:	e5930034 	ldr	r0, [r3, #52]	; 0x34                          
    6bf4:	e3500002 	cmp	r0, #2                                        
    6bf8:	0a000004 	beq	6c10 <pthread_rwlock_timedrdlock+0x94>        
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6bfc:	eb000046 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code>
    6c00:	ea000000 	b	6c08 <pthread_rwlock_timedrdlock+0x8c>          
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
	    return EINVAL;                                                   
    6c04:	e3a00016 	mov	r0, #22                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
    6c08:	e28dd00c 	add	sp, sp, #12                                   
    6c0c:	e8bd8030 	pop	{r4, r5, pc}                                  
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
    6c10:	e3540000 	cmp	r4, #0                                        
    6c14:	0afffffa 	beq	6c04 <pthread_rwlock_timedrdlock+0x88>        
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
    6c18:	e2444001 	sub	r4, r4, #1                                    
    6c1c:	e3540001 	cmp	r4, #1                                        
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
    6c20:	93a00074 	movls	r0, #116	; 0x74                             
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
    6c24:	9afffff7 	bls	6c08 <pthread_rwlock_timedrdlock+0x8c>        
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6c28:	eb00003b 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code>
    6c2c:	eafffff5 	b	6c08 <pthread_rwlock_timedrdlock+0x8c>          <== NOT EXECUTED
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
    6c30:	e59f3010 	ldr	r3, [pc, #16]	; 6c48 <pthread_rwlock_timedrdlock+0xcc>
    6c34:	e5933004 	ldr	r3, [r3, #4]                                  
    6c38:	e5930034 	ldr	r0, [r3, #52]	; 0x34                          
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6c3c:	eb000036 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code>
    6c40:	eafffff0 	b	6c08 <pthread_rwlock_timedrdlock+0x8c>          
                                                                      

00006c4c <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
    6c4c:	e92d4030 	push	{r4, r5, lr}                                 
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    6c50:	e2505000 	subs	r5, r0, #0                                   
                                                                      
int pthread_rwlock_timedwrlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
    6c54:	e24dd00c 	sub	sp, sp, #12                                   
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    6c58:	0a00001d 	beq	6cd4 <pthread_rwlock_timedwrlock+0x88>        
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
    6c5c:	e1a00001 	mov	r0, r1                                        
    6c60:	e28d1004 	add	r1, sp, #4                                    
    6c64:	eb0019cf 	bl	d3a8 <_POSIX_Absolute_timeout_to_ticks>        
    6c68:	e5951000 	ldr	r1, [r5]                                      
    6c6c:	e1a04000 	mov	r4, r0                                        
    6c70:	e28d2008 	add	r2, sp, #8                                    
    6c74:	e59f0098 	ldr	r0, [pc, #152]	; 6d14 <pthread_rwlock_timedwrlock+0xc8>
    6c78:	eb000a7d 	bl	9674 <_Objects_Get>                            
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
    6c7c:	e59d3008 	ldr	r3, [sp, #8]                                  
    6c80:	e3530000 	cmp	r3, #0                                        
    6c84:	1a000012 	bne	6cd4 <pthread_rwlock_timedwrlock+0x88>        
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
    6c88:	e5951000 	ldr	r1, [r5]                                      
        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int	_EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedwrlock,                                
    6c8c:	e3540003 	cmp	r4, #3                                        
    6c90:	13a05000 	movne	r5, #0                                      
    6c94:	03a05001 	moveq	r5, #1                                      
    6c98:	e58d3000 	str	r3, [sp]                                      
    6c9c:	e2800010 	add	r0, r0, #16                                   
    6ca0:	e1a02005 	mov	r2, r5                                        
    6ca4:	e59d3004 	ldr	r3, [sp, #4]                                  
    6ca8:	eb000740 	bl	89b0 <_CORE_RWLock_Obtain_for_writing>         
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
    6cac:	eb000d4e 	bl	a1ec <_Thread_Enable_dispatch>                 
      if ( !do_wait &&                                                
    6cb0:	e3550000 	cmp	r5, #0                                        
    6cb4:	1a000011 	bne	6d00 <pthread_rwlock_timedwrlock+0xb4>        
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
    6cb8:	e59f3058 	ldr	r3, [pc, #88]	; 6d18 <pthread_rwlock_timedwrlock+0xcc>
    6cbc:	e5933004 	ldr	r3, [r3, #4]                                  
    6cc0:	e5930034 	ldr	r0, [r3, #52]	; 0x34                          
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
    6cc4:	e3500002 	cmp	r0, #2                                        
    6cc8:	0a000004 	beq	6ce0 <pthread_rwlock_timedwrlock+0x94>        
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6ccc:	eb000012 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code>
    6cd0:	ea000000 	b	6cd8 <pthread_rwlock_timedwrlock+0x8c>          
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
	  return EINVAL;                                                     
    6cd4:	e3a00016 	mov	r0, #22                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
    6cd8:	e28dd00c 	add	sp, sp, #12                                   
    6cdc:	e8bd8030 	pop	{r4, r5, pc}                                  
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
    6ce0:	e3540000 	cmp	r4, #0                                        
    6ce4:	0afffffa 	beq	6cd4 <pthread_rwlock_timedwrlock+0x88>        
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
    6ce8:	e2444001 	sub	r4, r4, #1                                    
    6cec:	e3540001 	cmp	r4, #1                                        
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
    6cf0:	93a00074 	movls	r0, #116	; 0x74                             
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
    6cf4:	9afffff7 	bls	6cd8 <pthread_rwlock_timedwrlock+0x8c>        
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6cf8:	eb000007 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED
    6cfc:	eafffff5 	b	6cd8 <pthread_rwlock_timedwrlock+0x8c>          <== NOT EXECUTED
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
    6d00:	e59f3010 	ldr	r3, [pc, #16]	; 6d18 <pthread_rwlock_timedwrlock+0xcc>
    6d04:	e5933004 	ldr	r3, [r3, #4]                                  
    6d08:	e5930034 	ldr	r0, [r3, #52]	; 0x34                          
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
    6d0c:	eb000002 	bl	6d1c <_POSIX_RWLock_Translate_core_RWLock_return_code>
    6d10:	eafffff0 	b	6cd8 <pthread_rwlock_timedwrlock+0x8c>          
                                                                      

000074b4 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
    74b4:	e3500000 	cmp	r0, #0                                        
    74b8:	0a000008 	beq	74e0 <pthread_rwlockattr_setpshared+0x2c>     
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    74bc:	e5903000 	ldr	r3, [r0]                                      
    74c0:	e3530000 	cmp	r3, #0                                        
    74c4:	0a000005 	beq	74e0 <pthread_rwlockattr_setpshared+0x2c>     
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    74c8:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
    74cc:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
    74d0:	93a00000 	movls	r0, #0                                      
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
    74d4:	912fff1e 	bxls	lr                                           
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
    74d8:	e3a00016 	mov	r0, #22                                       
  }                                                                   
}                                                                     
    74dc:	e12fff1e 	bx	lr                                             
{                                                                     
  if ( !attr )                                                        
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
    74e0:	e3a00016 	mov	r0, #22                                       
    74e4:	e12fff1e 	bx	lr                                             
                                                                      

00004024 <readv>: int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd );
    4024:	e59f313c 	ldr	r3, [pc, #316]	; 4168 <readv+0x144>           
    4028:	e5933000 	ldr	r3, [r3]                                      
    402c:	e1500003 	cmp	r0, r3                                        
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
    4030:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    4034:	e1a04002 	mov	r4, r2                                        
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
    4038:	2a000045 	bcs	4154 <readv+0x130>                            
  iop = rtems_libio_iop( fd );                                        
    403c:	e59f3128 	ldr	r3, [pc, #296]	; 416c <readv+0x148>           
    4040:	e5933000 	ldr	r3, [r3]                                      
    4044:	e0600180 	rsb	r0, r0, r0, lsl #3                            
    4048:	e0836180 	add	r6, r3, r0, lsl #3                            
  rtems_libio_check_is_open( iop );                                   
    404c:	e5963014 	ldr	r3, [r6, #20]                                 
    4050:	e3130c01 	tst	r3, #256	; 0x100                              
    4054:	0a00003e 	beq	4154 <readv+0x130>                            
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
    4058:	e3130002 	tst	r3, #2                                        
    405c:	0a000036 	beq	413c <readv+0x118>                            
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
    4060:	e3510000 	cmp	r1, #0                                        
    4064:	0a000034 	beq	413c <readv+0x118>                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    4068:	e3520000 	cmp	r2, #0                                        
    406c:	da000032 	ble	413c <readv+0x118>                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
    4070:	e3520b01 	cmp	r2, #1024	; 0x400                             
    4074:	ca000030 	bgt	413c <readv+0x118>                            
    4078:	e3a02000 	mov	r2, #0                                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    407c:	e1a05001 	mov	r5, r1                                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
    4080:	e1a03001 	mov	r3, r1                                        
    4084:	e3a07001 	mov	r7, #1                                        
    4088:	e1a01002 	mov	r1, r2                                        
    408c:	ea000000 	b	4094 <readv+0x70>                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    4090:	e1a0100c 	mov	r1, ip                                        
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
    4094:	e5930000 	ldr	r0, [r3]                                      
    4098:	e3500000 	cmp	r0, #0                                        
   *  are obvious errors in the iovec.  So this extra loop ensures    
   *  that we do not do anything if there is an argument error.       
   */                                                                 
                                                                      
  all_zeros = true;                                                   
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    409c:	e2822001 	add	r2, r2, #1                                    
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
    40a0:	0a000025 	beq	413c <readv+0x118>                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    40a4:	e5930004 	ldr	r0, [r3, #4]                                  
    40a8:	e081c000 	add	ip, r1, r0                                    
    if ( total < old )                                                
    40ac:	e151000c 	cmp	r1, ip                                        
    40b0:	ca000021 	bgt	413c <readv+0x118>                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
    40b4:	e3500000 	cmp	r0, #0                                        
    40b8:	13a07000 	movne	r7, #0                                      
   *  are obvious errors in the iovec.  So this extra loop ensures    
   *  that we do not do anything if there is an argument error.       
   */                                                                 
                                                                      
  all_zeros = true;                                                   
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    40bc:	e1540002 	cmp	r4, r2                                        
    40c0:	e2833008 	add	r3, r3, #8                                    
    40c4:	cafffff1 	bgt	4090 <readv+0x6c>                             
  /*                                                                  
   *  A readv with all zeros logically has no effect.  Even though    
   *  OpenGroup didn't address this case as they did with writev(),   
   *  we will handle it the same way for symmetry.                    
   */                                                                 
  if ( all_zeros == true ) {                                          
    40c8:	e3570000 	cmp	r7, #0                                        
    return 0;                                                         
    40cc:	13a08000 	movne	r8, #0                                      
  /*                                                                  
   *  A readv with all zeros logically has no effect.  Even though    
   *  OpenGroup didn't address this case as they did with writev(),   
   *  we will handle it the same way for symmetry.                    
   */                                                                 
  if ( all_zeros == true ) {                                          
    40d0:	1a00001d 	bne	414c <readv+0x128>                            
    40d4:	e1a08007 	mov	r8, r7                                        
    40d8:	ea00000d 	b	4114 <readv+0xf0>                               
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
    40dc:	0a000006 	beq	40fc <readv+0xd8>                             
      iop->offset += bytes;                                           
    40e0:	e286300c 	add	r3, r6, #12                                   
    40e4:	e893000c 	ldm	r3, {r2, r3}                                  
    40e8:	e0922000 	adds	r2, r2, r0                                   
    40ec:	e0a33fc0 	adc	r3, r3, r0, asr #31                           
    40f0:	e586200c 	str	r2, [r6, #12]                                 
    40f4:	e5863010 	str	r3, [r6, #16]                                 
      total       += bytes;                                           
    40f8:	e0888000 	add	r8, r8, r0                                    
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
    40fc:	e5953004 	ldr	r3, [r5, #4]                                  
    4100:	e1500003 	cmp	r0, r3                                        
    4104:	1a000010 	bne	414c <readv+0x128>                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    4108:	e1540007 	cmp	r4, r7                                        
    410c:	e2855008 	add	r5, r5, #8                                    
    4110:	da00000d 	ble	414c <readv+0x128>                            
    bytes = (*iop->pathinfo.handlers->read_h)(                        
    4114:	e8950006 	ldm	r5, {r1, r2}                                  
    4118:	e5963020 	ldr	r3, [r6, #32]                                 
    411c:	e1a00006 	mov	r0, r6                                        
    4120:	e1a0e00f 	mov	lr, pc                                        
    4124:	e593f008 	ldr	pc, [r3, #8]                                  
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
    4128:	e3500000 	cmp	r0, #0                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    412c:	e2877001 	add	r7, r7, #1                                    
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
    4130:	aaffffe9 	bge	40dc <readv+0xb8>                             
      return -1;                                                      
    4134:	e3e08000 	mvn	r8, #0                                        
    4138:	ea000003 	b	414c <readv+0x128>                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old )                                                
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    413c:	eb002abc 	bl	ec34 <__errno>                                 
    4140:	e3a03016 	mov	r3, #22                                       
    4144:	e5803000 	str	r3, [r0]                                      
    4148:	e3e08000 	mvn	r8, #0                                        
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
    414c:	e1a00008 	mov	r0, r8                                        
    4150:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
    4154:	eb002ab6 	bl	ec34 <__errno>                                 
    4158:	e3a03009 	mov	r3, #9                                        
    415c:	e5803000 	str	r3, [r0]                                      
    4160:	e3e08000 	mvn	r8, #0                                        
    4164:	eafffff8 	b	414c <readv+0x128>                              
                                                                      

00012d88 <realloc>: void *realloc( void *ptr, size_t size ) {
   12d88:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   12d8c:	e59f2118 	ldr	r2, [pc, #280]	; 12eac <realloc+0x124>        
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
   12d90:	e59f5118 	ldr	r5, [pc, #280]	; 12eb0 <realloc+0x128>        
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   12d94:	e5922000 	ldr	r2, [r2]                                      
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
   12d98:	e5953010 	ldr	r3, [r5, #16]                                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   12d9c:	e3520003 	cmp	r2, #3                                        
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
   12da0:	e2833001 	add	r3, r3, #1                                    
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
   12da4:	e24dd004 	sub	sp, sp, #4                                    
   12da8:	e1a04000 	mov	r4, r0                                        
   12dac:	e1a06001 	mov	r6, r1                                        
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
   12db0:	e5853010 	str	r3, [r5, #16]                                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
   12db4:	0a000020 	beq	12e3c <realloc+0xb4>                          
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
   12db8:	e3540000 	cmp	r4, #0                                        
   12dbc:	0a00001a 	beq	12e2c <realloc+0xa4>                          
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
   12dc0:	e3560000 	cmp	r6, #0                                        
   12dc4:	0a00000f 	beq	12e08 <realloc+0x80>                          
    free( ptr );                                                      
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
   12dc8:	e59f70e4 	ldr	r7, [pc, #228]	; 12eb4 <realloc+0x12c>        
   12dcc:	e1a01004 	mov	r1, r4                                        
   12dd0:	e5970000 	ldr	r0, [r7]                                      
   12dd4:	e1a0200d 	mov	r2, sp                                        
   12dd8:	eb000065 	bl	12f74 <_Protected_heap_Get_block_size>         
   12ddc:	e2508000 	subs	r8, r0, #0                                   
   12de0:	0a00000c 	beq	12e18 <realloc+0x90>                          
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
   12de4:	e5970000 	ldr	r0, [r7]                                      
   12de8:	e1a01004 	mov	r1, r4                                        
   12dec:	e1a02006 	mov	r2, r6                                        
   12df0:	eb000070 	bl	12fb8 <_Protected_heap_Resize_block>           
   12df4:	e3500000 	cmp	r0, #0                                        
   12df8:	0a00001a 	beq	12e68 <realloc+0xe0>                          
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
   12dfc:	e1a00004 	mov	r0, r4                                        
   12e00:	e28dd004 	add	sp, sp, #4                                    
   12e04:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
    free( ptr );                                                      
   12e08:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
   12e0c:	ebffbc44 	bl	1f24 <free>                                    <== NOT EXECUTED
    return (void *) 0;                                                
   12e10:	e1a04006 	mov	r4, r6                                        <== NOT EXECUTED
   12e14:	eafffff8 	b	12dfc <realloc+0x74>                            <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
    errno = EINVAL;                                                   
   12e18:	ebffeb5a 	bl	db88 <__errno>                                 
   12e1c:	e3a03016 	mov	r3, #22                                       
   12e20:	e5803000 	str	r3, [r0]                                      
    return (void *) 0;                                                
   12e24:	e1a04008 	mov	r4, r8                                        
   12e28:	eafffff3 	b	12dfc <realloc+0x74>                            
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
   12e2c:	e1a00006 	mov	r0, r6                                        
   12e30:	ebffbd15 	bl	228c <malloc>                                  
   12e34:	e1a04000 	mov	r4, r0                                        
   12e38:	eaffffef 	b	12dfc <realloc+0x74>                            
  /*                                                                  
   *  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)                           
   12e3c:	e59f3074 	ldr	r3, [pc, #116]	; 12eb8 <realloc+0x130>        
   12e40:	e5933000 	ldr	r3, [r3]                                      
   12e44:	e3530000 	cmp	r3, #0                                        
      return (void *) 0;                                              
   12e48:	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)                           
   12e4c:	1affffea 	bne	12dfc <realloc+0x74>                          
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
   12e50:	e59f2064 	ldr	r2, [pc, #100]	; 12ebc <realloc+0x134>        
   12e54:	e5922000 	ldr	r2, [r2]                                      
   12e58:	e3520000 	cmp	r2, #0                                        
      return (void *) 0;                                              
   12e5c:	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)                                          
   12e60:	0affffd4 	beq	12db8 <realloc+0x30>                          
   12e64:	eaffffe4 	b	12dfc <realloc+0x74>                            <== NOT EXECUTED
   *  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 );                                          
   12e68:	e1a00006 	mov	r0, r6                                        
   12e6c:	ebffbd06 	bl	228c <malloc>                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
   12e70:	e5953004 	ldr	r3, [r5, #4]                                  
                                                                      
  if ( !new_area ) {                                                  
   12e74:	e2507000 	subs	r7, r0, #0                                   
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
   12e78:	e2433001 	sub	r3, r3, #1                                    
   12e7c:	e5853004 	str	r3, [r5, #4]                                  
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
   12e80:	01a04007 	moveq	r4, r7                                      
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
   12e84:	0affffdc 	beq	12dfc <realloc+0x74>                          
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
   12e88:	e59d2000 	ldr	r2, [sp]                                      
   12e8c:	e1a01004 	mov	r1, r4                                        
   12e90:	e1560002 	cmp	r6, r2                                        
   12e94:	31a02006 	movcc	r2, r6                                      
   12e98:	ebffed68 	bl	e440 <memcpy>                                  
  free( ptr );                                                        
   12e9c:	e1a00004 	mov	r0, r4                                        
   12ea0:	ebffbc1f 	bl	1f24 <free>                                    
                                                                      
  return new_area;                                                    
   12ea4:	e1a04007 	mov	r4, r7                                        
   12ea8:	eaffffd3 	b	12dfc <realloc+0x74>                            
                                                                      

00006880 <rtems_aio_enqueue>: * errno - otherwise */ int rtems_aio_enqueue (rtems_aio_request *req) {
    6880:	e92d41f0 	push	{r4, r5, r6, r7, r8, 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);             
    6884:	e59f41c4 	ldr	r4, [pc, #452]	; 6a50 <rtems_aio_enqueue+0x1d0>
 *         errno     - otherwise                                      
 */                                                                   
                                                                      
int                                                                   
rtems_aio_enqueue (rtems_aio_request *req)                            
{                                                                     
    6888:	e24dd024 	sub	sp, sp, #36	; 0x24                            
    688c:	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);             
    6890:	e1a00004 	mov	r0, r4                                        
    6894:	eb000256 	bl	71f4 <pthread_mutex_lock>                      
  if (result != 0) {                                                  
    6898:	e2505000 	subs	r5, r0, #0                                   
    689c:	1a00002a 	bne	694c <rtems_aio_enqueue+0xcc>                 
    return result;                                                    
  }                                                                   
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
    68a0:	eb000486 	bl	7ac0 <pthread_self>                            
    68a4:	e28d101c 	add	r1, sp, #28                                   
    68a8:	e1a0200d 	mov	r2, sp                                        
    68ac:	eb000380 	bl	76b4 <pthread_getschedparam>                   
                                                                      
  req->caller_thread = pthread_self ();                               
    68b0:	eb000482 	bl	7ac0 <pthread_self>                            
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
    68b4:	e5963014 	ldr	r3, [r6, #20]                                 
    68b8:	e59dc000 	ldr	ip, [sp]                                      
    68bc:	e5932014 	ldr	r2, [r3, #20]                                 
    68c0:	e062200c 	rsb	r2, r2, ip                                    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
    68c4:	e5941068 	ldr	r1, [r4, #104]	; 0x68                         
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
    68c8:	e586200c 	str	r2, [r6, #12]                                 
  req->policy = policy;                                               
    68cc:	e59d201c 	ldr	r2, [sp, #28]                                 
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
    68d0:	e3510000 	cmp	r1, #0                                        
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
    68d4:	e5862008 	str	r2, [r6, #8]                                  
  req->aiocbp->error_code = EINPROGRESS;                              
    68d8:	e3a02077 	mov	r2, #119	; 0x77                               
                                                                      
  /* _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 ();                               
    68dc:	e5860010 	str	r0, [r6, #16]                                 
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
    68e0:	e5832030 	str	r2, [r3, #48]	; 0x30                          
  req->aiocbp->return_value = 0;                                      
    68e4:	e5835034 	str	r5, [r3, #52]	; 0x34                          
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
    68e8:	1a000002 	bne	68f8 <rtems_aio_enqueue+0x78>                 
    68ec:	e5942064 	ldr	r2, [r4, #100]	; 0x64                         
    68f0:	e3520004 	cmp	r2, #4                                        
    68f4:	da000017 	ble	6958 <rtems_aio_enqueue+0xd8>                 
  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,     
    68f8:	e59f0154 	ldr	r0, [pc, #340]	; 6a54 <rtems_aio_enqueue+0x1d4>
    68fc:	e5931000 	ldr	r1, [r3]                                      
    6900:	e3a02000 	mov	r2, #0                                        
    6904:	ebfffec3 	bl	6418 <rtems_aio_search_fd>                     
				     req->aiocbp->aio_fildes, 0);                                 
      if (r_chain != NULL)                                            
    6908:	e2507000 	subs	r7, r0, #0                                   
    690c:	0a00002e 	beq	69cc <rtems_aio_enqueue+0x14c>                
	{                                                                    
	  pthread_mutex_lock (&r_chain->mutex);                              
    6910:	e287401c 	add	r4, r7, #28                                   
    6914:	e1a00004 	mov	r0, r4                                        
    6918:	eb000235 	bl	71f4 <pthread_mutex_lock>                      
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
    691c:	e2870008 	add	r0, r7, #8                                    
    6920:	e1a01006 	mov	r1, r6                                        
    6924:	ebffff90 	bl	676c <rtems_aio_insert_prio>                   
	  pthread_cond_signal (&r_chain->cond);                              
    6928:	e2870020 	add	r0, r7, #32                                   
    692c:	eb00011a 	bl	6d9c <pthread_cond_signal>                     
	  pthread_mutex_unlock (&r_chain->mutex);                            
    6930:	e1a00004 	mov	r0, r4                                        
    6934:	eb00024f 	bl	7278 <pthread_mutex_unlock>                    
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
    6938:	e59f0110 	ldr	r0, [pc, #272]	; 6a50 <rtems_aio_enqueue+0x1d0>
    693c:	eb00024d 	bl	7278 <pthread_mutex_unlock>                    
  return 0;                                                           
}                                                                     
    6940:	e1a00005 	mov	r0, r5                                        
    6944:	e28dd024 	add	sp, sp, #36	; 0x24                            
    6948:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
  if (result != 0) {                                                  
    free (req);                                                       
    694c:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6950:	ebfff0c2 	bl	2c60 <free>                                    <== NOT EXECUTED
    return result;                                                    
    6954:	eafffff9 	b	6940 <rtems_aio_enqueue+0xc0>                   <== NOT EXECUTED
  if ((aio_request_queue.idle_threads == 0) &&                        
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
    6958:	e5931000 	ldr	r1, [r3]                                      
    695c:	e2840048 	add	r0, r4, #72	; 0x48                            
    6960:	e3a02001 	mov	r2, #1                                        
    6964:	ebfffeab 	bl	6418 <rtems_aio_search_fd>                     
                                                                      
      if (r_chain->new_fd == 1) {                                     
    6968:	e5903018 	ldr	r3, [r0, #24]                                 
    696c:	e3530001 	cmp	r3, #1                                        
  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);
    6970:	e1a07000 	mov	r7, r0                                        
                                                                      
      if (r_chain->new_fd == 1) {                                     
    6974:	1affffe5 	bne	6910 <rtems_aio_enqueue+0x90>                 
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
    6978:	e1a01006 	mov	r1, r6                                        
    697c:	e2800008 	add	r0, r0, #8                                    
    6980:	eb0008a3 	bl	8c14 <_Chain_Insert>                           
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
	pthread_mutex_init (&r_chain->mutex, NULL);                          
    6984:	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;                                                 
    6988:	e5875018 	str	r5, [r7, #24]                                 
	pthread_mutex_init (&r_chain->mutex, NULL);                          
    698c:	e287001c 	add	r0, r7, #28                                   
    6990:	eb0001c4 	bl	70a8 <pthread_mutex_init>                      
	pthread_cond_init (&r_chain->cond, NULL);                            
    6994:	e1a01005 	mov	r1, r5                                        
    6998:	e2870020 	add	r0, r7, #32                                   
    699c:	eb0000cd 	bl	6cd8 <pthread_cond_init>                       
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
    69a0:	e28d0020 	add	r0, sp, #32                                   
    69a4:	e2841008 	add	r1, r4, #8                                    
    69a8:	e59f20a8 	ldr	r2, [pc, #168]	; 6a58 <rtems_aio_enqueue+0x1d8>
    69ac:	e1a03007 	mov	r3, r7                                        
    69b0:	eb000296 	bl	7410 <pthread_create>                          
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
    69b4:	e2506000 	subs	r6, r0, #0                                   
    69b8:	1a000020 	bne	6a40 <rtems_aio_enqueue+0x1c0>                
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  return result;                                                     
	}                                                                    
	++aio_request_queue.active_threads;                                  
    69bc:	e5943064 	ldr	r3, [r4, #100]	; 0x64                         
    69c0:	e2833001 	add	r3, r3, #1                                    
    69c4:	e5843064 	str	r3, [r4, #100]	; 0x64                         
    69c8:	eaffffda 	b	6938 <rtems_aio_enqueue+0xb8>                   
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
    69cc:	e5963014 	ldr	r3, [r6, #20]                                 
    69d0:	e59f0084 	ldr	r0, [pc, #132]	; 6a5c <rtems_aio_enqueue+0x1dc>
    69d4:	e5931000 	ldr	r1, [r3]                                      
    69d8:	e3a02001 	mov	r2, #1                                        
    69dc:	ebfffe8d 	bl	6418 <rtems_aio_search_fd>                     
                                                                      
	if (r_chain->new_fd == 1) {                                          
    69e0:	e5903018 	ldr	r3, [r0, #24]                                 
    69e4:	e3530001 	cmp	r3, #1                                        
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
    69e8:	e1a08000 	mov	r8, r0                                        
                                                                      
	if (r_chain->new_fd == 1) {                                          
    69ec:	0a000003 	beq	6a00 <rtems_aio_enqueue+0x180>                
	  pthread_cond_init (&r_chain->cond, NULL);                          
	  pthread_cond_signal (&aio_request_queue.new_req);                  
	  ++aio_request_queue.idle_threads;                                  
	} else                                                               
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
    69f0:	e2800008 	add	r0, r0, #8                                    
    69f4:	e1a01006 	mov	r1, r6                                        
    69f8:	ebffff5b 	bl	676c <rtems_aio_insert_prio>                   
    69fc:	eaffffcd 	b	6938 <rtems_aio_enqueue+0xb8>                   
    6a00:	e2800008 	add	r0, r0, #8                                    
    6a04:	e1a01006 	mov	r1, r6                                        
    6a08:	eb000881 	bl	8c14 <_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);                        
    6a0c:	e1a01007 	mov	r1, r7                                        
	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;                                               
    6a10:	e5887018 	str	r7, [r8, #24]                                 
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
    6a14:	e288001c 	add	r0, r8, #28                                   
    6a18:	eb0001a2 	bl	70a8 <pthread_mutex_init>                      
	  pthread_cond_init (&r_chain->cond, NULL);                          
    6a1c:	e1a01007 	mov	r1, r7                                        
    6a20:	e2880020 	add	r0, r8, #32                                   
    6a24:	eb0000ab 	bl	6cd8 <pthread_cond_init>                       
	  pthread_cond_signal (&aio_request_queue.new_req);                  
    6a28:	e59f0030 	ldr	r0, [pc, #48]	; 6a60 <rtems_aio_enqueue+0x1e0>
    6a2c:	eb0000da 	bl	6d9c <pthread_cond_signal>                     
	  ++aio_request_queue.idle_threads;                                  
    6a30:	e5943068 	ldr	r3, [r4, #104]	; 0x68                         
    6a34:	e2833001 	add	r3, r3, #1                                    
    6a38:	e5843068 	str	r3, [r4, #104]	; 0x68                         
    6a3c:	eaffffbd 	b	6938 <rtems_aio_enqueue+0xb8>                   
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
    6a40:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6a44:	eb00020b 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
	  return result;                                                     
    6a48:	e1a05006 	mov	r5, r6                                        <== NOT EXECUTED
    6a4c:	eaffffbb 	b	6940 <rtems_aio_enqueue+0xc0>                   <== NOT EXECUTED
                                                                      

000064e4 <rtems_aio_handle>: * NULL - if error */ static void * rtems_aio_handle (void *arg) {
    64e4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         <== NOT EXECUTED
    64e8:	e24dd02c 	sub	sp, sp, #44	; 0x2c                            <== NOT EXECUTED
    64ec:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
    64f0:	e280601c 	add	r6, r0, #28                                   <== 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);        
    64f4:	e28d8028 	add	r8, sp, #40	; 0x28                            <== NOT EXECUTED
    64f8:	e28d7004 	add	r7, sp, #4                                    <== NOT EXECUTED
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
    64fc:	e3e0b000 	mvn	fp, #0                                        <== NOT EXECUTED
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
        req->aiocbp->error_code = 0;                                  
    6500:	e3a09000 	mov	r9, #0                                        <== 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);                    
    6504:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6508:	eb000339 	bl	71f4 <pthread_mutex_lock>                      <== NOT EXECUTED
    if (result != 0)                                                  
    650c:	e250a000 	subs	sl, r0, #0                                   <== NOT EXECUTED
    6510:	1a000021 	bne	659c <rtems_aio_handle+0xb8>                  <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    6514:	e5954008 	ldr	r4, [r5, #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 );                            
    6518:	e285300c 	add	r3, r5, #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)) {                              
    651c:	e1540003 	cmp	r4, r3                                        <== NOT EXECUTED
    6520:	0a000038 	beq	6608 <rtems_aio_handle+0x124>                 <== 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);        
    6524:	eb000565 	bl	7ac0 <pthread_self>                            <== NOT EXECUTED
    6528:	e1a01008 	mov	r1, r8                                        <== NOT EXECUTED
    652c:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
    6530:	eb00045f 	bl	76b4 <pthread_getschedparam>                   <== NOT EXECUTED
      param.sched_priority = req->priority;                           
    6534:	e594300c 	ldr	r3, [r4, #12]                                 <== NOT EXECUTED
    6538:	e58d3004 	str	r3, [sp, #4]                                  <== NOT EXECUTED
      pthread_setschedparam (pthread_self(), req->policy, ¶m);    
    653c:	eb00055f 	bl	7ac0 <pthread_self>                            <== NOT EXECUTED
    6540:	e5941008 	ldr	r1, [r4, #8]                                  <== NOT EXECUTED
    6544:	e1a02007 	mov	r2, r7                                        <== NOT EXECUTED
    6548:	eb000561 	bl	7ad4 <pthread_setschedparam>                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    654c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6550:	eb00099a 	bl	8bc0 <_Chain_Extract>                          <== NOT EXECUTED
                                                                      
      rtems_chain_extract (node);                                     
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
    6554:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6558:	eb000346 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
    655c:	e594a014 	ldr	sl, [r4, #20]                                 <== NOT EXECUTED
    6560:	e59a302c 	ldr	r3, [sl, #44]	; 0x2c                          <== NOT EXECUTED
    6564:	e3530002 	cmp	r3, #2                                        <== NOT EXECUTED
    6568:	0a00001e 	beq	65e8 <rtems_aio_handle+0x104>                 <== NOT EXECUTED
    656c:	e3530003 	cmp	r3, #3                                        <== NOT EXECUTED
    6570:	0a000019 	beq	65dc <rtems_aio_handle+0xf8>                  <== NOT EXECUTED
    6574:	e3530001 	cmp	r3, #1                                        <== NOT EXECUTED
    6578:	0a00000a 	beq	65a8 <rtems_aio_handle+0xc4>                  <== NOT EXECUTED
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
    657c:	e58ab034 	str	fp, [sl, #52]	; 0x34                          <== NOT EXECUTED
	req->aiocbp->error_code = errno;                                     
    6580:	eb002895 	bl	107dc <__errno>                                <== NOT EXECUTED
    6584:	e5903000 	ldr	r3, [r0]                                      <== 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);                    
    6588:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
    658c:	e58a3030 	str	r3, [sl, #48]	; 0x30                          <== 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);                    
    6590:	eb000317 	bl	71f4 <pthread_mutex_lock>                      <== NOT EXECUTED
    if (result != 0)                                                  
    6594:	e250a000 	subs	sl, r0, #0                                   <== NOT EXECUTED
    6598:	0affffdd 	beq	6514 <rtems_aio_handle+0x30>                  <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    659c:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    65a0:	e28dd02c 	add	sp, sp, #44	; 0x2c                            <== NOT EXECUTED
    65a4:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          <== NOT EXECUTED
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
      case LIO_READ:                                                  
        result = pread (req->aiocbp->aio_fildes,                      
    65a8:	e59ac008 	ldr	ip, [sl, #8]                                  <== NOT EXECUTED
    65ac:	e59a0000 	ldr	r0, [sl]                                      <== NOT EXECUTED
    65b0:	e28a100c 	add	r1, sl, #12                                   <== NOT EXECUTED
    65b4:	e8910006 	ldm	r1, {r1, r2}                                  <== NOT EXECUTED
    65b8:	e59a3004 	ldr	r3, [sl, #4]                                  <== NOT EXECUTED
    65bc:	e58dc000 	str	ip, [sp]                                      <== NOT EXECUTED
    65c0:	eb002b87 	bl	113e4 <pread>                                  <== NOT EXECUTED
      	break;                                                         
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
    65c4:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
    65c8:	0a00005e 	beq	6748 <rtems_aio_handle+0x264>                 <== NOT EXECUTED
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
    65cc:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
    65d0:	e5830034 	str	r0, [r3, #52]	; 0x34                          <== NOT EXECUTED
        req->aiocbp->error_code = 0;                                  
    65d4:	e5839030 	str	r9, [r3, #48]	; 0x30                          <== NOT EXECUTED
    65d8:	eaffffc9 	b	6504 <rtems_aio_handle+0x20>                    <== NOT EXECUTED
                         (void *) req->aiocbp->aio_buf,               
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_SYNC:                                                  
      	result = fsync (req->aiocbp->aio_fildes);                      
    65dc:	e59a0000 	ldr	r0, [sl]                                      <== NOT EXECUTED
    65e0:	eb001adc 	bl	d158 <fsync>                                   <== NOT EXECUTED
      	break;                                                         
    65e4:	eafffff6 	b	65c4 <rtems_aio_handle+0xe0>                    <== NOT EXECUTED
                        (void *) req->aiocbp->aio_buf,                
                        req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_WRITE:                                                 
        result = pwrite (req->aiocbp->aio_fildes,                     
    65e8:	e59ac008 	ldr	ip, [sl, #8]                                  <== NOT EXECUTED
    65ec:	e59a0000 	ldr	r0, [sl]                                      <== NOT EXECUTED
    65f0:	e28a100c 	add	r1, sl, #12                                   <== NOT EXECUTED
    65f4:	e8910006 	ldm	r1, {r1, r2}                                  <== NOT EXECUTED
    65f8:	e59a3004 	ldr	r3, [sl, #4]                                  <== NOT EXECUTED
    65fc:	e58dc000 	str	ip, [sp]                                      <== NOT EXECUTED
    6600:	eb002bbf 	bl	11504 <pwrite>                                 <== NOT EXECUTED
                         (void *) req->aiocbp->aio_buf,               
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
    6604:	eaffffee 	b	65c4 <rtems_aio_handle+0xe0>                    <== 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);                         
    6608:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    660c:	eb000319 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
      pthread_mutex_lock (&aio_request_queue.mutex);                  
    6610:	e59f0144 	ldr	r0, [pc, #324]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    6614:	eb0002f6 	bl	71f4 <pthread_mutex_lock>                      <== NOT EXECUTED
      if (rtems_chain_is_empty (chain))                               
    6618:	e5953008 	ldr	r3, [r5, #8]                                  <== NOT EXECUTED
    661c:	e1540003 	cmp	r4, r3                                        <== NOT EXECUTED
    6620:	1affffb7 	bne	6504 <rtems_aio_handle+0x20>                  <== NOT EXECUTED
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
    6624:	e28d1020 	add	r1, sp, #32                                   <== NOT EXECUTED
    6628:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    662c:	eb000154 	bl	6b84 <clock_gettime>                           <== NOT EXECUTED
	  timeout.tv_sec += 3;                                               
    6630:	e59d3020 	ldr	r3, [sp, #32]                                 <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
    6634:	e2854020 	add	r4, r5, #32                                   <== 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;                                               
    6638:	e2833003 	add	r3, r3, #3                                    <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
    663c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6640:	e59f1114 	ldr	r1, [pc, #276]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    6644:	e28d2020 	add	r2, sp, #32                                   <== 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;                                               
    6648:	e58d3020 	str	r3, [sp, #32]                                 <== NOT EXECUTED
	  timeout.tv_nsec = 0;                                               
    664c:	e58da024 	str	sl, [sp, #36]	; 0x24                          <== NOT EXECUTED
	  result = pthread_cond_timedwait (&r_chain->cond,                   
    6650:	eb0001eb 	bl	6e04 <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) {                                         
    6654:	e3500074 	cmp	r0, #116	; 0x74                               <== NOT EXECUTED
    6658:	1affffa9 	bne	6504 <rtems_aio_handle+0x20>                  <== NOT EXECUTED
    665c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6660:	eb000956 	bl	8bc0 <_Chain_Extract>                          <== NOT EXECUTED
	    rtems_chain_extract (&r_chain->next_fd);                         
	    pthread_mutex_destroy (&r_chain->mutex);                         
    6664:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6668:	eb00023e 	bl	6f68 <pthread_mutex_destroy>                   <== NOT EXECUTED
	    pthread_cond_destroy (&r_chain->cond);                           
    666c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6670:	eb000165 	bl	6c0c <pthread_cond_destroy>                    <== NOT EXECUTED
	    free (r_chain);                                                  
    6674:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    6678:	ebfff178 	bl	2c60 <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)) {        
    667c:	e59f20d8 	ldr	r2, [pc, #216]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    6680:	e5923054 	ldr	r3, [r2, #84]	; 0x54                          <== NOT EXECUTED
    6684:	e59f20d4 	ldr	r2, [pc, #212]	; 6760 <rtems_aio_handle+0x27c><== NOT EXECUTED
    6688:	e1530002 	cmp	r3, r2                                        <== NOT EXECUTED
    668c:	0a000002 	beq	669c <rtems_aio_handle+0x1b8>                 <== NOT EXECUTED
	      r_chain->perfd = ((rtems_aio_request_chain *)node)->perfd;     
	    }                                                                
	    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);               
    6690:	e59f00c4 	ldr	r0, [pc, #196]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    6694:	eb0002f7 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
    6698:	eaffff99 	b	6504 <rtems_aio_handle+0x20>                    <== 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;                              
    669c:	e59f20b8 	ldr	r2, [pc, #184]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    66a0:	e5923068 	ldr	r3, [r2, #104]	; 0x68                         <== NOT EXECUTED
    66a4:	e2833001 	add	r3, r3, #1                                    <== NOT EXECUTED
    66a8:	e5823068 	str	r3, [r2, #104]	; 0x68                         <== NOT EXECUTED
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
    66ac:	e28d1020 	add	r1, sp, #32                                   <== NOT EXECUTED
    66b0:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    66b4:	eb000132 	bl	6b84 <clock_gettime>                           <== NOT EXECUTED
	      timeout.tv_sec += 3;                                           
    66b8:	e59d3020 	ldr	r3, [sp, #32]                                 <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
    66bc:	e59f00a0 	ldr	r0, [pc, #160]	; 6764 <rtems_aio_handle+0x280><== 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;                                           
    66c0:	e2833003 	add	r3, r3, #3                                    <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
    66c4:	e59f1090 	ldr	r1, [pc, #144]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    66c8:	e28d2020 	add	r2, sp, #32                                   <== 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;                                           
    66cc:	e58d3020 	str	r3, [sp, #32]                                 <== NOT EXECUTED
	      timeout.tv_nsec = 0;                                           
    66d0:	e58da024 	str	sl, [sp, #36]	; 0x24                          <== NOT EXECUTED
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
    66d4:	eb0001ca 	bl	6e04 <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) {                                     
    66d8:	e3500074 	cmp	r0, #116	; 0x74                               <== NOT EXECUTED
    66dc:	0a00001b 	beq	6750 <rtems_aio_handle+0x26c>                 <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    66e0:	e59f3074 	ldr	r3, [pc, #116]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    66e4:	e5934054 	ldr	r4, [r3, #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;                              
    66e8:	e5933068 	ldr	r3, [r3, #104]	; 0x68                         <== NOT EXECUTED
    66ec:	e59f2068 	ldr	r2, [pc, #104]	; 675c <rtems_aio_handle+0x278><== NOT EXECUTED
    66f0:	e2433001 	sub	r3, r3, #1                                    <== NOT EXECUTED
    66f4:	e5823068 	str	r3, [r2, #104]	; 0x68                         <== NOT EXECUTED
    66f8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    66fc:	eb00092f 	bl	8bc0 <_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,    
    6700:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    6704:	e5941014 	ldr	r1, [r4, #20]                                 <== NOT EXECUTED
    6708:	e59f0058 	ldr	r0, [pc, #88]	; 6768 <rtems_aio_handle+0x284> <== NOT EXECUTED
    670c:	ebffff41 	bl	6418 <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);                    
    6710:	e280601c 	add	r6, r0, #28                                   <== 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,    
    6714:	e1a05000 	mov	r5, r0                                        <== NOT EXECUTED
					     ((rtems_aio_request_chain *)node)->fildes,                  
					     1);                                                         
	      r_chain->new_fd = 0;                                           
	      pthread_mutex_init (&r_chain->mutex, NULL);                    
    6718:	e1a0100a 	mov	r1, sl                                        <== 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,    
					     ((rtems_aio_request_chain *)node)->fildes,                  
					     1);                                                         
	      r_chain->new_fd = 0;                                           
    671c:	e580a018 	str	sl, [r0, #24]                                 <== NOT EXECUTED
	      pthread_mutex_init (&r_chain->mutex, NULL);                    
    6720:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6724:	eb00025f 	bl	70a8 <pthread_mutex_init>                      <== NOT EXECUTED
	      pthread_cond_init (&r_chain->cond, NULL);                      
	                                                                     
	      r_chain->perfd = ((rtems_aio_request_chain *)node)->perfd;     
    6728:	e2844008 	add	r4, r4, #8                                    <== NOT EXECUTED
	      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,    
					     ((rtems_aio_request_chain *)node)->fildes,                  
					     1);                                                         
	      r_chain->new_fd = 0;                                           
	      pthread_mutex_init (&r_chain->mutex, NULL);                    
	      pthread_cond_init (&r_chain->cond, NULL);                      
    672c:	e1a0100a 	mov	r1, sl                                        <== NOT EXECUTED
    6730:	e2850020 	add	r0, r5, #32                                   <== NOT EXECUTED
    6734:	eb000167 	bl	6cd8 <pthread_cond_init>                       <== NOT EXECUTED
	                                                                     
	      r_chain->perfd = ((rtems_aio_request_chain *)node)->perfd;     
    6738:	e8940007 	ldm	r4, {r0, r1, r2}                              <== NOT EXECUTED
    673c:	e2853008 	add	r3, r5, #8                                    <== NOT EXECUTED
    6740:	e8830007 	stm	r3, {r0, r1, r2}                              <== NOT EXECUTED
    6744:	eaffff6e 	b	6504 <rtems_aio_handle+0x20>                    <== NOT EXECUTED
      	break;                                                         
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
    6748:	e594a014 	ldr	sl, [r4, #20]                                 <== NOT EXECUTED
    674c:	eaffff8a 	b	657c <rtems_aio_handle+0x98>                    <== NOT EXECUTED
					       &timeout);                                                
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
    6750:	e59f0004 	ldr	r0, [pc, #4]	; 675c <rtems_aio_handle+0x278>  <== NOT EXECUTED
    6754:	eb0002c7 	bl	7278 <pthread_mutex_unlock>                    <== NOT EXECUTED
		return NULL;                                                        
    6758:	eaffff8f 	b	659c <rtems_aio_handle+0xb8>                    <== NOT EXECUTED
                                                                      

00006314 <rtems_aio_init>: * 0 - if initialization succeeded */ int rtems_aio_init (void) {
    6314:	e92d4070 	push	{r4, r5, r6, lr}                             
  int result = 0;                                                     
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
    6318:	e59f00e8 	ldr	r0, [pc, #232]	; 6408 <rtems_aio_init+0xf4>   
    631c:	eb00041b 	bl	7390 <pthread_attr_init>                       
  if (result != 0)                                                    
    6320:	e2505000 	subs	r5, r0, #0                                   
    6324:	0a000001 	beq	6330 <rtems_aio_init+0x1c>                    
  aio_request_queue.active_threads = 0;                               
  aio_request_queue.idle_threads = 0;                                 
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
                                                                      
  return result;                                                      
}                                                                     
    6328:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    632c:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
  if (result != 0)                                                    
    return result;                                                    
                                                                      
  result =                                                            
    6330:	e59f00d0 	ldr	r0, [pc, #208]	; 6408 <rtems_aio_init+0xf4>   
    6334:	e1a01005 	mov	r1, r5                                        
    6338:	eb000427 	bl	73dc <pthread_attr_setdetachstate>             
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    633c:	e3500000 	cmp	r0, #0                                        
    6340:	1a00001c 	bne	63b8 <rtems_aio_init+0xa4>                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
    6344:	e59f40c0 	ldr	r4, [pc, #192]	; 640c <rtems_aio_init+0xf8>   
    6348:	e3a01000 	mov	r1, #0                                        
    634c:	e1a00004 	mov	r0, r4                                        
    6350:	eb000354 	bl	70a8 <pthread_mutex_init>                      
  if (result != 0)                                                    
    6354:	e3500000 	cmp	r0, #0                                        
    6358:	1a00001e 	bne	63d8 <rtems_aio_init+0xc4>                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
    635c:	e59f00ac 	ldr	r0, [pc, #172]	; 6410 <rtems_aio_init+0xfc>   
    6360:	e3a01000 	mov	r1, #0                                        
    6364:	eb00025b 	bl	6cd8 <pthread_cond_init>                       
  if (result != 0) {                                                  
    6368:	e2505000 	subs	r5, r0, #0                                   
    636c:	1a000020 	bne	63f4 <rtems_aio_init+0xe0>                    
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
    6370:	e59f209c 	ldr	r2, [pc, #156]	; 6414 <rtems_aio_init+0x100>  
  rtems_chain_initialize_empty (&aio_request_queue.work_req);         
  rtems_chain_initialize_empty (&aio_request_queue.idle_req);         
                                                                      
  aio_request_queue.active_threads = 0;                               
  aio_request_queue.idle_threads = 0;                                 
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
    6374:	e3a01a0b 	mov	r1, #45056	; 0xb000                           
  head->previous = NULL;                                              
    6378:	e3a03000 	mov	r3, #0                                        
  tail->previous = head;                                              
    637c:	e2820008 	add	r0, r2, #8                                    
    6380:	e2426004 	sub	r6, r2, #4                                    
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
    6384:	e282c00c 	add	ip, r2, #12                                   
    6388:	e281100b 	add	r1, r1, #11                                   
  head->previous = NULL;                                              
  tail->previous = head;                                              
    638c:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
    6390:	e5842048 	str	r2, [r4, #72]	; 0x48                          
  head->previous = NULL;                                              
    6394:	e584304c 	str	r3, [r4, #76]	; 0x4c                          
  tail->previous = head;                                              
    6398:	e5846050 	str	r6, [r4, #80]	; 0x50                          
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
    639c:	e584c054 	str	ip, [r4, #84]	; 0x54                          
  head->previous = NULL;                                              
    63a0:	e5843058 	str	r3, [r4, #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;                               
    63a4:	e5843064 	str	r3, [r4, #100]	; 0x64                         
  aio_request_queue.idle_threads = 0;                                 
    63a8:	e5843068 	str	r3, [r4, #104]	; 0x68                         
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
    63ac:	e5841060 	str	r1, [r4, #96]	; 0x60                          
                                                                      
  return result;                                                      
}                                                                     
    63b0:	e1a00005 	mov	r0, r5                                        
    63b4:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
    63b8:	e59f404c 	ldr	r4, [pc, #76]	; 640c <rtems_aio_init+0xf8>    <== NOT EXECUTED
                                                                      
  result =                                                            
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
    63bc:	e59f0044 	ldr	r0, [pc, #68]	; 6408 <rtems_aio_init+0xf4>    <== NOT EXECUTED
    63c0:	eb0003e9 	bl	736c <pthread_attr_destroy>                    <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
    63c4:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    63c8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    63cc:	eb000335 	bl	70a8 <pthread_mutex_init>                      <== NOT EXECUTED
  if (result != 0)                                                    
    63d0:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    63d4:	0affffe0 	beq	635c <rtems_aio_init+0x48>                    <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
    63d8:	e2840008 	add	r0, r4, #8                                    <== NOT EXECUTED
    63dc:	eb0003e2 	bl	736c <pthread_attr_destroy>                    <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
    63e0:	e59f0028 	ldr	r0, [pc, #40]	; 6410 <rtems_aio_init+0xfc>    <== NOT EXECUTED
    63e4:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    63e8:	eb00023a 	bl	6cd8 <pthread_cond_init>                       <== NOT EXECUTED
  if (result != 0) {                                                  
    63ec:	e2505000 	subs	r5, r0, #0                                   <== NOT EXECUTED
    63f0:	0affffde 	beq	6370 <rtems_aio_init+0x5c>                    <== NOT EXECUTED
    pthread_mutex_destroy (&aio_request_queue.mutex);                 
    63f4:	e59f0010 	ldr	r0, [pc, #16]	; 640c <rtems_aio_init+0xf8>    <== NOT EXECUTED
    63f8:	eb0002da 	bl	6f68 <pthread_mutex_destroy>                   <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
    63fc:	e59f0004 	ldr	r0, [pc, #4]	; 6408 <rtems_aio_init+0xf4>     <== NOT EXECUTED
    6400:	eb0003d9 	bl	736c <pthread_attr_destroy>                    <== NOT EXECUTED
    6404:	eaffffd9 	b	6370 <rtems_aio_init+0x5c>                      <== NOT EXECUTED
                                                                      

0000676c <rtems_aio_insert_prio>: } AIO_printf ("Thread finished\n"); return NULL; }
    676c:	e1a02000 	mov	r2, r0                                        
    6770:	e4923004 	ldr	r3, [r2], #4                                  
  rtems_chain_node *node;                                             
                                                                      
  AIO_printf ("FD exists \n");                                        
  node = rtems_chain_first (chain);                                   
                                                                      
  if (rtems_chain_is_empty (chain)) {                                 
    6774:	e1530002 	cmp	r3, r2                                        
 *        NONE                                                        
 */                                                                   
                                                                      
void                                                                  
rtems_aio_insert_prio (rtems_chain_control *chain, rtems_aio_request *req)
{                                                                     
    6778:	e1a0c001 	mov	ip, r1                                        
  rtems_chain_node *node;                                             
                                                                      
  AIO_printf ("FD exists \n");                                        
  node = rtems_chain_first (chain);                                   
                                                                      
  if (rtems_chain_is_empty (chain)) {                                 
    677c:	0a00000f 	beq	67c0 <rtems_aio_insert_prio+0x54>             
    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 &&                         
    6780:	e5910014 	ldr	r0, [r1, #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;     
    6784:	e5931014 	ldr	r1, [r3, #20]                                 
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
    6788:	e5900014 	ldr	r0, [r0, #20]                                 
    678c:	e5911014 	ldr	r1, [r1, #20]                                 
    6790:	e1510000 	cmp	r1, r0                                        
    6794:	ba000002 	blt	67a4 <rtems_aio_insert_prio+0x38>             
    6798:	ea000006 	b	67b8 <rtems_aio_insert_prio+0x4c>               
    679c:	e1530002 	cmp	r3, r2                                        <== NOT EXECUTED
    67a0:	0a000004 	beq	67b8 <rtems_aio_insert_prio+0x4c>             <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    67a4:	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;       
    67a8:	e5931014 	ldr	r1, [r3, #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 &&                         
    67ac:	e5911014 	ldr	r1, [r1, #20]                                 <== NOT EXECUTED
    67b0:	e1510000 	cmp	r1, r0                                        <== NOT EXECUTED
    67b4:	bafffff8 	blt	679c <rtems_aio_insert_prio+0x30>             <== 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 );                              
    67b8:	e5930004 	ldr	r0, [r3, #4]                                  
    67bc:	e1a0100c 	mov	r1, ip                                        
    67c0:	ea000913 	b	8c14 <_Chain_Insert>                            
                                                                      

000067c4 <rtems_aio_remove_fd>: * Output parameters: * NONE */ void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain) {
    67c4:	e92d4070 	push	{r4, r5, r6, lr}                             <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    67c8:	e5904008 	ldr	r4, [r0, #8]                                  <== 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));                        
    67cc:	e280000c 	add	r0, r0, #12                                   <== NOT EXECUTED
  rtems_chain_node *node;                                             
                                                                      
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
    67d0:	e1540000 	cmp	r4, r0                                        <== NOT EXECUTED
    67d4:	08bd8070 	popeq	{r4, r5, r6, pc}                            <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    67d8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    67dc:	eb0008f7 	bl	8bc0 <_Chain_Extract>                          <== NOT EXECUTED
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      req->aiocbp->error_code = ECANCELED;                            
    67e0:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
    67e4:	e3a0608c 	mov	r6, #140	; 0x8c                               <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
    67e8:	e3e05000 	mvn	r5, #0                                        <== 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;                            
    67ec:	e5836030 	str	r6, [r3, #48]	; 0x30                          <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
    67f0:	e5835034 	str	r5, [r3, #52]	; 0x34                          <== NOT EXECUTED
      free (req);                                                     
    67f4:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    67f8:	ebfff118 	bl	2c60 <free>                                    <== NOT EXECUTED
    67fc:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6800:	eb0008ee 	bl	8bc0 <_Chain_Extract>                          <== 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;                            
    6804:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
    6808:	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;                            
    680c:	e5836030 	str	r6, [r3, #48]	; 0x30                          <== NOT EXECUTED
      req->aiocbp->return_value = -1;                                 
    6810:	e5835034 	str	r5, [r3, #52]	; 0x34                          <== NOT EXECUTED
      free (req);                                                     
    6814:	ebfff111 	bl	2c60 <free>                                    <== NOT EXECUTED
    6818:	eafffff7 	b	67fc <rtems_aio_remove_fd+0x38>                 <== NOT EXECUTED
                                                                      

0000681c <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) {
    681c:	e92d4010 	push	{r4, lr}                                     <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    6820:	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) {
    6824:	e1540000 	cmp	r4, r0                                        <== NOT EXECUTED
    node = rtems_chain_next (node);                                   
    current = (rtems_aio_request *) node;                             
  }                                                                   
                                                                      
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
    6828:	03a00001 	moveq	r0, #1                                      <== 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) {
    682c:	1a000003 	bne	6840 <rtems_aio_remove_req+0x24>              <== NOT EXECUTED
    6830:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
    6834:	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) {
    6838:	e1540000 	cmp	r4, r0                                        <== NOT EXECUTED
    683c:	0a00000d 	beq	6878 <rtems_aio_remove_req+0x5c>              <== NOT EXECUTED
    6840:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
    6844:	e1530001 	cmp	r3, r1                                        <== NOT EXECUTED
    6848:	1afffff9 	bne	6834 <rtems_aio_remove_req+0x18>              <== NOT EXECUTED
    684c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    6850:	eb0008da 	bl	8bc0 <_Chain_Extract>                          <== NOT EXECUTED
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
    6854:	e5943014 	ldr	r3, [r4, #20]                                 <== NOT EXECUTED
    6858:	e3a0208c 	mov	r2, #140	; 0x8c                               <== NOT EXECUTED
    685c:	e5832030 	str	r2, [r3, #48]	; 0x30                          <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
    6860:	e3e02000 	mvn	r2, #0                                        <== NOT EXECUTED
      free (current);                                                 
    6864:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
      current->aiocbp->return_value = -1;                             
    6868:	e5832034 	str	r2, [r3, #52]	; 0x34                          <== NOT EXECUTED
      free (current);                                                 
    686c:	ebfff0fb 	bl	2c60 <free>                                    <== NOT EXECUTED
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
    6870:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
    6874:	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;                                           
    6878:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
}                                                                     
    687c:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
                                                                      

00002b10 <rtems_assoc_ptr_by_name>: const rtems_assoc_t *rtems_assoc_ptr_by_name( const rtems_assoc_t *ap, const char *name ) {
    2b10:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    2b14:	e5904000 	ldr	r4, [r0]                                      
    2b18:	e3540000 	cmp	r4, #0                                        
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
    2b1c:	e1a06000 	mov	r6, r0                                        
    2b20:	e1a07001 	mov	r7, r1                                        
  const rtems_assoc_t *default_ap = 0;                                
    2b24:	01a06004 	moveq	r6, r4                                      
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    2b28:	0a000011 	beq	2b74 <rtems_assoc_ptr_by_name+0x64>           
    2b2c:	e1a00004 	mov	r0, r4                                        
    2b30:	e59f106c 	ldr	r1, [pc, #108]	; 2ba4 <rtems_assoc_ptr_by_name+0x94>
    2b34:	eb0032c7 	bl	f658 <strcmp>                                  
    2b38:	e3500000 	cmp	r0, #0                                        
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
    2b3c:	13a08000 	movne	r8, #0                                      
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    2b40:	0a00000d 	beq	2b7c <rtems_assoc_ptr_by_name+0x6c>           
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    2b44:	e1a05006 	mov	r5, r6                                        
    2b48:	ea000003 	b	2b5c <rtems_assoc_ptr_by_name+0x4c>             
    2b4c:	e595400c 	ldr	r4, [r5, #12]                                 
    2b50:	e3540000 	cmp	r4, #0                                        
    2b54:	e285500c 	add	r5, r5, #12                                   
    2b58:	0a00000e 	beq	2b98 <rtems_assoc_ptr_by_name+0x88>           
    if (strcmp(ap->name, name) == 0)                                  
    2b5c:	e1a00004 	mov	r0, r4                                        
    2b60:	e1a01007 	mov	r1, r7                                        
    2b64:	eb0032bb 	bl	f658 <strcmp>                                  
    2b68:	e3500000 	cmp	r0, #0                                        
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    2b6c:	e1a06005 	mov	r6, r5                                        
    if (strcmp(ap->name, name) == 0)                                  
    2b70:	1afffff5 	bne	2b4c <rtems_assoc_ptr_by_name+0x3c>           
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
    2b74:	e1a00006 	mov	r0, r6                                        
    2b78:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    2b7c:	e596400c 	ldr	r4, [r6, #12]                                 
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
    2b80:	e286300c 	add	r3, r6, #12                                   
                                                                      
  for ( ; ap->name; ap++)                                             
    2b84:	e3540000 	cmp	r4, #0                                        
    2b88:	11a08006 	movne	r8, r6                                      
    2b8c:	11a06003 	movne	r6, r3                                      
    2b90:	1affffeb 	bne	2b44 <rtems_assoc_ptr_by_name+0x34>           
    2b94:	eafffff6 	b	2b74 <rtems_assoc_ptr_by_name+0x64>             <== NOT EXECUTED
    2b98:	e1a06008 	mov	r6, r8                                        
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
    2b9c:	e1a00006 	mov	r0, r6                                        
    2ba0:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

00001e80 <rtems_filesystem_dirname>: int rtems_filesystem_dirname( const char *pathname ) {
    1e80:	e92d4030 	push	{r4, r5, lr}                                 
    1e84:	e1a05000 	mov	r5, r0                                        
  int len = strlen( pathname );                                       
    1e88:	eb003328 	bl	eb30 <strlen>                                  
                                                                      
  while ( len ) {                                                     
    1e8c:	e2504000 	subs	r4, r0, #0                                   
    1e90:	1a000002 	bne	1ea0 <rtems_filesystem_dirname+0x20>          
    1e94:	ea000006 	b	1eb4 <rtems_filesystem_dirname+0x34>            <== NOT EXECUTED
    1e98:	e3540000 	cmp	r4, #0                                        
    1e9c:	0a000004 	beq	1eb4 <rtems_filesystem_dirname+0x34>          
    len--;                                                            
    1ea0:	e2444001 	sub	r4, r4, #1                                    
    if ( rtems_filesystem_is_separator( pathname[len] ) )             
    1ea4:	e7d50004 	ldrb	r0, [r5, r4]                                 
    1ea8:	eb0003d3 	bl	2dfc <rtems_filesystem_is_separator>           
    1eac:	e3500000 	cmp	r0, #0                                        
    1eb0:	0afffff8 	beq	1e98 <rtems_filesystem_dirname+0x18>          
      break;                                                          
  }                                                                   
                                                                      
  return len;                                                         
}                                                                     
    1eb4:	e1a00004 	mov	r0, r4                                        
    1eb8:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00001c4c <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 ) {
    1c4c:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  rtems_filesystem_umask = 022;                                       
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1c50:	e59f2104 	ldr	r2, [pc, #260]	; 1d5c <rtems_filesystem_initialize+0x110>
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
    1c54:	e59f6104 	ldr	r6, [pc, #260]	; 1d60 <rtems_filesystem_initialize+0x114>
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1c58:	e5922000 	ldr	r2, [r2]                                      
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
    1c5c:	e5963000 	ldr	r3, [r6]                                      
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1c60:	e3520000 	cmp	r2, #0                                        
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
    1c64:	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 )                              
{                                                                     
    1c68:	e24dd018 	sub	sp, sp, #24                                   
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
    1c6c:	e583202c 	str	r2, [r3, #44]	; 0x2c                          
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    1c70:	0a00002d 	beq	1d2c <rtems_filesystem_initialize+0xe0>       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
    1c74:	e59f30e8 	ldr	r3, [pc, #232]	; 1d64 <rtems_filesystem_initialize+0x118>
    1c78:	e5933000 	ldr	r3, [r3]                                      
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
    1c7c:	e3a05000 	mov	r5, #0                                        
    1c80:	e2830008 	add	r0, r3, #8                                    
    1c84:	e8900003 	ldm	r0, {r0, r1}                                  
    1c88:	e893000c 	ldm	r3, {r2, r3}                                  
    1c8c:	e58d5000 	str	r5, [sp]                                      
    1c90:	eb00020a 	bl	24c0 <mount>                                   
  if ( status == -1 )                                                 
    1c94:	e3700001 	cmn	r0, #1                                        
    1c98:	0a00002b 	beq	1d4c <rtems_filesystem_initialize+0x100>      
    rtems_fatal_error_occurred( 0xABCD0002 );                         
                                                                      
  rtems_filesystem_link_counts = 0;                                   
    1c9c:	e5963000 	ldr	r3, [r6]                                      
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1ca0:	e28d4004 	add	r4, sp, #4                                    
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
                                                                      
  rtems_filesystem_link_counts = 0;                                   
    1ca4:	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);                 
    1ca8:	e3a01001 	mov	r1, #1                                        
    1cac:	e1a03004 	mov	r3, r4                                        
    1cb0:	e1a02005 	mov	r2, r5                                        
    1cb4:	e59f00ac 	ldr	r0, [pc, #172]	; 1d68 <rtems_filesystem_initialize+0x11c>
  rtems_filesystem_root        = loc;                                 
    1cb8:	e1a07004 	mov	r7, r4                                        
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1cbc:	e58d5000 	str	r5, [sp]                                      
    1cc0:	eb000058 	bl	1e28 <rtems_filesystem_evaluate_path>          
  rtems_filesystem_root        = loc;                                 
    1cc4:	e596c000 	ldr	ip, [r6]                                      
    1cc8:	e8b7000f 	ldm	r7!, {r0, r1, r2, r3}                         
    1ccc:	e28cc018 	add	ip, ip, #24                                   
    1cd0:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    1cd4:	e5973000 	ldr	r3, [r7]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1cd8:	e3a01001 	mov	r1, #1                                        
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
    1cdc:	e58c3000 	str	r3, [ip]                                      
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
    1ce0:	e1a02005 	mov	r2, r5                                        
    1ce4:	e1a03004 	mov	r3, r4                                        
    1ce8:	e59f0078 	ldr	r0, [pc, #120]	; 1d68 <rtems_filesystem_initialize+0x11c>
    1cec:	e58d5000 	str	r5, [sp]                                      
    1cf0:	eb00004c 	bl	1e28 <rtems_filesystem_evaluate_path>          
  rtems_filesystem_current     = loc;                                 
    1cf4:	e596c000 	ldr	ip, [r6]                                      
    1cf8:	e8b4000f 	ldm	r4!, {r0, r1, r2, r3}                         
    1cfc:	e28cc004 	add	ip, ip, #4                                    
    1d00:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    1d04:	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);                                      
    1d08:	e3a01f7f 	mov	r1, #508	; 0x1fc                              
  /* 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;                                 
    1d0c:	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);                                      
    1d10:	e59f0054 	ldr	r0, [pc, #84]	; 1d6c <rtems_filesystem_initialize+0x120>
    1d14:	e2811003 	add	r1, r1, #3                                    
    1d18:	eb000198 	bl	2380 <mkdir>                                   
  if ( status != 0 )                                                  
    1d1c:	e3500000 	cmp	r0, #0                                        
    1d20:	1a000005 	bne	1d3c <rtems_filesystem_initialize+0xf0>       
   *  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.        
   */                                                                 
}                                                                     
    1d24:	e28dd018 	add	sp, sp, #24                                   
    1d28:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
    1d2c:	e3a004ab 	mov	r0, #-1426063360	; 0xab000000                 <== NOT EXECUTED
    1d30:	e28008cd 	add	r0, r0, #13434880	; 0xcd0000                  <== NOT EXECUTED
    1d34:	e2800001 	add	r0, r0, #1                                    <== NOT EXECUTED
    1d38:	eb000fd7 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
  if ( status != 0 )                                                  
    rtems_fatal_error_occurred( 0xABCD0003 );                         
    1d3c:	e3a004ab 	mov	r0, #-1426063360	; 0xab000000                 <== NOT EXECUTED
    1d40:	e28008cd 	add	r0, r0, #13434880	; 0xcd0000                  <== NOT EXECUTED
    1d44:	e2800003 	add	r0, r0, #3                                    <== NOT EXECUTED
    1d48:	eb000fd3 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
    1d4c:	e3a004ab 	mov	r0, #-1426063360	; 0xab000000                 <== NOT EXECUTED
    1d50:	e28008cd 	add	r0, r0, #13434880	; 0xcd0000                  <== NOT EXECUTED
    1d54:	e2800002 	add	r0, r0, #2                                    <== NOT EXECUTED
    1d58:	eb000fcf 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

0000a45c <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
    a45c:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    a460:	e59f60ac 	ldr	r6, [pc, #172]	; a514 <rtems_filesystem_iterate+0xb8>
    a464:	e5963000 	ldr	r3, [r6]                                      
    a468:	e3530000 	cmp	r3, #0                                        
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
    a46c:	e1a04000 	mov	r4, r0                                        
    a470:	e1a05001 	mov	r5, r1                                        
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    a474:	1a000003 	bne	a488 <rtems_filesystem_iterate+0x2c>          
    a478:	ea00000c 	b	a4b0 <rtems_filesystem_iterate+0x54>            <== NOT EXECUTED
    a47c:	e3500000 	cmp	r0, #0                                        
    a480:	e2866008 	add	r6, r6, #8                                    
    a484:	1a000020 	bne	a50c <rtems_filesystem_iterate+0xb0>          
    stop = (*routine)( table_entry, routine_arg );                    
    a488:	e1a00006 	mov	r0, r6                                        
    a48c:	e1a01005 	mov	r1, r5                                        
    a490:	e1a0e00f 	mov	lr, pc                                        
    a494:	e12fff14 	bx	r4                                             
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    a498:	e5963008 	ldr	r3, [r6, #8]                                  
    a49c:	e3530000 	cmp	r3, #0                                        
    stop = (*routine)( table_entry, routine_arg );                    
    a4a0:	e1a0a000 	mov	sl, r0                                        
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
    a4a4:	1afffff4 	bne	a47c <rtems_filesystem_iterate+0x20>          
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    a4a8:	e3500000 	cmp	r0, #0                                        
    a4ac:	1a000016 	bne	a50c <rtems_filesystem_iterate+0xb0>          
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 );
    a4b0:	e59f7060 	ldr	r7, [pc, #96]	; a518 <rtems_filesystem_iterate+0xbc>
    a4b4:	e3a01000 	mov	r1, #0                                        
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
    a4b8:	e59f605c 	ldr	r6, [pc, #92]	; a51c <rtems_filesystem_iterate+0xc0>
    a4bc:	e5970000 	ldr	r0, [r7]                                      
    a4c0:	e1a02001 	mov	r2, r1                                        
    a4c4:	ebffec4b 	bl	55f8 <rtems_semaphore_obtain>                  
    a4c8:	e4968004 	ldr	r8, [r6], #4                                  
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
    a4cc:	e1580006 	cmp	r8, r6                                        
    a4d0:	03a0a000 	moveq	sl, #0                                      
    a4d4:	1a000002 	bne	a4e4 <rtems_filesystem_iterate+0x88>          
    a4d8:	ea000009 	b	a504 <rtems_filesystem_iterate+0xa8>            
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
    a4dc:	e3500000 	cmp	r0, #0                                        
    a4e0:	1a000007 	bne	a504 <rtems_filesystem_iterate+0xa8>          
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    a4e4:	e2880008 	add	r0, r8, #8                                    
    a4e8:	e1a01005 	mov	r1, r5                                        
    a4ec:	e1a0e00f 	mov	lr, pc                                        
    a4f0:	e12fff14 	bx	r4                                             
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
    a4f4:	e5988000 	ldr	r8, [r8]                                      
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
    a4f8:	e1580006 	cmp	r8, r6                                        
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    a4fc:	e1a0a000 	mov	sl, r0                                        
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
    a500:	1afffff5 	bne	a4dc <rtems_filesystem_iterate+0x80>          
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    a504:	e5970000 	ldr	r0, [r7]                                      
    a508:	ebffec83 	bl	571c <rtems_semaphore_release>                 
    }                                                                 
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
    a50c:	e1a0000a 	mov	r0, sl                                        
    a510:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      

00002448 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
    2448:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
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 );
    244c:	e59f7064 	ldr	r7, [pc, #100]	; 24b8 <rtems_filesystem_mount_iterate+0x70>
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
    2450:	e59f4064 	ldr	r4, [pc, #100]	; 24bc <rtems_filesystem_mount_iterate+0x74>
                                                                      
bool rtems_filesystem_mount_iterate(                                  
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
    2454:	e1a06001 	mov	r6, r1                                        
    2458:	e3a01000 	mov	r1, #0                                        
    245c:	e1a05000 	mov	r5, r0                                        
    2460:	e1a02001 	mov	r2, r1                                        
    2464:	e5970000 	ldr	r0, [r7]                                      
    2468:	eb000c62 	bl	55f8 <rtems_semaphore_obtain>                  
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
    246c:	e4948004 	ldr	r8, [r4], #4                                  
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
    2470:	e1580004 	cmp	r8, r4                                        
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
    2474:	03a0a000 	moveq	sl, #0                                      
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
    2478:	1a000002 	bne	2488 <rtems_filesystem_mount_iterate+0x40>    
    247c:	ea000009 	b	24a8 <rtems_filesystem_mount_iterate+0x60>      <== NOT EXECUTED
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
    2480:	e3500000 	cmp	r0, #0                                        
    2484:	1a000007 	bne	24a8 <rtems_filesystem_mount_iterate+0x60>    
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
    2488:	e1a00008 	mov	r0, r8                                        
    248c:	e1a01006 	mov	r1, r6                                        
    2490:	e1a0e00f 	mov	lr, pc                                        
    2494:	e12fff15 	bx	r5                                             
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
    2498:	e5988000 	ldr	r8, [r8]                                      
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
    249c:	e1580004 	cmp	r8, r4                                        
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
    24a0:	e1a0a000 	mov	sl, r0                                        
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
    24a4:	1afffff5 	bne	2480 <rtems_filesystem_mount_iterate+0x38>    
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    24a8:	e5970000 	ldr	r0, [r7]                                      
    24ac:	eb000c9a 	bl	571c <rtems_semaphore_release>                 
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
    24b0:	e1a0000a 	mov	r0, sl                                        
    24b4:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
                                                                      

00001ebc <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
    1ebc:	e92d4070 	push	{r4, r5, r6, lr}                             
    1ec0:	e1a05000 	mov	r5, r0                                        
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
    1ec4:	e5d00000 	ldrb	r0, [r0]                                     
    1ec8:	e3510000 	cmp	r1, #0                                        
    1ecc:	13500000 	cmpne	r0, #0                                      
    1ed0:	03a04000 	moveq	r4, #0                                      
    1ed4:	13a04001 	movne	r4, #1                                      
    1ed8:	e1a06001 	mov	r6, r1                                        
)                                                                     
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
    1edc:	13a04000 	movne	r4, #0                                      
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
    1ee0:	1a000005 	bne	1efc <rtems_filesystem_prefix_separators+0x40>
    1ee4:	ea000007 	b	1f08 <rtems_filesystem_prefix_separators+0x4c>  <== NOT EXECUTED
    1ee8:	e5f50001 	ldrb	r0, [r5, #1]!                                
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
    1eec:	e2844001 	add	r4, r4, #1                                    
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
    1ef0:	e1560004 	cmp	r6, r4                                        
    1ef4:	13500000 	cmpne	r0, #0                                      
    1ef8:	0a000002 	beq	1f08 <rtems_filesystem_prefix_separators+0x4c>
    1efc:	eb0003be 	bl	2dfc <rtems_filesystem_is_separator>           
    1f00:	e3500000 	cmp	r0, #0                                        
    1f04:	1afffff7 	bne	1ee8 <rtems_filesystem_prefix_separators+0x2c>
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
    1f08:	e1a00004 	mov	r0, r4                                        
    1f0c:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

00002af4 <rtems_gxx_key_create>: } return 0; } int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
    2af4:	e92d4070 	push	{r4, r5, r6, lr}                             
    2af8:	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 ) );
    2afc:	e3a00008 	mov	r0, #8                                        
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
    2b00:	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 ) );
    2b04:	eb000107 	bl	2f28 <malloc>                                  
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
    2b08:	e3a03000 	mov	r3, #0                                        
   * 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 ) );
    2b0c:	e1a04000 	mov	r4, r0                                        
  *key = new_key;                                                     
    2b10:	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 );
    2b14:	e1a01004 	mov	r1, r4                                        
    2b18:	e1a00003 	mov	r0, r3                                        
    2b1c:	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;                                               
    2b20:	e8840028 	stm	r4, {r3, 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 );
    2b24:	eb000f57 	bl	6888 <rtems_task_variable_add>                 
  if ( status == RTEMS_SUCCESSFUL )                                   
    2b28:	e3500000 	cmp	r0, #0                                        
    2b2c:	08bd8070 	popeq	{r4, r5, r6, pc}                            
    return 0;                                                         
                                                                      
  free( new_key );                                                    
    2b30:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
    2b34:	ebffff87 	bl	2958 <free>                                    <== NOT EXECUTED
  return -1;                                                          
    2b38:	e3e00000 	mvn	r0, #0                                        <== NOT EXECUTED
}                                                                     
    2b3c:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
                                                                      

00002a74 <rtems_gxx_once>: /* uncomment this if you need to debug this interface */ /*#define DEBUG_GXX_WRAPPERS 1*/ int rtems_gxx_once(__gthread_once_t *once, void (*func) (void)) {
    2a74:	e92d4070 	push	{r4, r5, r6, lr}                             
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    2a78:	e5903000 	ldr	r3, [r0]                                      
    2a7c:	e3530000 	cmp	r3, #0                                        
                                                                      
/* uncomment this if you need to debug this interface */              
/*#define DEBUG_GXX_WRAPPERS 1*/                                      
                                                                      
int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))       
{                                                                     
    2a80:	e24dd004 	sub	sp, sp, #4                                    
    2a84:	e1a04000 	mov	r4, r0                                        
    2a88:	e1a05001 	mov	r5, r1                                        
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    2a8c:	0a000002 	beq	2a9c <rtems_gxx_once+0x28>                    
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
    2a90:	e3a00000 	mov	r0, #0                                        
    2a94:	e28dd004 	add	sp, sp, #4                                    
    2a98:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    2a9c:	e3a00c01 	mov	r0, #256	; 0x100                              
    2aa0:	e1a01000 	mov	r1, r0                                        
    2aa4:	e1a0200d 	mov	r2, sp                                        
    2aa8:	eb000eff 	bl	66ac <rtems_task_mode>                         
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
    2aac:	e5943000 	ldr	r3, [r4]                                      
    2ab0:	e3530000 	cmp	r3, #0                                        
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    2ab4:	e1a0600d 	mov	r6, sp                                        
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
    2ab8:	1a000008 	bne	2ae0 <rtems_gxx_once+0x6c>                    
      *(volatile __gthread_once_t *)once = 1;                         
    2abc:	e3a03001 	mov	r3, #1                                        
    2ac0:	e5843000 	str	r3, [r4]                                      
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    2ac4:	e3a01c01 	mov	r1, #256	; 0x100                              
    2ac8:	e1a0200d 	mov	r2, sp                                        
    2acc:	e59d0000 	ldr	r0, [sp]                                      
    2ad0:	eb000ef5 	bl	66ac <rtems_task_mode>                         
    if ( o == 0 )                                                     
      (*func)();                                                      
    2ad4:	e1a0e00f 	mov	lr, pc                                        
    2ad8:	e12fff15 	bx	r5                                             
    2adc:	eaffffeb 	b	2a90 <rtems_gxx_once+0x1c>                      
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
      *(volatile __gthread_once_t *)once = 1;                         
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    2ae0:	e59d0000 	ldr	r0, [sp]                                      <== NOT EXECUTED
    2ae4:	e3a01c01 	mov	r1, #256	; 0x100                              <== NOT EXECUTED
    2ae8:	e1a0200d 	mov	r2, sp                                        <== NOT EXECUTED
    2aec:	eb000eee 	bl	66ac <rtems_task_mode>                         <== NOT EXECUTED
    2af0:	eaffffe6 	b	2a90 <rtems_gxx_once+0x1c>                      <== NOT EXECUTED
                                                                      

00006fc0 <rtems_io_register_driver>: rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() )
    6fc0:	e59f3150 	ldr	r3, [pc, #336]	; 7118 <rtems_io_register_driver+0x158>
    6fc4:	e593c000 	ldr	ip, [r3]                                      
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
    6fc8:	e59f314c 	ldr	r3, [pc, #332]	; 711c <rtems_io_register_driver+0x15c>
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    6fcc:	e35c0000 	cmp	ip, #0                                        
rtems_status_code rtems_io_register_driver(                           
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
    6fd0:	e92d4030 	push	{r4, r5, lr}                                 
    6fd4:	e1a04000 	mov	r4, r0                                        
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
    6fd8:	e5930000 	ldr	r0, [r3]                                      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
    6fdc:	13a00012 	movne	r0, #18                                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    6fe0:	18bd8030 	popne	{r4, r5, pc}                                
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
    6fe4:	e3520000 	cmp	r2, #0                                        
    6fe8:	0a00003f 	beq	70ec <rtems_io_register_driver+0x12c>         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
                                                                      
  if ( driver_table == NULL )                                         
    6fec:	e3510000 	cmp	r1, #0                                        
                                                                      
  if ( registered_major == NULL )                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
    6ff0:	e5820000 	str	r0, [r2]                                      
                                                                      
  if ( driver_table == NULL )                                         
    6ff4:	0a00003c 	beq	70ec <rtems_io_register_driver+0x12c>         
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    6ff8:	e591c000 	ldr	ip, [r1]                                      
    6ffc:	e35c0000 	cmp	ip, #0                                        
    7000:	0a000036 	beq	70e0 <rtems_io_register_driver+0x120>         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
    7004:	e1500004 	cmp	r0, r4                                        
    7008:	9a000027 	bls	70ac <rtems_io_register_driver+0xec>          
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
    700c:	e59f010c 	ldr	r0, [pc, #268]	; 7120 <rtems_io_register_driver+0x160>
    7010:	e590c000 	ldr	ip, [r0]                                      
    7014:	e28cc001 	add	ip, ip, #1                                    
    7018:	e580c000 	str	ip, [r0]                                      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
    701c:	e3540000 	cmp	r4, #0                                        
    7020:	1a000023 	bne	70b4 <rtems_io_register_driver+0xf4>          
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
    7024:	e593c000 	ldr	ip, [r3]                                      
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
    7028:	e35c0000 	cmp	ip, #0                                        
    702c:	0a000030 	beq	70f4 <rtems_io_register_driver+0x134>         
    7030:	e59fe0ec 	ldr	lr, [pc, #236]	; 7124 <rtems_io_register_driver+0x164>
    7034:	e59e3000 	ldr	r3, [lr]                                      
    7038:	ea000003 	b	704c <rtems_io_register_driver+0x8c>            
    703c:	e2844001 	add	r4, r4, #1                                    
    7040:	e15c0004 	cmp	ip, r4                                        
    7044:	e2833018 	add	r3, r3, #24                                   
    7048:	9a000005 	bls	7064 <rtems_io_register_driver+0xa4>          
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    704c:	e5930000 	ldr	r0, [r3]                                      
    7050:	e3500000 	cmp	r0, #0                                        
    7054:	1afffff8 	bne	703c <rtems_io_register_driver+0x7c>          
    7058:	e5930004 	ldr	r0, [r3, #4]                                  
    705c:	e3500000 	cmp	r0, #0                                        
    7060:	1afffff5 	bne	703c <rtems_io_register_driver+0x7c>          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
    7064:	e15c0004 	cmp	ip, r4                                        
    7068:	1084c084 	addne	ip, r4, r4, lsl #1                          
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
    706c:	e5824000 	str	r4, [r2]                                      
                                                                      
  if ( m != n )                                                       
    7070:	11a0c18c 	lslne	ip, ip, #3                                  
    7074:	0a00001f 	beq	70f8 <rtems_io_register_driver+0x138>         
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
    7078:	e59e5000 	ldr	r5, [lr]                                      
    707c:	e1a0e001 	mov	lr, r1                                        
    7080:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    7084:	e085c00c 	add	ip, r5, ip                                    
    7088:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    708c:	e89e0003 	ldm	lr, {r0, r1}                                  
    7090:	e88c0003 	stm	ip, {r0, r1}                                  
                                                                      
  _Thread_Enable_dispatch();                                          
    7094:	eb000755 	bl	8df0 <_Thread_Enable_dispatch>                 
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
    7098:	e3a01000 	mov	r1, #0                                        
    709c:	e1a00004 	mov	r0, r4                                        
    70a0:	e1a02001 	mov	r2, r1                                        
}                                                                     
    70a4:	e8bd4030 	pop	{r4, r5, lr}                                  
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
    70a8:	ea002142 	b	f5b8 <rtems_io_initialize>                      
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
    return RTEMS_INVALID_NUMBER;                                      
    70ac:	e3a0000a 	mov	r0, #10                                       
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
    70b0:	e8bd8030 	pop	{r4, r5, pc}                                  
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
    70b4:	e59fe068 	ldr	lr, [pc, #104]	; 7124 <rtems_io_register_driver+0x164>
    70b8:	e59e3000 	ldr	r3, [lr]                                      
    70bc:	e084c084 	add	ip, r4, r4, lsl #1                            
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    70c0:	e793018c 	ldr	r0, [r3, ip, lsl #3]                          
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
    70c4:	e1a0c18c 	lsl	ip, ip, #3                                    
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    70c8:	e3500000 	cmp	r0, #0                                        
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
    70cc:	e083300c 	add	r3, r3, ip                                    
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    70d0:	0a00000b 	beq	7104 <rtems_io_register_driver+0x144>         
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
                                                                      
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
    70d4:	eb000745 	bl	8df0 <_Thread_Enable_dispatch>                 
      return RTEMS_RESOURCE_IN_USE;                                   
    70d8:	e3a0000c 	mov	r0, #12                                       
    70dc:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    70e0:	e591c004 	ldr	ip, [r1, #4]                                  
    70e4:	e35c0000 	cmp	ip, #0                                        
    70e8:	1affffc5 	bne	7004 <rtems_io_register_driver+0x44>          
                                                                      
  if ( driver_table == NULL )                                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
    70ec:	e3a00009 	mov	r0, #9                                        
    70f0:	e8bd8030 	pop	{r4, r5, pc}                                  
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
    70f4:	e5824000 	str	r4, [r2]                                      <== NOT EXECUTED
                                                                      
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
    70f8:	eb00073c 	bl	8df0 <_Thread_Enable_dispatch>                 
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
    return RTEMS_SUCCESSFUL;                                          
                                                                      
  return RTEMS_TOO_MANY;                                              
    70fc:	e3a00005 	mov	r0, #5                                        
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    7100:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
    7104:	e5933004 	ldr	r3, [r3, #4]                                  
    7108:	e3530000 	cmp	r3, #0                                        
    710c:	1afffff0 	bne	70d4 <rtems_io_register_driver+0x114>         
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
      return RTEMS_RESOURCE_IN_USE;                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
    7110:	e5824000 	str	r4, [r2]                                      
    7114:	eaffffd7 	b	7078 <rtems_io_register_driver+0xb8>            
                                                                      

00002040 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
    2040:	e92d4010 	push	{r4, lr}                                     
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
    2044:	e59f30b8 	ldr	r3, [pc, #184]	; 2104 <rtems_libio_init+0xc4> 
    2048:	e5934000 	ldr	r4, [r3]                                      
    204c:	e3540000 	cmp	r4, #0                                        
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
    2050:	e24dd004 	sub	sp, sp, #4                                    
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
    2054:	0a000017 	beq	20b8 <rtems_libio_init+0x78>                  
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
    2058:	e1a00004 	mov	r0, r4                                        
    205c:	e3a01038 	mov	r1, #56	; 0x38                                
    2060:	ebffff42 	bl	1d70 <calloc>                                  
    2064:	e59f309c 	ldr	r3, [pc, #156]	; 2108 <rtems_libio_init+0xc8> 
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
    2068:	e3500000 	cmp	r0, #0                                        
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
    206c:	e1a02000 	mov	r2, r0                                        
    2070:	e5830000 	str	r0, [r3]                                      
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
    2074:	0a000020 	beq	20fc <rtems_libio_init+0xbc>                  
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
    2078:	e59f308c 	ldr	r3, [pc, #140]	; 210c <rtems_libio_init+0xcc> 
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
    207c:	e3540001 	cmp	r4, #1                                        
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
    2080:	e5830000 	str	r0, [r3]                                      
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
    2084:	9a000009 	bls	20b0 <rtems_libio_init+0x70>                  
 *  rtems_libio_init                                                  
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
    2088:	e2803038 	add	r3, r0, #56	; 0x38                            
    208c:	e3a02001 	mov	r2, #1                                        
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
          iop->data1 = iop + 1;                                       
    2090:	e2822001 	add	r2, r2, #1                                    
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
    2094:	e1520004 	cmp	r2, r4                                        
          iop->data1 = iop + 1;                                       
    2098:	e5033004 	str	r3, [r3, #-4]                                 
    209c:	e2833038 	add	r3, r3, #56	; 0x38                            
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
    20a0:	1afffffa 	bne	2090 <rtems_libio_init+0x50>                  
 *  rtems_libio_init                                                  
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
    20a4:	e2422001 	sub	r2, r2, #1                                    
    20a8:	e0622182 	rsb	r2, r2, r2, lsl #3                            
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
    20ac:	e0802182 	add	r2, r0, r2, lsl #3                            
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
    20b0:	e3a03000 	mov	r3, #0                                        
    20b4:	e5823034 	str	r3, [r2, #52]	; 0x34                          
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
    20b8:	e59fc050 	ldr	ip, [pc, #80]	; 2110 <rtems_libio_init+0xd0>  
    20bc:	e59f0050 	ldr	r0, [pc, #80]	; 2114 <rtems_libio_init+0xd4>  
    20c0:	e3a01001 	mov	r1, #1                                        
    20c4:	e3a02054 	mov	r2, #84	; 0x54                                
    20c8:	e3a03000 	mov	r3, #0                                        
    20cc:	e58dc000 	str	ip, [sp]                                      
    20d0:	eb000cae 	bl	5390 <rtems_semaphore_create>                  
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
    20d4:	e3500000 	cmp	r0, #0                                        
    20d8:	1a000006 	bne	20f8 <rtems_libio_init+0xb8>                  
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
    20dc:	e59f3034 	ldr	r3, [pc, #52]	; 2118 <rtems_libio_init+0xd8>  
    20e0:	e5933000 	ldr	r3, [r3]                                      
    20e4:	e3530000 	cmp	r3, #0                                        
     (* rtems_fs_init_helper)();                                      
    20e8:	11a0e00f 	movne	lr, pc                                      
    20ec:	112fff13 	bxne	r3                                           
}                                                                     
    20f0:	e28dd004 	add	sp, sp, #4                                    
    20f4:	e8bd8010 	pop	{r4, pc}                                      
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
    rtems_fatal_error_occurred( rc );                                 
    20f8:	eb000ee7 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
    if (rtems_libio_number_iops > 0)                                  
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
    20fc:	e280001a 	add	r0, r0, #26                                   
    2100:	eb000ee5 	bl	5c9c <rtems_fatal_error_occurred>              
                                                                      

0000a14c <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
    a14c:	e2002006 	and	r2, r0, #6                                    
    a150:	e3520006 	cmp	r2, #6                                        
 */                                                                   
                                                                      
uint32_t   rtems_libio_to_fcntl_flags(                                
  uint32_t   flags                                                    
)                                                                     
{                                                                     
    a154:	e1a03000 	mov	r3, r0                                        
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
    a158:	03a00002 	moveq	r0, #2                                      
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    a15c:	0a000002 	beq	a16c <rtems_libio_to_fcntl_flags+0x20>        
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
    a160:	e3130002 	tst	r3, #2                                        
    fcntl_flags |= O_RDONLY;                                          
    a164:	13a00000 	movne	r0, #0                                      
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
    a168:	0a000006 	beq	a188 <rtems_libio_to_fcntl_flags+0x3c>        
    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 ) {     
    a16c:	e3130001 	tst	r3, #1                                        
    fcntl_flags |= O_NONBLOCK;                                        
    a170:	13800901 	orrne	r0, r0, #16384	; 0x4000                     
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
    a174:	e3130c02 	tst	r3, #512	; 0x200                              
    fcntl_flags |= O_APPEND;                                          
    a178:	13800008 	orrne	r0, r0, #8                                  
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
    a17c:	e3130b01 	tst	r3, #1024	; 0x400                             
    fcntl_flags |= O_CREAT;                                           
    a180:	13800c02 	orrne	r0, r0, #512	; 0x200                        
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
    a184:	e12fff1e 	bx	lr                                             
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
    a188:	e3130004 	tst	r3, #4                                        <== NOT EXECUTED
    a18c:	03a00000 	moveq	r0, #0                                      <== NOT EXECUTED
    a190:	13a00001 	movne	r0, #1                                      <== NOT EXECUTED
    a194:	eafffff4 	b	a16c <rtems_libio_to_fcntl_flags+0x20>          <== NOT EXECUTED
                                                                      

000058fc <rtems_object_get_api_class_name>: ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API )
    58fc:	e3500001 	cmp	r0, #1                                        
                                                                      
const char *rtems_object_get_api_class_name(                          
  int the_api,                                                        
  int the_class                                                       
)                                                                     
{                                                                     
    5900:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  const rtems_assoc_t *api_assoc;                                     
  const rtems_assoc_t *class_assoc;                                   
                                                                      
  if ( the_api == OBJECTS_INTERNAL_API )                              
    5904:	0a00000d 	beq	5940 <rtems_object_get_api_class_name+0x44>   
    api_assoc = rtems_object_api_internal_assoc;                      
  else if ( the_api == OBJECTS_CLASSIC_API )                          
    5908:	e3500002 	cmp	r0, #2                                        
    590c:	0a000004 	beq	5924 <rtems_object_get_api_class_name+0x28>   
    api_assoc = rtems_object_api_classic_assoc;                       
#ifdef RTEMS_POSIX_API                                                
  else if ( the_api == OBJECTS_POSIX_API )                            
    5910:	e3500003 	cmp	r0, #3                                        
    api_assoc = rtems_object_api_posix_assoc;                         
    5914:	059f003c 	ldreq	r0, [pc, #60]	; 5958 <rtems_object_get_api_class_name+0x5c>
  if ( the_api == OBJECTS_INTERNAL_API )                              
    api_assoc = rtems_object_api_internal_assoc;                      
  else if ( the_api == OBJECTS_CLASSIC_API )                          
    api_assoc = rtems_object_api_classic_assoc;                       
#ifdef RTEMS_POSIX_API                                                
  else if ( the_api == OBJECTS_POSIX_API )                            
    5918:	0a000002 	beq	5928 <rtems_object_get_api_class_name+0x2c>   
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
    591c:	e59f0038 	ldr	r0, [pc, #56]	; 595c <rtems_object_get_api_class_name+0x60>
    5920:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
  const rtems_assoc_t *class_assoc;                                   
                                                                      
  if ( the_api == OBJECTS_INTERNAL_API )                              
    api_assoc = rtems_object_api_internal_assoc;                      
  else if ( the_api == OBJECTS_CLASSIC_API )                          
    api_assoc = rtems_object_api_classic_assoc;                       
    5924:	e59f0034 	ldr	r0, [pc, #52]	; 5960 <rtems_object_get_api_class_name+0x64>
  else if ( the_api == OBJECTS_POSIX_API )                            
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
  class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );     
    5928:	eb00137f 	bl	a72c <rtems_assoc_ptr_by_local>                
  if ( class_assoc )                                                  
    592c:	e3500000 	cmp	r0, #0                                        
    return class_assoc->name;                                         
    5930:	15900000 	ldrne	r0, [r0]                                    
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
  class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );     
  if ( class_assoc )                                                  
    5934:	149df004 	popne	{pc}		; (ldrne pc, [sp], #4)                
    return class_assoc->name;                                         
  return "BAD CLASS";                                                 
    5938:	e59f0024 	ldr	r0, [pc, #36]	; 5964 <rtems_object_get_api_class_name+0x68>
}                                                                     
    593c:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
{                                                                     
  const rtems_assoc_t *api_assoc;                                     
  const rtems_assoc_t *class_assoc;                                   
                                                                      
  if ( the_api == OBJECTS_INTERNAL_API )                              
    api_assoc = rtems_object_api_internal_assoc;                      
    5940:	e59f0020 	ldr	r0, [pc, #32]	; 5968 <rtems_object_get_api_class_name+0x6c>
  else if ( the_api == OBJECTS_POSIX_API )                            
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
  class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );     
    5944:	eb001378 	bl	a72c <rtems_assoc_ptr_by_local>                
  if ( class_assoc )                                                  
    5948:	e3500000 	cmp	r0, #0                                        
    return class_assoc->name;                                         
    594c:	15900000 	ldrne	r0, [r0]                                    
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
  class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );     
  if ( class_assoc )                                                  
    5950:	149df004 	popne	{pc}		; (ldrne pc, [sp], #4)                
    5954:	eafffff7 	b	5938 <rtems_object_get_api_class_name+0x3c>     <== NOT EXECUTED
                                                                      

000015cc <rtems_print_buffer>: void rtems_print_buffer( const unsigned char *buffer, int length ) {
    15cc:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
                                                                      
  int i, mod, max;                                                    
                                                                      
  if ( !length ) return;                                              
    15d0:	e3510000 	cmp	r1, #0                                        
                                                                      
void rtems_print_buffer(                                              
  const unsigned char *buffer,                                        
  int                  length                                         
)                                                                     
{                                                                     
    15d4:	e24dd078 	sub	sp, sp, #120	; 0x78                           
    15d8:	e1a0b000 	mov	fp, r0                                        
                                                                      
  int i, mod, max;                                                    
                                                                      
  if ( !length ) return;                                              
    15dc:	0a000037 	beq	16c0 <rtems_print_buffer+0xf4>                
                                                                      
  mod = length % 16;                                                  
    15e0:	e1a03fc1 	asr	r3, r1, #31                                   
    15e4:	e1a03e23 	lsr	r3, r3, #28                                   
    15e8:	e081a003 	add	sl, r1, r3                                    
    15ec:	e20aa00f 	and	sl, sl, #15                                   
    15f0:	e063a00a 	rsb	sl, r3, sl                                    
                                                                      
  max = length - mod;                                                 
    15f4:	e06a9001 	rsb	r9, sl, r1                                    
                                                                      
  for ( i=0 ; i<max ; i+=16 )                                         
    15f8:	e3590000 	cmp	r9, #0                                        
    15fc:	da00002d 	ble	16b8 <rtems_print_buffer+0xec>                
    1600:	e59f71f4 	ldr	r7, [pc, #500]	; 17fc <rtems_print_buffer+0x230>
    1604:	e3a08000 	mov	r8, #0                                        
    1608:	e1a0400d 	mov	r4, sp                                        
{                                                                     
                                                                      
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
    160c:	e3a03000 	mov	r3, #0                                        
    1610:	e5cd3000 	strb	r3, [sp]                                     
static inline void Dump_Line(                                         
  const unsigned char *buffer,                                        
  int                  length                                         
);                                                                    
                                                                      
void rtems_print_buffer(                                              
    1614:	e08b6008 	add	r6, fp, r8                                    
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    1618:	e3a05000 	mov	r5, #0                                        
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
    161c:	e7d63005 	ldrb	r3, [r6, r5]                                 
    1620:	e1a0000d 	mov	r0, sp                                        
    1624:	e59f11d4 	ldr	r1, [pc, #468]	; 1800 <rtems_print_buffer+0x234>
    1628:	e1a0200d 	mov	r2, sp                                        
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    162c:	e2855001 	add	r5, r5, #1                                    
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
    1630:	eb00346a 	bl	e7e0 <sprintf>                                 
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    1634:	e3550010 	cmp	r5, #16                                       
    1638:	1afffff7 	bne	161c <rtems_print_buffer+0x50>                
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
    163c:	e1a0000d 	mov	r0, sp                                        
    1640:	eb00359d 	bl	ecbc <strlen>                                  
    1644:	e59f11b8 	ldr	r1, [pc, #440]	; 1804 <rtems_print_buffer+0x238>
    1648:	e0840000 	add	r0, r4, r0                                    
    164c:	e3a02002 	mov	r2, #2                                        
    1650:	eb0033d1 	bl	e59c <memcpy>                                  
  for( i=0 ; i<length ; i++ )                                         
    1654:	e3a05000 	mov	r5, #0                                        
    sprintf( line_buffer, "%s%c", line_buffer,                        
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
    1658:	e7d63005 	ldrb	r3, [r6, r5]                                 
    165c:	e5972000 	ldr	r2, [r7]                                      
    1660:	e0822003 	add	r2, r2, r3                                    
    1664:	e5d22001 	ldrb	r2, [r2, #1]                                 
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%c", line_buffer,                        
    1668:	e3120097 	tst	r2, #151	; 0x97                               
    166c:	03a0302e 	moveq	r3, #46	; 0x2e                              
    1670:	e1a0000d 	mov	r0, sp                                        
    1674:	e59f118c 	ldr	r1, [pc, #396]	; 1808 <rtems_print_buffer+0x23c>
    1678:	e1a0200d 	mov	r2, sp                                        
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    167c:	e2855001 	add	r5, r5, #1                                    
    sprintf( line_buffer, "%s%c", line_buffer,                        
    1680:	eb003456 	bl	e7e0 <sprintf>                                 
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    1684:	e3550010 	cmp	r5, #16                                       
    1688:	1afffff2 	bne	1658 <rtems_print_buffer+0x8c>                
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, " " );                                       
                                                                      
  strcat( line_buffer, "|\n" );                                       
    168c:	e1a0000d 	mov	r0, sp                                        
    1690:	eb003589 	bl	ecbc <strlen>                                  
    1694:	e59f1170 	ldr	r1, [pc, #368]	; 180c <rtems_print_buffer+0x240>
    1698:	e3a02003 	mov	r2, #3                                        
    169c:	e0840000 	add	r0, r4, r0                                    
    16a0:	eb0033bd 	bl	e59c <memcpy>                                  
                                                                      
  mod = length % 16;                                                  
                                                                      
  max = length - mod;                                                 
                                                                      
  for ( i=0 ; i<max ; i+=16 )                                         
    16a4:	e2888010 	add	r8, r8, #16                                   
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, " " );                                       
                                                                      
  strcat( line_buffer, "|\n" );                                       
                                                                      
  printk( line_buffer );                                              
    16a8:	e1a0000d 	mov	r0, sp                                        
    16ac:	eb00063b 	bl	2fa0 <printk>                                  
                                                                      
  mod = length % 16;                                                  
                                                                      
  max = length - mod;                                                 
                                                                      
  for ( i=0 ; i<max ; i+=16 )                                         
    16b0:	e1590008 	cmp	r9, r8                                        
    16b4:	caffffd4 	bgt	160c <rtems_print_buffer+0x40>                
    Dump_Line( &buffer[ i ], 16 );                                    
                                                                      
  if ( mod )                                                          
    16b8:	e35a0000 	cmp	sl, #0                                        
    16bc:	1a000001 	bne	16c8 <rtems_print_buffer+0xfc>                
    Dump_Line( &buffer[ max ], mod );                                 
}                                                                     
    16c0:	e28dd078 	add	sp, sp, #120	; 0x78                           
    16c4:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
{                                                                     
                                                                      
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
    16c8:	e3a05000 	mov	r5, #0                                        
                                                                      
  for ( i=0 ; i<max ; i+=16 )                                         
    Dump_Line( &buffer[ i ], 16 );                                    
                                                                      
  if ( mod )                                                          
    Dump_Line( &buffer[ max ], mod );                                 
    16cc:	e08b9009 	add	r9, fp, r9                                    
{                                                                     
                                                                      
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
    16d0:	e5cd5000 	strb	r5, [sp]                                     
    16d4:	d1a0400d 	movle	r4, sp                                      
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    16d8:	da00000b 	ble	170c <rtems_print_buffer+0x140>               
    16dc:	e1a0400d 	mov	r4, sp                                        
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
    16e0:	e7d93005 	ldrb	r3, [r9, r5]                                 
    16e4:	e1a0000d 	mov	r0, sp                                        
    16e8:	e59f1110 	ldr	r1, [pc, #272]	; 1800 <rtems_print_buffer+0x234>
    16ec:	e1a0200d 	mov	r2, sp                                        
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    16f0:	e2855001 	add	r5, r5, #1                                    
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
    16f4:	eb003439 	bl	e7e0 <sprintf>                                 
  int  i;                                                             
  char line_buffer[120];                                              
                                                                      
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    16f8:	e15a0005 	cmp	sl, r5                                        
    16fc:	cafffff7 	bgt	16e0 <rtems_print_buffer+0x114>               
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
                                                                      
  for( ; i<16 ; i++ )                                                 
    1700:	e35a000f 	cmp	sl, #15                                       
    1704:	d1a0500a 	movle	r5, sl                                      
    1708:	ca000034 	bgt	17e0 <rtems_print_buffer+0x214>               
    strcat( line_buffer, "   " );                                     
    170c:	e1a0000d 	mov	r0, sp                                        
    1710:	eb003569 	bl	ecbc <strlen>                                  
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
                                                                      
  for( ; i<16 ; i++ )                                                 
    1714:	e2855001 	add	r5, r5, #1                                    
    strcat( line_buffer, "   " );                                     
    1718:	e59f10f0 	ldr	r1, [pc, #240]	; 1810 <rtems_print_buffer+0x244>
    171c:	e0840000 	add	r0, r4, r0                                    
    1720:	e3a02004 	mov	r2, #4                                        
    1724:	eb00339c 	bl	e59c <memcpy>                                  
  line_buffer[0] = '\0';                                              
                                                                      
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
                                                                      
  for( ; i<16 ; i++ )                                                 
    1728:	e355000f 	cmp	r5, #15                                       
    172c:	dafffff6 	ble	170c <rtems_print_buffer+0x140>               
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
    1730:	e1a0000d 	mov	r0, sp                                        
    1734:	eb003560 	bl	ecbc <strlen>                                  
    1738:	e59f10c4 	ldr	r1, [pc, #196]	; 1804 <rtems_print_buffer+0x238>
    173c:	e0840000 	add	r0, r4, r0                                    
    1740:	e3a02002 	mov	r2, #2                                        
    1744:	eb003394 	bl	e59c <memcpy>                                  
  for( i=0 ; i<length ; i++ )                                         
    1748:	e35a0000 	cmp	sl, #0                                        
    174c:	d3a0a000 	movle	sl, #0                                      
    1750:	da000010 	ble	1798 <rtems_print_buffer+0x1cc>               
    1754:	e59f70a0 	ldr	r7, [pc, #160]	; 17fc <rtems_print_buffer+0x230>
    1758:	e3a05000 	mov	r5, #0                                        
    sprintf( line_buffer, "%s%c", line_buffer,                        
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
    175c:	e7d93005 	ldrb	r3, [r9, r5]                                 
    1760:	e5972000 	ldr	r2, [r7]                                      
    1764:	e0822003 	add	r2, r2, r3                                    
    1768:	e5d22001 	ldrb	r2, [r2, #1]                                 
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%c", line_buffer,                        
    176c:	e3120097 	tst	r2, #151	; 0x97                               
    1770:	03a0302e 	moveq	r3, #46	; 0x2e                              
    1774:	e1a0000d 	mov	r0, sp                                        
    1778:	e59f1088 	ldr	r1, [pc, #136]	; 1808 <rtems_print_buffer+0x23c>
    177c:	e1a0200d 	mov	r2, sp                                        
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    1780:	e2855001 	add	r5, r5, #1                                    
    sprintf( line_buffer, "%s%c", line_buffer,                        
    1784:	eb003415 	bl	e7e0 <sprintf>                                 
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    1788:	e15a0005 	cmp	sl, r5                                        
    178c:	cafffff2 	bgt	175c <rtems_print_buffer+0x190>               
    sprintf( line_buffer, "%s%c", line_buffer,                        
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
                                                                      
  for( ; i<16 ; i++ )                                                 
    1790:	e35a000f 	cmp	sl, #15                                       
    1794:	ca000008 	bgt	17bc <rtems_print_buffer+0x1f0>               
    strcat( line_buffer, " " );                                       
    1798:	e1a0000d 	mov	r0, sp                                        
    179c:	eb003546 	bl	ecbc <strlen>                                  
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%c", line_buffer,                        
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
                                                                      
  for( ; i<16 ; i++ )                                                 
    17a0:	e28aa001 	add	sl, sl, #1                                    
    strcat( line_buffer, " " );                                       
    17a4:	e59f1068 	ldr	r1, [pc, #104]	; 1814 <rtems_print_buffer+0x248>
    17a8:	e0840000 	add	r0, r4, r0                                    
    17ac:	e3a02002 	mov	r2, #2                                        
    17b0:	eb003379 	bl	e59c <memcpy>                                  
  strcat( line_buffer, "|" );                                         
  for( i=0 ; i<length ; i++ )                                         
    sprintf( line_buffer, "%s%c", line_buffer,                        
             isprint( buffer[ i ] ) ? buffer[ i ] : '.' );            
                                                                      
  for( ; i<16 ; i++ )                                                 
    17b4:	e35a000f 	cmp	sl, #15                                       
    17b8:	dafffff6 	ble	1798 <rtems_print_buffer+0x1cc>               
    strcat( line_buffer, " " );                                       
                                                                      
  strcat( line_buffer, "|\n" );                                       
    17bc:	e1a0000d 	mov	r0, sp                                        
    17c0:	eb00353d 	bl	ecbc <strlen>                                  
    17c4:	e59f1040 	ldr	r1, [pc, #64]	; 180c <rtems_print_buffer+0x240>
    17c8:	e0840000 	add	r0, r4, r0                                    
    17cc:	e3a02003 	mov	r2, #3                                        
    17d0:	eb003371 	bl	e59c <memcpy>                                  
                                                                      
  printk( line_buffer );                                              
    17d4:	e1a0000d 	mov	r0, sp                                        
    17d8:	eb0005f0 	bl	2fa0 <printk>                                  
    17dc:	eaffffb7 	b	16c0 <rtems_print_buffer+0xf4>                  
    sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );      
                                                                      
  for( ; i<16 ; i++ )                                                 
    strcat( line_buffer, "   " );                                     
                                                                      
  strcat( line_buffer, "|" );                                         
    17e0:	e1a0000d 	mov	r0, sp                                        <== NOT EXECUTED
    17e4:	eb003534 	bl	ecbc <strlen>                                  <== NOT EXECUTED
    17e8:	e59f1014 	ldr	r1, [pc, #20]	; 1804 <rtems_print_buffer+0x238><== NOT EXECUTED
    17ec:	e0840000 	add	r0, r4, r0                                    <== NOT EXECUTED
    17f0:	e3a02002 	mov	r2, #2                                        <== NOT EXECUTED
    17f4:	eb003368 	bl	e59c <memcpy>                                  <== NOT EXECUTED
    17f8:	eaffffd5 	b	1754 <rtems_print_buffer+0x188>                 <== NOT EXECUTED
                                                                      

00002198 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
    2198:	e92d4830 	push	{r4, r5, fp, lr}                             
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
    219c:	e59f4074 	ldr	r4, [pc, #116]	; 2218 <rtems_stack_checker_is_blown+0x80>
    21a0:	e5943004 	ldr	r3, [r4, #4]                                  
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    21a4:	e59300bc 	ldr	r0, [r3, #188]	; 0xbc                         
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
    21a8:	e28db00c 	add	fp, sp, #12                                   
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    21ac:	e15b0000 	cmp	fp, r0                                        
      return false;                                                   
    21b0:	33a05000 	movcc	r5, #0                                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    21b4:	3a000004 	bcc	21cc <rtems_stack_checker_is_blown+0x34>      
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
    21b8:	e59350b8 	ldr	r5, [r3, #184]	; 0xb8                         
    21bc:	e0805005 	add	r5, r0, r5                                    
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
    21c0:	e15b0005 	cmp	fp, r5                                        
    21c4:	83a05000 	movhi	r5, #0                                      
    21c8:	93a05001 	movls	r5, #1                                      
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
    21cc:	e59f3048 	ldr	r3, [pc, #72]	; 221c <rtems_stack_checker_is_blown+0x84>
    21d0:	e5933008 	ldr	r3, [r3, #8]                                  
    21d4:	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;                                   
    21d8:	03a01001 	moveq	r1, #1                                      
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
    21dc:	0a000005 	beq	21f8 <rtems_stack_checker_is_blown+0x60>      
    pattern_ok = (!memcmp(                                            
    21e0:	e59f1038 	ldr	r1, [pc, #56]	; 2220 <rtems_stack_checker_is_blown+0x88>
    21e4:	e2800008 	add	r0, r0, #8                                    
    21e8:	e3a02010 	mov	r2, #16                                       
    21ec:	eb003ba8 	bl	11094 <memcmp>                                 
    21f0:	e2701001 	rsbs	r1, r0, #1                                   
    21f4:	33a01000 	movcc	r1, #0                                      
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
    21f8:	e3550000 	cmp	r5, #0                                        
    21fc:	0a000003 	beq	2210 <rtems_stack_checker_is_blown+0x78>      
    2200:	e3510000 	cmp	r1, #0                                        
    2204:	0a000001 	beq	2210 <rtems_stack_checker_is_blown+0x78>      
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
    2208:	e3a00000 	mov	r0, #0                                        
    220c:	e8bd8830 	pop	{r4, r5, fp, pc}                              
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
    2210:	e5940004 	ldr	r0, [r4, #4]                                  <== NOT EXECUTED
    2214:	ebffff98 	bl	207c <Stack_check_report_blown_task>           <== NOT EXECUTED
                                                                      

00002130 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
    2130:	e92d4810 	push	{r4, fp, lr}                                 
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
                                                                      
  pattern = Stack_check_Get_pattern_area(the_stack);                  
    2134:	e59030bc 	ldr	r3, [r0, #188]	; 0xbc                         
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
    2138:	e28db008 	add	fp, sp, #8                                    
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    213c:	e15b0003 	cmp	fp, r3                                        
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
    2140:	e1a04000 	mov	r4, r0                                        
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
                                                                      
  pattern = Stack_check_Get_pattern_area(the_stack);                  
    2144:	e2830008 	add	r0, r3, #8                                    
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
    2148:	3a000003 	bcc	215c <rtems_stack_checker_switch_extension+0x2c>
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
    214c:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         
    2150:	e0833002 	add	r3, r3, r2                                    
    2154:	e15b0003 	cmp	fp, r3                                        
    2158:	9a000006 	bls	2178 <rtems_stack_checker_switch_extension+0x48>
  /*                                                                  
   *  Check for an out of bounds stack pointer or an overwrite        
   */                                                                 
  sp_ok = Stack_check_Frame_pointer_in_range( the_stack );            
                                                                      
  pattern_ok = (!memcmp( pattern,                                     
    215c:	e59f1030 	ldr	r1, [pc, #48]	; 2194 <rtems_stack_checker_switch_extension+0x64><== NOT EXECUTED
    2160:	e3a02010 	mov	r2, #16                                       <== NOT EXECUTED
    2164:	eb003bca 	bl	11094 <memcmp>                                 <== NOT EXECUTED
    2168:	e2701001 	rsbs	r1, r0, #1                                   <== NOT EXECUTED
    216c:	33a01000 	movcc	r1, #0                                      <== NOT EXECUTED
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( running, pattern_ok );             
    2170:	e1a00004 	mov	r0, r4                                        
    2174:	ebffffc0 	bl	207c <Stack_check_report_blown_task>           
  /*                                                                  
   *  Check for an out of bounds stack pointer or an overwrite        
   */                                                                 
  sp_ok = Stack_check_Frame_pointer_in_range( the_stack );            
                                                                      
  pattern_ok = (!memcmp( pattern,                                     
    2178:	e59f1014 	ldr	r1, [pc, #20]	; 2194 <rtems_stack_checker_switch_extension+0x64>
    217c:	e3a02010 	mov	r2, #16                                       
    2180:	eb003bc3 	bl	11094 <memcmp>                                 
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
    2184:	e3500000 	cmp	r0, #0                                        
    2188:	08bd8810 	popeq	{r4, fp, pc}                                
    218c:	e3a01000 	mov	r1, #0                                        
    2190:	eafffff6 	b	2170 <rtems_stack_checker_switch_extension+0x40>
                                                                      

0000beac <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
    beac:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    beb0:	e2515000 	subs	r5, r1, #0                                   
  #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)       
    ,                                                                 
    int              base                                             
  #endif                                                              
)                                                                     
{                                                                     
    beb4:	e1a04000 	mov	r4, r0                                        
    beb8:	e24dd004 	sub	sp, sp, #4                                    
    bebc:	e1a06002 	mov	r6, r2                                        
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
    bec0:	03a00009 	moveq	r0, #9                                      
)                                                                     
{                                                                     
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    bec4:	0a000013 	beq	bf18 <rtems_string_to_pointer+0x6c>           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
    bec8:	eb000bcd 	bl	ee04 <__errno>                                 
    becc:	e3a03000 	mov	r3, #0                                        
    bed0:	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 );                         
    bed4:	e1a0100d 	mov	r1, sp                                        
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
    bed8:	e5853000 	str	r3, [r5]                                      
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
    bedc:	e1a00004 	mov	r0, r4                                        
    bee0:	e3a02010 	mov	r2, #16                                       
    bee4:	eb0018f5 	bl	122c0 <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 )                                                       
    bee8:	e3560000 	cmp	r6, #0                                        
    *endptr = end;                                                    
    beec:	159d3000 	ldrne	r3, [sp]                                    
  #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 )                                                       
    bef0:	059d3000 	ldreq	r3, [sp]                                    
    *endptr = end;                                                    
    bef4:	15863000 	strne	r3, [r6]                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
    bef8:	e1540003 	cmp	r4, r3                                        
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
    befc:	e1a07000 	mov	r7, r0                                        
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
    bf00:	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 )                                                     
    bf04:	0a000003 	beq	bf18 <rtems_string_to_pointer+0x6c>           
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
    bf08:	e3770001 	cmn	r7, #1                                        
    bf0c:	0a000003 	beq	bf20 <rtems_string_to_pointer+0x74>           
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
    bf10:	e5857000 	str	r7, [r5]                                      
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
    bf14:	e3a00000 	mov	r0, #0                                        
}                                                                     
    bf18:	e28dd004 	add	sp, sp, #4                                    
    bf1c:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
    bf20:	eb000bb7 	bl	ee04 <__errno>                                 <== NOT EXECUTED
    bf24:	e5903000 	ldr	r3, [r0]                                      <== NOT EXECUTED
    bf28:	e3530022 	cmp	r3, #34	; 0x22                                <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
    bf2c:	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))              
    bf30:	1afffff6 	bne	bf10 <rtems_string_to_pointer+0x64>           <== NOT EXECUTED
    bf34:	eafffff7 	b	bf18 <rtems_string_to_pointer+0x6c>             <== NOT EXECUTED
                                                                      

00001a8c <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
    1a8c:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    1a90:	e24ddf6a 	sub	sp, sp, #424	; 0x1a8                          
    1a94:	e1a06001 	mov	r6, r1                                        
    1a98:	e1a07002 	mov	r7, r2                                        
    1a9c:	e58d0014 	str	r0, [sp, #20]                                 
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
    1aa0:	eb0043c4 	bl	129b8 <strlen>                                 
    1aa4:	e28d2e19 	add	r2, sp, #400	; 0x190                          
    1aa8:	e1a01000 	mov	r1, r0                                        
    1aac:	e58d2008 	str	r2, [sp, #8]                                  
    1ab0:	e59d0014 	ldr	r0, [sp, #20]                                 
    1ab4:	e3a02000 	mov	r2, #0                                        
    1ab8:	e28d3e19 	add	r3, sp, #400	; 0x190                          
    1abc:	e58d2000 	str	r2, [sp]                                      
    1ac0:	eb0002c0 	bl	25c8 <rtems_filesystem_evaluate_path>          
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
    1ac4:	e3500000 	cmp	r0, #0                                        
     return -1;                                                       
    1ac8:	13e02000 	mvnne	r2, #0                                      
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
    1acc:	e58d0010 	str	r0, [sp, #16]                                 
     return -1;                                                       
    1ad0:	158d2010 	strne	r2, [sp, #16]                               
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
    1ad4:	1a000032 	bne	1ba4 <rtems_tarfs_load+0x118>                 
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
    1ad8:	e59d319c 	ldr	r3, [sp, #412]	; 0x19c                        
    1adc:	e59f21d4 	ldr	r2, [pc, #468]	; 1cb8 <rtems_tarfs_load+0x22c>
    1ae0:	e1530002 	cmp	r3, r2                                        
    1ae4:	059da010 	ldreq	sl, [sp, #16]                               
    1ae8:	1a00006b 	bne	1c9c <rtems_tarfs_load+0x210>                 
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
    1aec:	e28a4c02 	add	r4, sl, #512	; 0x200                          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    1af0:	e28d3f5f 	add	r3, sp, #380	; 0x17c                          
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
    1af4:	e1540007 	cmp	r4, r7                                        
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    1af8:	e28d5f46 	add	r5, sp, #280	; 0x118                          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    1afc:	e58d3004 	str	r3, [sp, #4]                                  
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
    1b00:	8a000027 	bhi	1ba4 <rtems_tarfs_load+0x118>                 
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    1b04:	e086a00a 	add	sl, r6, sl                                    
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
    1b08:	e28a0c01 	add	r0, sl, #256	; 0x100                          
    1b0c:	e2800001 	add	r0, r0, #1                                    
    1b10:	e59f11a4 	ldr	r1, [pc, #420]	; 1cbc <rtems_tarfs_load+0x230>
    1b14:	e3a02005 	mov	r2, #5                                        
    1b18:	eb0043be 	bl	12a18 <strncmp>                                
    1b1c:	e2508000 	subs	r8, r0, #0                                   
    1b20:	1a00001f 	bne	1ba4 <rtems_tarfs_load+0x118>                 
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    1b24:	e3a02063 	mov	r2, #99	; 0x63                                
    1b28:	e1a0100a 	mov	r1, sl                                        
    1b2c:	e1a00005 	mov	r0, r5                                        
    1b30:	eb004414 	bl	12b88 <strncpy>                                
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
    1b34:	e5cd817b 	strb	r8, [sp, #379]	; 0x17b                       
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    1b38:	e3a01008 	mov	r1, #8                                        
    1b3c:	e28a0064 	add	r0, sl, #100	; 0x64                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    1b40:	e5dab09c 	ldrb	fp, [sl, #156]	; 0x9c                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    1b44:	eb001feb 	bl	9af8 <_rtems_octal2ulong>                      
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
    1b48:	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);                
    1b4c:	e1a09000 	mov	r9, r0                                        
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
    1b50:	e28a007c 	add	r0, sl, #124	; 0x7c                           
    1b54:	eb001fe7 	bl	9af8 <_rtems_octal2ulong>                      
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
    1b58:	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);               
    1b5c:	e1a08000 	mov	r8, r0                                        
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
    1b60:	e28a0094 	add	r0, sl, #148	; 0x94                           
    1b64:	eb001fe3 	bl	9af8 <_rtems_octal2ulong>                      
    1b68:	e1a03000 	mov	r3, r0                                        
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
    1b6c:	e1a0000a 	mov	r0, sl                                        
    1b70:	e58d300c 	str	r3, [sp, #12]                                 
    1b74:	eb0020ec 	bl	9f2c <_rtems_tar_header_checksum>              
    1b78:	e59d300c 	ldr	r3, [sp, #12]                                 
    1b7c:	e1500003 	cmp	r0, r3                                        
    1b80:	1a000007 	bne	1ba4 <rtems_tarfs_load+0x118>                 
     * 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) {                                        
    1b84:	e35b0035 	cmp	fp, #53	; 0x35                                
    1b88:	0a00001a 	beq	1bf8 <rtems_tarfs_load+0x16c>                 
     *        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) {                                   
    1b8c:	e35b0030 	cmp	fp, #48	; 0x30                                
    1b90:	0a000006 	beq	1bb0 <rtems_tarfs_load+0x124>                 
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
    1b94:	e1a0a004 	mov	sl, r4                                        
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
    1b98:	e28a4c02 	add	r4, sl, #512	; 0x200                          
    1b9c:	e1540007 	cmp	r4, r7                                        
    1ba0:	9affffd7 	bls	1b04 <rtems_tarfs_load+0x78>                  
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
    1ba4:	e59d0010 	ldr	r0, [sp, #16]                                 
    1ba8:	e28ddf6a 	add	sp, sp, #424	; 0x1a8                          
    1bac:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    1bb0:	e59dc008 	ldr	ip, [sp, #8]                                  
    1bb4:	e59de004 	ldr	lr, [sp, #4]                                  
    1bb8:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    1bbc:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    1bc0:	e59cc000 	ldr	ip, [ip]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
    1bc4:	e1a00005 	mov	r0, r5                                        
    1bc8:	e28d1f5f 	add	r1, sp, #380	; 0x17c                          
    1bcc:	e28d2f69 	add	r2, sp, #420	; 0x1a4                          
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
    1bd0:	e58ec000 	str	ip, [lr]                                      
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
    1bd4:	eb002307 	bl	a7f8 <IMFS_evaluate_for_make>                  
    1bd8:	e250a000 	subs	sl, r0, #0                                   
    1bdc:	0a00001d 	beq	1c58 <rtems_tarfs_load+0x1cc>                 
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
    1be0:	e2888f7f 	add	r8, r8, #508	; 0x1fc                          <== NOT EXECUTED
    1be4:	e2888003 	add	r8, r8, #3                                    <== NOT EXECUTED
    1be8:	e1a084a8 	lsr	r8, r8, #9                                    <== NOT EXECUTED
      offset += 512 * nblocks;                                        
    1bec:	e0844488 	add	r4, r4, r8, lsl #9                            <== NOT EXECUTED
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
    1bf0:	e1a0a004 	mov	sl, r4                                        
    1bf4:	eaffffe7 	b	1b98 <rtems_tarfs_load+0x10c>                   
     * - 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);                              
    1bf8:	e59d1014 	ldr	r1, [sp, #20]                                 
    1bfc:	e28d0018 	add	r0, sp, #24                                   
    1c00:	eb0041a8 	bl	122a8 <strcpy>                                 
      if (full_filename[strlen(full_filename)-1] != '/')              
    1c04:	e28d0018 	add	r0, sp, #24                                   
    1c08:	eb00436a 	bl	129b8 <strlen>                                 
    1c0c:	e28def6a 	add	lr, sp, #424	; 0x1a8                          
    1c10:	e08e3000 	add	r3, lr, r0                                    
    1c14:	e5533191 	ldrb	r3, [r3, #-401]	; 0x191                      
    1c18:	e353002f 	cmp	r3, #47	; 0x2f                                
    1c1c:	0a000004 	beq	1c34 <rtems_tarfs_load+0x1a8>                 
        strcat(full_filename, "/");                                   
    1c20:	e28d2018 	add	r2, sp, #24                                   <== NOT EXECUTED
    1c24:	e0820000 	add	r0, r2, r0                                    <== NOT EXECUTED
    1c28:	e59f1090 	ldr	r1, [pc, #144]	; 1cc0 <rtems_tarfs_load+0x234><== NOT EXECUTED
    1c2c:	e3a02002 	mov	r2, #2                                        <== NOT EXECUTED
    1c30:	eb003e85 	bl	1164c <memcpy>                                 <== NOT EXECUTED
      strcat(full_filename, filename);                                
    1c34:	e1a01005 	mov	r1, r5                                        
    1c38:	e28d0018 	add	r0, sp, #24                                   
    1c3c:	eb0040e2 	bl	11fcc <strcat>                                 
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
    1c40:	e3a01f7f 	mov	r1, #508	; 0x1fc                              
    1c44:	e28d0018 	add	r0, sp, #24                                   
    1c48:	e2811003 	add	r1, r1, #3                                    
    1c4c:	eb0004c0 	bl	2f54 <mkdir>                                   
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
    1c50:	e1a0a004 	mov	sl, r4                                        
    1c54:	eaffffcf 	b	1b98 <rtems_tarfs_load+0x10c>                   
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
    1c58:	e1a03b89 	lsl	r3, r9, #23                                   
    1c5c:	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(                                      
    1c60:	e3833902 	orr	r3, r3, #32768	; 0x8000                       
    1c64:	e3a01006 	mov	r1, #6                                        
    1c68:	e28d0f5f 	add	r0, sp, #380	; 0x17c                          
    1c6c:	e59d21a4 	ldr	r2, [sp, #420]	; 0x1a4                        
    1c70:	e58da000 	str	sl, [sp]                                      
    1c74:	eb002130 	bl	a13c <IMFS_create_node>                        
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
    1c78:	e5808050 	str	r8, [r0, #80]	; 0x50                          
        node->info.linearfile.direct = &tar_image[offset];            
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
    1c7c:	e2888f7f 	add	r8, r8, #508	; 0x1fc                          
    1c80:	e2888003 	add	r8, r8, #3                                    
          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];            
    1c84:	e0863004 	add	r3, r6, r4                                    
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
    1c88:	e1a084a8 	lsr	r8, r8, #9                                    
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
    1c8c:	e580a054 	str	sl, [r0, #84]	; 0x54                          
        node->info.linearfile.direct = &tar_image[offset];            
    1c90:	e5803058 	str	r3, [r0, #88]	; 0x58                          
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    1c94:	e0844488 	add	r4, r4, r8, lsl #9                            
    1c98:	eaffffd4 	b	1bf0 <rtems_tarfs_load+0x164>                   
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
    1c9c:	e59f2020 	ldr	r2, [pc, #32]	; 1cc4 <rtems_tarfs_load+0x238> 
    1ca0:	e1530002 	cmp	r3, r2                                        
    1ca4:	01a0a000 	moveq	sl, r0                                      
    1ca8:	0affff8f 	beq	1aec <rtems_tarfs_load+0x60>                  
     return -1;                                                       
    1cac:	e3e03000 	mvn	r3, #0                                        
    1cb0:	e58d3010 	str	r3, [sp, #16]                                 
    1cb4:	eaffffba 	b	1ba4 <rtems_tarfs_load+0x118>                   
                                                                      

0000d660 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
    d660:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    d664:	e2525000 	subs	r5, r2, #0                                   
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
    d668:	e1a04000 	mov	r4, r0                                        
    d66c:	e1a06001 	mov	r6, r1                                        
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
    d670:	03a00009 	moveq	r0, #9                                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    d674:	08bd8ff0 	popeq	{r4, r5, r6, r7, r8, r9, sl, fp, pc}        
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
    d678:	e59f9148 	ldr	r9, [pc, #328]	; d7c8 <rtems_task_mode+0x168> 
    d67c:	e5997004 	ldr	r7, [r9, #4]                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    d680:	e5d7a074 	ldrb	sl, [r7, #116]	; 0x74                        
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
    d684:	e59780f8 	ldr	r8, [r7, #248]	; 0xf8                         
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    d688:	e597307c 	ldr	r3, [r7, #124]	; 0x7c                         
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    d68c:	e35a0000 	cmp	sl, #0                                        
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    d690:	e5d8b008 	ldrb	fp, [r8, #8]                                 
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
    d694:	03a0ac01 	moveq	sl, #256	; 0x100                            
    d698:	13a0a000 	movne	sl, #0                                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    d69c:	e3530000 	cmp	r3, #0                                        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
    d6a0:	138aac02 	orrne	sl, sl, #512	; 0x200                        
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    d6a4:	e35b0000 	cmp	fp, #0                                        
    d6a8:	03a0bb01 	moveq	fp, #1024	; 0x400                           
    d6ac:	13a0b000 	movne	fp, #0                                      
  old_mode |= _ISR_Get_level();                                       
    d6b0:	ebffee75 	bl	908c <_CPU_ISR_Get_level>                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
    d6b4:	e18bb000 	orr	fp, fp, r0                                    
  old_mode |= _ISR_Get_level();                                       
    d6b8:	e18ba00a 	orr	sl, fp, sl                                    
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    d6bc:	e3160c01 	tst	r6, #256	; 0x100                              
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
                                                                      
  *previous_mode_set = old_mode;                                      
    d6c0:	e585a000 	str	sl, [r5]                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    d6c4:	0a000003 	beq	d6d8 <rtems_task_mode+0x78>                   
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
    d6c8:	e3140c01 	tst	r4, #256	; 0x100                              
    d6cc:	13a03000 	movne	r3, #0                                      
    d6d0:	03a03001 	moveq	r3, #1                                      
    d6d4:	e5c73074 	strb	r3, [r7, #116]	; 0x74                        
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    d6d8:	e3160c02 	tst	r6, #512	; 0x200                              
    d6dc:	1a000028 	bne	d784 <rtems_task_mode+0x124>                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
    d6e0:	e3160080 	tst	r6, #128	; 0x80                               
    d6e4:	1a00002f 	bne	d7a8 <rtems_task_mode+0x148>                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    d6e8:	e2166b01 	ands	r6, r6, #1024	; 0x400                        
    d6ec:	0a000012 	beq	d73c <rtems_task_mode+0xdc>                   
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
    d6f0:	e3140b01 	tst	r4, #1024	; 0x400                             
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
    d6f4:	e5d82008 	ldrb	r2, [r8, #8]                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
    d6f8:	13a03000 	movne	r3, #0                                      
    d6fc:	03a03001 	moveq	r3, #1                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
    d700:	e1520003 	cmp	r2, r3                                        
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
    d704:	03a06000 	moveq	r6, #0                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
    d708:	0a00000b 	beq	d73c <rtems_task_mode+0xdc>                   
      asr->is_enabled = is_asr_enabled;                               
    d70c:	e5c83008 	strb	r3, [r8, #8]                                 
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    d710:	e10f3000 	mrs	r3, CPSR                                      
    d714:	e3832080 	orr	r2, r3, #128	; 0x80                           
    d718:	e129f002 	msr	CPSR_fc, r2                                   
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    d71c:	e5981018 	ldr	r1, [r8, #24]                                 
    information->signals_pending = information->signals_posted;       
    d720:	e5982014 	ldr	r2, [r8, #20]                                 
    information->signals_posted  = _signals;                          
    d724:	e5881014 	str	r1, [r8, #20]                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
    d728:	e5882018 	str	r2, [r8, #24]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    d72c:	e129f003 	msr	CPSR_fc, r3                                   
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
    d730:	e5986014 	ldr	r6, [r8, #20]                                 
    d734:	e3560000 	cmp	r6, #0                                        
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
    d738:	13a06001 	movne	r6, #1                                      
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
    d73c:	e59f3088 	ldr	r3, [pc, #136]	; d7cc <rtems_task_mode+0x16c> 
    d740:	e5933000 	ldr	r3, [r3]                                      
    d744:	e3530003 	cmp	r3, #3                                        
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
    d748:	13a00000 	movne	r0, #0                                      
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
    d74c:	18bd8ff0 	popne	{r4, r5, r6, r7, r8, r9, sl, fp, pc}        
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
    d750:	e3560000 	cmp	r6, #0                                        
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
    d754:	e5993004 	ldr	r3, [r9, #4]                                  
                                                                      
  if ( are_signals_pending ||                                         
    d758:	1a000015 	bne	d7b4 <rtems_task_mode+0x154>                  
    d75c:	e59f2064 	ldr	r2, [pc, #100]	; d7c8 <rtems_task_mode+0x168> 
    d760:	e5922008 	ldr	r2, [r2, #8]                                  
    d764:	e1530002 	cmp	r3, r2                                        
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
    d768:	01a00006 	moveq	r0, r6                                      
    d76c:	08bd8ff0 	popeq	{r4, r5, r6, r7, r8, r9, sl, fp, pc}        
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
    d770:	e5d33074 	ldrb	r3, [r3, #116]	; 0x74                        
    d774:	e3530000 	cmp	r3, #0                                        
    d778:	1a00000d 	bne	d7b4 <rtems_task_mode+0x154>                  
    d77c:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
}                                                                     
    d780:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          <== NOT EXECUTED
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
    d784:	e2143c02 	ands	r3, r4, #512	; 0x200                         
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    d788:	159f3040 	ldrne	r3, [pc, #64]	; d7d0 <rtems_task_mode+0x170>
    d78c:	15933000 	ldrne	r3, [r3]                                    
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
    d790:	13a02001 	movne	r2, #1                                      
    d794:	1587207c 	strne	r2, [r7, #124]	; 0x7c                       
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    d798:	15873078 	strne	r3, [r7, #120]	; 0x78                       
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
    d79c:	0587307c 	streq	r3, [r7, #124]	; 0x7c                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
    d7a0:	e3160080 	tst	r6, #128	; 0x80                               
    d7a4:	0affffcf 	beq	d6e8 <rtems_task_mode+0x88>                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
    d7a8:	e2040080 	and	r0, r4, #128	; 0x80                           
    d7ac:	ebffee31 	bl	9078 <_CPU_ISR_Set_level>                      
    d7b0:	eaffffcc 	b	d6e8 <rtems_task_mode+0x88>                     
    _Thread_Dispatch_necessary = true;                                
    d7b4:	e3a03001 	mov	r3, #1                                        
    d7b8:	e5c93010 	strb	r3, [r9, #16]                                
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
    d7bc:	ebffe852 	bl	790c <_Thread_Dispatch>                        
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
    d7c0:	e3a00000 	mov	r0, #0                                        
    d7c4:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      

000033bc <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
    33bc:	e92d4070 	push	{r4, r5, r6, lr}                             
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
    33c0:	e59f51a4 	ldr	r5, [pc, #420]	; 356c <rtems_termios_close+0x1b0>
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
    33c4:	e5903000 	ldr	r3, [r0]                                      
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
    33c8:	e3a01000 	mov	r1, #0                                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
    33cc:	e1a06000 	mov	r6, 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(                                        
    33d0:	e1a02001 	mov	r2, r1                                        
    33d4:	e5950000 	ldr	r0, [r5]                                      
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
    33d8:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
    33dc:	eb000885 	bl	55f8 <rtems_semaphore_obtain>                  
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
    33e0:	e3500000 	cmp	r0, #0                                        
    33e4:	1a00005f 	bne	3568 <rtems_termios_close+0x1ac>              
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
    33e8:	e5943008 	ldr	r3, [r4, #8]                                  
    33ec:	e2433001 	sub	r3, r3, #1                                    
    33f0:	e3530000 	cmp	r3, #0                                        
    33f4:	e5843008 	str	r3, [r4, #8]                                  
    33f8:	1a00002f 	bne	34bc <rtems_termios_close+0x100>              
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
    33fc:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    3400:	e59f3168 	ldr	r3, [pc, #360]	; 3570 <rtems_termios_close+0x1b4>
    3404:	e0833282 	add	r3, r3, r2, lsl #5                            
    3408:	e5931004 	ldr	r1, [r3, #4]                                  
    340c:	e3510000 	cmp	r1, #0                                        
    3410:	0a00003e 	beq	3510 <rtems_termios_close+0x154>              
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    3414:	e1a00004 	mov	r0, r4                                        
    3418:	e1a0e00f 	mov	lr, pc                                        
    341c:	e12fff11 	bx	r1                                             
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    3420:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    3424:	e3530002 	cmp	r3, #2                                        
    3428:	0a000044 	beq	3540 <rtems_termios_close+0x184>              
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
    342c:	e594309c 	ldr	r3, [r4, #156]	; 0x9c                         
    3430:	e3530000 	cmp	r3, #0                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    3434:	1284000c 	addne	r0, r4, #12                                 
    3438:	18900003 	ldmne	r0, {r0, r1}                                
    343c:	11a02006 	movne	r2, r6                                      
    3440:	11a0e00f 	movne	lr, pc                                      
    3444:	112fff13 	bxne	r3                                           
    if (tty->forw == NULL) {                                          
    3448:	e5943000 	ldr	r3, [r4]                                      
    344c:	e3530000 	cmp	r3, #0                                        
    3450:	0a000026 	beq	34f0 <rtems_termios_close+0x134>              
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    3454:	e5942004 	ldr	r2, [r4, #4]                                  
    3458:	e5832004 	str	r2, [r3, #4]                                  
    345c:	e5942004 	ldr	r2, [r4, #4]                                  
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
    3460:	e3520000 	cmp	r2, #0                                        
    3464:	0a00001b 	beq	34d8 <rtems_termios_close+0x11c>              
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
    3468:	e5823000 	str	r3, [r2]                                      
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
    346c:	e5940014 	ldr	r0, [r4, #20]                                 
    3470:	eb000837 	bl	5554 <rtems_semaphore_delete>                  
    rtems_semaphore_delete (tty->osem);                               
    3474:	e5940018 	ldr	r0, [r4, #24]                                 
    3478:	eb000835 	bl	5554 <rtems_semaphore_delete>                  
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
    347c:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
    3480:	eb000833 	bl	5554 <rtems_semaphore_delete>                  
    if ((tty->device.pollRead == NULL) ||                             
    3484:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    3488:	e3530000 	cmp	r3, #0                                        
    348c:	0a00000e 	beq	34cc <rtems_termios_close+0x110>              
    3490:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    3494:	e3530002 	cmp	r3, #2                                        
    3498:	0a00000b 	beq	34cc <rtems_termios_close+0x110>              
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    free (tty->rawInBuf.theBuf);                                      
    349c:	e5940058 	ldr	r0, [r4, #88]	; 0x58                          
    34a0:	ebfffa9f 	bl	1f24 <free>                                    
    free (tty->rawOutBuf.theBuf);                                     
    34a4:	e594007c 	ldr	r0, [r4, #124]	; 0x7c                         
    34a8:	ebfffa9d 	bl	1f24 <free>                                    
    free (tty->cbuf);                                                 
    34ac:	e594001c 	ldr	r0, [r4, #28]                                 
    34b0:	ebfffa9b 	bl	1f24 <free>                                    
    free (tty);                                                       
    34b4:	e1a00004 	mov	r0, r4                                        
    34b8:	ebfffa99 	bl	1f24 <free>                                    
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
    34bc:	e5950000 	ldr	r0, [r5]                                      
    34c0:	eb000895 	bl	571c <rtems_semaphore_release>                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    34c4:	e3a00000 	mov	r0, #0                                        
    34c8:	e8bd8070 	pop	{r4, r5, r6, pc}                              
    rtems_semaphore_delete (tty->isem);                               
    rtems_semaphore_delete (tty->osem);                               
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    34cc:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
    34d0:	eb00081f 	bl	5554 <rtems_semaphore_delete>                  
    34d4:	eafffff0 	b	349c <rtems_termios_close+0xe0>                 
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
    34d8:	e59f2094 	ldr	r2, [pc, #148]	; 3574 <rtems_termios_close+0x1b8>
      if ( rtems_termios_ttyHead != NULL ) {                          
    34dc:	e3530000 	cmp	r3, #0                                        
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
    34e0:	e5823000 	str	r3, [r2]                                      
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
    34e4:	13a02000 	movne	r2, #0                                      
    34e8:	15832004 	strne	r2, [r3, #4]                                
    34ec:	eaffffde 	b	346c <rtems_termios_close+0xb0>                 
        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;                              
    34f0:	e5942004 	ldr	r2, [r4, #4]                                  
    34f4:	e59f107c 	ldr	r1, [pc, #124]	; 3578 <rtems_termios_close+0x1bc>
      if ( rtems_termios_ttyTail != NULL ) {                          
    34f8:	e3520000 	cmp	r2, #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;                              
    34fc:	e5812000 	str	r2, [r1]                                      
      if ( rtems_termios_ttyTail != NULL ) {                          
    3500:	0afffff4 	beq	34d8 <rtems_termios_close+0x11c>              
        rtems_termios_ttyTail->forw = NULL;                           
    3504:	e5823000 	str	r3, [r2]                                      
    3508:	e5943000 	ldr	r3, [r4]                                      
    350c:	eaffffd5 	b	3468 <rtems_termios_close+0xac>                 
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    3510:	e5940018 	ldr	r0, [r4, #24]                                 
    3514:	e1a02001 	mov	r2, r1                                        
    3518:	eb000836 	bl	55f8 <rtems_semaphore_obtain>                  
      if (sc != RTEMS_SUCCESSFUL) {                                   
    351c:	e3500000 	cmp	r0, #0                                        
    3520:	1a000010 	bne	3568 <rtems_termios_close+0x1ac>              
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
    3524:	e1a00004 	mov	r0, r4                                        
    3528:	ebfffe4e 	bl	2e68 <drainOutput>                             
      rtems_semaphore_release (tty->osem);                            
    352c:	e5940018 	ldr	r0, [r4, #24]                                 
    3530:	eb000879 	bl	571c <rtems_semaphore_release>                 
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    3534:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    3538:	e3530002 	cmp	r3, #2                                        
    353c:	1affffba 	bne	342c <rtems_termios_close+0x70>               
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
    3540:	e59400c4 	ldr	r0, [r4, #196]	; 0xc4                         
    3544:	e3a01001 	mov	r1, #1                                        
    3548:	eb000703 	bl	515c <rtems_event_send>                        
      if (sc != RTEMS_SUCCESSFUL)                                     
    354c:	e3500000 	cmp	r0, #0                                        
    3550:	1a000004 	bne	3568 <rtems_termios_close+0x1ac>              
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
    3554:	e59400c8 	ldr	r0, [r4, #200]	; 0xc8                         
    3558:	e3a01001 	mov	r1, #1                                        
    355c:	eb0006fe 	bl	515c <rtems_event_send>                        
      if (sc != RTEMS_SUCCESSFUL)                                     
    3560:	e3500000 	cmp	r0, #0                                        
    3564:	0affffb0 	beq	342c <rtems_termios_close+0x70>               
        rtems_fatal_error_occurred (sc);                              
    3568:	eb0009cb 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

00004b6c <rtems_termios_dequeue_characters>: rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len;
    4b6c:	e590c090 	ldr	ip, [r0, #144]	; 0x90                         
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    4b70:	e59020b4 	ldr	r2, [r0, #180]	; 0xb4                         
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
    4b74:	e08c1001 	add	r1, ip, r1                                    
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    4b78:	e3520002 	cmp	r2, #2                                        
 * for each transmitted character.                                    
 * It returns number of characters left to transmit                   
 */                                                                   
int                                                                   
rtems_termios_dequeue_characters (void *ttyp, int len)                
{                                                                     
    4b7c:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
    4b80:	e5801090 	str	r1, [r0, #144]	; 0x90                         
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    4b84:	0a00000c 	beq	4bbc <rtems_termios_dequeue_characters+0x50>  
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    4b88:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
    4b8c:	e3530005 	cmp	r3, #5                                        
    4b90:	0a000001 	beq	4b9c <rtems_termios_dequeue_characters+0x30>  
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
    4b94:	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);                       
    4b98:	eaffff55 	b	48f4 <rtems_termios_refill_transmitter>         
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
    4b9c:	e59f303c 	ldr	r3, [pc, #60]	; 4be0 <rtems_termios_dequeue_characters+0x74>
    4ba0:	e59330b4 	ldr	r3, [r3, #180]	; 0xb4                         
    4ba4:	e3530000 	cmp	r3, #0                                        
    4ba8:	0a00000a 	beq	4bd8 <rtems_termios_dequeue_characters+0x6c>  
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    4bac:	e1a0e00f 	mov	lr, pc                                        
    4bb0:	e12fff13 	bx	r3                                             
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
    4bb4:	e3a00000 	mov	r0, #0                                        
    4bb8:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
    4bbc:	e59000c8 	ldr	r0, [r0, #200]	; 0xc8                         
    4bc0:	e1a01002 	mov	r1, r2                                        
    4bc4:	eb000164 	bl	515c <rtems_event_send>                        
    if (sc != RTEMS_SUCCESSFUL)                                       
    4bc8:	e2503000 	subs	r3, r0, #0                                   
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
    4bcc:	01a00003 	moveq	r0, r3                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
    if (sc != RTEMS_SUCCESSFUL)                                       
    4bd0:	049df004 	popeq	{pc}		; (ldreq pc, [sp], #4)                
      rtems_fatal_error_occurred (sc);                                
    4bd4:	eb000430 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
    4bd8:	e1a00003 	mov	r0, r3                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
    4bdc:	e49df004 	pop	{pc}		; (ldr pc, [sp], #4)                    <== NOT EXECUTED
                                                                      

00004574 <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) {
    4574:	e92d4ff0 	push	{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) {             
    4578:	e59030cc 	ldr	r3, [r0, #204]	; 0xcc                         
    457c:	e59f72e0 	ldr	r7, [pc, #736]	; 4864 <rtems_termios_enqueue_raw_characters+0x2f0>
    4580:	e0873283 	add	r3, r7, r3, lsl #5                            
    4584:	e5939010 	ldr	r9, [r3, #16]                                 
    4588:	e3590000 	cmp	r9, #0                                        
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) 
{                                                                     
    458c:	e24dd008 	sub	sp, sp, #8                                    
    4590:	e1a04000 	mov	r4, r0                                        
    4594:	e1a05001 	mov	r5, r1                                        
    4598:	e1a06002 	mov	r6, r2                                        
  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) {             
    459c:	0a00001e 	beq	461c <rtems_termios_enqueue_raw_characters+0xa8>
    while (len--) {                                                   
    45a0:	e3520000 	cmp	r2, #0                                        
    45a4:	0a00000b 	beq	45d8 <rtems_termios_enqueue_raw_characters+0x64>
    45a8:	e3a08000 	mov	r8, #0                                        
    45ac:	ea000002 	b	45bc <rtems_termios_enqueue_raw_characters+0x48>
    45b0:	e59430cc 	ldr	r3, [r4, #204]	; 0xcc                         
    45b4:	e0873283 	add	r3, r7, r3, lsl #5                            
    45b8:	e5939010 	ldr	r9, [r3, #16]                                 
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
    45bc:	e7d50008 	ldrb	r0, [r5, r8]                                 
    45c0:	e1a01004 	mov	r1, r4                                        
    45c4:	e2888001 	add	r8, r8, #1                                    
    45c8:	e1a0e00f 	mov	lr, pc                                        
    45cc:	e12fff19 	bx	r9                                             
  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--) {                                                   
    45d0:	e1580006 	cmp	r8, r6                                        
    45d4:	1afffff5 	bne	45b0 <rtems_termios_enqueue_raw_characters+0x3c>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
    45d8:	e594a0e4 	ldr	sl, [r4, #228]	; 0xe4                         
    45dc:	e35a0000 	cmp	sl, #0                                        
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
    45e0:	13a0a000 	movne	sl, #0                                      
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
    45e4:	1a000009 	bne	4610 <rtems_termios_enqueue_raw_characters+0x9c>
    45e8:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
    45ec:	e3530000 	cmp	r3, #0                                        
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
    45f0:	01a0a003 	moveq	sl, r3                                      
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
    45f4:	0a000005 	beq	4610 <rtems_termios_enqueue_raw_characters+0x9c>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
    45f8:	e2840030 	add	r0, r4, #48	; 0x30                            
    45fc:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         
    4600:	e1a0e00f 	mov	lr, pc                                        
    4604:	e12fff13 	bx	r3                                             
      tty->tty_rcvwakeup = 1;                                         
    4608:	e3a03001 	mov	r3, #1                                        
    460c:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
  return dropped;                                                     
}                                                                     
    4610:	e1a0000a 	mov	r0, sl                                        
    4614:	e28dd008 	add	sp, sp, #8                                    
    4618:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
        /*                                                            
         * 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); 
    461c:	e2803030 	add	r3, r0, #48	; 0x30                            
    4620:	e58d3000 	str	r3, [sp]                                      
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    4624:	e3560000 	cmp	r6, #0                                        
          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,                          
    4628:	e280304a 	add	r3, r0, #74	; 0x4a                            
    462c:	e58d3004 	str	r3, [sp, #4]                                  
    4630:	e1a0b009 	mov	fp, r9                                        
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    4634:	0a000044 	beq	474c <rtems_termios_enqueue_raw_characters+0x1d8>
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
    4638:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    463c:	e3130c02 	tst	r3, #512	; 0x200                              
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    4640:	e4d58001 	ldrb	r8, [r5], #1                                 
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
    4644:	0a000005 	beq	4660 <rtems_termios_enqueue_raw_characters+0xec>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
    4648:	e5d4304a 	ldrb	r3, [r4, #74]	; 0x4a                         
    464c:	e1530008 	cmp	r3, r8                                        
    4650:	0a000058 	beq	47b8 <rtems_termios_enqueue_raw_characters+0x244>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
    4654:	e5d43049 	ldrb	r3, [r4, #73]	; 0x49                         
    4658:	e1530008 	cmp	r3, r8                                        
    465c:	0a000041 	beq	4768 <rtems_termios_enqueue_raw_characters+0x1f4>
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
    4660:	e3590000 	cmp	r9, #0                                        
    4664:	1a000043 	bne	4778 <rtems_termios_enqueue_raw_characters+0x204>
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
    4668:	e5940060 	ldr	r0, [r4, #96]	; 0x60                          
    466c:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    4670:	e2800001 	add	r0, r0, #1                                    
    4674:	eb003328 	bl	1131c <__umodsi3>                              
    4678:	e1a07000 	mov	r7, r0                                        
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    467c:	e10fa000 	mrs	sl, CPSR                                      
    4680:	e38a3080 	orr	r3, sl, #128	; 0x80                           
    4684:	e129f003 	msr	CPSR_fc, r3                                   
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
    4688:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
    468c:	e5940064 	ldr	r0, [r4, #100]	; 0x64                         
    4690:	e0630000 	rsb	r0, r3, r0                                    
            % tty->rawInBuf.Size) > tty->highwater) &&                
    4694:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    4698:	e0800007 	add	r0, r0, r7                                    
    469c:	eb00331e 	bl	1131c <__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)       
    46a0:	e59430c0 	ldr	r3, [r4, #192]	; 0xc0                         
    46a4:	e1500003 	cmp	r0, r3                                        
    46a8:	9a000010 	bls	46f0 <rtems_termios_enqueue_raw_characters+0x17c>
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
    46ac:	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) &&                
    46b0:	e3130001 	tst	r3, #1                                        <== NOT EXECUTED
    46b4:	1a00000d 	bne	46f0 <rtems_termios_enqueue_raw_characters+0x17c><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
    46b8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    46bc:	e3833001 	orr	r3, r3, #1                                    <== NOT EXECUTED
    46c0:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
    46c4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    46c8:	e3c33fff 	bic	r3, r3, #1020	; 0x3fc                         <== NOT EXECUTED
    46cc:	e3c33001 	bic	r3, r3, #1                                    <== NOT EXECUTED
    46d0:	e1a03a83 	lsl	r3, r3, #21                                   <== NOT EXECUTED
    46d4:	e1a03aa3 	lsr	r3, r3, #21                                   <== NOT EXECUTED
    46d8:	e3530b01 	cmp	r3, #1024	; 0x400                             <== NOT EXECUTED
    46dc:	0a000047 	beq	4800 <rtems_termios_enqueue_raw_characters+0x28c><== NOT EXECUTED
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
    46e0:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    46e4:	e2033f41 	and	r3, r3, #260	; 0x104                          <== NOT EXECUTED
    46e8:	e3530c01 	cmp	r3, #256	; 0x100                              <== NOT EXECUTED
    46ec:	0a000052 	beq	483c <rtems_termios_enqueue_raw_characters+0x2c8><== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    46f0:	e129f00a 	msr	CPSR_fc, sl                                   
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
    46f4:	e594305c 	ldr	r3, [r4, #92]	; 0x5c                          
    46f8:	e1530007 	cmp	r3, r7                                        
        dropped++;                                                    
    46fc:	028bb001 	addeq	fp, fp, #1                                  
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
    4700:	0a00000e 	beq	4740 <rtems_termios_enqueue_raw_characters+0x1cc>
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
    4704:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
    4708:	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 )) {
    470c:	e59430e4 	ldr	r3, [r4, #228]	; 0xe4                         
    4710:	e3530000 	cmp	r3, #0                                        
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
    4714:	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 )) {
    4718:	1a000008 	bne	4740 <rtems_termios_enqueue_raw_characters+0x1cc>
    471c:	e59430dc 	ldr	r3, [r4, #220]	; 0xdc                         
    4720:	e3530000 	cmp	r3, #0                                        
    4724:	0a000005 	beq	4740 <rtems_termios_enqueue_raw_characters+0x1cc>
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
    4728:	e59d0000 	ldr	r0, [sp]                                      <== NOT EXECUTED
    472c:	e59410e0 	ldr	r1, [r4, #224]	; 0xe0                         <== NOT EXECUTED
    4730:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4734:	e12fff13 	bx	r3                                             <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
    4738:	e3a03001 	mov	r3, #1                                        <== NOT EXECUTED
    473c:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         <== NOT EXECUTED
    4740:	e2466001 	sub	r6, r6, #1                                    
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    4744:	e3560000 	cmp	r6, #0                                        
    4748:	1affffba 	bne	4638 <rtems_termios_enqueue_raw_characters+0xc4>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
    474c:	e5943078 	ldr	r3, [r4, #120]	; 0x78                         
    4750:	e083300b 	add	r3, r3, fp                                    
    4754:	e5843078 	str	r3, [r4, #120]	; 0x78                         
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
    4758:	e5940068 	ldr	r0, [r4, #104]	; 0x68                         
    475c:	e1a0a00b 	mov	sl, fp                                        
    4760:	eb0003ed 	bl	571c <rtems_semaphore_release>                 
  return dropped;                                                     
    4764:	eaffffa9 	b	4610 <rtems_termios_enqueue_raw_characters+0x9c>
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
    4768:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    476c:	e3c33010 	bic	r3, r3, #16                                   <== NOT EXECUTED
    4770:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
  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--) {                                                   
    4774:	e3a09001 	mov	r9, #1                                        <== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
    4778:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    477c:	e2033030 	and	r3, r3, #48	; 0x30                            
    4780:	e3530020 	cmp	r3, #32                                       
    4784:	1affffed 	bne	4740 <rtems_termios_enqueue_raw_characters+0x1cc>
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    4788:	e10f7000 	mrs	r7, CPSR                                      <== NOT EXECUTED
    478c:	e3873080 	orr	r3, r7, #128	; 0x80                           <== NOT EXECUTED
    4790:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
    4794:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
    4798:	e5942094 	ldr	r2, [r4, #148]	; 0x94                         <== NOT EXECUTED
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
    479c:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
    47a0:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
    47a4:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
    47a8:	1a00000c 	bne	47e0 <rtems_termios_enqueue_raw_characters+0x26c><== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    47ac:	e129f007 	msr	CPSR_fc, r7                                   <== NOT EXECUTED
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
          tty->tty_rcvwakeup = 1;                                     
    47b0:	e2466001 	sub	r6, r6, #1                                    <== NOT EXECUTED
    47b4:	eaffffe2 	b	4744 <rtems_termios_enqueue_raw_characters+0x1d0><== NOT EXECUTED
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
    47b8:	e5d42049 	ldrb	r2, [r4, #73]	; 0x49                         
    47bc:	e1520003 	cmp	r2, r3                                        
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
    47c0:	059430b8 	ldreq	r3, [r4, #184]	; 0xb8                       
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
    47c4:	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;               
    47c8:	02233010 	eoreq	r3, r3, #16                                 
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
    47cc:	13833010 	orrne	r3, r3, #16                                 
      /* 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;               
    47d0:	058430b8 	streq	r3, [r4, #184]	; 0xb8                       
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
    47d4:	158430b8 	strne	r3, [r4, #184]	; 0xb8                       
  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--) {                                                   
    47d8:	e3a09001 	mov	r9, #1                                        
    47dc:	eaffffe5 	b	4778 <rtems_termios_enqueue_raw_characters+0x204>
        tty->flow_ctrl &= ~FL_OSTOP;                                  
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
    47e0:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         <== NOT EXECUTED
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
    47e4:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         <== NOT EXECUTED
    47e8:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    47ec:	e0811003 	add	r1, r1, r3                                    <== NOT EXECUTED
    47f0:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    47f4:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    47f8:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    47fc:	eaffffea 	b	47ac <rtems_termios_enqueue_raw_characters+0x238><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
    4800:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4804:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    4808:	1a000002 	bne	4818 <rtems_termios_enqueue_raw_characters+0x2a4><== NOT EXECUTED
    480c:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    4810:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    4814:	1affffb5 	bne	46f0 <rtems_termios_enqueue_raw_characters+0x17c><== 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;                             
    4818:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    481c:	e3833002 	orr	r3, r3, #2                                    <== NOT EXECUTED
    4820:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
    4824:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    4828:	e59d1004 	ldr	r1, [sp, #4]                                  <== NOT EXECUTED
    482c:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4830:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4834:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    4838:	eaffffac 	b	46f0 <rtems_termios_enqueue_raw_characters+0x17c><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
    483c:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
    4840:	e59430ac 	ldr	r3, [r4, #172]	; 0xac                         <== NOT EXECUTED
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
    4844:	e3822004 	orr	r2, r2, #4                                    <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
    4848:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
    484c:	e58420b8 	str	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
    4850:	0affffa6 	beq	46f0 <rtems_termios_enqueue_raw_characters+0x17c><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
    4854:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    4858:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    485c:	e12fff13 	bx	r3                                             <== NOT EXECUTED
    4860:	eaffffa2 	b	46f0 <rtems_termios_enqueue_raw_characters+0x17c><== NOT EXECUTED
                                                                      

00003594 <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;
    3594:	e5902000 	ldr	r2, [r0]                                      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
    3598:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
    359c:	e5925034 	ldr	r5, [r2, #52]	; 0x34                          
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
    35a0:	e3a03000 	mov	r3, #0                                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
    35a4:	e1a04000 	mov	r4, r0                                        
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
    35a8:	e580300c 	str	r3, [r0, #12]                                 
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    35ac:	e1a01003 	mov	r1, r3                                        
    35b0:	e5950018 	ldr	r0, [r5, #24]                                 
    35b4:	e1a02003 	mov	r2, r3                                        
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;
    35b8:	e5947008 	ldr	r7, [r4, #8]                                  
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    35bc:	eb00080d 	bl	55f8 <rtems_semaphore_obtain>                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    35c0:	e2506000 	subs	r6, r0, #0                                   
    35c4:	1a00000e 	bne	3604 <rtems_termios_ioctl+0x70>               
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    35c8:	e5943004 	ldr	r3, [r4, #4]                                  
    35cc:	e3530004 	cmp	r3, #4                                        
    35d0:	0a000006 	beq	35f0 <rtems_termios_ioctl+0x5c>               
    35d4:	8a00000d 	bhi	3610 <rtems_termios_ioctl+0x7c>               
    35d8:	e3530002 	cmp	r3, #2                                        
    35dc:	0a000020 	beq	3664 <rtems_termios_ioctl+0xd0>               
    35e0:	9a000087 	bls	3804 <rtems_termios_ioctl+0x270>              
    if (tty->device.setAttributes)                                    
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    35e4:	e1a00005 	mov	r0, r5                                        
    35e8:	ebfffe1e 	bl	2e68 <drainOutput>                             
    break;                                                            
    35ec:	ea000002 	b	35fc <rtems_termios_ioctl+0x68>                 
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    break;                                                            
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
    35f0:	e897000c 	ldm	r7, {r2, r3}                                  
    35f4:	e58520dc 	str	r2, [r5, #220]	; 0xdc                         
    35f8:	e58530e0 	str	r3, [r5, #224]	; 0xe0                         
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
    35fc:	e5950018 	ldr	r0, [r5, #24]                                 
    3600:	eb000845 	bl	571c <rtems_semaphore_release>                 
  args->ioctl_return = sc;                                            
    3604:	e584600c 	str	r6, [r4, #12]                                 
  return sc;                                                          
}                                                                     
    3608:	e1a00006 	mov	r0, r6                                        
    360c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    3610:	e3a02a46 	mov	r2, #286720	; 0x46000                         
    3614:	e2822e67 	add	r2, r2, #1648	; 0x670                         
    3618:	e282213d 	add	r2, r2, #1073741839	; 0x4000000f              
    361c:	e1530002 	cmp	r3, r2                                        
    3620:	0a00006b 	beq	37d4 <rtems_termios_ioctl+0x240>              
    3624:	8a000082 	bhi	3834 <rtems_termios_ioctl+0x2a0>              
    3628:	e3530005 	cmp	r3, #5                                        
    362c:	0a0000a5 	beq	38c8 <rtems_termios_ioctl+0x334>              
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
    3630:	e59520cc 	ldr	r2, [r5, #204]	; 0xcc                         
    3634:	e59f3334 	ldr	r3, [pc, #820]	; 3970 <rtems_termios_ioctl+0x3dc>
    3638:	e0833282 	add	r3, r3, r2, lsl #5                            
    363c:	e5933018 	ldr	r3, [r3, #24]                                 
    3640:	e3530000 	cmp	r3, #0                                        
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
    3644:	03a0600a 	moveq	r6, #10                                     
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
    3648:	0affffeb 	beq	35fc <rtems_termios_ioctl+0x68>               
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    364c:	e1a00005 	mov	r0, r5                                        
    3650:	e1a01004 	mov	r1, r4                                        
    3654:	e1a0e00f 	mov	lr, pc                                        
    3658:	e12fff13 	bx	r3                                             
    365c:	e1a06000 	mov	r6, r0                                        
    3660:	eaffffe5 	b	35fc <rtems_termios_ioctl+0x68>                 
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    break;                                                            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
    3664:	e594e008 	ldr	lr, [r4, #8]                                  
    3668:	e2857030 	add	r7, r5, #48	; 0x30                            
    366c:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    3670:	e1a0c007 	mov	ip, r7                                        
    3674:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    3678:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    367c:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
    3680:	e59520b8 	ldr	r2, [r5, #184]	; 0xb8                         
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    break;                                                            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
    3684:	e59e3000 	ldr	r3, [lr]                                      
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
    3688:	e3120c02 	tst	r2, #512	; 0x200                              
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    break;                                                            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
    368c:	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) &&                                 
    3690:	0a000012 	beq	36e0 <rtems_termios_ioctl+0x14c>              
      !(tty->termios.c_iflag & IXON)) {                               
    3694:	e5953030 	ldr	r3, [r5, #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) &&                                 
    3698:	e3130b01 	tst	r3, #1024	; 0x400                             
    369c:	1a00000f 	bne	36e0 <rtems_termios_ioctl+0x14c>              
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
    36a0:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    36a4:	e3c33e21 	bic	r3, r3, #528	; 0x210                          <== NOT EXECUTED
    36a8:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
    36ac:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    36b0:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    36b4:	0a000009 	beq	36e0 <rtems_termios_ioctl+0x14c>              <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    36b8:	e10f8000 	mrs	r8, CPSR                                      <== NOT EXECUTED
    36bc:	e3883080 	orr	r3, r8, #128	; 0x80                           <== NOT EXECUTED
    36c0:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
    36c4:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
    36c8:	e5952094 	ldr	r2, [r5, #148]	; 0x94                         <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
    36cc:	e3c33020 	bic	r3, r3, #32                                   <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
    36d0:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
    36d4:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
    36d8:	1a00009c 	bne	3950 <rtems_termios_ioctl+0x3bc>              <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    36dc:	e129f008 	msr	CPSR_fc, r8                                   <== 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)) {
    36e0:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         
    36e4:	e3130b01 	tst	r3, #1024	; 0x400                             
    36e8:	0a000008 	beq	3710 <rtems_termios_ioctl+0x17c>              
    36ec:	e5953030 	ldr	r3, [r5, #48]	; 0x30                          
    36f0:	e3130a01 	tst	r3, #4096	; 0x1000                            
    36f4:	1a000005 	bne	3710 <rtems_termios_ioctl+0x17c>              
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
    36f8:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    36fc:	e3c33b01 	bic	r3, r3, #1024	; 0x400                         <== NOT EXECUTED
    3700:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
    3704:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    3708:	e3c33002 	bic	r3, r3, #2                                    <== NOT EXECUTED
    370c:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
    3710:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         
    3714:	e3130c01 	tst	r3, #256	; 0x100                              
    3718:	05952038 	ldreq	r2, [r5, #56]	; 0x38                        
    371c:	0a000012 	beq	376c <rtems_termios_ioctl+0x1d8>              
    3720:	e5952038 	ldr	r2, [r5, #56]	; 0x38                          <== NOT EXECUTED
    3724:	e3520000 	cmp	r2, #0                                        <== NOT EXECUTED
    3728:	ba00007c 	blt	3920 <rtems_termios_ioctl+0x38c>              <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
    372c:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    3730:	e3c33c01 	bic	r3, r3, #256	; 0x100                          <== NOT EXECUTED
    3734:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
    3738:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    373c:	e3130004 	tst	r3, #4                                        <== NOT EXECUTED
    3740:	0a000006 	beq	3760 <rtems_termios_ioctl+0x1cc>              <== NOT EXECUTED
    3744:	e59530b0 	ldr	r3, [r5, #176]	; 0xb0                         <== NOT EXECUTED
    3748:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    374c:	0a000003 	beq	3760 <rtems_termios_ioctl+0x1cc>              <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
    3750:	e5950010 	ldr	r0, [r5, #16]                                 <== NOT EXECUTED
    3754:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    3758:	e12fff13 	bx	r3                                             <== NOT EXECUTED
    375c:	e5952038 	ldr	r2, [r5, #56]	; 0x38                          <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
    3760:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    3764:	e3c33004 	bic	r3, r3, #4                                    <== NOT EXECUTED
    3768:	e58530b8 	str	r3, [r5, #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) {                               
    376c:	e3520000 	cmp	r2, #0                                        
    3770:	ba00006a 	blt	3920 <rtems_termios_ioctl+0x38c>              
    tty->flow_ctrl |= FL_MDRTS;                                       
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
    3774:	e5953030 	ldr	r3, [r5, #48]	; 0x30                          
    3778:	e3130a01 	tst	r3, #4096	; 0x1000                            
    tty->flow_ctrl |= FL_MDXOF;                                       
    377c:	159520b8 	ldrne	r2, [r5, #184]	; 0xb8                       
    3780:	13822b01 	orrne	r2, r2, #1024	; 0x400                       
    3784:	158520b8 	strne	r2, [r5, #184]	; 0xb8                       
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
    3788:	e3130b01 	tst	r3, #1024	; 0x400                             
    tty->flow_ctrl |= FL_MDXON;                                       
    378c:	159530b8 	ldrne	r3, [r5, #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) {                              
    3790:	e595803c 	ldr	r8, [r5, #60]	; 0x3c                          
  if (tty->termios.c_iflag & IXOFF) {                                 
    tty->flow_ctrl |= FL_MDXOF;                                       
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
    tty->flow_ctrl |= FL_MDXON;                                       
    3794:	13833c02 	orrne	r3, r3, #512	; 0x200                        
    3798:	158530b8 	strne	r3, [r5, #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) {                              
    379c:	e2188002 	ands	r8, r8, #2                                   
    37a0:	0a00004c 	beq	38d8 <rtems_termios_ioctl+0x344>              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
    37a4:	e3a03000 	mov	r3, #0                                        
    37a8:	e585306c 	str	r3, [r5, #108]	; 0x6c                         
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
    37ac:	e5853070 	str	r3, [r5, #112]	; 0x70                         
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    37b0:	e5853074 	str	r3, [r5, #116]	; 0x74                         
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
    37b4:	e59530a8 	ldr	r3, [r5, #168]	; 0xa8                         
    37b8:	e3530000 	cmp	r3, #0                                        
    37bc:	0affff8e 	beq	35fc <rtems_termios_ioctl+0x68>               
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
    37c0:	e5950010 	ldr	r0, [r5, #16]                                 
    37c4:	e1a01007 	mov	r1, r7                                        
    37c8:	e1a0e00f 	mov	lr, pc                                        
    37cc:	e12fff13 	bx	r3                                             
    37d0:	eaffff89 	b	35fc <rtems_termios_ioctl+0x68>                 
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
    37d4:	e5952060 	ldr	r2, [r5, #96]	; 0x60                          <== NOT EXECUTED
    37d8:	e595305c 	ldr	r3, [r5, #92]	; 0x5c                          <== NOT EXECUTED
      if ( rawnc < 0 )                                                
    37dc:	e0523003 	subs	r3, r2, r3                                   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
    37e0:	45952064 	ldrmi	r2, [r5, #100]	; 0x64                       <== NOT EXECUTED
    37e4:	40833002 	addmi	r3, r3, r2                                  <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    37e8:	e2851020 	add	r1, r5, #32                                   <== NOT EXECUTED
    37ec:	e8910006 	ldm	r1, {r1, r2}                                  <== NOT EXECUTED
    37f0:	e0412002 	sub	r2, r1, r2                                    <== NOT EXECUTED
    37f4:	e5941008 	ldr	r1, [r4, #8]                                  <== NOT EXECUTED
    37f8:	e0823003 	add	r3, r2, r3                                    <== NOT EXECUTED
    37fc:	e5813000 	str	r3, [r1]                                      <== NOT EXECUTED
    }                                                                 
    break;                                                            
    3800:	eaffff7d 	b	35fc <rtems_termios_ioctl+0x68>                 <== NOT EXECUTED
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    3804:	e3530001 	cmp	r3, #1                                        
    3808:	1affff88 	bne	3630 <rtems_termios_ioctl+0x9c>               
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    380c:	e5947008 	ldr	r7, [r4, #8]                                  
    3810:	e285c030 	add	ip, r5, #48	; 0x30                            
    3814:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    3818:	e1a0e007 	mov	lr, r7                                        
    381c:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    3820:	e8bc000f 	ldm	ip!, {r0, r1, r2, r3}                         
    3824:	e8ae000f 	stmia	lr!, {r0, r1, r2, r3}                       
    3828:	e59c3000 	ldr	r3, [ip]                                      
    382c:	e58e3000 	str	r3, [lr]                                      
    break;                                                            
    3830:	eaffff71 	b	35fc <rtems_termios_ioctl+0x68>                 
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
    3834:	e3a02a47 	mov	r2, #290816	; 0x47000                         
    3838:	e2822e41 	add	r2, r2, #1040	; 0x410                         
    383c:	e2822129 	add	r2, r2, #1073741834	; 0x4000000a              
    3840:	e1530002 	cmp	r3, r2                                        
    3844:	0a00001b 	beq	38b8 <rtems_termios_ioctl+0x324>              
    3848:	e3a02a47 	mov	r2, #290816	; 0x47000                         
    384c:	e2822e41 	add	r2, r2, #1040	; 0x410                         
    3850:	e282212e 	add	r2, r2, #-2147483637	; 0x8000000b             
    3854:	e1530002 	cmp	r3, r2                                        
    3858:	1affff74 	bne	3630 <rtems_termios_ioctl+0x9c>               
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
    385c:	e59f710c 	ldr	r7, [pc, #268]	; 3970 <rtems_termios_ioctl+0x3dc>
    3860:	e59530cc 	ldr	r3, [r5, #204]	; 0xcc                         
    3864:	e0873283 	add	r3, r7, r3, lsl #5                            
    3868:	e5933004 	ldr	r3, [r3, #4]                                  
    386c:	e3530000 	cmp	r3, #0                                        
    3870:	0a000003 	beq	3884 <rtems_termios_ioctl+0x2f0>              
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    3874:	e1a00005 	mov	r0, r5                                        
    3878:	e1a0e00f 	mov	lr, pc                                        
    387c:	e12fff13 	bx	r3                                             
    3880:	e1a06000 	mov	r6, r0                                        
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
    3884:	e5943008 	ldr	r3, [r4, #8]                                  
    3888:	e5932000 	ldr	r2, [r3]                                      
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
    388c:	e7973282 	ldr	r3, [r7, r2, lsl #5]                          
     * 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);                                
    3890:	e58520cc 	str	r2, [r5, #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) {           
    3894:	e3530000 	cmp	r3, #0                                        
     */                                                               
    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);                                
    tty->t_sc = NULL; /* ensure that no more valid data */            
    3898:	e3a02000 	mov	r2, #0                                        
    389c:	e58520d0 	str	r2, [r5, #208]	; 0xd0                         
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
    38a0:	0affff55 	beq	35fc <rtems_termios_ioctl+0x68>               
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
    38a4:	e1a00005 	mov	r0, r5                                        
    38a8:	e1a0e00f 	mov	lr, pc                                        
    38ac:	e12fff13 	bx	r3                                             
    38b0:	e1a06000 	mov	r6, r0                                        
    38b4:	eaffff50 	b	35fc <rtems_termios_ioctl+0x68>                 
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    38b8:	e5943008 	ldr	r3, [r4, #8]                                  
    38bc:	e59520cc 	ldr	r2, [r5, #204]	; 0xcc                         
    38c0:	e5832000 	str	r2, [r3]                                      
    break;                                                            
    38c4:	eaffff4c 	b	35fc <rtems_termios_ioctl+0x68>                 
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    38c8:	e897000c 	ldm	r7, {r2, r3}                                  
    38cc:	e58520d4 	str	r2, [r5, #212]	; 0xd4                         
    38d0:	e58530d8 	str	r3, [r5, #216]	; 0xd8                         
    break;                                                            
    38d4:	eaffff48 	b	35fc <rtems_termios_ioctl+0x68>                 
    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] *                    
    38d8:	e5d5a046 	ldrb	sl, [r5, #70]	; 0x46                         
                    rtems_clock_get_ticks_per_second() / 10;          
    38dc:	eb000599 	bl	4f48 <rtems_clock_get_ticks_per_second>        
    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] *                    
    38e0:	e000009a 	mul	r0, sl, r0                                    
                    rtems_clock_get_ticks_per_second() / 10;          
    38e4:	e59f3088 	ldr	r3, [pc, #136]	; 3974 <rtems_termios_ioctl+0x3e0>
    38e8:	e0831390 	umull	r1, r3, r0, r3                              
      if (tty->termios.c_cc[VTIME]) {                                 
    38ec:	e5d52046 	ldrb	r2, [r5, #70]	; 0x46                         
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
    38f0:	e1a031a3 	lsr	r3, r3, #3                                    
      if (tty->termios.c_cc[VTIME]) {                                 
    38f4:	e3520000 	cmp	r2, #0                                        
    if (tty->termios.c_lflag & ICANON) {                              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
    38f8:	e5853054 	str	r3, [r5, #84]	; 0x54                          
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
    38fc:	0a00000b 	beq	3930 <rtems_termios_ioctl+0x39c>              
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
    3900:	e5d52047 	ldrb	r2, [r5, #71]	; 0x47                         
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3904:	e3520000 	cmp	r2, #0                                        
    3908:	01a02003 	moveq	r2, r3                                      
    390c:	13a02000 	movne	r2, #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;                   
    3910:	e585806c 	str	r8, [r5, #108]	; 0x6c                         
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
    3914:	e5853070 	str	r3, [r5, #112]	; 0x70                         
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3918:	e5852074 	str	r2, [r5, #116]	; 0x74                         
    391c:	eaffffa4 	b	37b4 <rtems_termios_ioctl+0x220>                
  /*                                                                  
   * check for flow control options to be switched on                 
   */                                                                 
  /* check for incoming RTS/CTS flow control switched on */           
  if (tty->termios.c_cflag & CRTSCTS) {                               
    tty->flow_ctrl |= FL_MDRTS;                                       
    3920:	e59530b8 	ldr	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    3924:	e3833c01 	orr	r3, r3, #256	; 0x100                          <== NOT EXECUTED
    3928:	e58530b8 	str	r3, [r5, #184]	; 0xb8                         <== NOT EXECUTED
    392c:	eaffff90 	b	3774 <rtems_termios_ioctl+0x1e0>                <== NOT EXECUTED
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
    3930:	e5d53047 	ldrb	r3, [r5, #71]	; 0x47                         
    3934:	e3530000 	cmp	r3, #0                                        
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
    3938:	03a03001 	moveq	r3, #1                                      
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
    393c:	1585206c 	strne	r2, [r5, #108]	; 0x6c                       
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
    3940:	15852070 	strne	r2, [r5, #112]	; 0x70                       
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
    3944:	15852074 	strne	r2, [r5, #116]	; 0x74                       
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
    3948:	0585306c 	streq	r3, [r5, #108]	; 0x6c                       
    394c:	eaffff98 	b	37b4 <rtems_termios_ioctl+0x220>                
      tty->flow_ctrl &= ~FL_OSTOP;                                    
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
    3950:	e5953084 	ldr	r3, [r5, #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)(                                         
    3954:	e595107c 	ldr	r1, [r5, #124]	; 0x7c                         <== NOT EXECUTED
    3958:	e5950010 	ldr	r0, [r5, #16]                                 <== NOT EXECUTED
    395c:	e0811003 	add	r1, r1, r3                                    <== NOT EXECUTED
    3960:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    3964:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    3968:	e595f0a4 	ldr	pc, [r5, #164]	; 0xa4                         <== NOT EXECUTED
    396c:	eaffff5a 	b	36dc <rtems_termios_ioctl+0x148>                <== NOT EXECUTED
                                                                      

00002ee4 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
    2ee4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2ee8:	e59f74b4 	ldr	r7, [pc, #1204]	; 33a4 <rtems_termios_open+0x4c0>
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
    2eec:	e1a06001 	mov	r6, r1                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2ef0:	e3a01000 	mov	r1, #0                                        
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
    2ef4:	e24dd01c 	sub	sp, sp, #28                                   
    2ef8:	e1a05000 	mov	r5, r0                                        
    2efc:	e1a08002 	mov	r8, r2                                        
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2f00:	e5970000 	ldr	r0, [r7]                                      
    2f04:	e1a02001 	mov	r2, r1                                        
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
    2f08:	e58d3014 	str	r3, [sp, #20]                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
    2f0c:	eb0009b9 	bl	55f8 <rtems_semaphore_obtain>                  
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
    2f10:	e250a000 	subs	sl, r0, #0                                   
    2f14:	1a000021 	bne	2fa0 <rtems_termios_open+0xbc>                
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
    2f18:	e59fb488 	ldr	fp, [pc, #1160]	; 33a8 <rtems_termios_open+0x4c4>
    2f1c:	e59b9000 	ldr	r9, [fp]                                      
    2f20:	e3590000 	cmp	r9, #0                                        
    2f24:	0a00002d 	beq	2fe0 <rtems_termios_open+0xfc>                
    2f28:	e1a04009 	mov	r4, r9                                        
    2f2c:	ea000002 	b	2f3c <rtems_termios_open+0x58>                  
    2f30:	e5944000 	ldr	r4, [r4]                                      
    2f34:	e3540000 	cmp	r4, #0                                        
    2f38:	0a000028 	beq	2fe0 <rtems_termios_open+0xfc>                
    if ((tty->major == major) && (tty->minor == minor))               
    2f3c:	e594300c 	ldr	r3, [r4, #12]                                 
    2f40:	e1530005 	cmp	r3, r5                                        
    2f44:	1afffff9 	bne	2f30 <rtems_termios_open+0x4c>                
    2f48:	e5943010 	ldr	r3, [r4, #16]                                 
    2f4c:	e1530006 	cmp	r3, r6                                        
    2f50:	1afffff6 	bne	2f30 <rtems_termios_open+0x4c>                
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
  if (!tty->refcount++) {                                             
    2f54:	e5943008 	ldr	r3, [r4, #8]                                  
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
    2f58:	e5981000 	ldr	r1, [r8]                                      
  if (!tty->refcount++) {                                             
    2f5c:	e2832001 	add	r2, r3, #1                                    
    2f60:	e3530000 	cmp	r3, #0                                        
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
    2f64:	e5814034 	str	r4, [r1, #52]	; 0x34                          
  if (!tty->refcount++) {                                             
    2f68:	e5842008 	str	r2, [r4, #8]                                  
    2f6c:	1a000009 	bne	2f98 <rtems_termios_open+0xb4>                
    if (tty->device.firstOpen)                                        
    2f70:	e5943098 	ldr	r3, [r4, #152]	; 0x98                         
    2f74:	e3530000 	cmp	r3, #0                                        
      (*tty->device.firstOpen)(major, minor, arg);                    
    2f78:	11a00005 	movne	r0, r5                                      
    2f7c:	11a01006 	movne	r1, r6                                      
    2f80:	11a02008 	movne	r2, r8                                      
    2f84:	11a0e00f 	movne	lr, pc                                      
    2f88:	112fff13 	bxne	r3                                           
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    2f8c:	e59430b4 	ldr	r3, [r4, #180]	; 0xb4                         
    2f90:	e3530002 	cmp	r3, #2                                        
    2f94:	0a000004 	beq	2fac <rtems_termios_open+0xc8>                
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
    2f98:	e5970000 	ldr	r0, [r7]                                      
    2f9c:	eb0009de 	bl	571c <rtems_semaphore_release>                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
    2fa0:	e1a0000a 	mov	r0, sl                                        
    2fa4:	e28dd01c 	add	sp, sp, #28                                   
    2fa8:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_start(                                          
    2fac:	e59400c4 	ldr	r0, [r4, #196]	; 0xc4                         
    2fb0:	e59f13f4 	ldr	r1, [pc, #1012]	; 33ac <rtems_termios_open+0x4c8>
    2fb4:	e1a02004 	mov	r2, r4                                        
    2fb8:	eb000aab 	bl	5a6c <rtems_task_start>                        
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
    2fbc:	e3500000 	cmp	r0, #0                                        
    2fc0:	1a0000da 	bne	3330 <rtems_termios_open+0x44c>               
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
    2fc4:	e59400c8 	ldr	r0, [r4, #200]	; 0xc8                         
    2fc8:	e59f13e0 	ldr	r1, [pc, #992]	; 33b0 <rtems_termios_open+0x4cc>
    2fcc:	e1a02004 	mov	r2, r4                                        
    2fd0:	eb000aa5 	bl	5a6c <rtems_task_start>                        
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
    2fd4:	e3500000 	cmp	r0, #0                                        
    2fd8:	0affffee 	beq	2f98 <rtems_termios_open+0xb4>                
    2fdc:	ea0000d3 	b	3330 <rtems_termios_open+0x44c>                 <== NOT EXECUTED
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
    2fe0:	e3a00001 	mov	r0, #1                                        
    2fe4:	e3a010e8 	mov	r1, #232	; 0xe8                               
    2fe8:	ebfffb60 	bl	1d70 <calloc>                                  
    if (tty == NULL) {                                                
    2fec:	e3500000 	cmp	r0, #0                                        
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
    2ff0:	e58d0018 	str	r0, [sp, #24]                                 
    2ff4:	e1a04000 	mov	r4, r0                                        
    if (tty == NULL) {                                                
    2ff8:	0a0000b7 	beq	32dc <rtems_termios_open+0x3f8>               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    2ffc:	e59f03b0 	ldr	r0, [pc, #944]	; 33b4 <rtems_termios_open+0x4d0>
    3000:	e59d1018 	ldr	r1, [sp, #24]                                 
    3004:	e5903000 	ldr	r3, [r0]                                      
    3008:	e5813064 	str	r3, [r1, #100]	; 0x64                         
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    300c:	e5910064 	ldr	r0, [r1, #100]	; 0x64                         
    3010:	ebfffc9d 	bl	228c <malloc>                                  
    3014:	e59d2018 	ldr	r2, [sp, #24]                                 
    if (tty->rawInBuf.theBuf == NULL) {                               
    3018:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    301c:	e1a03000 	mov	r3, r0                                        
    3020:	e5820058 	str	r0, [r2, #88]	; 0x58                          
    if (tty->rawInBuf.theBuf == NULL) {                               
    3024:	0a0000b0 	beq	32ec <rtems_termios_open+0x408>               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    3028:	e59fc384 	ldr	ip, [pc, #900]	; 33b4 <rtems_termios_open+0x4d0>
    302c:	e59de018 	ldr	lr, [sp, #24]                                 
    3030:	e59c2004 	ldr	r2, [ip, #4]                                  
    3034:	e58e2088 	str	r2, [lr, #136]	; 0x88                         
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
    3038:	e59e0088 	ldr	r0, [lr, #136]	; 0x88                         
    303c:	e58d300c 	str	r3, [sp, #12]                                 
    3040:	ebfffc91 	bl	228c <malloc>                                  
    3044:	e1a02000 	mov	r2, r0                                        
    if (tty->rawOutBuf.theBuf == NULL) {                              
    3048:	e3500000 	cmp	r0, #0                                        
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
    304c:	e59d0018 	ldr	r0, [sp, #24]                                 
    if (tty->rawOutBuf.theBuf == NULL) {                              
    3050:	e59d300c 	ldr	r3, [sp, #12]                                 
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
    3054:	e580207c 	str	r2, [r0, #124]	; 0x7c                         
    if (tty->rawOutBuf.theBuf == NULL) {                              
    3058:	0a00009b 	beq	32cc <rtems_termios_open+0x3e8>               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    305c:	e59f1350 	ldr	r1, [pc, #848]	; 33b4 <rtems_termios_open+0x4d0>
    3060:	e5910008 	ldr	r0, [r1, #8]                                  
    3064:	e58d2010 	str	r2, [sp, #16]                                 
    3068:	e58d300c 	str	r3, [sp, #12]                                 
    306c:	ebfffc86 	bl	228c <malloc>                                  
    3070:	e59dc018 	ldr	ip, [sp, #24]                                 
    if (tty->cbuf == NULL) {                                          
    3074:	e3500000 	cmp	r0, #0                                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    3078:	e58c001c 	str	r0, [ip, #28]                                 
    if (tty->cbuf == NULL) {                                          
    307c:	e59d2010 	ldr	r2, [sp, #16]                                 
    3080:	0a00008e 	beq	32c0 <rtems_termios_open+0x3dc>               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
    3084:	e59de018 	ldr	lr, [sp, #24]                                 
    3088:	e3a03000 	mov	r3, #0                                        
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
    308c:	e1590003 	cmp	r9, r3                                        
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    3090:	e58e3004 	str	r3, [lr, #4]                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
    3094:	e58e30d4 	str	r3, [lr, #212]	; 0xd4                         
    tty->tty_snd.sw_arg = NULL;                                       
    3098:	e58e30d8 	str	r3, [lr, #216]	; 0xd8                         
    tty->tty_rcv.sw_pfn = NULL;                                       
    309c:	e58e30dc 	str	r3, [lr, #220]	; 0xdc                         
    tty->tty_rcv.sw_arg = NULL;                                       
    30a0:	e58e30e0 	str	r3, [lr, #224]	; 0xe0                         
    tty->tty_rcvwakeup  = 0;                                          
    30a4:	e58e30e4 	str	r3, [lr, #228]	; 0xe4                         
    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)                                
    30a8:	e59f3308 	ldr	r3, [pc, #776]	; 33b8 <rtems_termios_open+0x4d4>
    30ac:	e5932000 	ldr	r2, [r3]                                      
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    30b0:	e59d0018 	ldr	r0, [sp, #24]                                 
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
    30b4:	e59f12f8 	ldr	r1, [pc, #760]	; 33b4 <rtems_termios_open+0x4d0>
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    30b8:	1589e004 	strne	lr, [r9, #4]                                
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
    30bc:	e3520000 	cmp	r2, #0                                        
      rtems_termios_ttyTail = tty;                                    
    30c0:	05830000 	streq	r0, [r3]                                    
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    30c4:	e58b0000 	str	r0, [fp]                                      
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
    30c8:	e5d1000c 	ldrb	r0, [r1, #12]                                
    tty->tty_rcvwakeup  = 0;                                          
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    30cc:	e58e9000 	str	r9, [lr]                                      
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    30d0:	e59d2018 	ldr	r2, [sp, #24]                                 
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
    30d4:	e59d9018 	ldr	r9, [sp, #24]                                 
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    30d8:	e3800315 	orr	r0, r0, #1409286144	; 0x54000000              
    30dc:	e3800852 	orr	r0, r0, #5373952	; 0x520000                   
    30e0:	e282c014 	add	ip, r2, #20                                   
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
    30e4:	e5896010 	str	r6, [r9, #16]                                 
    tty->major = major;                                               
    30e8:	e589500c 	str	r5, [r9, #12]                                 
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
    30ec:	e3a03000 	mov	r3, #0                                        
    30f0:	e3800c69 	orr	r0, r0, #26880	; 0x6900                       
    30f4:	e3a01001 	mov	r1, #1                                        
    30f8:	e3a02054 	mov	r2, #84	; 0x54                                
    30fc:	e58dc000 	str	ip, [sp]                                      
    3100:	eb0008a2 	bl	5390 <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)                                       
    3104:	e2503000 	subs	r3, r0, #0                                   
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
    3108:	e59f92a4 	ldr	r9, [pc, #676]	; 33b4 <rtems_termios_open+0x4d0>
      1,                                                              
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      RTEMS_NO_PRIORITY,                                              
      &tty->isem);                                                    
    if (sc != RTEMS_SUCCESSFUL)                                       
    310c:	1a000087 	bne	3330 <rtems_termios_open+0x44c>               
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
    3110:	e5d9000c 	ldrb	r0, [r9, #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 (                                     
    3114:	e59db018 	ldr	fp, [sp, #24]                                 
    3118:	e3800315 	orr	r0, r0, #1409286144	; 0x54000000              
    311c:	e3800852 	orr	r0, r0, #5373952	; 0x520000                   
    3120:	e28bc018 	add	ip, fp, #24                                   
    3124:	e3a01001 	mov	r1, #1                                        
    3128:	e3800c6f 	orr	r0, r0, #28416	; 0x6f00                       
    312c:	e3a02054 	mov	r2, #84	; 0x54                                
    3130:	e58dc000 	str	ip, [sp]                                      
    3134:	eb000895 	bl	5390 <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)                                       
    3138:	e2501000 	subs	r1, r0, #0                                   
    313c:	1a00007b 	bne	3330 <rtems_termios_open+0x44c>               
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
    3140:	e5d9000c 	ldrb	r0, [r9, #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 (                                     
    3144:	e59de018 	ldr	lr, [sp, #24]                                 
    3148:	e3800315 	orr	r0, r0, #1409286144	; 0x54000000              
    314c:	e3800852 	orr	r0, r0, #5373952	; 0x520000                   
    3150:	e28ec08c 	add	ip, lr, #140	; 0x8c                           
    3154:	e3800b1e 	orr	r0, r0, #30720	; 0x7800                       
    3158:	e3a02020 	mov	r2, #32                                       
    315c:	e1a03001 	mov	r3, r1                                        
    3160:	e58dc000 	str	ip, [sp]                                      
    3164:	eb000889 	bl	5390 <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)                                       
    3168:	e250e000 	subs	lr, r0, #0                                   
    316c:	1a00006f 	bne	3330 <rtems_termios_open+0x44c>               
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
    3170:	e59db014 	ldr	fp, [sp, #20]                                 
    3174:	e8bb000f 	ldm	fp!, {r0, r1, r2, r3}                         
    3178:	e58db014 	str	fp, [sp, #20]                                 
    317c:	e59db018 	ldr	fp, [sp, #24]                                 
    3180:	e28bc098 	add	ip, fp, #152	; 0x98                           
    3184:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
    3188:	e59db014 	ldr	fp, [sp, #20]                                 
    318c:	e89b000f 	ldm	fp, {r0, r1, r2, r3}                          
    3190:	e88c000f 	stm	ip, {r0, r1, r2, r3}                          
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    3194:	e59dc018 	ldr	ip, [sp, #24]                                 
    3198:	e59c30b4 	ldr	r3, [ip, #180]	; 0xb4                         
    319c:	e3530002 	cmp	r3, #2                                        
      RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,                     
      RTEMS_NO_PRIORITY,                                              
      &tty->rawOutBuf.Semaphore);                                     
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    tty->rawOutBufState = rob_idle;                                   
    31a0:	e58ce094 	str	lr, [ip, #148]	; 0x94                         
    tty->device = *callbacks;                                         
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
    31a4:	0a000062 	beq	3334 <rtems_termios_open+0x450>               
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
    31a8:	e59d9018 	ldr	r9, [sp, #24]                                 
    31ac:	e59930a0 	ldr	r3, [r9, #160]	; 0xa0                         
    31b0:	e3530000 	cmp	r3, #0                                        
    31b4:	0a00004f 	beq	32f8 <rtems_termios_open+0x414>               
    31b8:	e59930b4 	ldr	r3, [r9, #180]	; 0xb4                         
    31bc:	e3530002 	cmp	r3, #2                                        
    31c0:	0a00004c 	beq	32f8 <rtems_termios_open+0x414>               
    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;                                               
    31c4:	e59d0018 	ldr	r0, [sp, #24]                                 
    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';                                 
    31c8:	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;                                               
    31cc:	e58030b8 	str	r3, [r0, #184]	; 0xb8                         
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    31d0:	e59f11dc 	ldr	r1, [pc, #476]	; 33b4 <rtems_termios_open+0x4d0>
    /* 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;                        
    31d4:	e590b064 	ldr	fp, [r0, #100]	; 0x64                         
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    31d8:	e5d1900c 	ldrb	r9, [r1, #12]                                
    /* 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;                        
    31dc:	e1a0b0ab 	lsr	fp, fp, #1                                    
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    31e0:	e359007a 	cmp	r9, #122	; 0x7a                               
    /* 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;                        
    31e4:	e58db008 	str	fp, [sp, #8]                                  
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    31e8:	e289b001 	add	fp, r9, #1                                    
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    31ec:	e59d9018 	ldr	r9, [sp, #24]                                 
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
    31f0:	e3a02c82 	mov	r2, #33280	; 0x8200                           
    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';                                 
    31f4:	e5c9304c 	strb	r3, [r9, #76]	; 0x4c                         
    tty->termios.c_cc[VEOL2] = '\000';                                
    31f8:	e5c93051 	strb	r3, [r9, #81]	; 0x51                         
    tty->termios.c_cc[VSTART] = '\021';                               
    31fc:	e3a03011 	mov	r3, #17                                       
    3200:	e5c93049 	strb	r3, [r9, #73]	; 0x49                         
     * 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 =                                            
    3204:	e282203b 	add	r2, r2, #59	; 0x3b                            
    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';                                
    3208:	e3a03013 	mov	r3, #19                                       
    320c:	e5c9304a 	strb	r3, [r9, #74]	; 0x4a                         
     * 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 =                                            
    3210:	e589203c 	str	r2, [r9, #60]	; 0x3c                          
    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';                                
    3214:	e3a0301a 	mov	r3, #26                                       
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    3218:	e3a02003 	mov	r2, #3                                        
    321c:	e5c92041 	strb	r2, [r9, #65]	; 0x41                         
    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';                                
    3220:	e5c9304b 	strb	r3, [r9, #75]	; 0x4b                         
    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;                        
    3224:	e590e064 	ldr	lr, [r0, #100]	; 0x64                         
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    3228:	e3a0201c 	mov	r2, #28                                       
    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';                             
    322c:	e3a03012 	mov	r3, #18                                       
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    3230:	e5c92042 	strb	r2, [r9, #66]	; 0x42                         
    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';                             
    3234:	e5c9304d 	strb	r3, [r9, #77]	; 0x4d                         
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    3238:	e3a0207f 	mov	r2, #127	; 0x7f                               
    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';                             
    323c:	e3a0300f 	mov	r3, #15                                       
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    3240:	e5c92043 	strb	r2, [r9, #67]	; 0x43                         
    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';                             
    3244:	e5c9304e 	strb	r3, [r9, #78]	; 0x4e                         
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    3248:	e3a02015 	mov	r2, #21                                       
    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';                              
    324c:	e3a03017 	mov	r3, #23                                       
    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;                        
    3250:	e08ee08e 	add	lr, lr, lr, lsl #1                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    3254:	e5c92044 	strb	r2, [r9, #68]	; 0x44                         
    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';                              
    3258:	e5c9304f 	strb	r3, [r9, #79]	; 0x4f                         
                                                                      
    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';                                 
    325c:	e3a02004 	mov	r2, #4                                        
    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';                               
    3260:	e3a03016 	mov	r3, #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;                        
    3264:	e1a0e12e 	lsr	lr, lr, #2                                    
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    3268:	e3a0cc25 	mov	ip, #9472	; 0x2500                            
                                                                      
    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';                                 
    326c:	e5c92045 	strb	r2, [r9, #69]	; 0x45                         
    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';                               
    3270:	e5c93050 	strb	r3, [r9, #80]	; 0x50                         
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    3274:	e28cc002 	add	ip, ip, #2                                    
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    3278:	e58db014 	str	fp, [sp, #20]                                 
    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;                        
    327c:	e589e0c0 	str	lr, [r9, #192]	; 0xc0                         
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    3280:	e59fe12c 	ldr	lr, [pc, #300]	; 33b4 <rtems_termios_open+0x4d0>
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    3284:	e3a00b06 	mov	r0, #6144	; 0x1800                            
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    3288:	e3a01e8b 	mov	r1, #2224	; 0x8b0                             
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    328c:	e589c030 	str	ip, [r9, #48]	; 0x30                          
    /* 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;                        
    3290:	e59db008 	ldr	fp, [sp, #8]                                  
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    3294:	e59dc014 	ldr	ip, [sp, #20]                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    3298:	e2800005 	add	r0, r0, #5                                    
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    329c:	e281100d 	add	r1, r1, #13                                   
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
    32a0:	0282205d 	addeq	r2, r2, #93	; 0x5d                          
    32a4:	01a0300e 	moveq	r3, lr                                      
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
    32a8:	e5cec00c 	strb	ip, [lr, #12]                                
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    32ac:	e5890034 	str	r0, [r9, #52]	; 0x34                          
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    32b0:	e5891038 	str	r1, [r9, #56]	; 0x38                          
    /* 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;                        
    32b4:	e589b0bc 	str	fp, [r9, #188]	; 0xbc                         
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
    32b8:	05c3200c 	strbeq	r2, [r3, #12]                              
    32bc:	eaffff24 	b	2f54 <rtems_termios_open+0x70>                  
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    if (tty->cbuf == NULL) {                                          
            free((void *)(tty->rawOutBuf.theBuf));                    
    32c0:	e1a00002 	mov	r0, r2                                        <== NOT EXECUTED
    32c4:	ebfffb16 	bl	1f24 <free>                                    <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
    32c8:	e59d300c 	ldr	r3, [sp, #12]                                 <== NOT EXECUTED
    32cc:	e1a00003 	mov	r0, r3                                        
    32d0:	ebfffb13 	bl	1f24 <free>                                    
            free(tty);                                                
    32d4:	e59d0018 	ldr	r0, [sp, #24]                                 
    32d8:	ebfffb11 	bl	1f24 <free>                                    
      rtems_semaphore_release (rtems_termios_ttyMutex);               
    32dc:	e5970000 	ldr	r0, [r7]                                      
    32e0:	eb00090d 	bl	571c <rtems_semaphore_release>                 
      return RTEMS_NO_MEMORY;                                         
    32e4:	e3a0a01a 	mov	sl, #26                                       
    32e8:	eaffff2c 	b	2fa0 <rtems_termios_open+0xbc>                  
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    if (tty->rawInBuf.theBuf == NULL) {                               
            free(tty);                                                
    32ec:	e1a00002 	mov	r0, r2                                        
    32f0:	ebfffb0b 	bl	1f24 <free>                                    
    32f4:	eafffff8 	b	32dc <rtems_termios_open+0x3f8>                 
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
    32f8:	e59fb0b4 	ldr	fp, [pc, #180]	; 33b4 <rtems_termios_open+0x4d0>
    32fc:	e5db000c 	ldrb	r0, [fp, #12]                                
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
    3300:	e59de018 	ldr	lr, [sp, #24]                                 
    3304:	e3800315 	orr	r0, r0, #1409286144	; 0x54000000              
    3308:	e3a01000 	mov	r1, #0                                        
    330c:	e3800852 	orr	r0, r0, #5373952	; 0x520000                   
    3310:	e28ec068 	add	ip, lr, #104	; 0x68                           
    3314:	e3800c72 	orr	r0, r0, #29184	; 0x7200                       
    3318:	e3a02024 	mov	r2, #36	; 0x24                                
    331c:	e1a03001 	mov	r3, r1                                        
    3320:	e58dc000 	str	ip, [sp]                                      
    3324:	eb000819 	bl	5390 <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)                                     
    3328:	e3500000 	cmp	r0, #0                                        
    332c:	0affffa4 	beq	31c4 <rtems_termios_open+0x2e0>               
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    3330:	eb000a59 	bl	5c9c <rtems_fatal_error_occurred>              
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
                                   rtems_build_name ('T', 'x', 'T', c),
    3334:	e5d9000c 	ldrb	r0, [r9, #12]                                
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
    3338:	e3800315 	orr	r0, r0, #1409286144	; 0x54000000              
    333c:	e380071e 	orr	r0, r0, #7864320	; 0x780000                   
    3340:	e28cc0c8 	add	ip, ip, #200	; 0xc8                           
    3344:	e3800b15 	orr	r0, r0, #21504	; 0x5400                       
    3348:	e3a0100a 	mov	r1, #10                                       
    334c:	e3a02b01 	mov	r2, #1024	; 0x400                             
    3350:	e3a03c05 	mov	r3, #1280	; 0x500                             
    3354:	e58de000 	str	lr, [sp]                                      
    3358:	e58dc004 	str	ip, [sp, #4]                                  
    335c:	eb000918 	bl	57c4 <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)                                     
    3360:	e250e000 	subs	lr, r0, #0                                   
    3364:	1afffff1 	bne	3330 <rtems_termios_open+0x44c>               
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
    3368:	e5d9000c 	ldrb	r0, [r9, #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 (                                        
    336c:	e59d2018 	ldr	r2, [sp, #24]                                 
    3370:	e3800452 	orr	r0, r0, #1375731712	; 0x52000000              
    3374:	e380071e 	orr	r0, r0, #7864320	; 0x780000                   
    3378:	e282c0c4 	add	ip, r2, #196	; 0xc4                           
    337c:	e3800b15 	orr	r0, r0, #21504	; 0x5400                       
    3380:	e3a01009 	mov	r1, #9                                        
    3384:	e3a02b01 	mov	r2, #1024	; 0x400                             
    3388:	e3a03c05 	mov	r3, #1280	; 0x500                             
    338c:	e58de000 	str	lr, [sp]                                      
    3390:	e58dc004 	str	ip, [sp, #4]                                  
    3394:	eb00090a 	bl	57c4 <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)                                     
    3398:	e3500000 	cmp	r0, #0                                        
    339c:	0affff81 	beq	31a8 <rtems_termios_open+0x2c4>               
    33a0:	eaffffe2 	b	3330 <rtems_termios_open+0x44c>                 <== NOT EXECUTED
                                                                      

00003978 <rtems_termios_puts>: const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
    3978:	e59230b4 	ldr	r3, [r2, #180]	; 0xb4                         
    397c:	e3530000 	cmp	r3, #0                                        
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
    3980:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    3984:	e1a04002 	mov	r4, r2                                        
    3988:	e1a09000 	mov	r9, r0                                        
    398c:	e1a0a001 	mov	sl, r1                                        
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    3990:	0a000037 	beq	3a74 <rtems_termios_puts+0xfc>                
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
    3994:	e3510000 	cmp	r1, #0                                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
    3998:	e5928080 	ldr	r8, [r2, #128]	; 0x80                         
  while (len) {                                                       
    399c:	08bd8ff0 	popeq	{r4, r5, r6, r7, r8, r9, sl, fp, pc}        
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
    39a0:	e3a07002 	mov	r7, #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;                                 
    39a4:	e3a0b001 	mov	fp, #1                                        
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    39a8:	e5941088 	ldr	r1, [r4, #136]	; 0x88                         
    39ac:	e2880001 	add	r0, r8, #1                                    
    39b0:	eb003659 	bl	1131c <__umodsi3>                              
    39b4:	e1a08000 	mov	r8, r0                                        
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    39b8:	e10f5000 	mrs	r5, CPSR                                      
    39bc:	e3853080 	orr	r3, r5, #128	; 0x80                           
    39c0:	e129f003 	msr	CPSR_fc, r3                                   
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
    39c4:	e5946084 	ldr	r6, [r4, #132]	; 0x84                         
    39c8:	e1560000 	cmp	r6, r0                                        
    39cc:	1a00000d 	bne	3a08 <rtems_termios_puts+0x90>                
      tty->rawOutBufState = rob_wait;                                 
    39d0:	e5847094 	str	r7, [r4, #148]	; 0x94                         
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    39d4:	e129f005 	msr	CPSR_fc, r5                                   
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
    39d8:	e3a01000 	mov	r1, #0                                        
    39dc:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
    39e0:	e1a02001 	mov	r2, r1                                        
    39e4:	eb000703 	bl	55f8 <rtems_semaphore_obtain>                  
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
    39e8:	e3500000 	cmp	r0, #0                                        
    39ec:	1a000026 	bne	3a8c <rtems_termios_puts+0x114>               
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    39f0:	e10f5000 	mrs	r5, CPSR                                      
    39f4:	e3853080 	orr	r3, r5, #128	; 0x80                           
    39f8:	e129f003 	msr	CPSR_fc, r3                                   
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
    39fc:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         
    3a00:	e1530006 	cmp	r3, r6                                        
    3a04:	0afffff1 	beq	39d0 <rtems_termios_puts+0x58>                
        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++;              
    3a08:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    3a0c:	e4d91001 	ldrb	r1, [r9], #1                                 
    3a10:	e594207c 	ldr	r2, [r4, #124]	; 0x7c                         
    3a14:	e7c21003 	strb	r1, [r2, r3]                                 
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
    3a18:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         
    3a1c:	e3530000 	cmp	r3, #0                                        
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
    3a20:	e5848080 	str	r8, [r4, #128]	; 0x80                         
    if (tty->rawOutBufState == rob_idle) {                            
    3a24:	1a000006 	bne	3a44 <rtems_termios_puts+0xcc>                
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
    3a28:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3a2c:	e3130010 	tst	r3, #16                                       
    3a30:	0a000007 	beq	3a54 <rtems_termios_puts+0xdc>                
        (*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;                                   
    3a34:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    3a38:	e3833020 	orr	r3, r3, #32                                   <== NOT EXECUTED
    3a3c:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
    3a40:	e584b094 	str	fp, [r4, #148]	; 0x94                         
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    3a44:	e129f005 	msr	CPSR_fc, r5                                   
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
    3a48:	e25aa001 	subs	sl, sl, #1                                   
    3a4c:	1affffd5 	bne	39a8 <rtems_termios_puts+0x30>                
    3a50:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    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,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
    3a54:	e5943084 	ldr	r3, [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,                              
    3a58:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         
    3a5c:	e5940010 	ldr	r0, [r4, #16]                                 
    3a60:	e0811003 	add	r1, r1, r3                                    
    3a64:	e3a02001 	mov	r2, #1                                        
    3a68:	e1a0e00f 	mov	lr, pc                                        
    3a6c:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         
    3a70:	eafffff2 	b	3a40 <rtems_termios_puts+0xc8>                  
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    3a74:	e5920010 	ldr	r0, [r2, #16]                                 
    3a78:	e1a01009 	mov	r1, r9                                        
    3a7c:	e1a0200a 	mov	r2, sl                                        
    3a80:	e1a0e00f 	mov	lr, pc                                        
    3a84:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         
    return;                                                           
    3a88:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    3a8c:	eb000882 	bl	5c9c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

000041ac <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
    41ac:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
    41b0:	e5903000 	ldr	r3, [r0]                                      
    41b4:	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);
    41b8:	e3a01000 	mov	r1, #0                                        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
    41bc:	e1a09000 	mov	r9, r0                                        
    41c0:	e24dd008 	sub	sp, sp, #8                                    
  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);
    41c4:	e5940014 	ldr	r0, [r4, #20]                                 
    41c8:	e1a02001 	mov	r2, r1                                        
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;                                     
    41cc:	e5998010 	ldr	r8, [r9, #16]                                 
  char      *buffer = args->buffer;                                   
    41d0:	e599a00c 	ldr	sl, [r9, #12]                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    41d4:	eb000507 	bl	55f8 <rtems_semaphore_obtain>                  
  if (sc != RTEMS_SUCCESSFUL)                                         
    41d8:	e3500000 	cmp	r0, #0                                        
    41dc:	e58d0000 	str	r0, [sp]                                      
    41e0:	1a00000e 	bne	4220 <rtems_termios_read+0x74>                
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
    41e4:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    41e8:	e59f3370 	ldr	r3, [pc, #880]	; 4560 <rtems_termios_read+0x3b4>
    41ec:	e0833282 	add	r3, r3, r2, lsl #5                            
    41f0:	e5933008 	ldr	r3, [r3, #8]                                  
    41f4:	e3530000 	cmp	r3, #0                                        
    41f8:	0a00000b 	beq	422c <rtems_termios_read+0x80>                
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
    41fc:	e1a00004 	mov	r0, r4                                        
    4200:	e1a01009 	mov	r1, r9                                        
    4204:	e1a0e00f 	mov	lr, pc                                        
    4208:	e12fff13 	bx	r3                                             
    tty->tty_rcvwakeup = 0;                                           
    420c:	e3a03000 	mov	r3, #0                                        
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
    4210:	e58d0000 	str	r0, [sp]                                      
    tty->tty_rcvwakeup = 0;                                           
    4214:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
    rtems_semaphore_release (tty->isem);                              
    4218:	e5940014 	ldr	r0, [r4, #20]                                 
    421c:	eb00053e 	bl	571c <rtems_semaphore_release>                 
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
  return sc;                                                          
}                                                                     
    4220:	e59d0000 	ldr	r0, [sp]                                      
    4224:	e28dd008 	add	sp, sp, #8                                    
    4228:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    422c:	e5942024 	ldr	r2, [r4, #36]	; 0x24                          
    4230:	e5943020 	ldr	r3, [r4, #32]                                 
    4234:	e1520003 	cmp	r2, r3                                        
    4238:	0a000018 	beq	42a0 <rtems_termios_read+0xf4>                
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    423c:	e3580000 	cmp	r8, #0                                        
    4240:	0a00000e 	beq	4280 <rtems_termios_read+0xd4>                
    4244:	e2842020 	add	r2, r4, #32                                   
    4248:	e892000c 	ldm	r2, {r2, r3}                                  
    424c:	e1530002 	cmp	r3, r2                                        
    4250:	ba000003 	blt	4264 <rtems_termios_read+0xb8>                
    4254:	ea000009 	b	4280 <rtems_termios_read+0xd4>                  <== NOT EXECUTED
    4258:	e5942020 	ldr	r2, [r4, #32]                                 
    425c:	e1520003 	cmp	r2, r3                                        
    4260:	da000006 	ble	4280 <rtems_termios_read+0xd4>                
    *buffer++ = tty->cbuf[tty->cindex++];                             
    4264:	e594201c 	ldr	r2, [r4, #28]                                 
    4268:	e7d22003 	ldrb	r2, [r2, r3]                                 
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    426c:	e2588001 	subs	r8, r8, #1                                   
    *buffer++ = tty->cbuf[tty->cindex++];                             
    4270:	e2833001 	add	r3, r3, #1                                    
    4274:	e4ca2001 	strb	r2, [sl], #1                                 
    4278:	e5843024 	str	r3, [r4, #36]	; 0x24                          
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    427c:	1afffff5 	bne	4258 <rtems_termios_read+0xac>                
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
    4280:	e5993010 	ldr	r3, [r9, #16]                                 
    4284:	e0688003 	rsb	r8, r8, r3                                    
  tty->tty_rcvwakeup = 0;                                             
    4288:	e3a03000 	mov	r3, #0                                        
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
    428c:	e5898018 	str	r8, [r9, #24]                                 
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
    4290:	e5940014 	ldr	r0, [r4, #20]                                 
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
    4294:	e58430e4 	str	r3, [r4, #228]	; 0xe4                         
  rtems_semaphore_release (tty->isem);                                
    4298:	eb00051f 	bl	571c <rtems_semaphore_release>                 
  return sc;                                                          
    429c:	eaffffdf 	b	4220 <rtems_termios_read+0x74>                  
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
    42a0:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    42a4:	e59d1000 	ldr	r1, [sp]                                      
    tty->read_start_column = tty->column;                             
    42a8:	e5942028 	ldr	r2, [r4, #40]	; 0x28                          
    if (tty->device.pollRead != NULL &&                               
    42ac:	e3530000 	cmp	r3, #0                                        
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    42b0:	e5841020 	str	r1, [r4, #32]                                 
    42b4:	e5841024 	str	r1, [r4, #36]	; 0x24                          
    tty->read_start_column = tty->column;                             
    42b8:	e584202c 	str	r2, [r4, #44]	; 0x2c                          
    if (tty->device.pollRead != NULL &&                               
    42bc:	0a000002 	beq	42cc <rtems_termios_read+0x120>               
    42c0:	e59420b4 	ldr	r2, [r4, #180]	; 0xb4                         
    42c4:	e3520000 	cmp	r2, #0                                        
    42c8:	0a000068 	beq	4470 <rtems_termios_read+0x2c4>               
        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)(                                       
    42cc:	e2843049 	add	r3, r4, #73	; 0x49                            
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
    42d0:	e3a0bc02 	mov	fp, #512	; 0x200                              
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
    42d4:	e5946074 	ldr	r6, [r4, #116]	; 0x74                         
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
    42d8:	e59f7284 	ldr	r7, [pc, #644]	; 4564 <rtems_termios_read+0x3b8>
        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)(                                       
    42dc:	e58d3004 	str	r3, [sp, #4]                                  
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
    42e0:	e3a05001 	mov	r5, #1                                        
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
    42e4:	e28bb002 	add	fp, fp, #2                                    
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    42e8:	e594205c 	ldr	r2, [r4, #92]	; 0x5c                          
    42ec:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
    42f0:	e1520003 	cmp	r2, r3                                        
    42f4:	0a000048 	beq	441c <rtems_termios_read+0x270>               
                       (tty->ccount < (CBUFSIZE-1))) {                
    42f8:	e5972008 	ldr	r2, [r7, #8]                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    42fc:	e5943020 	ldr	r3, [r4, #32]                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
    4300:	e2422001 	sub	r2, r2, #1                                    
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4304:	e1520003 	cmp	r2, r3                                        
    4308:	ca00000f 	bgt	434c <rtems_termios_read+0x1a0>               
    430c:	ea000042 	b	441c <rtems_termios_read+0x270>                 <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
    4310:	e1a00006 	mov	r0, r6                                        
    4314:	e1a01004 	mov	r1, r4                                        
    4318:	ebffff57 	bl	407c <siproc>                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    431c:	e594205c 	ldr	r2, [r4, #92]	; 0x5c                          
    4320:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
          wait = 0;                                                   
    4324:	e3500000 	cmp	r0, #0                                        
    4328:	13a05000 	movne	r5, #0                                      
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    432c:	e1520003 	cmp	r2, r3                                        
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
    4330:	e5946070 	ldr	r6, [r4, #112]	; 0x70                         
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4334:	0a000038 	beq	441c <rtems_termios_read+0x270>               
                       (tty->ccount < (CBUFSIZE-1))) {                
    4338:	e5973008 	ldr	r3, [r7, #8]                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    433c:	e5942020 	ldr	r2, [r4, #32]                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
    4340:	e2433001 	sub	r3, r3, #1                                    
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4344:	e1520003 	cmp	r2, r3                                        
    4348:	aa000033 	bge	441c <rtems_termios_read+0x270>               
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
    434c:	e594005c 	ldr	r0, [r4, #92]	; 0x5c                          
    4350:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    4354:	e2800001 	add	r0, r0, #1                                    
    4358:	eb0033ef 	bl	1131c <__umodsi3>                              
      c = tty->rawInBuf.theBuf[newHead];                              
    435c:	e5943058 	ldr	r3, [r4, #88]	; 0x58                          
    4360:	e7d36000 	ldrb	r6, [r3, r0]                                 
      tty->rawInBuf.Head = newHead;                                   
    4364:	e584005c 	str	r0, [r4, #92]	; 0x5c                          
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
    4368:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          
    436c:	e5942064 	ldr	r2, [r4, #100]	; 0x64                         
    4370:	e0823003 	add	r3, r2, r3                                    
          % tty->rawInBuf.Size)                                       
    4374:	e0600003 	rsb	r0, r0, r3                                    
    4378:	e5941064 	ldr	r1, [r4, #100]	; 0x64                         
    437c:	eb0033e6 	bl	1131c <__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)             
    4380:	e59430bc 	ldr	r3, [r4, #188]	; 0xbc                         
    4384:	e1500003 	cmp	r0, r3                                        
    4388:	2a000014 	bcs	43e0 <rtems_termios_read+0x234>               
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
    438c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    4390:	e3c33001 	bic	r3, r3, #1                                    
    4394:	e58430b8 	str	r3, [r4, #184]	; 0xb8                         
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
    4398:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    439c:	e3c33f7f 	bic	r3, r3, #508	; 0x1fc                          
    43a0:	e3c33001 	bic	r3, r3, #1                                    
    43a4:	e1a03b03 	lsl	r3, r3, #22                                   
    43a8:	e1a03b23 	lsr	r3, r3, #22                                   
    43ac:	e153000b 	cmp	r3, fp                                        
    43b0:	0a000022 	beq	4440 <rtems_termios_read+0x294>               
            && ((tty->rawOutBufState == rob_idle)                     
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
    43b4:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    43b8:	e3130c01 	tst	r3, #256	; 0x100                              
    43bc:	0a000007 	beq	43e0 <rtems_termios_read+0x234>               
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
    43c0:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
    43c4:	e59430b0 	ldr	r3, [r4, #176]	; 0xb0                         <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
    43c8:	e3c22004 	bic	r2, r2, #4                                    <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
    43cc:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
    43d0:	e58420b8 	str	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
            tty->device.startRemoteTx(tty->minor);                    
    43d4:	15940010 	ldrne	r0, [r4, #16]                               <== NOT EXECUTED
    43d8:	11a0e00f 	movne	lr, pc                                      <== NOT EXECUTED
    43dc:	112fff13 	bxne	r3                                           <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
    43e0:	e594303c 	ldr	r3, [r4, #60]	; 0x3c                          
    43e4:	e3130002 	tst	r3, #2                                        
    43e8:	1affffc8 	bne	4310 <rtems_termios_read+0x164>               
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
    43ec:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    43f0:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    43f4:	ebffff20 	bl	407c <siproc>                                  <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
    43f8:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         <== NOT EXECUTED
    43fc:	e5942020 	ldr	r2, [r4, #32]                                 <== NOT EXECUTED
          wait = 0;                                                   
    4400:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4404:	e594205c 	ldr	r2, [r4, #92]	; 0x5c                          <== NOT EXECUTED
    4408:	e5943060 	ldr	r3, [r4, #96]	; 0x60                          <== NOT EXECUTED
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
    440c:	a3a05000 	movge	r5, #0                                      <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4410:	e1520003 	cmp	r2, r3                                        <== NOT EXECUTED
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
    4414:	e5946070 	ldr	r6, [r4, #112]	; 0x70                         <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
    4418:	1affffc6 	bne	4338 <rtems_termios_read+0x18c>               <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
    441c:	e3550000 	cmp	r5, #0                                        
    4420:	0affff85 	beq	423c <rtems_termios_read+0x90>                
      sc = rtems_semaphore_obtain(                                    
    4424:	e2840068 	add	r0, r4, #104	; 0x68                           
    4428:	e8900003 	ldm	r0, {r0, r1}                                  
    442c:	e1a02006 	mov	r2, r6                                        
    4430:	eb000470 	bl	55f8 <rtems_semaphore_obtain>                  
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
    4434:	e3500000 	cmp	r0, #0                                        
    4438:	0affffaa 	beq	42e8 <rtems_termios_read+0x13c>               
    443c:	eaffff7e 	b	423c <rtems_termios_read+0x90>                  <== NOT EXECUTED
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
    4440:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         <== NOT EXECUTED
    4444:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    4448:	0a000002 	beq	4458 <rtems_termios_read+0x2ac>               <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
    444c:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4450:	e3130020 	tst	r3, #32                                       <== NOT EXECUTED
    4454:	0affffd6 	beq	43b4 <rtems_termios_read+0x208>               <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
    4458:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    445c:	e59d1004 	ldr	r1, [sp, #4]                                  <== NOT EXECUTED
    4460:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4464:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4468:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
    446c:	eaffffdb 	b	43e0 <rtems_termios_read+0x234>                 <== NOT EXECUTED
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    4470:	e594203c 	ldr	r2, [r4, #60]	; 0x3c                          
    4474:	e3120002 	tst	r2, #2                                        
    4478:	0a00000b 	beq	44ac <rtems_termios_read+0x300>               
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
    447c:	e5940010 	ldr	r0, [r4, #16]                                 
    4480:	e1a0e00f 	mov	lr, pc                                        
    4484:	e12fff13 	bx	r3                                             
      if (n < 0) {                                                    
    4488:	e3500000 	cmp	r0, #0                                        
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
    448c:	e1a01004 	mov	r1, r4                                        
    4490:	e20000ff 	and	r0, r0, #255	; 0xff                           
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
    4494:	ba00002d 	blt	4550 <rtems_termios_read+0x3a4>               
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
    4498:	ebfffef7 	bl	407c <siproc>                                  
    449c:	e3500000 	cmp	r0, #0                                        
    44a0:	1affff65 	bne	423c <rtems_termios_read+0x90>                
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    44a4:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    44a8:	eafffff3 	b	447c <rtems_termios_read+0x2d0>                 
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    44ac:	eb0002ad 	bl	4f68 <rtems_clock_get_ticks_since_boot>        
    44b0:	e1a05000 	mov	r5, r0                                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
    44b4:	e5940010 	ldr	r0, [r4, #16]                                 
    44b8:	e1a0e00f 	mov	lr, pc                                        
    44bc:	e594f0a0 	ldr	pc, [r4, #160]	; 0xa0                         
      if (n < 0) {                                                    
    44c0:	e3500000 	cmp	r0, #0                                        
    44c4:	ba00000c 	blt	44fc <rtems_termios_read+0x350>               
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
      } else {                                                        
        siproc (n, tty);                                              
    44c8:	e20000ff 	and	r0, r0, #255	; 0xff                           
    44cc:	e1a01004 	mov	r1, r4                                        
    44d0:	ebfffee9 	bl	407c <siproc>                                  
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
    44d4:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         
    44d8:	e5942020 	ldr	r2, [r4, #32]                                 
    44dc:	e1520003 	cmp	r2, r3                                        
    44e0:	aaffff55 	bge	423c <rtems_termios_read+0x90>                
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
    44e4:	e3530000 	cmp	r3, #0                                        
    44e8:	0afffff1 	beq	44b4 <rtems_termios_read+0x308>               
    44ec:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
    44f0:	e3530000 	cmp	r3, #0                                        
    44f4:	0affffee 	beq	44b4 <rtems_termios_read+0x308>               
    44f8:	eaffffeb 	b	44ac <rtems_termios_read+0x300>                 
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
    44fc:	e5d43047 	ldrb	r3, [r4, #71]	; 0x47                         
    4500:	e3530000 	cmp	r3, #0                                        
    4504:	0a000008 	beq	452c <rtems_termios_read+0x380>               
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
    4508:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         
    450c:	e3530000 	cmp	r3, #0                                        
    4510:	0a000002 	beq	4520 <rtems_termios_read+0x374>               
    4514:	e5943020 	ldr	r3, [r4, #32]                                 
    4518:	e3530000 	cmp	r3, #0                                        
    451c:	1a000005 	bne	4538 <rtems_termios_read+0x38c>               
          now = rtems_clock_get_ticks_since_boot();                   
          if ((now - then) > tty->vtimeTicks) {                       
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
    4520:	e3a00001 	mov	r0, #1                                        
    4524:	eb00056a 	bl	5ad4 <rtems_task_wake_after>                   
    4528:	eaffffe1 	b	44b4 <rtems_termios_read+0x308>                 
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
    452c:	e5d43046 	ldrb	r3, [r4, #70]	; 0x46                         <== NOT EXECUTED
    4530:	e3530000 	cmp	r3, #0                                        <== NOT EXECUTED
    4534:	0affff40 	beq	423c <rtems_termios_read+0x90>                <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
    4538:	eb00028a 	bl	4f68 <rtems_clock_get_ticks_since_boot>        
          if ((now - then) > tty->vtimeTicks) {                       
    453c:	e5943054 	ldr	r3, [r4, #84]	; 0x54                          
    4540:	e0650000 	rsb	r0, r5, r0                                    
    4544:	e1500003 	cmp	r0, r3                                        
    4548:	9afffff4 	bls	4520 <rtems_termios_read+0x374>               
    454c:	eaffff3a 	b	423c <rtems_termios_read+0x90>                  
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        rtems_task_wake_after (1);                                    
    4550:	e3a00001 	mov	r0, #1                                        
    4554:	eb00055e 	bl	5ad4 <rtems_task_wake_after>                   
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    4558:	e59430a0 	ldr	r3, [r4, #160]	; 0xa0                         
    455c:	eaffffc6 	b	447c <rtems_termios_read+0x2d0>                 
                                                                      

000048f4 <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))
    48f4:	e59030b8 	ldr	r3, [r0, #184]	; 0xb8                         
    48f8:	e3c33fff 	bic	r3, r3, #1020	; 0x3fc                         
    48fc:	e1a03a83 	lsl	r3, r3, #21                                   
    4900:	e3a02b01 	mov	r2, #1024	; 0x400                             
    4904:	e1a03aa3 	lsr	r3, r3, #21                                   
    4908:	e2822001 	add	r2, r2, #1                                    
    490c:	e1530002 	cmp	r3, r2                                        
 * in task-driven mode, this function is called in Tx task context    
 * in interrupt-driven mode, this function is called in TxIRQ context 
 */                                                                   
int                                                                   
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)      
{                                                                     
    4910:	e92d4070 	push	{r4, r5, r6, lr}                             
    4914:	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))         
    4918:	0a000048 	beq	4a40 <rtems_termios_refill_transmitter+0x14c> 
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
    491c:	e59030b8 	ldr	r3, [r0, #184]	; 0xb8                         
    4920:	e2033003 	and	r3, r3, #3                                    
    4924:	e3530002 	cmp	r3, #2                                        
    4928:	0a000056 	beq	4a88 <rtems_termios_refill_transmitter+0x194> 
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
    492c:	e5902080 	ldr	r2, [r0, #128]	; 0x80                         
    4930:	e5903084 	ldr	r3, [r0, #132]	; 0x84                         
    4934:	e1520003 	cmp	r2, r3                                        
    4938:	0a00002a 	beq	49e8 <rtems_termios_refill_transmitter+0xf4>  
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    493c:	e10f3000 	mrs	r3, CPSR                                      
    4940:	e3832080 	orr	r2, r3, #128	; 0x80                           
    4944:	e129f002 	msr	CPSR_fc, r2                                   
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    4948:	e3a02000 	mov	r2, #0                                        
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    494c:	e5900090 	ldr	r0, [r0, #144]	; 0x90                         
    tty->t_dqlen = 0;                                                 
    4950:	e5842090 	str	r2, [r4, #144]	; 0x90                         
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    4954:	e129f003 	msr	CPSR_fc, r3                                   
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    4958:	e5943084 	ldr	r3, [r4, #132]	; 0x84                         
    495c:	e5941088 	ldr	r1, [r4, #136]	; 0x88                         
    4960:	e0800003 	add	r0, r0, r3                                    
    4964:	eb00326c 	bl	1131c <__umodsi3>                              
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
    4968:	e5943094 	ldr	r3, [r4, #148]	; 0x94                         
    496c:	e3530002 	cmp	r3, #2                                        
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    4970:	e1a05000 	mov	r5, r0                                        
    tty->rawOutBuf.Tail = newTail;                                    
    4974:	e5840084 	str	r0, [r4, #132]	; 0x84                         
    if (tty->rawOutBufState == rob_wait) {                            
    4978:	0a00002d 	beq	4a34 <rtems_termios_refill_transmitter+0x140> 
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
    497c:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    4980:	e1530005 	cmp	r3, r5                                        
    4984:	0a00001f 	beq	4a08 <rtems_termios_refill_transmitter+0x114> 
      if ( tty->tty_snd.sw_pfn != NULL) {                             
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
    4988:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    498c:	e2033e21 	and	r3, r3, #528	; 0x210                          
    4990:	e3530e21 	cmp	r3, #528	; 0x210                              
    4994:	0a00004d 	beq	4ad0 <rtems_termios_refill_transmitter+0x1dc> 
      nToSend = 0;                                                    
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
    4998:	e5943080 	ldr	r3, [r4, #128]	; 0x80                         
    499c:	e1550003 	cmp	r5, r3                                        
        nToSend = tty->rawOutBuf.Size - newTail;                      
    49a0:	85946088 	ldrhi	r6, [r4, #136]	; 0x88                       
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
    49a4:	95946080 	ldrls	r6, [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)) {                   
    49a8:	e59430b8 	ldr	r3, [r4, #184]	; 0xb8                         
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
    49ac:	80656006 	rsbhi	r6, r5, r6                                  
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
    49b0:	90656006 	rsbls	r6, r5, r6                                  
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
        nToSend = 1;                                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
    49b4:	e594107c 	ldr	r1, [r4, #124]	; 0x7c                         
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
      /* when flow control XON or XOF, don't send blocks of data     */
      /* to allow fast reaction on incoming flow ctrl and low latency*/
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
    49b8:	e3130c06 	tst	r3, #1536	; 0x600                             
    49bc:	13a06001 	movne	r6, #1                                      
        nToSend = 1;                                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
    49c0:	e3a03001 	mov	r3, #1                                        
        nToSend = tty->rawOutBuf.Head - newTail;                      
      /* when flow control XON or XOF, don't send blocks of data     */
      /* to allow fast reaction on incoming flow ctrl and low latency*/
      /* for outgoing flow control                                   */
      if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                   
        nToSend = 1;                                                  
    49c4:	e1a02006 	mov	r2, r6                                        
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
    49c8:	e5843094 	str	r3, [r4, #148]	; 0x94                         
      (*tty->device.write)(                                           
    49cc:	e5940010 	ldr	r0, [r4, #16]                                 
    49d0:	e0811005 	add	r1, r1, r5                                    
    49d4:	e1a0e00f 	mov	lr, pc                                        
    49d8:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
    49dc:	e5845084 	str	r5, [r4, #132]	; 0x84                         
  }                                                                   
  return nToSend;                                                     
}                                                                     
    49e0:	e1a00006 	mov	r0, r6                                        
    49e4:	e8bd8070 	pop	{r4, r5, r6, pc}                              
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
    49e8:	e5903094 	ldr	r3, [r0, #148]	; 0x94                         
    49ec:	e3530002 	cmp	r3, #2                                        
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
    49f0:	13a06000 	movne	r6, #0                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
    49f4:	1afffff9 	bne	49e0 <rtems_termios_refill_transmitter+0xec>  
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
    49f8:	e590008c 	ldr	r0, [r0, #140]	; 0x8c                         <== NOT EXECUTED
    49fc:	eb000346 	bl	571c <rtems_semaphore_release>                 <== NOT EXECUTED
      }                                                               
      return 0;                                                       
    4a00:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
    4a04:	eafffff5 	b	49e0 <rtems_termios_refill_transmitter+0xec>    <== NOT EXECUTED
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    4a08:	e59430d4 	ldr	r3, [r4, #212]	; 0xd4                         
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
    4a0c:	e3a06000 	mov	r6, #0                                        
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    4a10:	e1530006 	cmp	r3, r6                                        
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
    4a14:	e5846094 	str	r6, [r4, #148]	; 0x94                         
      nToSend = 0;                                                    
    4a18:	01a06003 	moveq	r6, r3                                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
    4a1c:	0affffee 	beq	49dc <rtems_termios_refill_transmitter+0xe8>  
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
    4a20:	e2840030 	add	r0, r4, #48	; 0x30                            <== NOT EXECUTED
    4a24:	e59410d8 	ldr	r1, [r4, #216]	; 0xd8                         <== NOT EXECUTED
    4a28:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4a2c:	e12fff13 	bx	r3                                             <== NOT EXECUTED
    4a30:	eaffffe9 	b	49dc <rtems_termios_refill_transmitter+0xe8>    <== NOT EXECUTED
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    4a34:	e594008c 	ldr	r0, [r4, #140]	; 0x8c                         
    4a38:	eb000337 	bl	571c <rtems_semaphore_release>                 
    4a3c:	eaffffce 	b	497c <rtems_termios_refill_transmitter+0x88>    
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
    4a40:	e284104a 	add	r1, r4, #74	; 0x4a                            <== NOT EXECUTED
    4a44:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4a48:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
    4a4c:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4a50:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    4a54:	e10f3000 	mrs	r3, CPSR                                      <== NOT EXECUTED
    4a58:	e3832080 	orr	r2, r3, #128	; 0x80                           <== NOT EXECUTED
    4a5c:	e129f002 	msr	CPSR_fc, r2                                   <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4a60:	e5941090 	ldr	r1, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    4a64:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4a68:	e2411001 	sub	r1, r1, #1                                    <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    4a6c:	e3822002 	orr	r2, r2, #2                                    <== NOT EXECUTED
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4a70:	e5841090 	str	r1, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    4a74:	e58420b8 	str	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    4a78:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
    4a7c:	e3a06001 	mov	r6, #1                                        <== NOT EXECUTED
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
    4a80:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    4a84:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
     * FIXME: this .write call will generate another                  
     * dequeue callback. This will advance the "Tail" in the data     
     * buffer, although the corresponding data is not yet out!        
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
    4a88:	e2841049 	add	r1, r4, #73	; 0x49                            <== NOT EXECUTED
    4a8c:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4a90:	e5900010 	ldr	r0, [r0, #16]                                 <== NOT EXECUTED
    4a94:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    4a98:	e594f0a4 	ldr	pc, [r4, #164]	; 0xa4                         <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    4a9c:	e10f3000 	mrs	r3, CPSR                                      <== NOT EXECUTED
    4aa0:	e3832080 	orr	r2, r3, #128	; 0x80                           <== NOT EXECUTED
    4aa4:	e129f002 	msr	CPSR_fc, r2                                   <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4aa8:	e5941090 	ldr	r1, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    4aac:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4ab0:	e2411001 	sub	r1, r1, #1                                    <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    4ab4:	e3c22002 	bic	r2, r2, #2                                    <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    4ab8:	e5841090 	str	r1, [r4, #144]	; 0x90                         <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    4abc:	e58420b8 	str	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    4ac0:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
    4ac4:	e3a06001 	mov	r6, #1                                        <== NOT EXECUTED
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
    4ac8:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    4acc:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    4ad0:	e10f3000 	mrs	r3, CPSR                                      <== NOT EXECUTED
    4ad4:	e3832080 	orr	r2, r3, #128	; 0x80                           <== NOT EXECUTED
    4ad8:	e129f002 	msr	CPSR_fc, r2                                   <== NOT EXECUTED
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl |= FL_OSTOP;                                     
    4adc:	e59420b8 	ldr	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
    4ae0:	e3822020 	orr	r2, r2, #32                                   <== NOT EXECUTED
    4ae4:	e58420b8 	str	r2, [r4, #184]	; 0xb8                         <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
    4ae8:	e3a02001 	mov	r2, #1                                        <== NOT EXECUTED
    4aec:	e5842094 	str	r2, [r4, #148]	; 0x94                         <== NOT EXECUTED
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    4af0:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
    4af4:	e3a06000 	mov	r6, #0                                        <== NOT EXECUTED
    4af8:	eaffffb7 	b	49dc <rtems_termios_refill_transmitter+0xe8>    <== NOT EXECUTED
                                                                      

00004868 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
    4868:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    486c:	e24dd008 	sub	sp, sp, #8                                    
    4870:	e1a04000 	mov	r4, r0                                        
    4874:	e28d7007 	add	r7, sp, #7                                    
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
    4878:	e3a06000 	mov	r6, #0                                        
    487c:	ea000005 	b	4898 <rtems_termios_rxdaemon+0x30>              
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    4880:	e5940010 	ldr	r0, [r4, #16]                                 
    4884:	e1a0e00f 	mov	lr, pc                                        
    4888:	e594f0a0 	ldr	pc, [r4, #160]	; 0xa0                         
    if (c != EOF) {                                                   
    488c:	e3700001 	cmn	r0, #1                                        
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    4890:	e1a03000 	mov	r3, r0                                        
    if (c != EOF) {                                                   
    4894:	1a000010 	bne	48dc <rtems_termios_rxdaemon+0x74>            
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
    4898:	e1a0300d 	mov	r3, sp                                        
    489c:	e3a01002 	mov	r1, #2                                        
    48a0:	e3a02000 	mov	r2, #0                                        
    48a4:	e3a00003 	mov	r0, #3                                        
    48a8:	eb0001ce 	bl	4fe8 <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) {              
    48ac:	e59d3000 	ldr	r3, [sp]                                      
    48b0:	e3130001 	tst	r3, #1                                        
    48b4:	0afffff1 	beq	4880 <rtems_termios_rxdaemon+0x18>            
      tty->rxTaskId = 0;                                              
    48b8:	e58460c4 	str	r6, [r4, #196]	; 0xc4                         <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
    48bc:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    48c0:	eb00040e 	bl	5900 <rtems_task_delete>                       <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    48c4:	e5940010 	ldr	r0, [r4, #16]                                 <== NOT EXECUTED
    48c8:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    48cc:	e594f0a0 	ldr	pc, [r4, #160]	; 0xa0                         <== NOT EXECUTED
    if (c != EOF) {                                                   
    48d0:	e3700001 	cmn	r0, #1                                        <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    48d4:	e1a03000 	mov	r3, r0                                        <== NOT EXECUTED
    if (c != EOF) {                                                   
    48d8:	0affffee 	beq	4898 <rtems_termios_rxdaemon+0x30>            <== NOT EXECUTED
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
    48dc:	e1a00004 	mov	r0, r4                                        
    48e0:	e1a01007 	mov	r1, r7                                        
    48e4:	e3a02001 	mov	r2, #1                                        
    c = tty->device.pollRead(tty->minor);                             
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
    48e8:	e5cd3007 	strb	r3, [sp, #7]                                 
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
    48ec:	ebffff20 	bl	4574 <rtems_termios_enqueue_raw_characters>    
    48f0:	eaffffe8 	b	4898 <rtems_termios_rxdaemon+0x30>              
                                                                      

00004afc <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
    4afc:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    4b00:	e59f6060 	ldr	r6, [pc, #96]	; 4b68 <rtems_termios_txdaemon+0x6c>
    4b04:	e24dd004 	sub	sp, sp, #4                                    
    4b08:	e1a04000 	mov	r4, r0                                        
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
    4b0c:	e3a07000 	mov	r7, #0                                        
    4b10:	ea000008 	b	4b38 <rtems_termios_txdaemon+0x3c>              
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
    4b14:	e59430cc 	ldr	r3, [r4, #204]	; 0xcc                         
    4b18:	e0863283 	add	r3, r6, r3, lsl #5                            
    4b1c:	e5933014 	ldr	r3, [r3, #20]                                 
    4b20:	e3530000 	cmp	r3, #0                                        
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    4b24:	e1a00004 	mov	r0, r4                                        
    4b28:	11a0e00f 	movne	lr, pc                                      
    4b2c:	112fff13 	bxne	r3                                           
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
    4b30:	e1a00004 	mov	r0, r4                                        
    4b34:	ebffff6e 	bl	48f4 <rtems_termios_refill_transmitter>        
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
    4b38:	e1a0300d 	mov	r3, sp                                        
    4b3c:	e3a01002 	mov	r1, #2                                        
    4b40:	e3a02000 	mov	r2, #0                                        
    4b44:	e3a00003 	mov	r0, #3                                        
    4b48:	eb000126 	bl	4fe8 <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) {              
    4b4c:	e59d3000 	ldr	r3, [sp]                                      
    4b50:	e3130001 	tst	r3, #1                                        
    4b54:	0affffee 	beq	4b14 <rtems_termios_txdaemon+0x18>            
      tty->txTaskId = 0;                                              
    4b58:	e58470c8 	str	r7, [r4, #200]	; 0xc8                         <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
    4b5c:	e1a00007 	mov	r0, r7                                        <== NOT EXECUTED
    4b60:	eb000366 	bl	5900 <rtems_task_delete>                       <== NOT EXECUTED
    4b64:	eaffffea 	b	4b14 <rtems_termios_txdaemon+0x18>              <== NOT EXECUTED
                                                                      

000040dc <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;
    40dc:	e5903000 	ldr	r3, [r0]                                      
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
    40e0:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
    40e4:	e5934034 	ldr	r4, [r3, #52]	; 0x34                          
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    40e8:	e3a01000 	mov	r1, #0                                        
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
    40ec:	e1a05000 	mov	r5, 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);
    40f0:	e1a02001 	mov	r2, r1                                        
    40f4:	e5940018 	ldr	r0, [r4, #24]                                 
    40f8:	eb00053e 	bl	55f8 <rtems_semaphore_obtain>                  
  if (sc != RTEMS_SUCCESSFUL)                                         
    40fc:	e2506000 	subs	r6, r0, #0                                   
    4100:	1a00000c 	bne	4138 <rtems_termios_write+0x5c>               
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
    4104:	e59420cc 	ldr	r2, [r4, #204]	; 0xcc                         
    4108:	e59f3098 	ldr	r3, [pc, #152]	; 41a8 <rtems_termios_write+0xcc>
    410c:	e0833282 	add	r3, r3, r2, lsl #5                            
    4110:	e593300c 	ldr	r3, [r3, #12]                                 
    4114:	e3530000 	cmp	r3, #0                                        
    4118:	0a000008 	beq	4140 <rtems_termios_write+0x64>               
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
    411c:	e1a00004 	mov	r0, r4                                        
    4120:	e1a01005 	mov	r1, r5                                        
    4124:	e1a0e00f 	mov	lr, pc                                        
    4128:	e12fff13 	bx	r3                                             
    412c:	e1a06000 	mov	r6, r0                                        
    rtems_semaphore_release (tty->osem);                              
    4130:	e5940018 	ldr	r0, [r4, #24]                                 
    4134:	eb000578 	bl	571c <rtems_semaphore_release>                 
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
  return sc;                                                          
}                                                                     
    4138:	e1a00006 	mov	r0, r6                                        
    413c:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  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) {                                 
    4140:	e5943034 	ldr	r3, [r4, #52]	; 0x34                          
    4144:	e3130001 	tst	r3, #1                                        
    4148:	0a000011 	beq	4194 <rtems_termios_write+0xb8>               
    uint32_t   count = args->count;                                   
    414c:	e5958010 	ldr	r8, [r5, #16]                                 
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
    4150:	e3580000 	cmp	r8, #0                                        
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    4154:	e595a00c 	ldr	sl, [r5, #12]                                 
    while (count--)                                                   
    4158:	01a03006 	moveq	r3, r6                                      
    415c:	0a000007 	beq	4180 <rtems_termios_write+0xa4>               
    4160:	e1a07006 	mov	r7, r6                                        
      oproc (*buffer++, tty);                                         
    4164:	e7da0007 	ldrb	r0, [sl, r7]                                 
    4168:	e1a01004 	mov	r1, r4                                        
    416c:	e2877001 	add	r7, r7, #1                                    
    4170:	ebfffe46 	bl	3a90 <oproc>                                   
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
    4174:	e1570008 	cmp	r7, r8                                        
    4178:	1afffff9 	bne	4164 <rtems_termios_write+0x88>               
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
    417c:	e5953010 	ldr	r3, [r5, #16]                                 
    4180:	e5853018 	str	r3, [r5, #24]                                 
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
    4184:	e5940018 	ldr	r0, [r4, #24]                                 
    4188:	eb000563 	bl	571c <rtems_semaphore_release>                 
  return sc;                                                          
}                                                                     
    418c:	e1a00006 	mov	r0, r6                                        
    4190:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
    4194:	e285000c 	add	r0, r5, #12                                   <== NOT EXECUTED
    4198:	e8900003 	ldm	r0, {r0, r1}                                  <== NOT EXECUTED
    419c:	e1a02004 	mov	r2, r4                                        <== NOT EXECUTED
    41a0:	ebfffdf4 	bl	3978 <rtems_termios_puts>                      <== NOT EXECUTED
    41a4:	eafffff4 	b	417c <rtems_termios_write+0xa0>                 <== NOT EXECUTED
                                                                      

00006a08 <rtems_verror>: { int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) {
    6a08:	e3100202 	tst	r0, #536870912	; 0x20000000                   
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
    6a0c:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    6a10:	e1a04000 	mov	r4, r0                                        
    6a14:	e1a08001 	mov	r8, r1                                        
    6a18:	e1a06002 	mov	r6, r2                                        
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    6a1c:	0a00000d 	beq	6a58 <rtems_verror+0x50>                      
    if (rtems_panic_in_progress++)                                    
    6a20:	e59f212c 	ldr	r2, [pc, #300]	; 6b54 <rtems_verror+0x14c>    
    6a24:	e5921000 	ldr	r1, [r2]                                      
    6a28:	e2813001 	add	r3, r1, #1                                    
    6a2c:	e3510000 	cmp	r1, #0                                        
    6a30:	e5823000 	str	r3, [r2]                                      
    6a34:	0a000004 	beq	6a4c <rtems_verror+0x44>                      
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
    6a38:	e59f3118 	ldr	r3, [pc, #280]	; 6b58 <rtems_verror+0x150>    <== NOT EXECUTED
    6a3c:	e5931000 	ldr	r1, [r3]                                      <== NOT EXECUTED
    6a40:	e2811001 	add	r1, r1, #1                                    <== NOT EXECUTED
    6a44:	e5831000 	str	r1, [r3]                                      <== NOT EXECUTED
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
    6a48:	e5923000 	ldr	r3, [r2]                                      <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
    6a4c:	e3530002 	cmp	r3, #2                                        
      return 0;                                                       
    6a50:	c3a06000 	movgt	r6, #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)                                  
    6a54:	ca000024 	bgt	6aec <rtems_verror+0xe4>                      
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
    6a58:	e59f50fc 	ldr	r5, [pc, #252]	; 6b5c <rtems_verror+0x154>    
    6a5c:	e5953000 	ldr	r3, [r5]                                      
    6a60:	e5930008 	ldr	r0, [r3, #8]                                  
    6a64:	eb003311 	bl	136b0 <fflush>                                 
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    6a68:	e2147101 	ands	r7, r4, #1073741824	; 0x40000000             
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
    6a6c:	e3c44207 	bic	r4, r4, #1879048192	; 0x70000000              
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    6a70:	1a00002a 	bne	6b20 <rtems_verror+0x118>                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
    6a74:	e5953000 	ldr	r3, [r5]                                      
    6a78:	e1a02006 	mov	r2, r6                                        
    6a7c:	e1a01008 	mov	r1, r8                                        
    6a80:	e593000c 	ldr	r0, [r3, #12]                                 
    6a84:	eb004b7b 	bl	19878 <vfprintf>                               
                                                                      
  if (status)                                                         
    6a88:	e3540000 	cmp	r4, #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);          
    6a8c:	e1a06000 	mov	r6, r0                                        
                                                                      
  if (status)                                                         
    6a90:	1a000017 	bne	6af4 <rtems_verror+0xec>                      
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
    6a94:	e3570000 	cmp	r7, #0                                        
    6a98:	0a00000b 	beq	6acc <rtems_verror+0xc4>                      
    if ((local_errno > 0) && *strerror(local_errno))                  
    6a9c:	da000004 	ble	6ab4 <rtems_verror+0xac>                      
    6aa0:	e1a00007 	mov	r0, r7                                        
    6aa4:	eb0036ea 	bl	14654 <strerror>                               
    6aa8:	e5d03000 	ldrb	r3, [r0]                                     
    6aac:	e3530000 	cmp	r3, #0                                        
    6ab0:	1a00001d 	bne	6b2c <rtems_verror+0x124>                     
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    6ab4:	e5953000 	ldr	r3, [r5]                                      
    6ab8:	e59f10a0 	ldr	r1, [pc, #160]	; 6b60 <rtems_verror+0x158>    
    6abc:	e593000c 	ldr	r0, [r3, #12]                                 
    6ac0:	e1a02007 	mov	r2, r7                                        
    6ac4:	eb0033df 	bl	13a48 <fprintf>                                
    6ac8:	e0866000 	add	r6, r6, r0                                    
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
    6acc:	e5953000 	ldr	r3, [r5]                                      
    6ad0:	e59f108c 	ldr	r1, [pc, #140]	; 6b64 <rtems_verror+0x15c>    
    6ad4:	e593000c 	ldr	r0, [r3, #12]                                 
    6ad8:	eb0033da 	bl	13a48 <fprintf>                                
                                                                      
  (void) fflush(stderr);                                              
    6adc:	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");                             
    6ae0:	e0806006 	add	r6, r0, r6                                    
                                                                      
  (void) fflush(stderr);                                              
    6ae4:	e593000c 	ldr	r0, [r3, #12]                                 
    6ae8:	eb0032f0 	bl	136b0 <fflush>                                 
                                                                      
  return chars_written;                                               
}                                                                     
    6aec:	e1a00006 	mov	r0, r6                                        
    6af0:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
    6af4:	e59f3060 	ldr	r3, [pc, #96]	; 6b5c <rtems_verror+0x154>     
    6af8:	e5933000 	ldr	r3, [r3]                                      
    6afc:	e1a00004 	mov	r0, r4                                        
    6b00:	e593400c 	ldr	r4, [r3, #12]                                 
    6b04:	ebffffbb 	bl	69f8 <rtems_status_text>                       
    6b08:	e59f1058 	ldr	r1, [pc, #88]	; 6b68 <rtems_verror+0x160>     
    6b0c:	e1a02000 	mov	r2, r0                                        
    6b10:	e1a00004 	mov	r0, r4                                        
    6b14:	eb0033cb 	bl	13a48 <fprintf>                                
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
    6b18:	e0866000 	add	r6, r6, r0                                    
    6b1c:	eaffffdc 	b	6a94 <rtems_verror+0x8c>                        
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    local_errno = errno;                                              
    6b20:	eb0031eb 	bl	132d4 <__errno>                                
    6b24:	e5907000 	ldr	r7, [r0]                                      
    6b28:	eaffffd1 	b	6a74 <rtems_verror+0x6c>                        
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
    if ((local_errno > 0) && *strerror(local_errno))                  
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    6b2c:	e5953000 	ldr	r3, [r5]                                      
    6b30:	e1a00007 	mov	r0, r7                                        
    6b34:	e593400c 	ldr	r4, [r3, #12]                                 
    6b38:	eb0036c5 	bl	14654 <strerror>                               
    6b3c:	e59f1028 	ldr	r1, [pc, #40]	; 6b6c <rtems_verror+0x164>     
    6b40:	e1a02000 	mov	r2, r0                                        
    6b44:	e1a00004 	mov	r0, r4                                        
    6b48:	eb0033be 	bl	13a48 <fprintf>                                
    6b4c:	e0866000 	add	r6, r6, r0                                    
    6b50:	eaffffdd 	b	6acc <rtems_verror+0xc4>                        
                                                                      

00002654 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
    2654:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
    2658:	e3a06000 	mov	r6, #0                                        
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    265c:	e59f90f8 	ldr	r9, [pc, #248]	; 275c <scanInt+0x108>         
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
    2660:	e59f80f8 	ldr	r8, [pc, #248]	; 2760 <scanInt+0x10c>         
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
    2664:	e59fa0f8 	ldr	sl, [pc, #248]	; 2764 <scanInt+0x110>         
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
    2668:	e1a04000 	mov	r4, r0                                        
    266c:	e1a0b001 	mov	fp, r1                                        
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
    2670:	e3e07102 	mvn	r7, #-2147483648	; 0x80000000                 
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
    2674:	e1a05006 	mov	r5, r6                                        
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    2678:	e5943004 	ldr	r3, [r4, #4]                                  
    267c:	e2433001 	sub	r3, r3, #1                                    
    2680:	e3530000 	cmp	r3, #0                                        
    2684:	e5843004 	str	r3, [r4, #4]                                  
    2688:	ba00001d 	blt	2704 <scanInt+0xb0>                           
    268c:	e5943000 	ldr	r3, [r4]                                      
    2690:	e4d30001 	ldrb	r0, [r3], #1                                 
    if (c == ':')                                                     
    2694:	e350003a 	cmp	r0, #58	; 0x3a                                
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    2698:	e5843000 	str	r3, [r4]                                      
    if (c == ':')                                                     
    269c:	0a00001d 	beq	2718 <scanInt+0xc4>                           
      break;                                                          
    if (sign == 0) {                                                  
    26a0:	e3560000 	cmp	r6, #0                                        
    26a4:	1a000004 	bne	26bc <scanInt+0x68>                           
      if (c == '-') {                                                 
    26a8:	e350002d 	cmp	r0, #45	; 0x2d                                
        sign = -1;                                                    
        limit++;                                                      
    26ac:	02877001 	addeq	r7, r7, #1                                  
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
    26b0:	03e06000 	mvneq	r6, #0                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
    26b4:	0affffef 	beq	2678 <scanInt+0x24>                           
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    26b8:	e3a06001 	mov	r6, #1                                        
    }                                                                 
    if (!isdigit(c))                                                  
    26bc:	e5983000 	ldr	r3, [r8]                                      
    26c0:	e0833000 	add	r3, r3, r0                                    
    26c4:	e5d33001 	ldrb	r3, [r3, #1]                                 
    26c8:	e2133004 	ands	r3, r3, #4                                   
    26cc:	0a00001e 	beq	274c <scanInt+0xf8>                           
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
    26d0:	e083279a 	umull	r2, r3, sl, r7                              
    26d4:	e15501a3 	cmp	r5, r3, lsr #3                                
    26d8:	8a000019 	bhi	2744 <scanInt+0xf0>                           
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    26dc:	e2400030 	sub	r0, r0, #48	; 0x30                            
    26e0:	11a03105 	lslne	r3, r5, #2                                  
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
    26e4:	0a000011 	beq	2730 <scanInt+0xdc>                           
      return 0;                                                       
    i = i * 10 + d;                                                   
    26e8:	e0835005 	add	r5, r3, r5                                    
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    26ec:	e5943004 	ldr	r3, [r4, #4]                                  
    26f0:	e2433001 	sub	r3, r3, #1                                    
    26f4:	e3530000 	cmp	r3, #0                                        
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
    26f8:	e0805085 	add	r5, r0, r5, lsl #1                            
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    26fc:	e5843004 	str	r3, [r4, #4]                                  
    2700:	aaffffe1 	bge	268c <scanInt+0x38>                           
    2704:	e5990000 	ldr	r0, [r9]                                      <== NOT EXECUTED
    2708:	e1a01004 	mov	r1, r4                                        <== NOT EXECUTED
    270c:	eb003697 	bl	10170 <__srget_r>                              <== NOT EXECUTED
    if (c == ':')                                                     
    2710:	e350003a 	cmp	r0, #58	; 0x3a                                <== NOT EXECUTED
    2714:	1affffe1 	bne	26a0 <scanInt+0x4c>                           <== NOT EXECUTED
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    2718:	e3560000 	cmp	r6, #0                                        
    271c:	0a00000c 	beq	2754 <scanInt+0x100>                          
    return 0;                                                         
  *val = i * sign;                                                    
    2720:	e0050596 	mul	r5, r6, r5                                    
  return 1;                                                           
    2724:	e3a00001 	mov	r0, #1                                        
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
    2728:	e58b5000 	str	r5, [fp]                                      
  return 1;                                                           
    272c:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
    2730:	e1a03105 	lsl	r3, r5, #2                                    
    2734:	e0832005 	add	r2, r3, r5                                    
    2738:	e0472082 	sub	r2, r7, r2, lsl #1                            
    273c:	e1500002 	cmp	r0, r2                                        
    2740:	9affffe8 	bls	26e8 <scanInt+0x94>                           
      return 0;                                                       
    2744:	e3a00000 	mov	r0, #0                                        
    2748:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    274c:	e1a00003 	mov	r0, r3                                        
    2750:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
    2754:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
    2758:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          <== NOT EXECUTED
                                                                      

0000285c <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
    285c:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    2860:	e24dd014 	sub	sp, sp, #20                                   
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
    2864:	e28d5008 	add	r5, sp, #8                                    
    2868:	e28d4004 	add	r4, sp, #4                                    
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
    286c:	e58d2008 	str	r2, [sp, #8]                                  
    2870:	e58d3004 	str	r3, [sp, #4]                                  
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
    2874:	e3a06000 	mov	r6, #0                                        
    2878:	e1a02005 	mov	r2, r5                                        
    287c:	e1a03004 	mov	r3, r4                                        
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
    2880:	e1a07000 	mov	r7, r0                                        
    2884:	e1a08001 	mov	r8, r1                                        
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
    2888:	e58d6000 	str	r6, [sp]                                      
    288c:	ebffffb5 	bl	2768 <scanString>                              
    2890:	e3500000 	cmp	r0, #0                                        
    2894:	1a000001 	bne	28a0 <scangr+0x44>                            
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
  return 1;                                                           
}                                                                     
    2898:	e28dd014 	add	sp, sp, #20                                   
    289c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
    28a0:	e1a00007 	mov	r0, r7                                        
    28a4:	e2881004 	add	r1, r8, #4                                    
    28a8:	e1a02005 	mov	r2, r5                                        
    28ac:	e1a03004 	mov	r3, r4                                        
    28b0:	e58d6000 	str	r6, [sp]                                      
    28b4:	ebffffab 	bl	2768 <scanString>                              
    28b8:	e3500000 	cmp	r0, #0                                        
    28bc:	0afffff5 	beq	2898 <scangr+0x3c>                            
   || !scanInt(fp, &grgid)                                            
    28c0:	e1a00007 	mov	r0, r7                                        
    28c4:	e28d1010 	add	r1, sp, #16                                   
    28c8:	ebffff61 	bl	2654 <scanInt>                                 
    28cc:	e3500000 	cmp	r0, #0                                        
    28d0:	0afffff0 	beq	2898 <scangr+0x3c>                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    28d4:	e3a06001 	mov	r6, #1                                        
    28d8:	e1a00007 	mov	r0, r7                                        
    28dc:	e28d100c 	add	r1, sp, #12                                   
    28e0:	e1a02005 	mov	r2, r5                                        
    28e4:	e1a03004 	mov	r3, r4                                        
    28e8:	e58d6000 	str	r6, [sp]                                      
    28ec:	ebffff9d 	bl	2768 <scanString>                              
    28f0:	e3500000 	cmp	r0, #0                                        
    28f4:	0affffe7 	beq	2898 <scangr+0x3c>                            
    return 0;                                                         
  grp->gr_gid = grgid;                                                
    28f8:	e1dd31b0 	ldrh	r3, [sp, #16]                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    28fc:	e59d100c 	ldr	r1, [sp, #12]                                 
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
  grp->gr_gid = grgid;                                                
    2900:	e1c830b8 	strh	r3, [r8, #8]                                 
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    2904:	e5d13000 	ldrb	r3, [r1]                                     
    2908:	e3530000 	cmp	r3, #0                                        
    290c:	03a06017 	moveq	r6, #23                                     
    2910:	0a000007 	beq	2934 <scangr+0xd8>                            
    2914:	e1a02001 	mov	r2, r1                                        
    if(*cp == ',')                                                    
    2918:	e353002c 	cmp	r3, #44	; 0x2c                                
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    291c:	e5f23001 	ldrb	r3, [r2, #1]!                                
    if(*cp == ',')                                                    
      memcount++;                                                     
    2920:	02866001 	addeq	r6, r6, #1                                  
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    2924:	e3530000 	cmp	r3, #0                                        
    2928:	1afffffa 	bne	2918 <scangr+0xbc>                            
    292c:	e1a06106 	lsl	r6, r6, #2                                    
    2930:	e2866013 	add	r6, r6, #19                                   
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
    2934:	e59d3004 	ldr	r3, [sp, #4]                                  
    2938:	e1530006 	cmp	r3, r6                                        
    return 0;                                                         
    293c:	33a00000 	movcc	r0, #0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
    2940:	3affffd4 	bcc	2898 <scangr+0x3c>                            
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
    2944:	e59d0008 	ldr	r0, [sp, #8]                                  
    2948:	e280000f 	add	r0, r0, #15                                   
    294c:	e3c0000f 	bic	r0, r0, #15                                   
    2950:	e588000c 	str	r0, [r8, #12]                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
    2954:	e5801000 	str	r1, [r0]                                      
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    2958:	e59d200c 	ldr	r2, [sp, #12]                                 
    295c:	e5d23000 	ldrb	r3, [r2]                                     
    2960:	e3530000 	cmp	r3, #0                                        
    2964:	0a000010 	beq	29ac <scangr+0x150>                           
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
    2968:	e2822001 	add	r2, r2, #1                                    
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    296c:	e3a01001 	mov	r1, #1                                        
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
    2970:	e3a00000 	mov	r0, #0                                        
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
    2974:	e353002c 	cmp	r3, #44	; 0x2c                                
      *cp = '\0';                                                     
    2978:	05420001 	strbeq	r0, [r2, #-1]                              
      grp->gr_mem[memcount++] = cp + 1;                               
    297c:	0598300c 	ldreq	r3, [r8, #12]                               
    2980:	07832101 	streq	r2, [r3, r1, lsl #2]                        
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    2984:	e4d23001 	ldrb	r3, [r2], #1                                 
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    2988:	02811001 	addeq	r1, r1, #1                                  
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    298c:	e3530000 	cmp	r3, #0                                        
    2990:	1afffff7 	bne	2974 <scangr+0x118>                           
    2994:	e598000c 	ldr	r0, [r8, #12]                                 
    2998:	e1a01101 	lsl	r1, r1, #2                                    
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
    299c:	e3a03000 	mov	r3, #0                                        
    29a0:	e7803001 	str	r3, [r0, r1]                                  
  return 1;                                                           
    29a4:	e3a00001 	mov	r0, #1                                        
    29a8:	eaffffba 	b	2898 <scangr+0x3c>                              
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    29ac:	e3a01004 	mov	r1, #4                                        <== NOT EXECUTED
    29b0:	eafffff9 	b	299c <scangr+0x140>                             <== NOT EXECUTED
                                                                      

000086f4 <sem_timedwait>: int sem_timedwait( sem_t *sem, const struct timespec *abstime ) {
    86f4:	e92d4010 	push	{r4, lr}                                     
    86f8:	e24dd004 	sub	sp, sp, #4                                    
    86fc:	e1a04000 	mov	r4, r0                                        
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
    8700:	e1a00001 	mov	r0, r1                                        
    8704:	e1a0100d 	mov	r1, sp                                        
    8708:	eb001673 	bl	e0dc <_POSIX_Absolute_timeout_to_ticks>        
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    870c:	e3500003 	cmp	r0, #3                                        
    8710:	0a000005 	beq	872c <sem_timedwait+0x38>                     
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
    8714:	e1a00004 	mov	r0, r4                                        
    8718:	e3a01000 	mov	r1, #0                                        <== NOT EXECUTED
    871c:	e59d2000 	ldr	r2, [sp]                                      <== NOT EXECUTED
    8720:	eb001989 	bl	ed4c <_POSIX_Semaphore_Wait_support>           <== NOT EXECUTED
         lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )               
      rtems_set_errno_and_return_minus_one( ETIMEDOUT );              
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
    8724:	e28dd004 	add	sp, sp, #4                                    
    8728:	e8bd8010 	pop	{r4, pc}                                      
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
    872c:	e1a00004 	mov	r0, r4                                        
    8730:	e3a01001 	mov	r1, #1                                        
    8734:	e59d2000 	ldr	r2, [sp]                                      
    8738:	eb001983 	bl	ed4c <_POSIX_Semaphore_Wait_support>           
    873c:	eafffff8 	b	8724 <sem_timedwait+0x30>                       
                                                                      

00005f4c <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
    5f4c:	e2523000 	subs	r3, r2, #0                                   
    *oact = _POSIX_signals_Vectors[ sig ];                            
    5f50:	159f20c4 	ldrne	r2, [pc, #196]	; 601c <sigaction+0xd0>      
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
    5f54:	e92d4070 	push	{r4, r5, r6, lr}                             
    5f58:	e1a05001 	mov	r5, r1                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
    5f5c:	10801080 	addne	r1, r0, r0, lsl #1                          
    5f60:	10822101 	addne	r2, r2, r1, lsl #2                          
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
    5f64:	e1a04000 	mov	r4, r0                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
    5f68:	18920007 	ldmne	r2, {r0, r1, r2}                            
    5f6c:	18830007 	stmne	r3, {r0, r1, r2}                            
                                                                      
  if ( !sig )                                                         
    5f70:	e3540000 	cmp	r4, #0                                        
    5f74:	0a000023 	beq	6008 <sigaction+0xbc>                         
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
    5f78:	e2443001 	sub	r3, r4, #1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    5f7c:	e353001f 	cmp	r3, #31                                       
    5f80:	8a000020 	bhi	6008 <sigaction+0xbc>                         
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    5f84:	e3540009 	cmp	r4, #9                                        
    5f88:	0a00001e 	beq	6008 <sigaction+0xbc>                         
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
    5f8c:	e3550000 	cmp	r5, #0                                        
    5f90:	0a00001a 	beq	6000 <sigaction+0xb4>                         
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
    5f94:	e10f6000 	mrs	r6, CPSR                                      
    5f98:	e3863080 	orr	r3, r6, #128	; 0x80                           
    5f9c:	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 ) {                             
    5fa0:	e5953008 	ldr	r3, [r5, #8]                                  
    5fa4:	e3530000 	cmp	r3, #0                                        
    5fa8:	0a000009 	beq	5fd4 <sigaction+0x88>                         
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
    5fac:	e1a00004 	mov	r0, r4                                        
    5fb0:	eb001743 	bl	bcc4 <_POSIX_signals_Clear_process_signals>    
         _POSIX_signals_Vectors[ sig ] = *act;                        
    5fb4:	e59f3060 	ldr	r3, [pc, #96]	; 601c <sigaction+0xd0>         
    5fb8:	e8950007 	ldm	r5, {r0, r1, r2}                              
    5fbc:	e0844084 	add	r4, r4, r4, lsl #1                            
    5fc0:	e0834104 	add	r4, r3, r4, lsl #2                            
    5fc4:	e8840007 	stm	r4, {r0, r1, r2}                              
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
    5fc8:	e129f006 	msr	CPSR_fc, r6                                   
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
    5fcc:	e3a00000 	mov	r0, #0                                        
    5fd0:	e8bd8070 	pop	{r4, r5, r6, pc}                              
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
    5fd4:	e0844084 	add	r4, r4, r4, lsl #1                            
    5fd8:	e59f3040 	ldr	r3, [pc, #64]	; 6020 <sigaction+0xd4>         
    5fdc:	e1a04104 	lsl	r4, r4, #2                                    
    5fe0:	e0833004 	add	r3, r3, r4                                    
    5fe4:	e8930007 	ldm	r3, {r0, r1, r2}                              
    5fe8:	e59f302c 	ldr	r3, [pc, #44]	; 601c <sigaction+0xd0>         
    5fec:	e0834004 	add	r4, r3, r4                                    
    5ff0:	e8840007 	stm	r4, {r0, r1, r2}                              
    5ff4:	e129f006 	msr	CPSR_fc, r6                                   
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
    5ff8:	e3a00000 	mov	r0, #0                                        
    5ffc:	e8bd8070 	pop	{r4, r5, r6, pc}                              
    6000:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
}                                                                     
    6004:	e8bd8070 	pop	{r4, r5, r6, pc}                              <== NOT EXECUTED
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    6008:	eb0023a6 	bl	eea8 <__errno>                                 
    600c:	e3a03016 	mov	r3, #22                                       
    6010:	e5803000 	str	r3, [r0]                                      
    6014:	e3e00000 	mvn	r0, #0                                        
    6018:	e8bd8070 	pop	{r4, r5, r6, pc}                              
                                                                      

000085bc <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
    85bc:	e92d4010 	push	{r4, lr}                                     
    85c0:	e1a04001 	mov	r4, r1                                        
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
    85c4:	e3a01000 	mov	r1, #0                                        
    85c8:	e1a02001 	mov	r2, r1                                        
    85cc:	ebffff7f 	bl	83d0 <sigtimedwait>                            
                                                                      
  if ( status != -1 ) {                                               
    85d0:	e3700001 	cmn	r0, #1                                        
    85d4:	0a000005 	beq	85f0 <sigwait+0x34>                           
    if ( sig )                                                        
    85d8:	e3540000 	cmp	r4, #0                                        
      *sig = status;                                                  
    85dc:	15840000 	strne	r0, [r4]                                    
    return 0;                                                         
    85e0:	13a00000 	movne	r0, #0                                      
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
    85e4:	18bd8010 	popne	{r4, pc}                                    
      *sig = status;                                                  
    return 0;                                                         
    85e8:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
    85ec:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
    85f0:	eb002305 	bl	1120c <__errno>                                
    85f4:	e5900000 	ldr	r0, [r0]                                      
    85f8:	e8bd8010 	pop	{r4, pc}                                      
                                                                      

0000407c <siproc>: int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    407c:	e591303c 	ldr	r3, [r1, #60]	; 0x3c                          
    4080:	e3c33f61 	bic	r3, r3, #388	; 0x184                          
    4084:	e3c33003 	bic	r3, r3, #3                                    
    4088:	e1a03a03 	lsl	r3, r3, #20                                   
    408c:	e1a03a23 	lsr	r3, r3, #20                                   
    4090:	e3530000 	cmp	r3, #0                                        
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
    4094:	e92d4030 	push	{r4, r5, lr}                                 
    4098:	e1a04001 	mov	r4, r1                                        
    409c:	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)) {
    40a0:	1a000001 	bne	40ac <siproc+0x30>                            
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
    40a4:	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);                                               
    40a8:	eaffff7f 	b	3eac <iproc>                                    <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
    40ac:	e3a01000 	mov	r1, #0                                        
    40b0:	e1a02001 	mov	r2, r1                                        
    40b4:	e5940018 	ldr	r0, [r4, #24]                                 
    40b8:	eb00054e 	bl	55f8 <rtems_semaphore_obtain>                  
    i = iproc (c, tty);                                               
    40bc:	e1a01004 	mov	r1, r4                                        
    40c0:	e1a00005 	mov	r0, r5                                        
    40c4:	ebffff78 	bl	3eac <iproc>                                   
    40c8:	e1a05000 	mov	r5, r0                                        
    rtems_semaphore_release (tty->osem);                              
    40cc:	e5940018 	ldr	r0, [r4, #24]                                 
    40d0:	eb000591 	bl	571c <rtems_semaphore_release>                 
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
    40d4:	e1a00005 	mov	r0, r5                                        
    40d8:	e8bd8030 	pop	{r4, r5, pc}                                  
                                                                      

00005d78 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
    5d78:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
    5d7c:	e24dd030 	sub	sp, sp, #48	; 0x30                            
    5d80:	e1a07000 	mov	r7, r0                                        
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
    5d84:	ebfff454 	bl	2edc <rtems_filesystem_dirname>                
                                                                      
  if ( parentpathlen == 0 )                                           
    5d88:	e2505000 	subs	r5, r0, #0                                   
    5d8c:	1a000039 	bne	5e78 <unlink+0x100>                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
    5d90:	e28d4018 	add	r4, sp, #24                                   
    5d94:	e1a00007 	mov	r0, r7                                        
    5d98:	e28d102c 	add	r1, sp, #44	; 0x2c                            
    5d9c:	e1a02004 	mov	r2, r4                                        
    5da0:	ebfff85f 	bl	3f24 <rtems_filesystem_get_start_loc>          
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
    5da4:	e1a06005 	mov	r6, r5                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    5da8:	e1a0e004 	mov	lr, r4                                        
    5dac:	e8be000f 	ldm	lr!, {r0, r1, r2, r3}                         
    5db0:	e28dc004 	add	ip, sp, #4                                    
    5db4:	e8ac000f 	stmia	ip!, {r0, r1, r2, r3}                       
  name = path + parentpathlen;                                        
    5db8:	e0875005 	add	r5, r7, r5                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    5dbc:	e59e3000 	ldr	r3, [lr]                                      
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5dc0:	e1a00005 	mov	r0, r5                                        
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
    5dc4:	e58c3000 	str	r3, [ip]                                      
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
    5dc8:	eb003366 	bl	12b68 <strlen>                                 
    5dcc:	e1a01000 	mov	r1, r0                                        
    5dd0:	e1a00005 	mov	r0, r5                                        
    5dd4:	ebfff44f 	bl	2f18 <rtems_filesystem_prefix_separators>      
    5dd8:	e0857000 	add	r7, r5, r0                                    
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
    5ddc:	e1a00007 	mov	r0, r7                                        
    5de0:	eb003360 	bl	12b68 <strlen>                                 
    5de4:	e28d5004 	add	r5, sp, #4                                    
    5de8:	e1a01000 	mov	r1, r0                                        
    5dec:	e3a02000 	mov	r2, #0                                        
    5df0:	e1a00007 	mov	r0, r7                                        
    5df4:	e1a03005 	mov	r3, r5                                        
    5df8:	e58d2000 	str	r2, [sp]                                      
    5dfc:	ebfff404 	bl	2e14 <rtems_filesystem_evaluate_relative_path> 
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    5e00:	e3500000 	cmp	r0, #0                                        
    5e04:	1a000013 	bne	5e58 <unlink+0xe0>                            
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
    5e08:	e1a00005 	mov	r0, r5                                        
    5e0c:	e59d3010 	ldr	r3, [sp, #16]                                 
    5e10:	e1a0e00f 	mov	lr, pc                                        
    5e14:	e593f010 	ldr	pc, [r3, #16]                                 
    5e18:	e3500001 	cmp	r0, #1                                        
    5e1c:	0a000021 	beq	5ea8 <unlink+0x130>                           
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    rtems_set_errno_and_return_minus_one( EISDIR );                   
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
    5e20:	e1a01005 	mov	r1, r5                                        
    5e24:	e59d3010 	ldr	r3, [sp, #16]                                 
    5e28:	e1a00004 	mov	r0, r4                                        
    5e2c:	e1a0e00f 	mov	lr, pc                                        
    5e30:	e593f00c 	ldr	pc, [r3, #12]                                 
    5e34:	e1a07000 	mov	r7, r0                                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    5e38:	e1a00005 	mov	r0, r5                                        
    5e3c:	ebfff44a 	bl	2f6c <rtems_filesystem_freenode>               
  if ( free_parentloc )                                               
    5e40:	e3560000 	cmp	r6, #0                                        
    rtems_filesystem_freenode( &parentloc );                          
    5e44:	11a00004 	movne	r0, r4                                      
    5e48:	1bfff447 	blne	2f6c <rtems_filesystem_freenode>             
                                                                      
  return result;                                                      
}                                                                     
    5e4c:	e1a00007 	mov	r0, r7                                        
    5e50:	e28dd030 	add	sp, sp, #48	; 0x30                            
    5e54:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
    5e58:	e3560000 	cmp	r6, #0                                        
    5e5c:	1a000001 	bne	5e68 <unlink+0xf0>                            
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
    5e60:	e3e07000 	mvn	r7, #0                                        
    5e64:	eafffff8 	b	5e4c <unlink+0xd4>                              
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    5e68:	e1a00004 	mov	r0, r4                                        
    5e6c:	ebfff43e 	bl	2f6c <rtems_filesystem_freenode>               
    return -1;                                                        
    5e70:	e3e07000 	mvn	r7, #0                                        
    5e74:	eafffff4 	b	5e4c <unlink+0xd4>                              
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
    5e78:	e3a03000 	mov	r3, #0                                        
    5e7c:	e28d4018 	add	r4, sp, #24                                   
    5e80:	e58d3000 	str	r3, [sp]                                      
    5e84:	e3a02002 	mov	r2, #2                                        
    5e88:	e1a00007 	mov	r0, r7                                        
    5e8c:	e1a01005 	mov	r1, r5                                        
    5e90:	e1a03004 	mov	r3, r4                                        
    5e94:	ebfff3fa 	bl	2e84 <rtems_filesystem_evaluate_path>          
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
    5e98:	e3500000 	cmp	r0, #0                                        
    5e9c:	1affffef 	bne	5e60 <unlink+0xe8>                            
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
    5ea0:	e3a06001 	mov	r6, #1                                        
    5ea4:	eaffffbf 	b	5da8 <unlink+0x30>                              
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
    rtems_filesystem_freenode( &loc );                                
    5ea8:	e1a00005 	mov	r0, r5                                        
    5eac:	ebfff42e 	bl	2f6c <rtems_filesystem_freenode>               
    if ( free_parentloc )                                             
    5eb0:	e3560000 	cmp	r6, #0                                        
      rtems_filesystem_freenode( &parentloc );                        
    5eb4:	11a00004 	movne	r0, r4                                      
    5eb8:	1bfff42b 	blne	2f6c <rtems_filesystem_freenode>             
    rtems_set_errno_and_return_minus_one( EISDIR );                   
    5ebc:	eb002f6a 	bl	11c6c <__errno>                                
    5ec0:	e3a03015 	mov	r3, #21                                       
    5ec4:	e5803000 	str	r3, [r0]                                      
    5ec8:	e3e07000 	mvn	r7, #0                                        
    5ecc:	eaffffde 	b	5e4c <unlink+0xd4>                              
                                                                      

00005f40 <unmount>: */ int unmount( const char *path ) {
    5f40:	e92d4070 	push	{r4, r5, r6, lr}                             
    5f44:	e24dd018 	sub	sp, sp, #24                                   
    5f48:	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 ) )
    5f4c:	eb00281a 	bl	ffbc <strlen>                                  
    5f50:	e28d4004 	add	r4, sp, #4                                    
    5f54:	e1a01000 	mov	r1, r0                                        
    5f58:	e3a0c001 	mov	ip, #1                                        
    5f5c:	e1a00005 	mov	r0, r5                                        
    5f60:	e3a02000 	mov	r2, #0                                        
    5f64:	e1a03004 	mov	r3, r4                                        
    5f68:	e58dc000 	str	ip, [sp]                                      
    5f6c:	ebfff333 	bl	2c40 <rtems_filesystem_evaluate_path>          
    5f70:	e3500000 	cmp	r0, #0                                        
    5f74:	1a00001a 	bne	5fe4 <unmount+0xa4>                           
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
    5f78:	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 ){                 
    5f7c:	e59d3004 	ldr	r3, [sp, #4]                                  
    5f80:	e595201c 	ldr	r2, [r5, #28]                                 
    5f84:	e1520003 	cmp	r2, r3                                        
    5f88:	1a00002d 	bne	6044 <unmount+0x104>                          
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
    5f8c:	e1a00004 	mov	r0, r4                                        
    5f90:	ebfff364 	bl	2d28 <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 )                
    5f94:	e59f30f8 	ldr	r3, [pc, #248]	; 6094 <unmount+0x154>         
    5f98:	e5933000 	ldr	r3, [r3]                                      
    5f9c:	e5933014 	ldr	r3, [r3, #20]                                 
    5fa0:	e1530005 	cmp	r3, r5                                        
    5fa4:	0a00002d 	beq	6060 <unmount+0x120>                          
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
    5fa8:	e59f00e8 	ldr	r0, [pc, #232]	; 6098 <unmount+0x158>         
    5fac:	e595102c 	ldr	r1, [r5, #44]	; 0x2c                          
    5fb0:	ebfff5b0 	bl	3678 <rtems_filesystem_mount_iterate>          
    5fb4:	e3500000 	cmp	r0, #0                                        
    5fb8:	1a000028 	bne	6060 <unmount+0x120>                          
   *  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 )             
    5fbc:	e1a00005 	mov	r0, r5                                        
    5fc0:	ebfff452 	bl	3110 <rtems_libio_is_open_files_in_fs>         
    5fc4:	e3500001 	cmp	r0, #1                                        
    5fc8:	0a000024 	beq	6060 <unmount+0x120>                          
   * 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 )             
    5fcc:	e5953014 	ldr	r3, [r5, #20]                                 
    5fd0:	e1a00005 	mov	r0, r5                                        
    5fd4:	e1a0e00f 	mov	lr, pc                                        
    5fd8:	e593f028 	ldr	pc, [r3, #40]	; 0x28                          
    5fdc:	e2506000 	subs	r6, r0, #0                                   
    5fe0:	0a000002 	beq	5ff0 <unmount+0xb0>                           
   */                                                                 
                                                                      
  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;                                                        
    5fe4:	e3e00000 	mvn	r0, #0                                        
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
    5fe8:	e28dd018 	add	sp, sp, #24                                   
    5fec:	e8bd8070 	pop	{r4, r5, r6, pc}                              
   *  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){          
    5ff0:	e5953028 	ldr	r3, [r5, #40]	; 0x28                          
    5ff4:	e1a00005 	mov	r0, r5                                        
    5ff8:	e1a0e00f 	mov	lr, pc                                        
    5ffc:	e593f02c 	ldr	pc, [r3, #44]	; 0x2c                          
    6000:	e2504000 	subs	r4, r0, #0                                   
    6004:	1a00001a 	bne	6074 <unmount+0x134>                          
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 );
    6008:	e59f608c 	ldr	r6, [pc, #140]	; 609c <unmount+0x15c>         
    600c:	e1a01004 	mov	r1, r4                                        
    6010:	e1a02004 	mov	r2, r4                                        
    6014:	e5960000 	ldr	r0, [r6]                                      
    6018:	eb000289 	bl	6a44 <rtems_semaphore_obtain>                  
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
    601c:	e1a00005 	mov	r0, r5                                        
    6020:	eb0004ef 	bl	73e4 <_Chain_Extract>                          
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
    6024:	e5960000 	ldr	r0, [r6]                                      
    6028:	eb0002ce 	bl	6b68 <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 );                          
    602c:	e2850008 	add	r0, r5, #8                                    
    6030:	ebfff33c 	bl	2d28 <rtems_filesystem_freenode>               
  free( mt_entry );                                                   
    6034:	e1a00005 	mov	r0, r5                                        
    6038:	ebfff33f 	bl	2d3c <free>                                    
                                                                      
  return 0;                                                           
    603c:	e1a00004 	mov	r0, r4                                        
    6040:	eaffffe8 	b	5fe8 <unmount+0xa8>                             
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
    rtems_filesystem_freenode( &loc );                                
    6044:	e1a00004 	mov	r0, r4                                        
    6048:	ebfff336 	bl	2d28 <rtems_filesystem_freenode>               
    rtems_set_errno_and_return_minus_one( EACCES );                   
    604c:	eb002262 	bl	e9dc <__errno>                                 
    6050:	e3a0300d 	mov	r3, #13                                       
    6054:	e5803000 	str	r3, [r0]                                      
    6058:	e3e00000 	mvn	r0, #0                                        
    605c:	eaffffe1 	b	5fe8 <unmount+0xa8>                             
   *  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 )             
    rtems_set_errno_and_return_minus_one( EBUSY );                    
    6060:	eb00225d 	bl	e9dc <__errno>                                 
    6064:	e3a03010 	mov	r3, #16                                       
    6068:	e5803000 	str	r3, [r0]                                      
    606c:	e3e00000 	mvn	r0, #0                                        
    6070:	eaffffdc 	b	5fe8 <unmount+0xa8>                             
   *         This was response was questionable but the best we could 
   *         come up with.                                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
    6074:	e5953014 	ldr	r3, [r5, #20]                                 
    6078:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
    607c:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
    6080:	e593f020 	ldr	pc, [r3, #32]                                 <== NOT EXECUTED
    6084:	e3500000 	cmp	r0, #0                                        <== NOT EXECUTED
    6088:	0affffd5 	beq	5fe4 <unmount+0xa4>                           <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
    608c:	e1a00006 	mov	r0, r6                                        <== NOT EXECUTED
    6090:	eb0003fd 	bl	708c <rtems_fatal_error_occurred>              <== NOT EXECUTED
                                                                      

00004be4 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
    4be4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
    4be8:	e1a0a000 	mov	sl, r0                                        
  for (; *fmt != '\0'; fmt++) {                                       
    4bec:	e5d00000 	ldrb	r0, [r0]                                     
 */                                                                   
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
    4bf0:	e24dd01c 	sub	sp, sp, #28                                   
  for (; *fmt != '\0'; fmt++) {                                       
    4bf4:	e3500000 	cmp	r0, #0                                        
 */                                                                   
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
    4bf8:	e58d1000 	str	r1, [sp]                                      
  for (; *fmt != '\0'; fmt++) {                                       
    4bfc:	0a00006e 	beq	4dbc <vprintk+0x1d8>                          
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
      BSP_output_char(*fmt);                                          
    4c00:	e59f8334 	ldr	r8, [pc, #820]	; 4f3c <vprintk+0x358>         
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
    4c04:	e28db008 	add	fp, sp, #8                                    
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
    4c08:	e3500025 	cmp	r0, #37	; 0x25                                
    4c0c:	1a00006c 	bne	4dc4 <vprintk+0x1e0>                          
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
    4c10:	e5fa0001 	ldrb	r0, [sl, #1]!                                
    4c14:	e3500030 	cmp	r0, #48	; 0x30                                
      lead = '0';                                                     
      fmt++;                                                          
    4c18:	05fa0001 	ldrbeq	r0, [sl, #1]!                              
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    4c1c:	13a03020 	movne	r3, #32                                     
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
    4c20:	03a02030 	moveq	r2, #48	; 0x30                              
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    4c24:	158d3004 	strne	r3, [sp, #4]                                
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
    4c28:	058d2004 	streq	r2, [sp, #4]                                
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
    4c2c:	e350002d 	cmp	r0, #45	; 0x2d                                
      minus = true;                                                   
      fmt++;                                                          
    4c30:	05fa0001 	ldrbeq	r0, [sl, #1]!                              
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
    4c34:	e2403030 	sub	r3, r0, #48	; 0x30                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
    4c38:	03a09001 	moveq	r9, #1                                      
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    4c3c:	13a09000 	movne	r9, #0                                      
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
    4c40:	e3530009 	cmp	r3, #9                                        
    4c44:	83a04000 	movhi	r4, #0                                      
    4c48:	8a000009 	bhi	4c74 <vprintk+0x90>                           
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
    4c4c:	e28a3001 	add	r3, sl, #1                                    
    4c50:	e3a04000 	mov	r4, #0                                        
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
    4c54:	e0844104 	add	r4, r4, r4, lsl #2                            
      width += ((unsigned) *fmt - '0');                               
    4c58:	e0804084 	add	r4, r0, r4, lsl #1                            
    4c5c:	e1a0a003 	mov	sl, r3                                        
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
    4c60:	e4d30001 	ldrb	r0, [r3], #1                                 
    4c64:	e2402030 	sub	r2, r0, #48	; 0x30                            
    4c68:	e3520009 	cmp	r2, #9                                        
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
    4c6c:	e2444030 	sub	r4, r4, #48	; 0x30                            
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
    4c70:	9afffff7 	bls	4c54 <vprintk+0x70>                           
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
    4c74:	e350006c 	cmp	r0, #108	; 0x6c                               
      lflag = true;                                                   
      c = *++fmt;                                                     
    4c78:	05fa0001 	ldrbeq	r0, [sl, #1]!                              
    }                                                                 
    if ( c == 'c' ) {                                                 
    4c7c:	e3500063 	cmp	r0, #99	; 0x63                                
    4c80:	0a00008b 	beq	4eb4 <vprintk+0x2d0>                          
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
      BSP_output_char(chr);                                           
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
    4c84:	e3500073 	cmp	r0, #115	; 0x73                               
    4c88:	0a000053 	beq	4ddc <vprintk+0x1f8>                          
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
    4c8c:	e350006f 	cmp	r0, #111	; 0x6f                               
    4c90:	1350004f 	cmpne	r0, #79	; 0x4f                              
      base = 8; sign = false;                                         
    4c94:	03a02000 	moveq	r2, #0                                      
    4c98:	03a09008 	moveq	r9, #8                                      
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
    4c9c:	0a000009 	beq	4cc8 <vprintk+0xe4>                           
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
    4ca0:	e3500069 	cmp	r0, #105	; 0x69                               
    4ca4:	13500049 	cmpne	r0, #73	; 0x49                              
    4ca8:	0a000004 	beq	4cc0 <vprintk+0xdc>                           
                c == 'd' || c == 'D' ) {                              
    4cac:	e3500064 	cmp	r0, #100	; 0x64                               
    4cb0:	13500044 	cmpne	r0, #68	; 0x44                              
    4cb4:	13a02000 	movne	r2, #0                                      
    4cb8:	03a02001 	moveq	r2, #1                                      
    4cbc:	1a000086 	bne	4edc <vprintk+0x2f8>                          
      base = 10; sign = true;                                         
    4cc0:	e3a02001 	mov	r2, #1                                        
    4cc4:	e3a0900a 	mov	r9, #10                                       
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
    4cc8:	e59d3000 	ldr	r3, [sp]                                      
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    4ccc:	e3520000 	cmp	r2, #0                                        
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
    4cd0:	e5937000 	ldr	r7, [r3]                                      
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
    4cd4:	e2833004 	add	r3, r3, #4                                    
    4cd8:	e58d3000 	str	r3, [sp]                                      
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    4cdc:	0a000001 	beq	4ce8 <vprintk+0x104>                          
    4ce0:	e3570000 	cmp	r7, #0                                        
    4ce4:	ba00008d 	blt	4f20 <vprintk+0x33c>                          
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    4ce8:	e1a00007 	mov	r0, r7                                        
    4cec:	e1a01009 	mov	r1, r9                                        
    4cf0:	eb003143 	bl	11204 <__aeabi_uidiv>                          
    4cf4:	e3500000 	cmp	r0, #0                                        
    4cf8:	e1a05000 	mov	r5, r0                                        
    4cfc:	e1a06000 	mov	r6, r0                                        
    4d00:	01a05007 	moveq	r5, r7                                      
    4d04:	03a07001 	moveq	r7, #1                                      
    4d08:	0a000010 	beq	4d50 <vprintk+0x16c>                          
    4d0c:	e20930ff 	and	r3, r9, #255	; 0xff                           
    4d10:	e1a02007 	mov	r2, r7                                        
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
    4d14:	e3a06000 	mov	r6, #0                                        
    4d18:	e1a07003 	mov	r7, r3                                        
    4d1c:	ea000001 	b	4d28 <vprintk+0x144>                            
  while ((n = unsigned_num / base) > 0) {                             
    4d20:	e1a02005 	mov	r2, r5                                        
    4d24:	e1a05000 	mov	r5, r0                                        
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    4d28:	e0030795 	mul	r3, r5, r7                                    
    4d2c:	e0633002 	rsb	r3, r3, r2                                    
    4d30:	e7cb3006 	strb	r3, [fp, r6]                                 
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    4d34:	e1a00005 	mov	r0, r5                                        
    4d38:	e1a01009 	mov	r1, r9                                        
    4d3c:	eb003130 	bl	11204 <__aeabi_uidiv>                          
    4d40:	e3500000 	cmp	r0, #0                                        
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    4d44:	e2866001 	add	r6, r6, #1                                    
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    4d48:	1afffff4 	bne	4d20 <vprintk+0x13c>                          
    4d4c:	e2867001 	add	r7, r6, #1                                    
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
    4d50:	e28d201c 	add	r2, sp, #28                                   
    4d54:	e0826006 	add	r6, r2, r6                                    
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    4d58:	e1570004 	cmp	r7, r4                                        
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
    4d5c:	e5465014 	strb	r5, [r6, #-20]                               
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    4d60:	2a000006 	bcs	4d80 <vprintk+0x19c>                          
    4d64:	e59d5004 	ldr	r5, [sp, #4]                                  
    BSP_output_char(lead);                                            
    4d68:	e1a00005 	mov	r0, r5                                        
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    4d6c:	e2444001 	sub	r4, r4, #1                                    
    BSP_output_char(lead);                                            
    4d70:	e1a0e00f 	mov	lr, pc                                        
    4d74:	e598f000 	ldr	pc, [r8]                                      
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    4d78:	e1570004 	cmp	r7, r4                                        
    4d7c:	3afffff9 	bcc	4d68 <vprintk+0x184>                          
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    4d80:	e3570000 	cmp	r7, #0                                        
    4d84:	0a000009 	beq	4db0 <vprintk+0x1cc>                          
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
    4d88:	e08b5007 	add	r5, fp, r7                                    
    4d8c:	e3a04000 	mov	r4, #0                                        
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
    4d90:	e5753001 	ldrb	r3, [r5, #-1]!                               
    4d94:	e59f21a4 	ldr	r2, [pc, #420]	; 4f40 <vprintk+0x35c>         
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    4d98:	e2844001 	add	r4, r4, #1                                    
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
    4d9c:	e7d20003 	ldrb	r0, [r2, r3]                                 
    4da0:	e1a0e00f 	mov	lr, pc                                        
    4da4:	e598f000 	ldr	pc, [r8]                                      
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    4da8:	e1570004 	cmp	r7, r4                                        
    4dac:	8afffff7 	bhi	4d90 <vprintk+0x1ac>                          
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    4db0:	e5fa0001 	ldrb	r0, [sl, #1]!                                
    4db4:	e3500000 	cmp	r0, #0                                        
    4db8:	1affff92 	bne	4c08 <vprintk+0x24>                           
      sign,                                                           
      width,                                                          
      lead                                                            
    );                                                                
  }                                                                   
}                                                                     
    4dbc:	e28dd01c 	add	sp, sp, #28                                   
    4dc0:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
    } else if ( c == 'x' || c == 'X' ) {                              
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      BSP_output_char(c);                                             
    4dc4:	e1a0e00f 	mov	lr, pc                                        
    4dc8:	e598f000 	ldr	pc, [r8]                                      
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    4dcc:	e5fa0001 	ldrb	r0, [sl, #1]!                                
    4dd0:	e3500000 	cmp	r0, #0                                        
    4dd4:	1affff8b 	bne	4c08 <vprintk+0x24>                           
    4dd8:	eafffff7 	b	4dbc <vprintk+0x1d8>                            
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
    4ddc:	e59d3000 	ldr	r3, [sp]                                      
    4de0:	e5936000 	ldr	r6, [r3]                                      
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
    4de4:	e59f2158 	ldr	r2, [pc, #344]	; 4f44 <vprintk+0x360>         
    4de8:	e3560000 	cmp	r6, #0                                        
    4dec:	01a06002 	moveq	r6, r2                                      
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
    4df0:	e5d65000 	ldrb	r5, [r6]                                     
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
    4df4:	e2833004 	add	r3, r3, #4                                    
      if ( str == NULL ) {                                            
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
    4df8:	e3550000 	cmp	r5, #0                                        
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
    4dfc:	e58d3000 	str	r3, [sp]                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
    4e00:	0a000005 	beq	4e1c <vprintk+0x238>                          
    4e04:	e1a03006 	mov	r3, r6                                        
    4e08:	e3a05000 	mov	r5, #0                                        
    4e0c:	e5f32001 	ldrb	r2, [r3, #1]!                                
    4e10:	e3520000 	cmp	r2, #0                                        
    4e14:	e2855001 	add	r5, r5, #1                                    
    4e18:	1afffffb 	bne	4e0c <vprintk+0x228>                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
    4e1c:	e3590000 	cmp	r9, #0                                        
    4e20:	1a000008 	bne	4e48 <vprintk+0x264>                          
        for ( i=len ; i<width ; i++ )                                 
    4e24:	e1550004 	cmp	r5, r4                                        
    4e28:	2a000006 	bcs	4e48 <vprintk+0x264>                          
    4e2c:	e1a07005 	mov	r7, r5                                        
          BSP_output_char(' ');                                       
    4e30:	e3a00020 	mov	r0, #32                                       
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
    4e34:	e2877001 	add	r7, r7, #1                                    
          BSP_output_char(' ');                                       
    4e38:	e1a0e00f 	mov	lr, pc                                        
    4e3c:	e598f000 	ldr	pc, [r8]                                      
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
    4e40:	e1570004 	cmp	r7, r4                                        
    4e44:	3afffff9 	bcc	4e30 <vprintk+0x24c>                          
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
    4e48:	e3540000 	cmp	r4, #0                                        
    4e4c:	1a000002 	bne	4e5c <vprintk+0x278>                          
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
    4e50:	e3550000 	cmp	r5, #0                                        
    4e54:	0a000008 	beq	4e7c <vprintk+0x298>                          
    4e58:	e1a04005 	mov	r4, r5                                        
    4e5c:	e5d60000 	ldrb	r0, [r6]                                     
    4e60:	e3500000 	cmp	r0, #0                                        
    4e64:	0a000004 	beq	4e7c <vprintk+0x298>                          
        BSP_output_char(*str);                                        
    4e68:	e1a0e00f 	mov	lr, pc                                        
    4e6c:	e598f000 	ldr	pc, [r8]                                      
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
    4e70:	e5f60001 	ldrb	r0, [r6, #1]!                                
    4e74:	e3500000 	cmp	r0, #0                                        
    4e78:	1afffffa 	bne	4e68 <vprintk+0x284>                          
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
    4e7c:	e3590000 	cmp	r9, #0                                        
    4e80:	0affffca 	beq	4db0 <vprintk+0x1cc>                          
        for ( i=len ; i<width ; i++ )                                 
    4e84:	e1550004 	cmp	r5, r4                                        
    4e88:	2affffc8 	bcs	4db0 <vprintk+0x1cc>                          
          BSP_output_char(' ');                                       
    4e8c:	e3a00020 	mov	r0, #32                                       
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
    4e90:	e2855001 	add	r5, r5, #1                                    
          BSP_output_char(' ');                                       
    4e94:	e1a0e00f 	mov	lr, pc                                        
    4e98:	e598f000 	ldr	pc, [r8]                                      
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
    4e9c:	e1550004 	cmp	r5, r4                                        
    4ea0:	3afffff9 	bcc	4e8c <vprintk+0x2a8>                          
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    4ea4:	e5fa0001 	ldrb	r0, [sl, #1]!                                
    4ea8:	e3500000 	cmp	r0, #0                                        
    4eac:	1affff55 	bne	4c08 <vprintk+0x24>                           
    4eb0:	eaffffc1 	b	4dbc <vprintk+0x1d8>                            <== NOT EXECUTED
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
    4eb4:	e59d2000 	ldr	r2, [sp]                                      
    4eb8:	e2824004 	add	r4, r2, #4                                    
      BSP_output_char(chr);                                           
    4ebc:	e5d20000 	ldrb	r0, [r2]                                     
    4ec0:	e1a0e00f 	mov	lr, pc                                        
    4ec4:	e598f000 	ldr	pc, [r8]                                      
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
    4ec8:	e58d4000 	str	r4, [sp]                                      
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    4ecc:	e5fa0001 	ldrb	r0, [sl, #1]!                                
    4ed0:	e3500000 	cmp	r0, #0                                        
    4ed4:	1affff4b 	bne	4c08 <vprintk+0x24>                           
    4ed8:	eaffffb7 	b	4dbc <vprintk+0x1d8>                            <== NOT EXECUTED
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
    4edc:	e3500075 	cmp	r0, #117	; 0x75                               
    4ee0:	13500055 	cmpne	r0, #85	; 0x55                              
    4ee4:	13a01000 	movne	r1, #0                                      
    4ee8:	03a01001 	moveq	r1, #1                                      
      base = 10; sign = false;                                        
    4eec:	03a0900a 	moveq	r9, #10                                     
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
    4ef0:	0affff74 	beq	4cc8 <vprintk+0xe4>                           
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
    4ef4:	e3500078 	cmp	r0, #120	; 0x78                               
    4ef8:	13500058 	cmpne	r0, #88	; 0x58                              
    4efc:	13a02000 	movne	r2, #0                                      
    4f00:	03a02001 	moveq	r2, #1                                      
      base = 16; sign = false;                                        
    4f04:	03a09010 	moveq	r9, #16                                     
    4f08:	01a02001 	moveq	r2, r1                                      
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
    4f0c:	0affff6d 	beq	4cc8 <vprintk+0xe4>                           
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
    4f10:	e3500070 	cmp	r0, #112	; 0x70                               
    4f14:	1affffaa 	bne	4dc4 <vprintk+0x1e0>                          
      base = 16; sign = false; lflag = true;                          
    4f18:	e3a09010 	mov	r9, #16                                       
    4f1c:	eaffff69 	b	4cc8 <vprintk+0xe4>                             
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
    4f20:	e3a0002d 	mov	r0, #45	; 0x2d                                
    4f24:	e1a0e00f 	mov	lr, pc                                        
    4f28:	e598f000 	ldr	pc, [r8]                                      
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
    4f2c:	e3540000 	cmp	r4, #0                                        
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
    unsigned_num = (unsigned long) -num;                              
    4f30:	e2677000 	rsb	r7, r7, #0                                    
    if (maxwidth) maxwidth--;                                         
    4f34:	12444001 	subne	r4, r4, #1                                  
    4f38:	eaffff6a 	b	4ce8 <vprintk+0x104>                            
                                                                      

000063dc <writev>: int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd );
    63dc:	e59f315c 	ldr	r3, [pc, #348]	; 6540 <writev+0x164>          
    63e0:	e5933000 	ldr	r3, [r3]                                      
    63e4:	e1500003 	cmp	r0, r3                                        
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
    63e8:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
    63ec:	e1a05002 	mov	r5, r2                                        
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
    63f0:	2a00004b 	bcs	6524 <writev+0x148>                           
  iop = rtems_libio_iop( fd );                                        
    63f4:	e59f3148 	ldr	r3, [pc, #328]	; 6544 <writev+0x168>          
    63f8:	e5933000 	ldr	r3, [r3]                                      
    63fc:	e0600180 	rsb	r0, r0, r0, lsl #3                            
    6400:	e0838180 	add	r8, r3, r0, lsl #3                            
  rtems_libio_check_is_open( iop );                                   
    6404:	e5983014 	ldr	r3, [r8, #20]                                 
    6408:	e3130c01 	tst	r3, #256	; 0x100                              
    640c:	0a000044 	beq	6524 <writev+0x148>                           
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
    6410:	e3130004 	tst	r3, #4                                        
    6414:	0a00003c 	beq	650c <writev+0x130>                           
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
    6418:	e3510000 	cmp	r1, #0                                        
    641c:	0a00003a 	beq	650c <writev+0x130>                           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    6420:	e3520000 	cmp	r2, #0                                        
    6424:	da000038 	ble	650c <writev+0x130>                           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
    6428:	e3520b01 	cmp	r2, #1024	; 0x400                             
    642c:	ca000036 	bgt	650c <writev+0x130>                           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
    6430:	e1a04001 	mov	r4, r1                                        
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
    6434:	e3a0cc7f 	mov	ip, #32512	; 0x7f00                           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
    6438:	e3a01000 	mov	r1, #0                                        
    643c:	e1a02004 	mov	r2, r4                                        
    6440:	e3a06001 	mov	r6, #1                                        
    6444:	e1a07001 	mov	r7, r1                                        
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
    6448:	e28cc0ff 	add	ip, ip, #255	; 0xff                           
    644c:	ea000000 	b	6454 <writev+0x78>                              
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    6450:	e1a07003 	mov	r7, r3                                        
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
    6454:	e5923000 	ldr	r3, [r2]                                      
    6458:	e3530000 	cmp	r3, #0                                        
   *  this loop does that check as well and sets "all-zero" appropriately.
   *  The variable "all_zero" is used as an early exit point before   
   *  entering the write loop.                                        
   */                                                                 
  all_zeros = true;                                                   
  for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {                    
    645c:	e2811001 	add	r1, r1, #1                                    
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
    6460:	0a000029 	beq	650c <writev+0x130>                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
    6464:	e5920004 	ldr	r0, [r2, #4]                                  
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    6468:	e0873000 	add	r3, r7, r0                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
    646c:	e3500000 	cmp	r0, #0                                        
    6470:	13a06000 	movne	r6, #0                                      
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
    6474:	e1570003 	cmp	r7, r3                                        
    6478:	d153000c 	cmple	r3, ip                                      
    647c:	d3a07000 	movle	r7, #0                                      
    6480:	c3a07001 	movgt	r7, #1                                      
    6484:	ca000020 	bgt	650c <writev+0x130>                           
   *  this loop does that check as well and sets "all-zero" appropriately.
   *  The variable "all_zero" is used as an early exit point before   
   *  entering the write loop.                                        
   */                                                                 
  all_zeros = true;                                                   
  for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {                    
    6488:	e1550001 	cmp	r5, r1                                        
    648c:	e2822008 	add	r2, r2, #8                                    
    6490:	caffffee 	bgt	6450 <writev+0x74>                            
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
    6494:	e3560000 	cmp	r6, #0                                        
    6498:	1a00001f 	bne	651c <writev+0x140>                           
    649c:	e1a07006 	mov	r7, r6                                        
    64a0:	ea000003 	b	64b4 <writev+0xd8>                              
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    64a4:	e2866001 	add	r6, r6, #1                                    
    64a8:	e1550006 	cmp	r5, r6                                        
    64ac:	e2844008 	add	r4, r4, #8                                    
    64b0:	da000019 	ble	651c <writev+0x140>                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
    64b4:	e5942004 	ldr	r2, [r4, #4]                                  
    64b8:	e3520000 	cmp	r2, #0                                        
    64bc:	0afffff8 	beq	64a4 <writev+0xc8>                            
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
    64c0:	e5941000 	ldr	r1, [r4]                                      
    64c4:	e5983020 	ldr	r3, [r8, #32]                                 
    64c8:	e1a00008 	mov	r0, r8                                        
    64cc:	e1a0e00f 	mov	lr, pc                                        
    64d0:	e593f00c 	ldr	pc, [r3, #12]                                 
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
    64d4:	e3500000 	cmp	r0, #0                                        
    64d8:	ba000016 	blt	6538 <writev+0x15c>                           
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
    64dc:	0a000006 	beq	64fc <writev+0x120>                           
      iop->offset += bytes;                                           
    64e0:	e288300c 	add	r3, r8, #12                                   
    64e4:	e893000c 	ldm	r3, {r2, r3}                                  
    64e8:	e0922000 	adds	r2, r2, r0                                   
    64ec:	e0a33fc0 	adc	r3, r3, r0, asr #31                           
    64f0:	e588200c 	str	r2, [r8, #12]                                 
    64f4:	e5883010 	str	r3, [r8, #16]                                 
      total       += bytes;                                           
    64f8:	e0877000 	add	r7, r7, r0                                    
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
    64fc:	e5943004 	ldr	r3, [r4, #4]                                  
    6500:	e1500003 	cmp	r0, r3                                        
    6504:	0affffe6 	beq	64a4 <writev+0xc8>                            
    6508:	ea000003 	b	651c <writev+0x140>                             
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    650c:	eb0021c8 	bl	ec34 <__errno>                                 
    6510:	e3a03016 	mov	r3, #22                                       
    6514:	e5803000 	str	r3, [r0]                                      
    6518:	e3e07000 	mvn	r7, #0                                        
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
    651c:	e1a00007 	mov	r0, r7                                        
    6520:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
    6524:	eb0021c2 	bl	ec34 <__errno>                                 
    6528:	e3a03009 	mov	r3, #9                                        
    652c:	e5803000 	str	r3, [r0]                                      
    6530:	e3e07000 	mvn	r7, #0                                        
    6534:	eafffff8 	b	651c <writev+0x140>                             
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
    6538:	e3e07000 	mvn	r7, #0                                        
    653c:	eafffff6 	b	651c <writev+0x140>